/* phasetransitions.ai — the practice page, in the Phase Transitions design system
   (shared with ideas.phasetransitions.ai): quiet scientific, light lab paper, one
   cool accent, Space Grotesk / IBM Plex Mono / Source Serif. No em dashes in copy. */

@font-face { font-family: "Space Grotesk"; src: url("./fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("./fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("./fonts/source-serif-4-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("./fonts/source-serif-4-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("./fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #eef1f0;
  --card: #f7f8f7;
  --ink: #15191b;
  --ink-soft: #3b4346;
  --phase: #0e7c86;
  --phase-deep: #0a5c64;
  --hover: #e7ebea;
  --muted: #6b7572;
  --rule: #d6dbd9;
  --grotesk: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 28px; }

a { color: var(--phase); text-decoration: none; }
a.txt { border-bottom: 1px solid transparent; transition: border-color 0.15s, color 0.15s; }
a.txt:hover { border-color: var(--phase); color: var(--phase-deep); }
:focus-visible { outline: 2px solid var(--phase); outline-offset: 3px; }

.label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }

/* nav */
.nav { border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); transition: color 0.15s; }
.brand:hover { color: var(--phase-deep); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color 0.15s, color 0.15s; }
.nav-links a:hover { color: var(--phase-deep); border-color: var(--phase); }
.nav-links a.active { color: var(--muted); }
.nav-links a.active:hover { color: var(--muted); border-color: transparent; }

/* hero */
.hero { padding: 80px 0 52px; border-bottom: 1px solid var(--rule); }
.hero .eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.hero h1 { font-family: var(--grotesk); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 3.7rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 18ch; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 54ch; margin: 24px 0 0; }
.signature { margin: 40px 0 8px; }
.signature canvas, .signature img { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 760 / 260; }
/* On a phone held upright the wide band crushes the lattice; give the canvas a taller
   shape so the re-tiled 36×54 field (see phase.js) breathes. Portrait phones only;
   landscape and tablet/laptop keep the wide band. */
@media (orientation: portrait) and (max-width: 600px) {
  .signature canvas { aspect-ratio: 3 / 4; }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; padding: 11px 20px; background: var(--phase); color: #fff; border: 1px solid var(--phase); }
.cta:hover { background: var(--phase-deep); border-color: var(--phase-deep); color: #fff; }
.cta.ghost { background: transparent; color: var(--phase); }
.cta.ghost:hover { background: transparent; color: var(--phase-deep); border-color: var(--phase-deep); }

main section { border-bottom: 1px solid var(--rule); }
main section.wrap { padding-top: 48px; padding-bottom: 48px; }

/* prose (bio) */
.prose p { margin: 0 0 16px; color: var(--ink-soft); max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }
.prose p.lead-line { color: var(--ink); font-size: 1.08rem; }

/* offerings */
.offerings { list-style: none; padding: 0; margin: 0; }
.offerings li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.offerings li:first-child { border-top: none; }
.offer-name { font-family: var(--grotesk); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.offerings p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* writing destinations: whole-block links (one selection model) */
.section-intro { font-size: 1.02rem; color: var(--ink-soft); max-width: 56ch; margin: 0 0 24px; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
a.link-block { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--rule); padding: 22px; color: var(--ink); transition: background 0.15s, border-color 0.15s; }
a.link-block:hover { background: var(--hover); border-color: var(--muted); }
.lb-name { font-family: var(--grotesk); font-weight: 700; font-size: 1.08rem; }
.lb-gloss { font-size: 0.95rem; color: var(--ink-soft); }
.link-block .go { position: absolute; top: 18px; right: 18px; font-family: var(--mono); color: var(--muted); transition: color 0.15s; }
.link-block:hover .go { color: var(--phase-deep); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; max-width: 640px; }
.contact-item .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.contact-item .v { font-size: 1.05rem; color: var(--ink); }

/* footer */
footer.wrap { padding-top: 36px; padding-bottom: 64px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); line-height: 1.8; }
footer a { color: var(--ink); border-bottom: 1px solid var(--rule); }
footer a:hover { border-color: var(--ink); }
.foot-sep { padding: 0 8px; color: var(--rule); }

@media (max-width: 640px) {
  .offerings li { grid-template-columns: 1fr; gap: 8px; }
  .links-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
