/* Pomi website. The page is a desktop: content scrolls above a real taskbar, and Pomi lives in that taskbar.
   One palette with the app: saffron and ink on a pale reed-green paper, with the deep pond for night and the taskbar. Type: Recursive (casual for display,
   linear for text, mono only where something is literally a code or a text file). */

:root {
  --paper: #F1F4EF;
  --paper-2: #E3EAE4;
  --white: #FFFFFF;
  --ink: #2A2340;
  --muted: #56625E;
  --line: #D6DED7;
  --saffron: #F9B233;
  --saffron-soft: #FFE6A6;
  --saffron-deep: #8F4C06;
  --persimmon: #EE6A3C;
  --pond: #9FDDEB;
  --night: #103B3F;
  --night-2: #174A4E;
  --night-line: #2C6A6E;
  --night-text: #D3E6E3;
  --night-muted: #93B9B4;
  --taskbar: 52px;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-bottom: var(--taskbar); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Recursive", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-variation-settings: "CASL" 0, "MONO" 0;
  font-size: 18px;
  line-height: 1.55;
  padding-bottom: var(--taskbar);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .name, .clock, .brand span {
  font-variation-settings: "CASL" 1, "MONO" 0;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(44px, 7.4vw, 108px); line-height: 0.96; font-weight: 900; max-width: 12ch; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 850; max-width: 14ch; }
p { margin: 0; }
.copy p { max-width: 46ch; margin-top: 18px; }
.copy p.aside { color: var(--saffron-deep); font-weight: 650; font-variation-settings: "CASL" 1, "slnt" -6; }
.copy p.fine, .fine { color: var(--muted); font-size: 15px; }

a { color: inherit; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 3px; border-radius: 6px; }

/* ---- buttons ------------------------------------------------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1;
  padding: 14px 20px; border-radius: 12px;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.button.primary { background: var(--saffron); }
.button.big { font-size: 18px; padding: 18px 26px; }

/* ---- hero --------------------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--taskbar));
  padding: clamp(72px, 14vh, 160px) var(--gutter) 160px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero .lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 40ch; margin-top: 28px; color: var(--muted); }
.hint {
  position: absolute; right: calc(28vw - 40px); bottom: 150px;
  display: flex; align-items: flex-end; gap: 4px; color: var(--ink);
  font-size: 17px; font-weight: 650; font-variation-settings: "CASL" 1, "slnt" -12;
  transform: rotate(-4deg);
}
.hint span { max-width: 13ch; line-height: 1.2; margin-bottom: 58px; }

/* ---- windows (things Pomi can sit on) ------------------------------------------------------------------------- */

.window {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--saffron), 8px 8px 0 2px var(--ink);
  overflow: hidden;
}
.titlebar {
  display: flex; justify-content: space-between; align-items: center;
  height: 42px; padding: 0 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
  font-size: 14px; font-weight: 650;
}
.titlebar .controls { letter-spacing: 0.7em; color: var(--muted); font-size: 13px; }

/* ---- scroll scenes ------------------------------------------------------------------------------------------ */

