/* Hyggetivities website, version 6 (the hand-made look, 2026-11-16)
   Layout: one centred column (max 1120px) over a fixed field of soft colour: a warm off-white
   page, the app's blue at the top left, a warm amber at the bottom, and a layer of late
   afternoon light that grows as you scroll (site.js). On top of that the hand-made layer that
   every page shares: photographs as taped PRINTS with a paper edge, sheets of warm PAPER, and notes
   in the handwriting of the Danish film (Caveat). Glass only where an element must float: the nav
   and the download card. Type: Inter (Apple-like, self-hosted subset) for everything that is read,
   Caveat for what is written by hand: the notes, the captions, and the one accent word in a headline.
   THE SITE IS ALWAYS LIGHT. It used to follow the device, and on a phone set to dark the founder saw
   "other, darker colours" than on the PC (2026-11-16). The warm paper is the look, on every device.
   Page-specific parts: home.css (the front page), film.css. */

@font-face { font-family: "Inter"; src: url("../media/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../media/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../media/fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../media/fonts/Inter-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
/* the handwriting of the Danish film (Caveat, SIL Open Font License, see media/fonts) */
@font-face { font-family: "Caveat"; src: url("../media/fonts/Caveat-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  color-scheme: only light; /* also keeps a browser's own "darken every page" setting away, where a browser honours it */
  /* colour */
  --bg: #f6f4ef;
  --fg: #1a1a2e;
  --muted: #4f5666;
  --faint: #8c92a0;
  --blue: #087ffd;
  --blue-text: #0a66d6;
  --blue-fill: #0a6fe8; /* the blue behind white labels, 4.7 to 1 with white */
  --line: rgba(26, 26, 46, 0.09);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(26, 26, 46, 0.06);
  --glass-shadow: 0 24px 60px -30px rgba(20, 30, 60, 0.35);
  --highlight: rgba(255, 255, 255, 0.9);
  --chip: rgba(255, 255, 255, 0.7);
  --menu: rgba(255, 255, 255, 0.97);
  --panel-a: #fffaf3;
  --panel-b: #fbe9d4;
  --phone-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.5);
  --blob-alpha: 0.42;
  --blob-alpha-warm: 0.5;
  --blob-a: #3b82f6; /* the app's blue */
  --blob-c: #f59e0b; /* warm amber */
  --day: linear-gradient(180deg, rgba(255, 200, 130, 0) 0%, rgba(255, 190, 110, 0.34) 50%, rgba(255, 160, 70, 0.52) 100%);
  /* the hand-made layer */
  --ink: #c04008;            /* the rust orange the film writes with, 4.8 to 1 on the page */
  --ink-wash: rgba(192, 64, 8, 0.22);
  --paper-a: #f7ddbc;        /* a sheet of the film's paper, where the light falls */
  --paper-b: #f1e2cf;
  --paper-edge: rgba(120, 80, 30, 0.14);
  --tape: rgba(246, 230, 196, 0.82);
  --print: #fffdf8;          /* the paper edge of a print */
  --print-ink: #3a2616;
  --print-muted: rgba(58, 38, 22, 0.62);
  --print-accent: #c04008;
  --print-shadow: 0 22px 40px -22px rgba(40, 24, 8, 0.55), 0 1px 3px rgba(40, 24, 8, 0.14);
  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  /* shape and motion */
  --r-xl: 32px;
  --r-lg: 24px;
  --nav-h: 60px;
  --svh: 100vh; /* the height of the screen for sizing things to it: the small viewport height where a browser knows it (set below), else 100vh */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@supports (height: 100svh) { :root { --svh: 100svh; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* a display rule of ours must never bring a hidden thing back */
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
/* the accent word in a headline is written by hand, in the rust of the notes (it was blue serif italic until 2026-11-16) */
h1 em, h2 em { font-family: var(--script); font-style: normal; font-weight: 600; font-size: 1.2em; line-height: 0.8; letter-spacing: 0; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: 999px; }
.skip:focus { top: 16px; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- page transitions between the pages (browsers that support it) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 200ms ease-out both vt-out; }
::view-transition-new(root) { animation: 380ms var(--ease) both vt-in; }
::view-transition-old(nav), ::view-transition-new(nav) { animation: none; }
.nav { view-transition-name: nav; } /* on .nav itself: on the wrapper it made the glass blur nothing */
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- colour field behind everything ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: var(--blob-alpha); will-change: transform; }
.b1 { left: -14vmax; top: -22vmax; background: radial-gradient(circle at 50% 50%, var(--blob-a) 0%, rgba(59, 130, 246, 0.55) 30%, transparent 68%); animation: drift1 38s ease-in-out infinite alternate; }
.b3 { opacity: var(--blob-alpha-warm, var(--blob-alpha)); left: 10vmax; bottom: -32vmax; background: radial-gradient(circle at 50% 50%, var(--blob-c) 0%, rgba(245, 158, 11, 0.45) 28%, transparent 66%); animation: drift3 40s ease-in-out infinite alternate; }
.day { position: absolute; inset: 0; opacity: 0; background: var(--day); pointer-events: none; } /* the class name "day" is TAKEN by this layer: never reuse it for content */
@keyframes drift1 { to { transform: translate(12vmax, 10vmax) scale(1.08); } }
@keyframes drift3 { to { transform: translate(16vmax, -10vmax) scale(1.06); } }

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--highlight), 0 0 0 1px var(--glass-edge), var(--glass-shadow);
}
.glass::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 38%);
}
.glass > * { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-blue { background: var(--blue-fill); color: #fff; box-shadow: 0 12px 28px -14px rgba(8, 127, 253, 0.7); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.store { display: inline-flex; border-radius: 12px; transition: transform 0.25s var(--ease); }
.store:hover { transform: translateY(-2px); }
.badge { width: 162px; height: auto; }
.badge-lg { width: 200px; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.nav {
  max-width: 1120px; margin: 0 auto; min-height: var(--nav-h);
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  background: var(--glass-strong);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand img { width: 34px; height: 34px; }
.wm { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.035em; line-height: 1; }
.wm b { color: var(--blue); font-weight: 800; }
/* on wide screens the menu is not a box of its own: the links and the language switch sit in the bar */
.nav-menu { display: contents; }
.nav-links, .lang { position: relative; } /* above the bar's glass sheen (.glass::before), like the bar's direct children */
.nav-links { display: flex; gap: 2px; margin-left: 4px; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; transition: color 0.15s ease, background-color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"] { background: var(--chip); }
.lang { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); }
.lang button { min-width: 42px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); cursor: pointer; }
html.ready .lang button { transition: background-color 0.15s ease, color 0.15s ease; }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.nav-toggle { display: none; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 32em; }
.sub { font-size: 1.125rem; color: var(--muted); max-width: 36em; margin-top: 14px; text-wrap: balance; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.375rem); line-height: 1.04; max-width: 14em; }
.center { text-align: center; }
.center h2, .center .lead, .center .sub, .center h1 { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- the hand-made layer: handwriting, tape, prints, paper ---------- */
.hand { font-family: var(--script); font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: 0.01em; }
.tape {
  position: absolute; z-index: 4; top: -13px; left: 50%; width: 84px; height: 26px;
  transform: translateX(-50%) rotate(-5deg); border-radius: 2px;
  background: var(--tape); box-shadow: 0 1px 2px rgba(60, 40, 10, 0.2);
}
/* a photograph as a print: a paper edge, a caption written under it, a strip of tape */
.print {
  position: relative; margin: 0; padding: 10px 10px 12px;
  background: var(--print); color: var(--print-ink); border-radius: 3px; box-shadow: var(--print-shadow);
}
.print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: #d8ccba; } /* height: auto first, or the height attribute beats the ratio */
.print figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; text-align: left; }
.print .hand { color: var(--print-ink); font-size: clamp(1.15rem, 1.7vw, 1.4rem); margin: 0; }
.print time { flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--print-muted); font-variant-numeric: tabular-nums; }
/* a sheet of warm paper that something lies on */
.sheet {
  position: relative; border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 18% 0%, var(--paper-a), var(--paper-b) 62%);
  box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--paper-edge);
}
/* a handwritten note with a drawn arrow */
.note { margin: 0; display: flex; align-items: center; gap: 4px; font-size: clamp(1.6rem, 2.3vw, 2.05rem); white-space: nowrap; pointer-events: none; }
.note svg { flex: none; width: 58px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- phone (the app's screens in the walkthrough) ---------- */
.phone {
  position: relative; width: 100%; max-width: var(--pw, 300px);
  aspect-ratio: 1080 / 2280; padding: 3%; /* the shape of the app pictures in media/screens */
  border-radius: 15% / 7.1%;
  background: linear-gradient(160deg, #3b3d46, #15161b 38%, #0a0b0e 100%);
  box-shadow: var(--phone-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone::after { content: ""; position: absolute; inset: 1%; border-radius: 14.4% / 6.8%; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.75); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12.4% / 5.9%; background: #000; container-type: inline-size; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 1.7%; left: 50%; width: 26%; height: 3.1%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 2; }

/* ---------- the page heads rise in; the front page's opening does the same in home.css ---------- */
html.js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
html.js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
html.js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
html.js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.page-head { padding-block: clamp(32px, 6vw, 80px) 0; }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 13em; }
.page-head .hand { margin: 18px 0 0; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.cta-row .btn-blue { padding: 0 28px; }
.play-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--blue-text); }
.play-link i { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-fill); display: grid; place-items: center; box-shadow: 0 10px 20px -12px rgba(8, 127, 253, 0.8); transition: transform 0.25s var(--ease); }
.play-link svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.play-link:hover i { transform: scale(1.08); }

/* ---------- what plays inside a phone: a tap, the app's join toast, a message arriving ---------- */
.tap { position: absolute; left: var(--x); top: var(--y); width: 16cqw; height: 16cqw; margin: -8cqw 0 0 -8cqw; border-radius: 50%; background: rgba(8, 127, 253, 0.25); border: 0.6cqw solid rgba(8, 127, 253, 0.8); opacity: 0; z-index: 3; pointer-events: none; }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
.toast, .banner { position: absolute; z-index: 4; color: #1a1a2e; opacity: 0; transform: translateY(-180%); pointer-events: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); }
.toast { left: 3%; right: 3%; top: 7%; display: flex; align-items: center; gap: 2.6cqw; padding: 3.2cqw 3.6cqw; border-radius: 999px; background: #fff; font-weight: 600; font-size: 4.2cqw; line-height: 1.25; }
.toast i { width: 7cqw; height: 7cqw; border-radius: 50%; background: #10b981; display: grid; place-items: center; flex: none; }
.toast svg { width: 60%; height: 60%; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.banner { left: 2.5%; right: 2.5%; top: 6%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3cqw; align-items: center; padding: 3.2cqw 3.6cqw; border-radius: 5cqw; background: rgba(255, 255, 255, 0.94); font-size: 4.5cqw; line-height: 1.3; }
.banner img { position: static; width: 10cqw; height: 10cqw; border-radius: 2.6cqw; } /* static: the .screen img rule would pin it to the corner */
.banner b { display: block; font-weight: 700; }
.banner span { color: #5d6474; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
/* the scene plays in the phone of the panel in front (site.js sets is-on from the scroll position) */
.panel.is-on .tap { animation: tap 1.4s ease-out 0.4s 2; }
.panel.is-on .toast { animation: slideIn 0.7s var(--ease) 1.7s forwards; }
.panel.is-on .banner { animation: slideIn 0.7s var(--ease) 0.5s forwards; }

/* ---------- the walkthrough (its own page since version 6): a stack of full-height panels ---------- */
.tour { padding-block: clamp(36px, 5vw, 64px) 0; }
.stack { position: relative; }
.panel { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; background: var(--panel-a); border-radius: 36px 36px 0 0; box-shadow: 0 -24px 60px -36px rgba(15, 23, 42, 0.35); }
.panel.alt { background: var(--panel-b); }
.panel-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 96px 72px; } /* will-change is set by site.js, only while a panel is fading */
.panel.flip .panel-phone { order: 2; }
.panel-phone { display: flex; justify-content: center; width: 100%; }
.phone-tour { --pw: min(320px, calc((100vh - 220px) * 0.474)); }
/* the step: a number and a word, written by hand */
.step { display: flex; align-items: baseline; gap: 0.32em; margin: 0 0 8px; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.step b { font-weight: 600; font-size: 1.3em; line-height: 0.8; }
.panel-copy .h3 { font-size: clamp(1.75rem, 3vw, 2.625rem); letter-spacing: -0.035em; margin-bottom: 14px; } /* an h2 on its own page, at the size the walkthrough always had */
.panel-copy p:not(.step) { color: var(--muted); font-size: 1.1875rem; line-height: 1.55; max-width: 26em; }

/* ---------- download card ---------- */
.dl { border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.dl .eyebrow { margin: 0; }
.dl-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 20px 40px -20px rgba(8, 127, 253, 0.6); margin-bottom: 6px; }
.dl h2 { max-width: 12em; }
.dl .sub { margin-top: 0; }
.dl .store { margin-top: 12px; }
/* the two stores side by side; the Android one is a plain twin of the App Store badge (no Google artwork) */
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 12px; }
.dl .stores .store { margin-top: 0; }
.badge-android {
  display: inline-grid; grid-auto-flow: column; align-items: center; justify-content: center; column-gap: 12px;
  width: 200px; height: 67px; border-radius: 11px; border: 1px solid #a6a6a6; background: #000; color: #fff; text-align: left;
  transition: transform 0.25s var(--ease);
}
.badge-android:hover { transform: translateY(-2px); }
.badge-android svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge-android span { display: grid; line-height: 1.12; }
.badge-android small { font-size: 0.75rem; font-weight: 500; }
.badge-android b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.support { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 0.9375rem; }
.support a { font-weight: 600; color: var(--blue-text); user-select: all; }
.copy { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
@media (pointer: coarse), (max-width: 820px) { .copy { min-height: 44px; padding-inline: 18px; } } /* a finger needs more than a mouse */
.copy.done { background: #047857; color: #fff; border-color: transparent; }

/* ---------- about page ---------- */
/* the house rules: three ruled notes taped to the page */
.rules-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.rules-head .hand { margin: 0; font-size: clamp(2.6rem, 5vw, 3.9rem); }
.rules-head .hand i { font-style: normal; box-shadow: inset 0 -0.14em 0 var(--ink-wash); }
.rules-head .sub { margin: 0; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 34px); margin-top: clamp(34px, 4vw, 56px); padding-bottom: 14px; }
.rule {
  --row: 30px; /* one ruled line: the number, the heading and the text all stand on this grid, so every line of text sits on a ruled line */
  position: relative; padding: var(--row) 26px; background: var(--print); color: var(--print-ink); border-radius: 4px; box-shadow: var(--print-shadow);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--row) - 1px), rgba(58, 38, 22, 0.09) calc(var(--row) - 1px) var(--row));
  background-position: 0 -6px; /* the lines pass just under the text's baseline */
}
.rule .tape { width: 88px; }
.rule .num { display: block; height: calc(var(--row) * 2); font-family: var(--script); font-weight: 600; font-size: 3rem; line-height: calc(var(--row) * 2); color: var(--print-accent); }
.rule h2, .rule h3 { margin: 0; max-width: none; font-size: 1.375rem; line-height: var(--row); letter-spacing: -0.025em; color: var(--print-ink); }
.rule p { color: rgba(58, 38, 22, 0.84); line-height: var(--row); }
.rule.r1 { transform: rotate(-1.6deg); }
.rule.r2 { transform: rotate(0.9deg) translateY(10px); }
.rule.r2 .tape { transform: translateX(-50%) rotate(4deg); }
.rule.r3 { transform: rotate(-0.7deg); }
/* the idea: a heading with a print under it, the text beside */
.story-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.story-row .print { width: min(100%, 300px); margin-top: clamp(28px, 4vw, 44px); transform: rotate(-2.2deg); }
.prose { display: grid; gap: 20px; font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 34em; }
.prose p:first-child { color: var(--fg); font-weight: 600; font-size: 1.3125rem; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.375rem); }

/* ---------- the Android page: the two steps on two notes (not published until the closed test is open) ---------- */
.rules.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; }
.rule .btn { margin-top: var(--row); }
.same { margin: clamp(30px, 4vw, 48px) auto 0; max-width: 23em; text-align: center; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.why { max-width: 780px; margin-inline: auto; padding: clamp(28px, 4vw, 48px); }
.why h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.why p { margin-top: 12px; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.other-store { display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding-block: 36px 56px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot .brand img { width: 26px; height: 26px; }
.foot .wm { font-size: 1.0625rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 0.9375rem; color: var(--muted); }
.foot-links a { display: inline-block; padding-block: 11px; } /* 44px to tap */
.foot-links a:hover { color: var(--fg); }
.fine { margin-left: auto; font-size: 0.875rem; color: var(--muted); }

/* ---------- reveal on scroll (below the first screen only, JS only) ---------- */
html.js [data-reveal].pre { opacity: 0; transform: translateY(20px); }
html.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  /* one column; on a tablet the notes are narrower than the page and the middle one hangs at the right, as if put up by hand */
  .rules { grid-template-columns: 1fr; gap: 28px; }
  .rule { width: min(100%, 520px); }
  .rule.r2 { justify-self: end; transform: rotate(0.9deg); }
}
@media (max-width: 720px) {
  .rules.two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* The walkthrough keeps its stack on phones (the founder's wish, 2026-11-16): every panel is exactly one
     screen high and the next one slides over it. The words stand at the top, and the phone takes whatever
     height is left, so a panel never has to scroll inside itself (a sticky panel taller than the screen
     would hide its own foot). */
  .panel { height: var(--svh); min-height: 0; overflow: hidden; align-items: stretch; border-radius: 28px 28px 0 0; }
  .panel-grid { display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100%; padding-block: calc(var(--nav-h) + 26px) 20px; text-align: center; }
  .panel-copy { flex: none; }
  .panel-phone, .panel.flip .panel-phone { order: 1; flex: 1 1 0; min-height: 0; align-items: stretch; }
  .phone-tour { width: auto; height: 100%; max-width: 100%; }
  .panel-copy .h3 { font-size: 1.625rem; margin-bottom: 8px; }
  .panel-copy p:not(.step) { margin: 0 auto; font-size: 1.0625rem; line-height: 1.45; }
  .step { justify-content: center; margin-bottom: 4px; font-size: 1.75rem; }
  .story-row { grid-template-columns: 1fr; }
  .story-row .print { width: min(72vw, 280px); }
  .fine { margin-left: 0; }
}
@media (max-width: 900px) and (max-height: 700px) {
  /* a short phone screen (for example 375 x 553): smaller words and tighter gaps, so the app picture keeps a useful size */
  .panel-grid { gap: 10px; padding-top: calc(var(--nav-h) + 20px); }
  .panel-copy p:not(.step) { font-size: 0.9375rem; line-height: 1.35; }
}
@media (max-height: 520px) {
  /* a very low screen (a phone held sideways, also a big one that is wider than 900px, or a very short upright
     screen) is too low for a panel of one screen: plain cards, one after the other. The height alone decides. */
  .panel { position: static; height: auto; min-height: 0; overflow: visible; border-radius: 28px; margin: 0 12px 14px; box-shadow: none; }
  .panel-grid { height: auto; padding-block: 32px 36px; }
  .phone-tour { --pw: 200px; }
}
@media (max-width: 900px) and (max-height: 520px) {
  /* and where the screen is narrow as well: one column, the app picture first and the words under it */
  .panel-grid { display: grid; grid-template-columns: 1fr; justify-items: center; }
  .panel-phone, .panel.flip .panel-phone { order: 0; flex: none; }
  .phone-tour { width: 100%; height: auto; max-width: 200px; }
}
/* the bar gets a menu button when the links no longer fit beside the name */
@media (max-width: 820px) {
  .nav { gap: 8px; padding: 8px 8px 8px 12px; }
  .nav-toggle {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
    border-radius: 50%; border: 1px solid var(--line); background: var(--chip); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .nav-toggle path { transform-origin: 12px 12px; transition: transform 0.25s var(--ease); }
  .nav.is-open .nav-toggle .l1 { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav-toggle .l2 { transform: translateY(-4px) rotate(-45deg); }
  /* the menu: a card under the bar. Not glass: a blur inside the blurred bar would blur nothing. */
  .nav .nav-menu {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 2;
    padding: 10px; border-radius: 24px; background: var(--menu);
    border: 1px solid var(--glass-border); box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  }
  .nav.is-open .nav-menu { display: block; }
  .nav-links { display: grid; gap: 2px; margin: 0; }
  .nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 1.0625rem; color: var(--fg); }
  .lang { display: flex; width: max-content; margin: 8px 0 2px 12px; }
  .lang button { min-width: 52px; height: 44px; }
  .nav .btn-sm { min-height: 44px; }
}
@media (scripting: none) {
  /* without script the menu cannot open: no button, and the pages are still one tap away in the footer */
  .nav-toggle { display: none; }
  .nav > .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .btn-sm { padding: 0 13px; }
}
@media (max-width: 400px) {
  .nav .wm { font-size: 1.125rem; }
  .brand { gap: 8px; }
}
@media (max-width: 352px) {
  .nav .wm { display: none; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .btn, .store, .badge-android, .play-link i, .nav-toggle path { transition: none; }
  html.js .hero-copy > * { animation: none; }
  html.js [data-reveal].pre { opacity: 1; transform: none; }
  .panel.is-on .tap, .panel.is-on .toast, .panel.is-on .banner { animation: none; }
  .panel.is-on .toast, .panel.is-on .banner { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
