/* pinnu.dev. Pastoral pixel futurism (the owner's design guide) with Yoruba craft:
   adire indigo in the diagrams, aso-oke strip colours in the stripe bands, an Ayo board as the
   specimen. Fonts are self-hosted under the SIL Open Font License (fonts/OFL-*.txt). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --color-sky: #0081c0;
  --color-sky-edge: #41a1cf;
  --color-button: #1f1f29;
  --color-button-edge: #282834;
  --color-ink: #2c2c2c;
  --color-body: #444141;
  --color-muted: #646464;
  --color-pale: #858b85;
  --color-subtle: #b4b8b4;
  --color-rule: #dee2de;
  --color-canvas: #fefffc;
  --color-white: #ffffff;

  /* Aso-oke, the Yoruba hand-woven strip cloth: etu (indigo), alaari (crimson), sanyan (wild-silk beige). */
  --aso-etu: #1d2a6b;
  --aso-etu-light: #2f3a8f;
  --aso-alaari: #a3243b;
  --aso-sanyan: #c9a36b;
  --aso-sanyan-pale: #e8dcc4;
  --aso-wash: #f4ecdd;

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-glass: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
  --shadow-sheet: 0 1px 1px 0 rgba(0, 0, 0, 0.08), 0 4px 5px 0 rgba(0, 0, 0, 0.08);
  --shadow-media: 0 2px 2px 0 rgba(0, 0, 0, 0.06), 0 0 0 5px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { color-scheme: light; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-body);
  font: 500 15px/1.4 var(--font-text);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
code { font-family: var(--font-mono); font-size: 13px; }

/* Pixel art is drawn small and enlarged with hard edges. */
.pixel { image-rendering: crisp-edges; image-rendering: pixelated; }

:focus-visible { outline: 2px solid var(--aso-etu-light); outline-offset: 3px; border-radius: 4px; }
.nav :focus-visible, .hero :focus-visible, .invite :focus-visible { outline-color: var(--color-white); }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: 8px;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* Serif voice: Fraunces 500 for display type, Inter for everything else. The pixel art
   carries the game-world feel, so the type can stay easy to read. */
.heading, .display, .promise, .hero__identity {
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.heading { font-size: 48px; color: var(--color-ink); }
.display { font-size: 54px; color: var(--color-white); }
.promise { font-size: 40px; color: var(--color-white); }
.support { max-width: 360px; color: var(--color-muted); text-wrap: pretty; }

/* Mark: three option bars, the middle one chosen. */
.mark { display: block; }
.mark--light .mark__bar { fill: rgba(255, 255, 255, 0.7); }
.mark--light .mark__chosen { fill: #f2b134; }
.mark--emblem { width: 32px; height: 32px; margin: 0 auto 24px; }
.mark--emblem .mark__bar { fill: var(--color-subtle); }
.mark--emblem .mark__chosen { fill: var(--aso-etu-light); }

/* Actions */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--color-button-edge);
  border-radius: 8px;
  background-color: var(--color-button);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 100%);
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s var(--ease);
}
.button:hover { opacity: 0.9; }
.button--glass {
  padding: 8px 16px;
  border-color: var(--color-sky-edge);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 16px;
  padding-left: 2.5px;
  padding-right: 1.5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50.5px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.04);
}
.capsule svg { width: 5px; height: 8px; fill: currentColor; }

.text-action { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--color-white); text-decoration: none; }
.text-action span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-action:hover span:first-child { text-decoration-thickness: 2px; }

/* Glass over artwork only, never over the ivory canvas. */
.glass {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.38) 0, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.28) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-glass);
  color: var(--color-white);
}

/* Floating navigation. A darker glass keeps white links legible over art and canvas alike. */

.nav {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  height: 54px;
  padding: 0 9px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(to right, rgba(31, 31, 41, 0.66), rgba(31, 31, 41, 0.56));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: var(--shadow-glass);
  white-space: nowrap;
}
.nav__home { display: inline-flex; align-items: center; gap: 8px; color: var(--color-white); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: -0.02em; font-synthesis: none; }
.nav__home .mark { width: 16px; height: 16px; }
.nav__links { display: flex; gap: 20px; }
.nav__links a { color: rgba(255, 255, 255, 0.86); text-decoration: none; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--color-white); }

/* Opening landscape */

.hero { position: relative; height: clamp(640px, 100svh, 960px); overflow: hidden; background: #5bb7e5; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero__identity {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 27px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  color: var(--color-white);
  text-shadow: 0 1px 0 rgba(0, 40, 80, 0.4);
}
.hero__detail { position: absolute; top: 104px; right: 24px; padding: 6px 12px; border-radius: 12px; font-size: 13px; }
.hero__panel { position: absolute; left: 48px; bottom: 64px; display: grid; gap: 16px; justify-items: start; max-width: 500px; padding: 32px 24px 32px 32px; }
.hero__panel p { max-width: 400px; }

