/* Freshward: the contact sheet, on the web.
   Paper carries reading. Table, near-black, carries looking.
   Marker amber means keep, and only keep. No red. */

:root {
  --paper: #f3efe6;
  --paper-raised: #fbf9f4;
  --ink: #171512;
  --ink-soft: #66625b;
  --rule: rgba(23, 21, 18, 0.12);
  --marker: #ffb314;
  --marker-ink: #8f5800;
  --film: #16140f;
  --table: #0e0e0f;
  --on-dark-soft: rgba(255, 255, 255, 0.68);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(44rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marker-ink);
}
.on-dark .label, .label.on-dark { color: var(--marker); }

.lede { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; color: var(--ink-soft); max-width: var(--measure); }
.soft { color: var(--ink-soft); }

.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--ink); color: var(--paper); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header and footer */

.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 2px rgba(23, 21, 18, 0.18); }
.site-nav { display: flex; gap: clamp(0.9rem, 3vw, 1.75rem); font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
@media (max-width: 34rem) { .site-nav .optional { display: none; } }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; margin-top: 2rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* Approval placeholders: visible on purpose, so nothing ships unnoticed. */
.todo {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8em;
  padding: 0.05em 0.45em;
  border: 1.5px dashed var(--marker-ink);
  border-radius: 4px;
  color: var(--marker-ink);
  background: rgba(255, 179, 20, 0.12);
}

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 14px;
  background: var(--ink); color: var(--paper-raised);
  font-weight: 600; text-decoration: none;
}
.button:hover { text-decoration: none; background: #2b2823; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.ghost:hover { background: rgba(23, 21, 18, 0.06); }

/* Prints: drawn photographs. A sky, a sun, a hill; each take a little
   different, like frames shot seconds apart. */

.print {
  --sky: #8ea9b8; --ground: #d6c29a; --sun-x: 50%; --sun-y: 24%; --hill: rgba(26, 26, 23, 0.3); --tilt: 0deg;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--sky) 0%, var(--ground) 100%);
}
.print::before {
  content: ""; position: absolute; width: 15%; aspect-ratio: 1; border-radius: 50%;
  left: calc(var(--sun-x) - 7.5%); top: var(--sun-y);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 2.2em rgba(255, 244, 214, 0.55);
}
.print::after {
  content: ""; position: absolute; left: -30%; right: -30%; bottom: -42%; height: 72%;
  border-radius: 50%; background: var(--hill); transform: rotate(var(--tilt));
}
.print.wide { aspect-ratio: 3 / 2; }
.print.square { aspect-ratio: 1; }

.dusk   { --sky: #7096c2; --ground: #f0d091; }
.lake   { --sky: #6f9fc8; --ground: #9db7c4; --hill: rgba(30, 52, 40, 0.55); }
.meadow { --sky: #9fc0d6; --ground: #b9c48a; --hill: rgba(60, 82, 38, 0.55); }
.coast  { --sky: #9cb6c8; --ground: #d9c7a3; --hill: rgba(40, 60, 70, 0.4); }
.ember  { --sky: #3b3a52; --ground: #d98f4e; --hill: rgba(20, 16, 22, 0.55); }
.snow   { --sky: #b5c6d6; --ground: #eef0f0; --hill: rgba(80, 92, 110, 0.35); }

.t1 { --sun-x: 40%; --sun-y: 27%; --tilt: -2deg; }
.t2 { --sun-x: 46%; --sun-y: 24%; --tilt: -1deg; }
.t3 { --sun-x: 51%; --sun-y: 23%; --tilt: 0deg; }
.t4 { --sun-x: 55%; --sun-y: 22%; --tilt: 1deg; }
.t5 { --sun-x: 60%; --sun-y: 24%; --tilt: 2deg; }

.aside { filter: grayscale(1); opacity: 0.38; }

/* The marker loop: drawn on once, around one frame or one number. */

.loop-def { position: absolute; width: 0; height: 0; overflow: hidden; }
.loop {
  position: absolute; inset: -6% -7%; width: 114%; height: 112%;
  overflow: visible; pointer-events: none; max-width: none;
  fill: none; stroke: var(--marker); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 0.9s 0.35s ease-out both;
}
.loop.thin { stroke-width: 4; }
.loop.wide { inset: -38% -16%; width: 132%; height: 176%; stroke-width: 4px; stroke-dasharray: none; animation: none; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .loop { animation: none; } }

/* Film */

.film {
  background: var(--film); color: #fff;
  border-radius: 12px;
  padding: 0.9rem;
}
.film-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.9rem, 2.4vw, 1.6rem); }
.frame { position: relative; }
.frame-no { display: block; text-align: center; margin-top: 0.35rem; font-family: var(--mono); font-size: 0.68rem; color: rgba(255, 179, 20, 0.8); }
.sprockets { height: 10px; margin: 0 0 0.6rem; background: radial-gradient(circle, transparent 0, transparent 0) ; background-image: linear-gradient(90deg, rgba(255,255,255,0.18) 0 14px, transparent 14px 26px); background-size: 26px 10px; border-radius: 2px; opacity: 0.8; }
.sprockets.bottom { margin: 0.6rem 0 0; }

/* Hero */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.hero-copy { display: grid; gap: 1.4rem; max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.25rem; align-items: center; margin-top: 0.4rem; }
.hero .contact-sheet { margin: 0; max-width: 60rem; }
.hero figcaption { margin-top: 0.85rem; font-size: 0.9rem; color: var(--ink-soft); }

/* Sections */

.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > :first-child { order: 2; }
}

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.points li { display: grid; gap: 0.2rem; padding-left: 1.6rem; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.65rem; height: 0.65rem; border-radius: 50%; border: 2px solid var(--marker-ink); }
.points strong { font-weight: 600; }
.points p { color: var(--ink-soft); }

.dark { background: var(--table); color: #fff; }
.dark .lede, .dark .points p, .dark .soft { color: var(--on-dark-soft); }
.dark .points li::before { border-color: var(--marker); }
.dark .label { color: var(--marker); }

/* Light table mock */

.device {
  width: min(24rem, 100%); margin-inline: auto;
  background: var(--table);
  border-radius: 2.6rem; padding: 1.1rem 0.9rem 1.3rem;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #fff;
}
.device .bar { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.5rem 0.8rem; }
.device .bar .title { text-align: center; font-family: var(--serif); font-size: 1rem; line-height: 1.2; }
.device .bar .title .label { display: block; font-size: 0.6rem; color: var(--on-dark-soft); margin-top: 0.15rem; }
.chip { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.device .stage { position: relative; }
.device .stage .print { border-radius: 2px; }
.badge { position: absolute; left: 0.6rem; bottom: 0.6rem; display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font-family: var(--mono); font-size: 0.72rem; }
.badge .keep { color: var(--marker); }
.device .hint { text-align: center; font-size: 0.85rem; margin: 0.9rem 0 0.2rem; }
.device .hint small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; margin-top: 0.2rem; }
.device .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin: 0.9rem 0.2rem; }
.device .strip .frame .print { border-radius: 3px; aspect-ratio: 1; }
.device .strip .current .print { outline: 2px solid #fff; outline-offset: 0; }
.dot { display: block; width: 4px; height: 4px; margin: 0.3rem auto 0; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.dot.seen { background: transparent; }
.controls { display: grid; gap: 0.55rem; margin-top: 0.5rem; }
.controls .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.pill { border-radius: 999px; padding: 0.6rem 0.8rem; text-align: center; font-size: 0.82rem; font-weight: 600; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pill.keeping { color: var(--marker); }
.pill.primary { background: #f4f2ee; color: #000; box-shadow: none; padding-block: 0.75rem; font-size: 0.9rem; }

/* Space mock */

.space-mock { display: grid; gap: 1rem; }
.map { background: var(--paper-raised); border-radius: 16px; padding: 1rem; display: grid; gap: 0.7rem; }
.tiles { display: grid; grid-template-columns: 3fr 2fr 1.4fr; grid-template-rows: 7rem 5rem; gap: 4px; height: 12.25rem; }
.tile { position: relative; overflow: hidden; border-radius: 5px; color: #fff; }
.tile .print { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.tile .print::after { opacity: 0.9; }
.tile span { position: absolute; left: 0.55rem; bottom: 0.45rem; font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: 1.1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.tile span small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.62rem; opacity: 0.85; }
.tile.big { grid-row: span 2; }
.tile.rest { background: var(--film); }
.up-next { background: var(--film); color: #fff; border-radius: 16px; padding: 1rem; display: grid; gap: 0.8rem; }
.up-next .top { display: flex; justify-content: space-between; }
.up-next .top .label { color: var(--on-dark-soft); }
.reel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; border-radius: 4px; overflow: hidden; }
.reel .print { aspect-ratio: 16 / 11; border-radius: 0; }
.up-next .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.size { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; line-height: 1; }
.play { background: var(--paper-raised); color: #000; border-radius: 999px; padding: 0.55rem 1.15rem; font-weight: 600; font-size: 0.9rem; }

/* Tray mock */

.tray-card { display: grid; grid-template-columns: 0.9fr auto 2fr; gap: 0.9rem; }
.tray-card .divider { width: 1px; background: rgba(255, 255, 255, 0.22); }
.tray-card .col { display: grid; gap: 0.5rem; align-content: start; }
.tray-card .col .label { color: rgba(255, 255, 255, 0.75); }
.tray-card .leaving { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.tray-card .leaving .print { filter: saturate(0.2); aspect-ratio: 1; }
.tray-card .staying .frame .print { aspect-ratio: 1; }
.tray-bar { margin-top: 1rem; background: var(--paper-raised); border-radius: 18px; padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.8rem; color: var(--ink); box-shadow: 0 12px 40px rgba(23, 21, 18, 0.12); }
.tray-bar .thumbs { display: flex; }
.tray-bar .thumbs .print { width: 1.75rem; aspect-ratio: 1; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--paper-raised); margin-right: -0.6rem; }
.tray-bar strong { display: block; font-size: 0.95rem; margin-left: 0.8rem; }
.tray-bar small { display: block; color: var(--ink-soft); margin-left: 0.8rem; }

/* Privacy band */

.promises { display: grid; gap: 1px; background: var(--rule); border-radius: 18px; overflow: hidden; }
@media (min-width: 48rem) { .promises { grid-template-columns: 1fr 1fr; } }
.promise { background: var(--paper-raised); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.5rem; align-content: start; }
.promise p { color: var(--ink-soft); }

.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 1.25rem; }
.closing .number { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 600; padding: 0.4em 0; }
.circled { position: relative; display: inline-block; margin-left: 0.35em; }

/* Long-form pages: support and privacy */

.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .narrow { display: grid; gap: 1rem; }
.prose { padding-bottom: 3rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 3rem 0 1rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--marker-ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.table-scroll { overflow-x: auto; }

.callout { background: var(--paper-raised); border-radius: 16px; padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.callout > * + * { margin-top: 0.5rem; }

.contact-card { background: var(--film); color: #fff; border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.contact-card p { color: var(--on-dark-soft); }
.contact-card .todo { color: var(--marker); border-color: var(--marker); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.75rem; align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--marker-ink); border: 1.5px solid var(--marker-ink); border-radius: 50%; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-family: var(--mono); font-size: 1.2rem; color: var(--marker-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-soft); }
.faq details > div > * + * { margin-top: 0.6rem; }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.toc a { font-size: 0.9rem; text-decoration: none; padding: 0.35rem 0.8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--paper-raised); }
.toc a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound .wrap { display: grid; gap: 1.25rem; justify-items: center; }
.notfound .film { width: min(22rem, 100%); }

.tagline { margin-top: 0.6rem; }
.after-promises { margin-top: 1.5rem; }
.film-strip.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 30rem) { .pill { font-size: 0.74rem; padding-inline: 0.5rem; white-space: nowrap; } }
