@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}

:root {
  --ink: #1c1c1c;
  --bg: #f6f4ef;
  --pad: 1.25rem;
  --gap: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  cursor: url("/assets/cursor-30.png") 0 0, auto;
}

body {
  margin: 0;
  padding: 2.5rem var(--pad) var(--gap);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg);
}

::selection {
  background-color: var(--ink);
  color: var(--bg);
}

.page {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: url("/assets/cursor-30.png") 0 0, pointer;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  margin-bottom: 4.5rem;
}

.header-stack {
  --photo-size: 244px;
  position: relative;
  margin-bottom: 1.375rem;
  min-height: var(--photo-size);
}

/* Bleeds left up to 5rem, but never past the viewport edge. */
.photo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: max(-5rem, min(calc(-1 * var(--pad)), calc((640px - 100vw) / 2)));
  width: var(--photo-size);
  height: var(--photo-size);
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.name {
  margin: 0 0 0.15rem;
  font-size: inherit;
  font-weight: 400;
}

.header-intro {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--photo-size) * 0.68);
}

.bio {
  margin: 0;
}

.inline-icon,
.feed-date {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: -0.28em;
  object-fit: contain;
}

.inline-icon {
  margin-left: 0.5rem;
}

.feed-date {
  margin: 0 0.5rem;
}

.header-meta {
  margin-bottom: 2.75rem;
}

.meta-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.15rem;
}

.meta-line img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 0.05rem;
  object-fit: contain;
}

.meta-muted {
  opacity: 0.45;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.feed > article > img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.feed p {
  margin: 0;
}

/* Typewriter (main.js): text is laid out but invisible until typed. */
.tw .feed p:not(.typed) {
  color: transparent;
}

.tw .feed p:not(.typed) a {
  pointer-events: none;
}

.tw .feed p:not(.typed) .feed-date:not(.tw-shown) {
  visibility: hidden;
}

.tw-on {
  color: var(--ink);
}

.site-footer {
  margin-top: var(--gap);
}

@media (max-width: 640px) {
  :root {
    --pad: 1rem;
  }

  body {
    padding: 1.5rem var(--pad) 3rem;
  }

  .header-stack {
    --photo-size: min(200px, 52vw);
  }
}