/* Stripe bands, in aso-oke strip colours */

.stripes { display: grid; gap: 2px; padding-block: 2px; background: var(--color-white); }
.stripes span { display: block; height: 6px; }
.stripes--aso span:nth-child(1) { background: var(--aso-etu); }
.stripes--aso span:nth-child(2) { background: var(--aso-etu-light); }
.stripes--aso span:nth-child(3) { background: var(--aso-alaari); }
.stripes--aso span:nth-child(4) { background: var(--aso-sanyan); }
.stripes--aso span:nth-child(5) { background: var(--aso-sanyan-pale); }
.stripes--close span:nth-child(1) { background: var(--aso-wash); }
.stripes--close span:nth-child(2) { background: var(--aso-sanyan-pale); }
.stripes--close span:nth-child(3) { background: var(--aso-sanyan); }

/* Specimen and vision */

.vision { padding: 200px 48px; }
.pair { display: grid; gap: 64px; align-items: center; max-width: 1080px; margin-inline: auto; }
.specimen { display: grid; justify-items: center; gap: 16px; }
.specimen img { width: 300px; height: auto; }
.specimen figcaption { max-width: 220px; font-size: 13px; line-height: 1.3; text-align: center; color: var(--color-muted); }
.pair__text { display: grid; gap: 64px; }

/* How it gets fast */

.chapter { padding: 200px 48px; }
.chapter__inner { max-width: 1080px; margin-inline: auto; }
.thesis { max-width: 720px; }
.pale { color: var(--color-pale); text-decoration: underline; text-decoration-color: var(--color-subtle); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.chapter__follow { margin-top: 32px; }

.steps { display: grid; gap: 96px; margin-top: 120px; }
.step { display: grid; gap: 24px; }
.step__text { display: grid; gap: 8px; align-content: start; max-width: 360px; }
.step__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted); }
.step h3 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--color-ink); }
.step p:last-child { color: var(--color-muted); }
.ticks { display: inline-flex; gap: 3px; }
.ticks span { width: 3px; height: 10px; background: var(--color-rule); }
.step:nth-child(1) .ticks span:nth-child(-n+1),
.step:nth-child(2) .ticks span:nth-child(-n+2),
.step:nth-child(3) .ticks span:nth-child(-n+3),
.step:nth-child(4) .ticks span { background: var(--color-ink); }

.frame { min-width: 0; padding: 16px; border: 1px solid var(--color-rule); border-radius: 24px; background: rgba(222, 226, 222, 0.16); }
.sheet { padding: 24px; border-radius: 12px; background: var(--color-canvas); box-shadow: var(--shadow-sheet); overflow: hidden; }
.diagram { display: block; width: 100%; height: auto; }
.sheet pre { margin: 0; overflow-x: auto; font: 500 13px/1.6 var(--font-mono); color: var(--color-ink); }
.frame figcaption { margin-top: 12px; font-size: 13px; line-height: 1.3; text-align: right; color: var(--color-muted); }

.result { margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--color-rule); }
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats dt { font-size: 13px; color: var(--color-muted); }
.stats dd { margin-top: 8px; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.stats dd span { font-family: var(--font-text); font-size: 15px; letter-spacing: -0.01em; color: var(--color-muted); }
.stats__gain dd { color: var(--aso-etu-light); }
.caption { max-width: 520px; margin-top: 24px; font-size: 13px; color: var(--color-muted); }

/* Illustrated invitation */

.invite { position: relative; min-height: 800px; margin: 0 24px; overflow: hidden; border-radius: 24px; background-color: var(--color-sky); box-shadow: var(--shadow-media); color: var(--color-white); }
.invite__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
/* Deepens the sky behind the copy so 15 px white text clears 4.5:1. */
.invite::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(160deg, rgba(0, 45, 80, 0.32) 0%, rgba(0, 45, 80, 0.14) 45%, rgba(0, 45, 80, 0) 70%); pointer-events: none; }
.invite__copy { position: relative; z-index: 2; display: grid; gap: 32px; justify-items: start; max-width: 842px; padding: 128px 80px 0; }
.invite__copy p { max-width: 420px; }
.notice { position: absolute; z-index: 2; left: 80px; bottom: 80px; display: grid; gap: 4px; padding: 16px 20px; border-radius: 12px; }
.notice figcaption { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.notice p { font: 500 13px/1.4 var(--font-mono); }

/* What you run */

.wide { max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.ships { padding: 200px 48px 120px; }
.ship-list { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 48px; }
.ship-list li { display: grid; gap: 8px; align-content: start; padding: 24px 0 32px; border-top: 1px solid var(--color-rule); }
.ship-list h3 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--color-ink); }
.ship-list p { max-width: 380px; color: var(--color-muted); }
.boundary { max-width: 560px; margin-top: 48px; }