.scene { position: relative; height: 230vh; }
.sticky {
  position: sticky; top: 0;
  height: calc(100svh - var(--taskbar));
  display: flex; align-items: center;
  padding: 40px var(--gutter);
}
.split {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.split.reverse .copy { order: 2; }

.doc { max-width: 540px; width: 100%; justify-self: end; }
.doc-body { padding: 28px 30px 36px; }
.type-line {
  height: 12px; margin: 0 0 14px; border-radius: 6px; background: var(--paper-2);
  width: var(--w); transform-origin: left; transform: scaleX(var(--typed, 1));
}
.type-line.gap { margin-top: 30px; }

/* ---- ride ----------------------------------------------------------------------------------------------------- */

.ride { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.drag-zone { position: relative; min-height: 440px; }
.draggable {
  position: absolute; left: 6%; top: 120px; width: min(420px, 86%);
  touch-action: none; user-select: none;
}
.draggable .titlebar { cursor: grab; }
.draggable.dragging .titlebar { cursor: grabbing; }
.window-body { padding: 18px 22px 24px; font-size: 16px; font-variation-settings: "CASL" 1; }
.window-body ul { margin: 8px 0 0; padding-left: 20px; }

/* ---- fishing (night pond) ------------------------------------------------------------------------------------- */

.scene-fish { background: var(--night); color: var(--paper); height: 260vh; }
.scene-fish .copy p.aside { color: var(--saffron); }
.session { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.clock {
  font-size: clamp(44px, 5vw, 68px); font-weight: 800; font-variant-numeric: tabular-nums;
  font-variation-settings: "CASL" 1, "MONO" 1; color: var(--saffron); line-height: 1;
}
.session-bar { flex: 1; max-width: 220px; height: 10px; border-radius: 5px; background: var(--night-2); overflow: hidden; }
.session-bar span { display: block; height: 100%; width: 0; background: var(--saffron); border-radius: 5px; }

.pond-log { background: var(--night-2); border: 2px solid var(--night-line); border-radius: 16px; padding: 18px; }
.pond-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.pond-head strong { font-size: 20px; font-variation-settings: "CASL" 1; }
.pond-head span { color: var(--night-muted); }
.pond-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pond-grid li {
  position: relative; aspect-ratio: 1; border-radius: 12px; background: #1B5257;
  display: grid; place-items: center;
}
.pond-grid li svg { width: 62%; height: 62%; opacity: 0.16; filter: grayscale(1); transition: opacity 300ms ease, transform 400ms cubic-bezier(.3, 1.6, .5, 1); }
.pond-grid li.found svg { opacity: 1; filter: none; }
.pond-grid li.found.fresh svg { transform: scale(1.25); }
.pond-grid li::after {
  content: ""; position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tier); box-shadow: 0 0 0 1.5px var(--night);
}
.pond-grid li .label {
  position: absolute; inset: auto 4px 4px; text-align: center; font-size: 10.5px; line-height: 1.15; color: var(--night-text);
  opacity: 0; transition: opacity 200ms;
}
.pond-grid li:hover .label, .pond-grid li:focus-within .label { opacity: 1; }

/* ---- hatch ----------------------------------------------------------------------------------------------------- */

.hatch { padding: clamp(90px, 16vh, 180px) var(--gutter) 120px; max-width: 1320px; margin: 0 auto; }
.hatch-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.hatch-intro p { max-width: 50ch; color: var(--muted); }
.hatchery {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--white); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
}
.portrait { background: var(--saffron-soft); border-right: 2px solid var(--ink); position: relative; transition: background-color 400ms ease; }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: var(--night); }
.portrait canvas { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.card { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.card .small { font-size: 14px; color: var(--muted); }
.card .name { font-size: clamp(48px, 6vw, 84px); font-weight: 900; line-height: 1; }
.card .traits { font-size: 20px; font-weight: 650; margin-top: 10px; }
.card .rarity { color: var(--saffron-deep); font-weight: 700; margin-top: 4px; }
.code-row { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
code {
  font-family: inherit; font-variation-settings: "MONO" 1, "CASL" 0; font-weight: 700; font-size: 20px;
  background: var(--ink); color: var(--white); padding: 6px 12px; border-radius: 9px; letter-spacing: 0.04em;
}
.card .actions { margin-top: 26px; }
.card .actions .button { font-size: 15px; padding: 11px 15px; }
.code-form { margin-top: 26px; }
.code-form label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.code-form div { display: flex; gap: 10px; }
.code-form input {
  font: inherit; font-variation-settings: "MONO" 1; font-weight: 700; font-size: 18px; text-transform: uppercase;
  width: 9.5ch; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper);
}
.status { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--saffron-deep); font-weight: 650; }

/* ---- more: the app, as live HTML, and what else it does ---------------------------------------------------------- */

.more { padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(40px, 8vh, 90px); max-width: 1320px; margin: 0 auto; }
.more-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.more-intro p { max-width: 50ch; color: var(--muted); }
.more-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.app-frame { margin: 0; }
.app { display: grid; grid-template-columns: 31% minmax(0, 1fr); background: var(--paper); font-size: 13px; line-height: 1.35; }
.app-pond { background: var(--night); color: var(--night-text); margin: 8px 0 8px 8px; border-radius: 14px; padding: 0 10px 14px; }
.app-pond canvas { display: block; width: 100%; height: auto; border-bottom: 1.5px solid var(--night-line); }
.app-name { color: var(--white); font-weight: 850; font-size: 17px; margin: 12px 6px 0; font-variation-settings: "CASL" 1; }
.app-status { color: var(--night-muted); font-size: 11.5px; margin: 1px 6px 12px; }
.app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-nav li { padding: 6px 8px; border-radius: 9px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.app-nav li.on { background: #21595D; color: var(--white); }
.app-nav li.on::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(var(--persimmon) 50%, var(--white) 50%); box-shadow: 0 0 0 1.2px var(--ink); }
.app-page { padding: 18px clamp(12px, 2vw, 22px) 20px; min-width: 0; }
.app-hello { font-size: 22px; font-weight: 850; font-variation-settings: "CASL" 1; letter-spacing: -0.02em; }
.app-date { color: var(--muted); font-size: 12px; }
.app-sticker { margin-top: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 12px 14px 14px; }
.app-time { font-size: clamp(34px, 4.4vw, 54px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.app-line { color: var(--muted); font-size: 12px; margin-top: 2px; }
.app-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-top: 10px; padding: 2px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; }
.app-seg span { padding: 4px 8px; border-radius: 10px; }
.app-seg span.on { background: var(--ink); color: var(--white); }
.app-start { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.app-input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; color: #8A958F; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-btn { background: var(--saffron); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); padding: 5px 10px; font-weight: 800; font-size: 11.5px; white-space: nowrap; }
.app-today { margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.app-h { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.app-today .t { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 2px 0; }
.app-today .t::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); }
.app-today .t.done { color: var(--muted); text-decoration: line-through; }
.app-today .t.done::before { background: var(--saffron); }

.more-lists h3 { margin: 0 0 6px; font-size: 22px; font-weight: 850; font-variation-settings: "CASL" 1; letter-spacing: -0.01em; }
.more-lists dl { margin: 0; }
.more-lists dl div { padding: 12px 0; border-top: 2px solid var(--line); }
.more-lists dt { font-weight: 800; }
.more-lists dd { margin: 2px 0 0; color: var(--muted); font-size: 16px; max-width: 44ch; }
.more-fun { margin-top: clamp(56px, 9vh, 96px); }
.more-fun dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.more-fun dl div { padding: 14px 0 18px; }

/* ---- press kit page ------------------------------------------------------------------------------------------------ */

.press { padding: clamp(60px, 12vh, 120px) var(--gutter) 100px; max-width: 1080px; margin: 0 auto; }
.press h1 { font-size: clamp(40px, 6vw, 80px); max-width: 14ch; }
.press .lede { color: var(--muted); max-width: 52ch; margin-top: 20px; }
.press h2 { font-size: clamp(26px, 3vw, 36px); max-width: none; margin-top: 64px; }
.press dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 32px; margin: 22px 0 0; }
.press dl.facts dt { font-weight: 800; }
.press dl.facts dd { margin: 0; color: var(--muted); }
.press .blurb { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 20px 22px; margin-top: 18px; max-width: 70ch; }
.press .blurb p + p { margin-top: 12px; }
.press ul.features { margin: 18px 0 0; padding-left: 20px; max-width: 70ch; }
.press ul.features li { margin: 6px 0; }
.press .logo-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; align-items: center; }
.press .logo-tile { width: 160px; height: 160px; border-radius: 22px; display: grid; place-items: center; border: 2px solid var(--ink); }
.press .logo-tile.light { background: var(--paper); }
.press .logo-tile.dark { background: var(--night); }

/* ---- rules ------------------------------------------------------------------------------------------------------ */

.rules { padding: clamp(60px, 12vh, 140px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.rules dl { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); }
.rules dl div { border-top: 3px solid var(--ink); padding-top: 18px; }
.rules dt { font-size: 24px; font-weight: 800; font-variation-settings: "CASL" 1; }
.rules dd { margin: 8px 0 0; color: var(--muted); max-width: 42ch; }

/* ---- get / receipt ---------------------------------------------------------------------------------------------- */

.get { padding: clamp(60px, 12vh, 140px) var(--gutter) clamp(90px, 16vh, 180px); }
.receipt { max-width: 860px; margin: 0 auto; }
.receipt-body { padding: clamp(24px, 4vw, 48px); }
.receipt h2 { max-width: none; font-size: clamp(32px, 4vw, 52px); }
.receipt table { width: 100%; border-collapse: collapse; margin-top: 30px; font-variation-settings: "MONO" 1, "CASL" 0; font-size: 15px; }
.receipt th { text-align: left; font-weight: 500; padding: 12px 18px 12px 0; }
.receipt td { text-align: right; white-space: nowrap; font-weight: 700; }
.receipt tbody tr { border-bottom: 2px dashed var(--line); }
.receipt tfoot th, .receipt tfoot td { padding-top: 18px; font-weight: 800; }

.footer { padding: 40px var(--gutter) 60px; color: var(--muted); font-size: 15px; border-top: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer a { color: var(--ink); font-weight: 700; }
.receipt .note { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ---- the site's taskbar ---------------------------------------------------------------------------------------- */

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--taskbar);
  background: var(--night); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 850; font-size: 19px; }
.apps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; position: absolute; left: 50%; transform: translateX(-50%); }
.apps a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; position: relative;
  color: var(--paper); transition: background-color 120ms;
}
.apps a:hover, .apps a.current { background: rgba(255, 255, 255, 0.1); }
.apps a.current::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--saffron); }
.apps svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apps a[data-tip]:hover::before {
  content: attr(data-tip); position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
  background: var(--night); color: var(--paper); font-size: 13px; padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}
