@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-deep: #000000;
  --white: #ffffff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --quiet: rgba(255, 255, 255, 0.55);
  --text-subtle: rgba(255, 255, 255, 0.52);
  --rule: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.12);
  --serif: var(--sans);
  --sans: Inter, system-ui, sans-serif;
  --pad: clamp(1.4rem, 4vw, 3.25rem);
  --max: 62rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg-deep);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rule); color: var(--white); }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(48rem 28rem at 50% -12%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--bg-deep);
  color: var(--white);
  border: 1px solid var(--white);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip-link:focus { top: 0.75rem; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(1.35rem, 5vw, 4rem);
}
main { flex: 1; }

.site-head {
  position: absolute;
  top: 0;
  left: clamp(1.35rem, 5vw, 4rem);
  right: clamp(1.35rem, 5vw, 4rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0 0.5rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.brand-wordmark {
  display: block;
  width: 108px;
  height: auto;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.hero-sub {
  margin: 0 0 clamp(1.85rem, 3.8vh, 2.75rem);
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

/* Poster: the mark, the name of the work, a couplet. */
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(6.5rem, 12vh, 8.25rem);
  text-align: center;
}
.hero-nudge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  gap: 12px;
  padding: 8px 16px 0;
  text-decoration: none;
  color: var(--quiet);
  transition: color 0.25s ease, opacity 0.35s ease, visibility 0.35s ease;
}
.hero-nudge.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-nudge:hover,
.hero-nudge:focus-visible {
  color: var(--white);
}
.hero-nudge-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: inherit;
}
.hero-nudge-line {
  display: block;
  position: relative;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.hero-nudge-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
  animation: nudgeDrop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes nudgeDrop {
  0% {
    top: -50%;
  }
  65%, 100% {
    top: 108%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-nudge-line::after {
    animation: none;
    top: 0;
    height: 100%;
  }
}
.hero-mark {
  display: block;
  width: clamp(256px, 33.333vw, 480px);
  max-width: 82vw;
  height: auto;
  margin: 0 0 clamp(0.6rem, 1.4vh, 0.95rem);
}
h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}
em, i {
  font-style: normal;
}
.couplet {
  margin-top: clamp(1.2rem, 2.6vh, 1.8rem);
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--white);
}
.hero-lead {
  max-width: 38rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.25vw, 1.06rem);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--white);
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}
.pill-link-quiet {
  border: 1px solid var(--rule);
  color: var(--muted);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-top: 2.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Editorial bands: Seahorse model house and developer API specification. */
.band {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding-top: clamp(4.5rem, 11vh, 7.25rem);
  scroll-margin-top: 2.5rem;
}
.band-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.model-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}
.model-card-wide {
  grid-column: 1 / -1;
}
.model-top {
  margin-bottom: 1.5rem;
}
.model-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.68rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.model-title {
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(1.32rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
}
.model-id {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.model-desc {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}
.model-specs {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}
.spec-key {
  color: var(--quiet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.spec-val {
  color: var(--white);
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.pillar-card {
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--rule);
}
.pillar-card h3 {
  margin-bottom: 0.45rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--white);
}
.pillar-card p {
  color: var(--quiet);
  font-size: 0.88rem;
  line-height: 1.58;
}

/* API specification and live code block. */
.api-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 1.75rem;
  align-items: start;
}
.endpoint-list {
  min-width: 0;
  border-top: 1px solid var(--rule);
}
.endpoint-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
.endpoint-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.endpoint-path {
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}
.code-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}
.code-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
button[aria-pressed="false"] {
  border: 1px solid var(--rule);
  color: var(--muted);
}
.code-pre {
  overflow-x: auto;
  padding: 1.25rem 1.35rem;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.81rem;
  line-height: 1.62;
  white-space: pre;
}

/* API onboarding shares the unified reading measure. */
.desk,
.access,
.letter {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding-top: clamp(4.5rem, 12vh, 7.5rem);
  scroll-margin-top: 2.5rem;
}
h2 {
  margin: 0 0 1.35rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}
.scope {
  margin: -0.6rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.about {
  margin: 0 0 2rem;
  color: var(--quiet);
  font-size: 0.9rem;
  line-height: 1.55;
}
label {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
textarea {
  display: block;
  width: 100%;
  min-height: 8rem;
  margin: 0.45rem 0 1.3rem;
  padding: 0.55rem 0 0.7rem;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 1.2rem/1.5 var(--serif);
  caret-color: var(--white);
}
input::placeholder,
textarea::placeholder {
  color: var(--quiet);
  opacity: 1;
}
textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}
textarea:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.actions { display: flex; align-items: center; gap: 1.25rem; }
.kept { margin-top: 1.6rem; }
.kept .was {
  margin-bottom: 0.5rem;
  color: var(--quiet);
  font-size: 0.92rem;
  text-decoration: line-through;
}
.kept .line {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.32;
}
.kept .sits {
  margin-top: 0.6rem;
  color: var(--quiet);
  font-size: 0.85rem;
}

/* The note: underline fields in monochrome white. */
.letter h2 { margin-bottom: 2.15rem; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0.45rem 0 1.55rem;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 1.05rem/1.5 var(--sans);
  caret-color: var(--white);
}
.form textarea {
  margin: 0.45rem 0 1.55rem;
  font: 1.05rem/1.5 var(--sans);
}
input:focus {
  outline: none;
  border-bottom-color: var(--white);
}
input:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
input:-webkit-autofill,
.form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--white);
  box-shadow: inset 0 0 0 1000px var(--bg-deep);
  transition: background-color 9999s ease-out;
}
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.25rem; margin-top: 0.35rem; }
.form-status { min-height: 1.3em; color: var(--muted); font-size: 0.92rem; }
.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Pill. The border is the white accent. Hover, focus, active and disabled do not recolour it. */
button,
.back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--white);
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}
button:disabled { opacity: 0.48; cursor: wait; }

