/* DXN Studio pages: home, About, Writing.
   The app pages carry their own styles; this sheet is only for the studio's
   own pages. Spacing comes from rhythm.css, which must load first.

   Identity: a warm paper base with warm near-black ink. Headlines are set in
   Newsreader, everything else in the system sans; small labels are uppercase
   and tracked. Colour comes only from the products, each in its own tile. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f2ec;
  --bg-alt: #ebe6dd;
  --ink: #1f1c18;
  --muted: #6b655c;
  --line: #dcd5c9;
  --nav-bg: rgba(245, 242, 236, 0.76);
  --nav-line: rgba(31, 28, 24, 0.08);
  --pill: #1f1c18;
  --pill-ink: #f5f2ec;
  --code-bg: #ebe6dd;
  --code-ink: #1f1c18;
  --bezel: #1f1c18;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1160px;
  --measure: 42rem; /* article column, ~75 characters of body text */
  --gutter: 20px;
  --tile-gap: 12px;
}

@media (min-width: 734px) {
  :root {
    --gutter: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --bg-alt: #211e1a;
    --ink: #f2ede4;
    --muted: #a39c91;
    --line: #3a342d;
    --nav-bg: rgba(23, 21, 19, 0.76);
    --nav-line: rgba(242, 237, 228, 0.08);
    --pill: #f2ede4;
    --pill-ink: #1f1c18;
    --code-bg: #211e1a;
    --code-ink: #e9e3d8;
    --bezel: #0c0b0a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto;
}

/* Global nav: slim, sticky, translucent ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.016em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current] {
  color: var(--ink);
}

@media (max-width: 420px) {
  .nav-links {
    gap: 16px;
  }
}

/* Shared type ----------------------------------------------------------- */

/* Small labels and eyebrows: uppercase sans, widely tracked, muted. */
.eyebrow,
.page-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Captions: "Name · status", the name in ink and the rest muted. */
.caption {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.caption strong {
  color: var(--ink);
  font-weight: 500;
}

.text-link {
  color: var(--ink);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* Pills. A filled pill is the primary action; an outline pill sits beside it.
   Tiles redefine the colours for their own world. */
.button,
.pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.button {
  background: var(--pill);
  color: var(--pill-ink);
}

.button:hover {
  opacity: 0.86;
}

/* Sections: centred, on the neutral base, separated by hairlines. --------- */

.section {
  padding: clamp(80px, 12svh, 128px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 48px;
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.section-body {
  max-width: 720px;
  margin: clamp(32px, 5svh, 48px) auto 0;
}

/* Home: hero ------------------------------------------------------------ */

/* Copy on the left, the four apps as a staggered row of phones on the right.
   Below 1068px the copy comes first and the phones follow: four across on a
   tablet, two by two on a phone. */
.hero {
  display: grid;
  gap: clamp(48px, 7svh, 72px);
  padding: clamp(56px, 11svh, 120px) 0 clamp(72px, 12svh, 128px);
}

@media (min-width: 1068px) {
  .hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
    align-items: center;
    gap: 32px;
    padding-bottom: clamp(88px, 14svh, 152px);
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

/* On wide screens the headline breaks at its pause, "I design the thing /
   and build the thing.", and is sized to the copy column so the longer line
   (8.2em) always fits. */
.hero-break {
  display: none;
}

@media (min-width: 1068px) {
  .hero-copy {
    container-type: inline-size;
  }

  .hero-title {
    font-size: 11.6cqw;
    text-wrap: nowrap;
  }

  .hero-break {
    display: inline;
  }
}

.hero-sub {
  max-width: 28em;
  margin-top: clamp(20px, 3svh, 28px);
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 734px) {
  .hero-apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
  }
}

/* On wide screens the phones overlap, so each can be about 200px wide or
   more: four phones of 31% of the row, each pulled back over the one before
   by 8%, fill it exactly. In each overlapping pair the higher phone sits in
   front. The overlap stays small enough that the uncovered strip under each
   phone (31% less two overlaps) still holds its caption. */
@media (min-width: 1068px) {
  .hero-apps {
    container-type: inline-size;
    display: flex;
    align-items: flex-start;
    gap: 0;
  }

  .hero-app {
    position: relative;
    flex: 0 0 31cqw;
  }

  .hero-app + .hero-app {
    margin-left: -8cqw;
  }

  .hero-app:nth-child(1) { z-index: 1; }
  .hero-app:nth-child(2) { z-index: 4; }
  .hero-app:nth-child(3) { z-index: 2; }
  .hero-app:nth-child(4) { z-index: 3; }

  .hero-app .device {
    box-shadow:
      0 24px 48px -24px rgba(0, 0, 0, 0.36),
      0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* The phone takes its width from its column, so the frame (which derives
   everything from --device-w) scales with it. */
.hero-app {
  container-type: inline-size;
}

.hero-app a {
  display: block;
}

.hero-app .device {
  --device-w: 100cqw;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.3);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-app a:hover .device {
  transform: translateY(-4px);
}

.hero-app .caption {
  display: block;
  margin-top: 14px;
  text-align: center;
}

/* A gentle stagger: down, up, down, up on a phone's two columns; a softer
   wave across the row of four. */
.hero-app:nth-child(even) {
  margin-top: 36px;
}

@media (min-width: 734px) {
  .hero-app:nth-child(1) { margin-top: 40px; }
  .hero-app:nth-child(2) { margin-top: 0; }
  .hero-app:nth-child(3) { margin-top: 56px; }
  .hero-app:nth-child(4) { margin-top: 16px; }
}

@media (min-width: 1068px) {
  .hero-app:nth-child(1) { margin-top: 56px; }
  .hero-app:nth-child(3) { margin-top: 80px; }
  .hero-app:nth-child(4) { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-app .device {
    transition: none;
  }
}

/* Cascade's launch status. <main data-cascade> holds the one value; each
   variant below is shown only when it matches. */
[data-cascade="coming"] [data-cascade-when="live"],
[data-cascade="live"] [data-cascade-when="coming"] {
  display: none;
}

/* Home: products -------------------------------------------------------- */

/* The tiles run edge to edge with a thin gap between them, like a stack of
   panels. Cascade and Nozomu are full width; on wide screens Naturalis and
   AteIQ share a row. */
/* No title: the tiles follow the hero directly, and the nav's Products link
   lands just below the bar. */
.section--products {
  padding-top: 0;
  border-top: 0;
  scroll-margin-top: calc(48px + var(--tile-gap));
}

.products {
  display: grid;
  gap: var(--tile-gap);
  padding: 0 var(--tile-gap);
}

@media (min-width: 1068px) {
  .products {
    grid-template-columns: 1fr 1fr;
  }

  .tile--full {
    grid-column: 1 / -1;
  }
}

.tile {
  --tile-bg: var(--bg-alt);
  --tile-ink: var(--ink);
  --tile-muted: var(--muted);
  --tile-pill: var(--ink);
  --tile-pill-ink: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: clamp(48px, 8svh, 72px);
  background: var(--tile-bg);
  color: var(--tile-ink);
  text-align: center;
}

.tile-name {
  padding: 0 var(--gutter);
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.tile-line {
  max-width: 26em;
  margin-top: 10px;
  padding: 0 var(--gutter);
  color: var(--tile-muted);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}

.tile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 22px;
  padding: 0 var(--gutter);
}

.pill--fill {
  background: var(--tile-pill);
  color: var(--tile-pill-ink);
}

.pill--fill:hover {
  opacity: 0.86;
}

.pill--line {
  border-color: var(--tile-pill);
  color: var(--tile-pill);
}

.pill--line:hover {
  background: var(--tile-pill);
  color: var(--tile-pill-ink);
}

/* The status line reads as a pill but is not a control. */
.pill--status {
  border-color: color-mix(in srgb, var(--tile-ink) 28%, transparent);
  color: var(--tile-muted);
}

/* Device: a phone frame around the screenshot, cropped by the tile's bottom
   edge so the screen is the hero. */
.tile-device {
  width: 100%;
  height: clamp(360px, 52vw, 560px);
  margin-top: clamp(40px, 6svh, 64px);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.tile--half .tile-device {
  height: clamp(360px, 40vw, 480px);
}

/* Every measurement derives from --device-w, because padding percentages
   resolve against the parent's width, not the phone's. The bezel is ~2.2% of
   the width; the outer radius ~13.5%, and the screen's radius is concentric
   with it (outer radius minus bezel and rim). The rim is a translucent light
   border over the dark bezel, so it reads as an edge on any tile colour. */
.device {
  --device-w: clamp(272px, 31vw, 380px);
  --rim: 1px;
  --bezel-w: calc(var(--device-w) * 0.022);
  --radius: calc(var(--device-w) * 0.135);
  width: var(--device-w);
  height: max-content;
  padding: var(--bezel-w);
  border: var(--rim) solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: var(--bezel);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.28);
}

.tile--half .device {
  --device-w: clamp(272px, 25vw, 340px);
}

.device img {
  width: 100%;
  border-radius: calc(var(--radius) - var(--bezel-w) - var(--rim));
}

/* Colour worlds, from each app's landing page. Text and pills pass AA on
   their tile in both schemes. */
.tile--cascade {
  /* Cascade's sky stage, with its action ink. */
  --tile-bg: #58b7e8;
  --tile-ink: #12232d;
  --tile-muted: #1d3a4a;
  --tile-pill: #12232d;
  --tile-pill-ink: #ffffff;
}

.tile--nozomu {
  /* Nozomu's terracotta accent over its paper. */
  --tile-bg: #a6430e;
  --tile-ink: #fbf6ee;
  --tile-muted: #f2e3d6;
  --tile-pill: #f4f1ea;
  --tile-pill-ink: #7e320a;
}

.tile--naturalis {
  /* Naturalis's field-journal cream and leaf green. */
  --tile-bg: #faf0de;
  --tile-ink: #2a1f13;
  --tile-muted: #5a4c3b;
  --tile-pill: #4d6309;
  --tile-pill-ink: #ffffff;
}

.tile--ateiq {
  /* AteIQ's coral with its midnight navy. */
  --tile-bg: #f76b5b;
  --tile-ink: #101d32;
  --tile-muted: #1f2b40;
  --tile-pill: #101d32;
  --tile-pill-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .tile--cascade {
    --tile-bg: #182025;
    --tile-ink: #e4eaed;
    --tile-muted: #a7b4bc;
    --tile-pill: #6ec3ee;
    --tile-pill-ink: #0e1a21;
  }

  .tile--nozomu {
    --tile-bg: #2a1710;
    --tile-ink: #f4f1ea;
    --tile-muted: #c9b9a8;
    --tile-pill: #e48a62;
    --tile-pill-ink: #1f0f07;
  }

  .tile--naturalis {
    --tile-bg: #1c1611;
    --tile-ink: #f3e7d6;
    --tile-muted: #b7aa98;
    --tile-pill: #a6c63b;
    --tile-pill-ink: #1a1f08;
  }

  .tile--ateiq {
    --tile-bg: #0e1626;
    --tile-ink: #f2ede4;
    --tile-muted: #a9b0bc;
    --tile-pill: #f77a6b;
    --tile-pill-ink: #1a0f0d;
  }
}

/* Home: next ------------------------------------------------------------ */

.next-line {
  max-width: 20em;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.next-line strong {
  color: var(--ink);
  font-weight: 500;
}

/* Writing lists (home and /blog/) --------------------------------------- */

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  text-align: left;
}

.post-list li {
  border-bottom: 1px solid var(--line);
}

.post-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 24px 0;
}

.post-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.post-row-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-wrap: pretty;
}

.post-row:hover .post-row-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.list-footer {
  margin-top: 32px;
}

/* Home: work with me ---------------------------------------------------- */

.work-copy {
  max-width: 32em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.43;
  text-wrap: balance;
}

.work-copy + .button {
  margin-top: 32px;
}

/* Reading pages: About and posts ---------------------------------------- */

.reading {
  width: min(calc(100% - 2 * var(--gutter)), var(--measure));
  margin: 0 auto;
  padding: clamp(56px, 10svh, 96px) 0 clamp(72px, 12svh, 120px);
}

.reading-head {
  margin-bottom: clamp(36px, 6svh, 56px);
}

.reading-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}

.byline {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.byline a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.byline a:hover {
  text-decoration-color: currentColor;
}

/* Long-form text, styled by element so a post body can be plain HTML. */
.prose {
  font-size: 19px;
  line-height: 1.58;
  letter-spacing: -0.016em;
}

@media (max-width: 733px) {
  .prose {
    font-size: 17px;
    line-height: 1.53;
  }
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2em;
  font-family: var(--serif);
  font-size: 1.7em;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.12;
  text-wrap: balance;
}

.prose h3 {
  margin-top: 1.7em;
  font-family: var(--serif);
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.55em;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 160ms ease;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose strong {
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1em;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.prose hr {
  height: 1px;
  margin: 2.6em 0;
  border: 0;
  background: var(--line);
}

.prose hr + h2 {
  margin-top: 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  letter-spacing: 0;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: var(--code-bg);
}

.prose pre {
  margin-top: 1.4em;
  margin-bottom: 1.4em;
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: 18px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0;
  tab-size: 4;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
}

/* Highlighting is baked in by scripts/writing.mjs: each token carries Xcode's
   default light (--xl) and dark (--xd) colours, and keywords are bold. */
.prose pre span {
  color: var(--xl);
}

.prose pre .kw {
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .prose pre span {
    color: var(--xd);
  }
}

/* A quiet language label in the top-right corner. */
.prose pre[data-lang] {
  position: relative;
  padding-top: 40px;
}

.prose pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.prose pre + * {
  margin-top: 0;
}

/* On a phone a code block runs to the screen edges, so long lines get the
   whole width before they scroll. */
@media (max-width: 733px) {
  .prose pre {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 18px var(--gutter);
    border-radius: 0;
    font-size: 13.5px;
  }

  .prose pre[data-lang] {
    padding-top: 38px;
  }

  .prose pre[data-lang]::before {
    right: var(--gutter);
  }
}

.prose figure {
  margin: 2em 0;
}

.prose img {
  width: 100%;
  border-radius: 18px;
}

.prose figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.43;
}

/* A wide figure breaks out of the measure on larger screens. */
.figure-wide {
  margin: 0 0 clamp(36px, 6svh, 56px);
}

.figure-wide img {
  width: 100%;
  border-radius: 18px;
}

@media (min-width: 1068px) {
  .figure-wide {
    margin-left: -128px;
    margin-right: -128px;
  }
}

.post-end {
  margin-top: clamp(56px, 9svh, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* About ------------------------------------------------------------------ */

.about-lead {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: pretty;
}

.about-photo {
  margin: clamp(40px, 7svh, 64px) 0;
}

.about-photo img {
  width: 100%;
  border-radius: 18px;
}

@media (min-width: 1068px) {
  .about-photo {
    margin-left: -128px;
    margin-right: -128px;
  }
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(40px, 6svh, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

/* Writing index ---------------------------------------------------------- */

.index-head {
  padding: clamp(56px, 10svh, 96px) 0 clamp(32px, 5svh, 48px);
}

.index-title {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.index-list {
  max-width: 820px;
  padding-bottom: clamp(72px, 12svh, 120px);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding: 28px 0 36px;
  display: grid;
  gap: 16px 32px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
  line-height: 1.33;
}

@media (min-width: 734px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.footer-brand {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.footer-meta {
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (min-width: 734px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Motion: blocks below the fold fade and rise once as they arrive. Only
   applies after js/reveal.js marks the page ready, so everything is visible
   without JavaScript and with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    transition:
      opacity 700ms ease,
      transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal-ready .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(28px);
  }
}