/* Proof windows */

.proof { padding: 120px 48px 200px; }
.windows { display: grid; gap: 24px; margin-top: 48px; }
.window { position: relative; overflow: hidden; aspect-ratio: 400 / 352; border-radius: 16px; background: var(--color-sky); }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window__caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.window__caption h3 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--color-ink); text-wrap: balance; }
.window__caption p { font-size: 13px; color: var(--color-muted); }

/* Invitation and horizon */

.closing { background: var(--color-white); }
.closing__band { padding: 80px 20px 40px; text-align: center; }
.closing__title { max-width: 820px; margin-inline: auto; }
.closing__support { max-width: 440px; margin: 32px auto 0; }
.placeholder { font: 500 13px/1.4 var(--font-mono); color: #854f0b; }
.utility { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1280px; margin: 120px auto 0; font-size: 13px; text-align: left; }
.utility__links { display: flex; flex-wrap: wrap; gap: 12px; }
.utility__links a { display: inline-flex; align-items: center; height: 36px; border-radius: 4px; color: var(--color-body); text-decoration: none; transition: opacity 0.2s var(--ease), color 0.2s var(--ease); }
.utility__links a:hover { color: var(--color-ink); opacity: 0.7; }
.utility__meta { color: var(--color-muted); }
.horizon { position: relative; height: 500px; overflow: hidden; background: #173d3a; }
.horizon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.horizon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, 0) 75%, rgba(0, 0, 0, 0.82)); }
.horizon__credits { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--color-white); }

/* Responsive */

/* Early access form, in the closing band */

.signup { display: grid; gap: 20px; max-width: 560px; margin: 40px auto 0; text-align: left; }
.signup__fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: 13px; color: var(--color-ink); }
.field__optional { margin-left: 4px; color: var(--color-muted); }
.field__hint { font-size: 13px; color: var(--color-muted); }
.field__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-pale); /* 3.5:1 on white: input edges need 3:1 */
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
}
textarea.field__input { min-height: 88px; resize: vertical; }
.field__input:focus-visible { outline-offset: 1px; }
.field__input:user-invalid { border-color: var(--aso-alaari); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--color-body); }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--color-button); }
button.button { font: inherit; cursor: pointer; }
.signup .button { justify-self: start; }
.signup__note { font-size: 13px; color: var(--color-muted); }
.signup__note a { color: inherit; }
/* Honeypot: off screen for people, still in the form for naive bots. */
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Small pages: early access steps, privacy, 404 */

.page { background: var(--color-canvas); }
.page__head { padding: 24px 20px; }
.page__home { display: inline-flex; align-items: center; gap: 8px; color: var(--color-ink); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.page__home .mark { width: 16px; height: 16px; }
.page__home .mark__bar { fill: var(--color-subtle); }
.page__home .mark__chosen { fill: var(--aso-etu-light); }
.page__main { max-width: 640px; padding: 96px 20px 120px; margin-inline: auto; }
.page__main > * + * { margin-top: 16px; }
.page__main p { color: var(--color-body); text-wrap: pretty; }
.page__main a { color: var(--color-ink); }
.page__lead { margin-top: 24px; font-size: 18px; color: var(--color-ink); }
.page__subhead { margin-top: 40px; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; color: var(--color-ink); }
.page__form { margin-top: 32px; }
.page__meta { margin-top: 48px; font-size: 13px; }

@media (min-width: 640px) {
  .signup__fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .windows { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .pair { grid-template-columns: 300px 1fr; }
}
@media (min-width: 1024px) {
  .step { grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
}
@media (min-width: 1280px) {
  .windows { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .heading { font-size: 36px; }
  .display { font-size: 40px; }
  .vision, .chapter { padding: 120px 20px; }
  .ships { padding: 120px 20px 72px; }
  .proof { padding: 72px 20px 120px; }
  .steps { gap: 72px; margin-top: 72px; }
  .result { margin-top: 72px; }
  .invite { min-height: 760px; margin: 0 12px; }
  .invite__copy { padding: 48px 20px 0; }
  .notice { left: 20px; right: 20px; bottom: 24px; }
  .utility { margin-top: 72px; }
  .horizon { height: 320px; }
}
@media (max-width: 639px) {
  .nav { left: 8px; right: 8px; transform: none; justify-content: space-between; }
  .nav__links { display: none; }
  .hero__detail { display: none; }
  .hero__panel { left: 12px; right: 12px; bottom: 32px; padding: 20px; }
  .display { font-size: 36px; }
  .promise { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