/* Noscript mailto. It is styled as a button, so it keeps this rule. */
.write {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Colophon: two lines, the same size and the same colour on every page. */
.colophon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: min(44rem, 100%);
  margin: clamp(4.25rem, 11vh, 6.5rem) auto 0;
  padding: 1.2rem 0 clamp(1.5rem, 3vh, 2.1rem);
  border-top: 1px solid var(--rule);
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.colophon p {
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.5;
}

/* 404 */
.eyebrow {
  margin-bottom: 1rem;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 3rem 0;
  text-align: center;
}
.lost .hero-mark { width: clamp(220px, 30vw, 320px); }
.lost h1 {
  max-width: 9em;
  font-style: normal;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
}
.lost .back { margin-top: 2.25rem; }

/* Privacy: the same column as the note, at a reading size. */
.sheet {
  width: min(36rem, 100%);
  margin: 0 auto;
  padding-top: clamp(5.75rem, 12vh, 7.5rem);
}
.sheet h1 {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.sheet h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}
.sheet p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.sheet p + p { margin-top: 0.75rem; }
.sheet .updated {
  color: var(--quiet);
  font-size: 0.85rem;
}

/* Footer, the form note, and the policy: underline only, 1px, offset 6px. No colour change. */
.colophon a,
.form-note a,
.sheet a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.colophon a:hover,
.colophon a:focus,
.colophon a:focus-visible,
.colophon a:active,
.colophon a:visited,
.form-note a:hover,
.form-note a:focus,
.form-note a:focus-visible,
.form-note a:active,
.form-note a:visited,
.sheet a:hover,
.sheet a:focus,
.sheet a:focus-visible,
.sheet a:active,
.sheet a:visited {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* 12px type stays. The hit area is 44px and only as wide as the link.
   The lower line grows down, so it does not cover the line above. */
.colophon a {
  position: relative;
}
.colophon a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 22px);
  height: 44px;
}
.colophon p:last-child a::after { top: 0; }

.form-note a,
.sheet a {
  position: relative;
}
.form-note a::after,
.sheet a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 22px);
  min-width: 44px;
  height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 820px) {
  .model-grid,
  .api-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .colophon p:first-child a {
    display: inline-block;
    min-width: 44px;
    text-align: center;
  }
  .colophon,
  .colophon p {
    line-height: 2.1;
  }
}

@media (max-width: 720px) {
  .poster {
    min-height: 100vh;
    min-height: 100svh;
    padding: 3rem 0 6.25rem;
  }
  .hero-nudge {
    bottom: 0;
  }
  .hero-nudge-line {
    height: 44px;
  }
  .hero-mark { width: clamp(212px, 66.4vw, 320px); }
  h1 { font-size: clamp(1.75rem, 6.8vw, 2.35rem); }
  .band,
  .access {
    padding-top: 3.75rem;
  }
  .sheet {
    padding-top: 5.75rem;
  }
  .model-grid,
  .pillar-grid,
  .api-grid,
  .pair { grid-template-columns: 1fr; gap: 1.25rem; }
  .pair { gap: 0; }
  .spec-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
  .code-bar { padding: 0.75rem 0.95rem; }
  .code-pre {
    padding: 1rem;
    font-size: 0.76rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .colophon {
    align-items: center;
    text-align: center;
  }
}

@media (max-height: 500px) {
  .poster {
    padding: 2rem 0 4.5rem;
  }
  .hero-sub {
    margin-bottom: 1rem;
  }
  .hero-nudge-line {
    height: 28px;
  }
}
