/* Misty Mewridian – misty.geogames.uk (T70, T123). Cold fog and warm light; the light pages are an old atlas. */

:root {
  --night: #141925;
  --ink: #1c2231;
  --slate: #283046;
  --dusk: #3a4260;
  --mist: #a3abbd;
  --mist-2: #c9cfdb;
  --stone: #b9b2a5;
  --paper: #f0e8d8;
  --paper-2: #e6dac4;
  --paper-line: #cdbfa5;
  --paper-ink: #2b2a30;
  --paper-mute: #6c6556;
  --amber: #e8a64e;
  --amber-2: #f7cf86;
  --amber-deep: #a86b22;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --wrap: 1180px;
  --gutter: 16px;
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0%2040V24Q28%2023%2055%2018Q94%2021%20133%2023Q172%2012%20211%2026Q239%2022%20267%2018Q310%2020%20352%2026Q387%2019%20422%2026Q449%2023%20476%2026Q512%2019%20549%2016Q594%2013%20638%2025Q676%2013%20715%2025Q744%2021%20772%2025Q804%2025%20836%2027Q868%2025%20901%2023Q925%2028%20949%2017Q973%2021%20997%2019Q1038%2020%201080%2024Q1110%2020%201139%2026Q1170%2018%201200%2023V40z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}
/* Armenian: the site fonts have no Armenian letters; Noto Armenian (loaded by the HY page and the policy) fills them in. */
html:lang(hy), [lang="hy"] {
  --serif: "Cormorant Garamond", "Noto Serif Armenian", Georgia, serif;
  --sans: "Golos Text", "Noto Sans Armenian", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Noto Serif Armenian", cursive;
}
section[lang="hy"] { font-family: var(--sans); }
/* Armenian words are long: the big headings a step smaller, and a word never runs off the screen. */
html:lang(hy) h1, html:lang(hy) h2 { overflow-wrap: break-word; hyphens: auto; }
html:lang(hy) .hero h1 { font-size: clamp(2.3rem, 1.3rem + 5vw, 4.8rem); }
html:lang(hy) h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--mist-2);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.7rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }

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

.kicker {
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin: 0 0 1.4rem;
  opacity: 0.8;
}
.kicker::before, .kicker::after { content: ""; width: 1.6em; height: 1px; background: currentColor; opacity: 0.6; }

.lead { font-size: 1.12rem; max-width: 34em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--amber); color: var(--night); padding: 8px 12px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }

/* Buttons: a warm lamp and a quiet outline. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #2a1d0b;
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(247, 207, 134, 0), 0 10px 30px -12px rgba(232, 166, 78, 0.8);
  transition: box-shadow 0.4s, transform 0.4s;
}
.btn:hover { box-shadow: 0 0 0 6px rgba(247, 207, 134, 0.14), 0 14px 36px -12px rgba(232, 166, 78, 0.9); }
.btn .arrow { transition: transform 0.4s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.quiet { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn.quiet:hover { background: rgba(255, 255, 255, 0.06); }
.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.link:hover { text-decoration-color: currentColor; }

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--paper);
  transition: background 0.5s, box-shadow 0.5s;
}
.top.solid { background: rgba(20, 25, 37, 0.92); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
@supports (backdrop-filter: blur(6px)) { .top.solid { background: rgba(20, 25, 37, 0.8); backdrop-filter: blur(8px); } }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 34px; flex: none; color: var(--paper); }
.brand span { font: 600 1.45rem/0.9 var(--serif); letter-spacing: 0.01em; }
.nav { display: none; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(240, 232, 216, 0.4); border-radius: 999px; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.08em; }
.lang a, .lang span { padding: 5px 8px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--paper); color: var(--ink); }
.top .btn { min-height: 38px; padding: 0.5em 1.1em; font-size: 0.9rem; }
/* Four languages and the menu on a phone: the header gets tighter. */
@media (max-width: 479px) {
  .top .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand span { font-size: 1.2rem; }
  .lang a, .lang span { padding: 5px 6px; }
  .lang { letter-spacing: 0.04em; }
}
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu nav {
  position: absolute;
  right: 0;
  top: 46px;
  display: grid;
  min-width: 200px;
  padding: 10px 0;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.menu nav a { padding: 10px 20px; text-decoration: none; }
.top .join-top { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
  .top .join-top { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1100px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}
.scene { position: absolute; inset: 0; z-index: -2; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.hero .scene { bottom: 30%; }
.drift { position: absolute; inset: -10% -40%; z-index: -1; pointer-events: none; }
.drift i {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 16% at 30% 62%, rgba(176, 186, 207, 0.32), transparent 70%),
    radial-gradient(30% 12% at 72% 70%, rgba(176, 186, 207, 0.26), transparent 70%),
    radial-gradient(45% 18% at 55% 86%, rgba(190, 198, 216, 0.3), transparent 70%);
  animation: drift 90s linear infinite alternate;
}
.drift i:nth-child(2) {
  background:
    radial-gradient(34% 12% at 20% 78%, rgba(160, 170, 192, 0.28), transparent 70%),
    radial-gradient(42% 14% at 80% 55%, rgba(160, 170, 192, 0.2), transparent 70%);
  animation-duration: 130s;
  animation-direction: alternate-reverse;
}
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(20, 25, 37, 0.8) 42%, var(--night) 62%);
}
.hero .wrap { padding: 120px 0 92px; }
.hero-copy { max-width: 33rem; }
.hero h1 { font-size: clamp(2.9rem, 1.6rem + 6vw, 5.6rem); line-height: 0.98; margin-bottom: 0.35em; text-shadow: 0 2px 30px rgba(10, 12, 20, 0.5); }
.hero .lead { color: var(--mist-2); margin-bottom: 1.8rem; text-shadow: 0 1px 12px rgba(10, 12, 20, 0.6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.actions .link { color: var(--paper); }
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero .scene { bottom: 0; }
  .hero::after { inset: 0 0 0 40%; height: auto; background: linear-gradient(90deg, transparent, rgba(20, 25, 37, 0.55) 45%, rgba(20, 25, 37, 0.65)); }
  .hero .wrap { display: flex; justify-content: flex-end; padding: 120px 0 120px; }
  .scene img { object-position: 50% 50%; }
}

/* Paper pages */
.paper {
  position: relative;
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(120% 80% at 50% 0, #f6efe2, transparent 70%);
  background-blend-mode: multiply, normal;
  color: var(--paper-ink);
}
.paper::before, .dark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 28px;
  background: inherit;
  background-color: var(--paper);
  -webkit-mask: var(--edge) center bottom / 100% 100% no-repeat;
  mask: var(--edge) center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.paper .kicker { color: var(--paper-mute); }
.paper p { color: #3b3a40; }
.section { padding: 84px 0 96px; position: relative; }
@media (min-width: 900px) { .section { padding: 120px 0 132px; } }

.dark { position: relative; background: var(--ink); color: var(--mist-2); }
.dark::before { background: var(--ink); }
.dark h2 { color: var(--paper); }
.dark .kicker { color: var(--mist); }

/* The world: an atlas plate */
.world .grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .world .grid { grid-template-columns: 4fr 8fr; align-items: center; gap: 48px; } }
.open-list { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.open-list li {
  font-size: 0.92rem;
  padding: 5px 12px 5px 22px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  position: relative;
  cursor: default;
  transition: background 0.3s, border-color 0.3s;
}
.open-list li::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.open-list li.on { background: rgba(232, 166, 78, 0.16); border-color: var(--amber); }
.small { font-size: 0.92rem; color: var(--paper-mute) !important; }

.atlas { position: relative; margin: 0; }
.atlas .map { position: relative; aspect-ratio: 1000 / 448; }
.atlas .map svg { display: block; width: 100%; height: 100%; overflow: visible; }
.atlas .inset svg { display: block; width: 100%; }
.atlas .grat { fill: none; stroke: #8f846f; stroke-opacity: 0.35; stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.atlas .grat.fine { display: none; }
.atlas .land { fill: #a7a9ae; stroke: #8b8e96; stroke-width: 0.4; vector-effect: non-scaling-stroke; }
.atlas .land.fine { stroke: none; }
.atlas .borders { fill: none; stroke: var(--paper); stroke-opacity: 0.7; stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.atlas .open path { fill: var(--amber); fill-opacity: 0.75; }
.atlas .open-line path { fill: none; stroke: var(--amber-deep); stroke-opacity: 0.7; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.atlas .light { cursor: pointer; outline: none; }
.atlas .halo { fill: url(#glow); transform-box: fill-box; transform-origin: center; animation: breathe 6s ease-in-out infinite; }
.atlas .core { fill: #fff3d6; }
.atlas .light.on .halo, .atlas .light:focus .halo { animation: none; transform: scale(1.6); }
@keyframes breathe { 0%, 100% { transform: scale(0.85); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 1; } }
.atlas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: center; }
.atlas .map { grid-column: 1 / -1; }
.atlas .inset {
  grid-row: 2;
  grid-column: 1;
  margin-top: -6%;
  position: relative;
  background: var(--paper);
  background-image: var(--grain);
  background-blend-mode: multiply;
  padding: 8px 8px 6px;
  border: 1px solid var(--paper-line);
  box-shadow: 0 18px 30px -22px rgba(43, 35, 20, 0.55);
}
.atlas .inset svg { aspect-ratio: 104.3 / 81.3; height: auto; overflow: hidden; }
.atlas .inset .grat.fine { display: inline; }
.atlas .inset .halo { animation: none; }
.atlas .inset figcaption { font: 500 0.66rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); margin-top: 6px; }
.atlas .inset-frame { position: absolute; fill: none; stroke: var(--amber-deep); stroke-dasharray: 2 2; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.atlas .tip {
  position: absolute;
  transform: translate(-50%, -130%);
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.atlas .tip.show { opacity: 1; }
.note {
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 1.1;
  color: #3d3424;
  background: #efe0bd;
  background-image: var(--grain);
  background-blend-mode: multiply;
  padding: 14px 18px 16px;
  width: max-content;
  max-width: 15rem;
  box-shadow: 0 14px 24px -18px rgba(43, 35, 20, 0.7);
}
.atlas .note { grid-row: 2; grid-column: 2; justify-self: center; transform: rotate(-4deg); margin: 0; }
.paw { display: inline-block; width: 18px; height: 18px; vertical-align: -2px; margin-left: 6px; opacity: 0.75; }
@media (max-width: 979px) {
  .atlas { grid-template-columns: 3fr 2fr; gap: 0 14px; }
  .atlas .note { font-size: 1.25rem; max-width: 9rem; padding: 10px 12px 12px; }
}

/* Two columns with a phone */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.phone {
  position: relative;
  width: min(300px, 76vw);
  margin-inline: auto;
  padding: 10px;
  border-radius: 34px;
  background: #0f131c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 120px -30px rgba(232, 166, 78, 0.35);
}
.phone img { width: 100%; height: auto; aspect-ratio: 480 / 757; object-fit: cover; border-radius: 25px; }
.phone figcaption, .plate figcaption { font: 400 1.15rem/1.2 var(--hand); text-align: center; margin-top: 14px; }
.dark .phone figcaption { color: var(--mist); }
.notes { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 14px; }
.notes li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: baseline; }
.notes li svg { width: 22px; height: 22px; color: var(--amber); transform: translateY(5px); }

/* Discover: a street at night */
.discover { background: linear-gradient(180deg, var(--ink), #222a3d 60%, var(--ink)); overflow: hidden; }
.discover .street {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(28% 40% at 82% 30%, rgba(232, 166, 78, 0.12), transparent 70%),
    radial-gradient(40% 30% at 10% 90%, rgba(163, 171, 189, 0.12), transparent 70%);
  pointer-events: none;
}

/* Cats */
.cats .plate { margin: 0; }
.cats .figures { position: relative; }
.placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 60% 62%, rgba(247, 207, 134, 0.55), transparent 70%),
    linear-gradient(170deg, #5a5f73, #2b3045 70%);
  border: 1px solid var(--paper-line);
  outline: 1px solid var(--paper-line);
  outline-offset: 6px;
  display: grid;
  place-items: start;
}
.placeholder svg.sil { position: absolute; left: 38%; bottom: 6%; width: 38%; transform: translateX(-50%); color: #151925; opacity: 0.92; }
.placeholder .tag { position: relative; margin: 14px; font: 400 1.1rem/1.2 var(--hand); color: var(--paper); opacity: 0.85; max-width: 16rem; }
.cats .phone { position: absolute; right: -6px; bottom: -40px; width: min(190px, 44vw); padding: 7px; border-radius: 24px; }
.cats .phone img { border-radius: 18px; }
@media (min-width: 900px) { .cats .phone { right: -40px; bottom: -60px; width: 220px; } }
.cats .figures { margin-right: 24px; margin-bottom: 40px; }
.aside { margin-top: 1.6rem; padding-left: 16px; border-left: 2px solid var(--amber); font-size: 0.95rem; }

/* Stories: a field notebook */
.stories { background-color: var(--paper-2); }
.stories::before { background-color: var(--paper-2); }
.stories .intro { max-width: 40rem; }
.finds .phone { width: min(260px, 70vw); }
.finds .phone figcaption { color: var(--mist); padding-bottom: 6px; }
.notebook { display: grid; gap: 22px; margin-top: 48px; }
@media (min-width: 760px) { .notebook { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .notebook { grid-template-columns: repeat(4, 1fr); } }
.leaf {
  position: relative;
  padding: 26px 22px 24px;
  background: #f7f1e4;
  background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(122, 140, 170, 0.18) 29px 30px), var(--grain);
  background-blend-mode: normal, multiply;
  box-shadow: 0 16px 26px -22px rgba(43, 35, 20, 0.6);
}
.leaf:nth-child(odd) { transform: rotate(-0.8deg); }
.leaf:nth-child(even) { transform: rotate(0.9deg); margin-top: 18px; }
.leaf .no { font: 500 0.7rem/1 var(--sans); letter-spacing: 0.18em; color: var(--paper-mute); text-transform: uppercase; }
.leaf h3 { font-family: var(--hand); font-weight: 600; font-size: 1.85rem; color: #2f3a52; margin: 10px 0 8px; }
.leaf p { font-size: 0.97rem; line-height: 30px; margin: 0; }
.leaf .sketch { width: 64px; height: 64px; color: #44506a; opacity: 0.8; margin-bottom: 4px; }
.leaf.demon { background-color: #e9e6e4; }
.leaf.demon h3 { color: #3c3f4d; }
.later { margin-top: 44px; max-width: 40rem; }

/* Together */
.together { background: var(--slate); overflow: hidden; }
.together::before { background: var(--slate); }
.together .rings { position: absolute; inset: 0; opacity: 0.18; pointer-events: none; }
.together .grid { display: grid; gap: 32px; position: relative; }
@media (min-width: 900px) { .together .grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: end; } }
.big-quote { font: 500 italic clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem)/1.22 var(--serif); color: var(--paper); margin: 0; }
.big-quote::before { content: ""; display: block; width: 46px; height: 1px; background: var(--amber); margin-bottom: 20px; }

/* Your place */
.place { position: relative; min-height: 640px; display: grid; align-items: center; color: var(--paper); overflow: hidden; isolation: isolate; background: var(--dusk); }
.place { align-items: end; min-height: 820px; }
.place .scene { bottom: 34%; }
.place .scene img { object-position: 84% 50%; }
.place::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(28, 34, 49, 0.85) 56%, #1f2536 70%); }
.place .wrap { padding: 400px 0 96px; }
.place-copy { max-width: 30rem; }
.place p { color: var(--mist-2); }
@media (min-width: 900px) {
  .place { min-height: 680px; align-items: center; }
  .place .scene { bottom: 0; }
  .place .wrap { padding: 120px 0; }
  .place::after { background: linear-gradient(90deg, rgba(28, 34, 49, 0.85), rgba(28, 34, 49, 0.5) 45%, transparent 75%); }
  .place .scene img { object-position: 50% 50%; }
}

/* Final call and footer */
.final { background: var(--night); color: var(--mist-2); position: relative; }
.final::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 28px; background: var(--night); -webkit-mask: var(--edge) center bottom / 100% 100% no-repeat; mask: var(--edge) center bottom / 100% 100% no-repeat; }
.final .wrap { display: grid; gap: 26px; padding: 72px 0 56px; align-items: center; }
.final .line-cat { width: 150px; color: var(--amber-2); opacity: 0.85; }
.final h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); margin: 0 0 0.2em; color: var(--paper); }
.final .motto { font: 500 italic 1.35rem/1.3 var(--serif); color: var(--amber-2); margin: 0; }
.final .status { font-size: 0.92rem; color: var(--mist); margin: 10px 0 0; max-width: 28rem; }
@media (min-width: 900px) { .final .wrap { grid-template-columns: auto 1fr auto; gap: 48px; } }
footer { background: var(--night); border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--mist); font-size: 0.86rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 26px 0 34px; }
footer a { text-decoration-color: rgba(163, 171, 189, 0.4); }
footer .grow { margin-right: auto; }
footer .studio { display: block; padding: 48px 0 8px; }
footer .studio .kicker { color: var(--mist); }
footer .studio h2 { font-size: 1.9rem; color: var(--paper); margin: 0.2em 0 0.3em; }
footer .studio p { max-width: 42rem; font-size: 0.95rem; line-height: 1.6; color: var(--mist-2); margin: 0; }
footer .studio a { color: inherit; }
.final .status a, .final .steps a { color: var(--amber-2); }
.final .steps { margin: 14px 0 0; padding-left: 1.4em; max-width: 30rem; color: var(--mist-2); font-size: 0.95rem; }
.final .steps li { margin: 6px 0; padding-left: 4px; }
.final .steps li::marker { color: var(--amber-2); font-weight: 500; }

/* The join dialog */
dialog.join {
  width: min(100% - 2 * var(--gutter), 30rem);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: var(--paper);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--paper-ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
dialog.join::backdrop { background: rgba(14, 18, 27, 0.72); }
.join form { padding: 30px 26px 24px; }
@media (min-width: 560px) { .join form { padding: 38px 36px 30px; } }
.join h2 { font-size: 2.2rem; margin-bottom: 0.3em; }
.join .why { color: #45434a; font-size: 0.98rem; }
.join .x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--paper-mute); cursor: pointer; }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field span { font-size: 0.86rem; font-weight: 500; color: var(--paper-mute); }
.field input {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  background: #fbf7ee;
  color: var(--paper-ink);
}
.field input:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 0.94rem; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--amber-deep); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.join .btn { margin-top: 10px; width: 100%; justify-content: center; }
.join .status { min-height: 1.4em; margin: 12px 0 0; font-size: 0.94rem; }
.join .status.ok { color: #2f6a3a; }
.join .status.err { color: #a03a2a; }
.join .fine { font-size: 0.8rem; color: var(--paper-mute); margin: 10px 0 0; }

/* Appearing on scroll: only when scripts run and motion is welcome. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift i, .atlas .halo { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow { transition: none; }
}

/* Privacy page */
.policy-page .top { position: sticky; background: var(--ink); }
.policy { max-width: 42rem; padding: 64px 0 80px; line-height: 1.65; }
.policy h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem); }
.policy h2 { font-size: 1.7rem; margin: 2.2rem 0 0.5rem; }
.policy .date { color: var(--paper-mute); }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 0.35em 0; color: #3b3a40; }
.policy hr { border: 0; border-top: 1px solid var(--paper-line); margin: 3rem 0 0; }