.tray { font-size: 14px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the live pomi ---------------------------------------------------------------------------------------------- */

.pomi-canvas { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.pomi-hit {
  position: fixed; left: 0; top: 0; z-index: 41; border-radius: 46% 46% 40% 40%;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.pomi-hit:active { cursor: grabbing; }
.pomi-hit:focus-visible { outline: 3px dashed var(--persimmon); outline-offset: 6px; }
.pomi-bubble {
  position: fixed; left: 0; top: 0; z-index: 42; pointer-events: none;
  max-width: 230px; width: max-content; padding: 8px 12px 9px; margin-top: -12px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 12px;
  font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; font-variation-settings: "CASL" 1;
  box-shadow: 3px 3px 0 rgba(16, 59, 63, 0.2);
  opacity: 0; transition: opacity 160ms ease;
}
.pomi-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--white); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}
.pomi-bubble.show { opacity: 1; }

/* ---- small screens ---------------------------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .more-fun dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split, .hatch-intro, .hatchery, .more-intro, .more-grid { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .copy { order: 0; }
  .portrait { border-right: 0; border-bottom: 2px solid var(--ink); }
  .doc { justify-self: stretch; }
  .scene { height: auto; }
  .sticky { position: relative; height: auto; padding-top: 90px; padding-bottom: 90px; }
  .scene-fish { height: auto; }
  .rules dl { grid-template-columns: minmax(0, 1fr); }
  .drag-zone { min-height: 340px; }
  .hint { right: 18px; bottom: 120px; }
}

@media (max-width: 640px) {
  :root { --taskbar: 46px; }
  body { font-size: 17px; }
  .hero { padding-bottom: 150px; }
  .hint { position: static; align-self: flex-end; margin: 28px 6px 0 0; font-size: 15px; }
  .hint span { margin-bottom: 40px; }
  .hint svg { width: 72px; height: 56px; }
  .apps { gap: 0; }
  .apps a { width: 38px; height: 38px; }
  .brand span { display: none; }
  .pond-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .receipt th { font-size: 13px; }
  .app { grid-template-columns: 36% minmax(0, 1fr); font-size: 12px; }
  .app-nav li:nth-child(n+5) { display: none; }
  .app-seg span:nth-child(n+4) { display: none; }
  .more-fun dl { grid-template-columns: minmax(0, 1fr); }
  .press dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .press dl.facts dd { margin-bottom: 10px; }
  .card .actions .button { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .tray { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .pond-grid li svg, .portrait, .pomi-bubble { transition: none; }
}
