/* PeacefulPotty
   Palette: glazed bathroom tile, aged brass, limestone. Dark by design: people
   use this in a bathroom, often at night, and a bright screen glows under a door. */

@font-face {
  font-family: 'Gloock';
  src: url(assets/gloock.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url(assets/instrument-sans.woff2) format('woff2-variations'), url(assets/instrument-sans.woff2) format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --tile: #15241d;
  --tile-2: #1a2c23;
  --moss: #24392e;
  --limestone: #ece4d2;
  --lichen: #a9b6a2;
  --brass: #c9a25b;
  --brass-hi: #e7cc8f;
  --occupied: #a8361f;
  --line: rgba(236, 228, 210, .14);
  --serif: 'Gloock', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.42, .5, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --lock: clamp(150px, 12.6vw, 190px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--tile);
  color: var(--limestone);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brass); color: var(--tile); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  padding: 12px 16px; border-radius: 10px;
  background: var(--limestone); color: var(--tile); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.label { font-size: .8125rem; font-weight: 600; letter-spacing: .01em; color: var(--lichen); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.wordmark {
  font-family: var(--serif); font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1;
  letter-spacing: -.005em; color: var(--limestone); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--brass); }
nav { display: flex; gap: clamp(20px, 3vw, 40px); }
nav a, .text-link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
nav a { font-size: .9375rem; color: var(--lichen); padding: 6px 0; }
nav a:hover { color: var(--limestone); background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy stage" "controls stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 7vw, 120px);
  padding: clamp(8px, 2vh, 32px) var(--gutter) clamp(72px, 10vh, 120px);
  scroll-margin-top: 0;
}
/* faint grout lines: the room is tiled */
.hero::before {
  content: ''; position: absolute; inset: -90px 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236, 228, 210, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 228, 210, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: calc(50% + 38px) 0;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 72% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 70% at 72% 45%, #000 10%, transparent 72%);
}
.hero-copy { grid-area: copy; align-self: end; padding-top: clamp(24px, 9vh, 120px); }
.hero h1 { font-size: clamp(2.875rem, 6.1vw, 6rem); line-height: .98; letter-spacing: -.012em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: block; }
.lede { margin-top: 26px; max-width: 30em; font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); color: var(--lichen); }

.hero-controls { grid-area: controls; max-width: 470px; padding-top: 40px; }

/* sound picker */
.picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 10px; }
.picker-track {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 20px;
  background: rgba(236, 228, 210, .05); border: 1px solid var(--line);
}
.pick {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px 15px; border-radius: 15px; cursor: pointer;
  color: var(--lichen); transition: color .35s;
}
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick-name { font-weight: 600; font-size: 1rem; color: var(--limestone); }
.pick-desc { font-size: .84375rem; line-height: 1.35; }
.pick:has(input:checked) { color: var(--limestone); }
.pick:has(input:focus-visible) { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.picker-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 15px; background: var(--moss);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 91, .6), 0 10px 26px -14px rgba(0, 0, 0, .8);
  transition: transform .6s var(--spring);
}
.picker-track:has(input[value="pink"]:checked) .picker-thumb { transform: translateX(100%); }

/* volume */
.volume { margin-top: 28px; }
.volume-head { display: flex; justify-content: space-between; align-items: baseline; }
.volume output { font-size: .8125rem; color: var(--lichen); font-variant-numeric: tabular-nums; }
input[type=range] {
  --fill: 60%;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 32px; margin: 4px 0 0; background: transparent; cursor: pointer;
}
input[type=range]:focus-visible { outline: none; }
input[type=range]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, var(--brass) var(--fill), rgba(236, 228, 210, .18) var(--fill));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f6e2b0, var(--brass) 55%, #85642c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  transition: transform .25s var(--spring);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--limestone); outline-offset: 3px; }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(236, 228, 210, .18); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--brass); }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f6e2b0, var(--brass) 55%, #85642c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
}
input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--limestone); outline-offset: 3px; }
.device-note { margin-top: 26px; font-size: .9375rem; color: var(--lichen); }

.fine { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--lichen); }

/* stage: the door */
.hero-stage {
  grid-area: stage; justify-self: center; align-self: center;
  width: min(100%, 470px, calc((100vh - 290px) * .75));
  width: min(100%, 470px, calc((100svh - 290px) * .75));
  min-width: 300px;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 28px;
}
.door { position: relative; width: 100%; }
.door::before {
  content: ''; position: absolute; inset: -15px -15px 0; pointer-events: none;
  border: 1px solid rgba(201, 162, 91, .42); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.door::after {
  content: ''; position: absolute; left: -64px; right: -64px; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(201, 162, 91, .5) 22%, rgba(201, 162, 91, .5) 78%, transparent);
}
.arch {
  position: relative; aspect-ratio: 3 / 4; background: var(--moss);
  clip-path: inset(0 0 0 0 round 999px 999px 0 0);
}
.arch::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(21, 36, 29, .6), transparent 34%);
}
.arch-pan {
  position: absolute; inset: 0;
  animation: drift 42s ease-in-out infinite alternate paused;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
body.is-playing .arch-pan { animation-play-state: running; }
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate3d(-2.2%, -1.6%, 0); }
}

/* the lock (play control) */
.lock-wrap {
  position: absolute; z-index: 3; left: 50%;
  width: var(--lock); height: var(--lock);
  bottom: calc(var(--lock) / -2); margin-left: calc(var(--lock) / -2);
}
.lock {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: 50%; background: none; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lock:focus-visible { outline: 2px solid var(--limestone); outline-offset: 7px; border-radius: 50%; }
.lock-svg {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .5)) drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
  transition: transform .2s var(--ease);
}
.lock:active .lock-svg { transform: scale(.96); }
.lock-word { font: 700 13.5px/1 var(--sans); font-stretch: 78%; letter-spacing: .15em; fill: #f2ead8; text-rendering: geometricPrecision; }
.lock-mark { font: 600 7.4px/1 var(--sans); font-stretch: 85%; letter-spacing: .32em; fill: #5e4419; text-rendering: geometricPrecision; }
.lock-mark-hi { fill: #fbe9bd; opacity: .55; transform: translateY(.7px); }
.lock-disc, .lock-knob, .lock-ring { transform-box: view-box; transform-origin: 100px 100px; }
.lock-disc { transition: transform .85s var(--spring); }
.lock-knob { transition: transform .7s var(--spring); }
.lock.is-on .lock-disc { transform: rotate(180deg); }
.lock.is-on .lock-knob { transform: rotate(90deg); }
.lock.is-loading .lock-knob { transform: rotate(42deg); }
.lock-ring { opacity: 0; transition: opacity .3s; }
.lock.is-loading .lock-ring { opacity: 1; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ripples { position: absolute; inset: 7%; pointer-events: none; }
.ripples i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(231, 204, 143, .6); opacity: 0; }
body.is-playing .ripples i { animation: ripple 5.4s cubic-bezier(.15, .55, .35, 1) infinite; }
body.is-playing .ripples i:nth-child(2) { animation-delay: 1.8s; }
body.is-playing .ripples i:nth-child(3) { animation-delay: 3.6s; }
@keyframes ripple {
  0% { transform: scale(1); opacity: .65; }
  100% { transform: scale(2.7); opacity: 0; }
}
/* a gentle nudge until the first press */
.lock-wrap::before {
  content: ''; position: absolute; inset: 5%; border-radius: 50%; pointer-events: none;
}
.js:not(.touched) .lock-wrap::before { animation: invite 3s ease-in-out 2.4s infinite; }
@keyframes invite {
  0% { box-shadow: 0 0 0 0 rgba(231, 204, 143, .4); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(231, 204, 143, 0); }
}

.lock-status { position: relative; z-index: 4; margin-top: calc(var(--lock) / 2 + 18px); min-height: 70px; text-align: center; }
.status { font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; }
.status-sub { margin-top: 4px; font-size: .875rem; color: var(--lichen); }
.error { margin: 12px auto 0; max-width: 34ch; font-size: .875rem; color: #f2ab94; }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 12vw, 168px) var(--gutter); }
.section h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.01em; }

.tap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 104px); align-items: center;
  background: var(--tile-2);
  border-top: 1px solid rgba(236, 228, 210, .06);
}
.tap-art { position: relative; overflow: hidden; aspect-ratio: 3 / 2; justify-self: stretch; margin-left: calc(var(--gutter) * -1); background: var(--moss); }
.tap-pan { position: absolute; inset: -5% 0; }
.tap-pan img { width: 100%; height: 100%; object-fit: cover; }
.tap-copy { max-width: 33em; }
.tap-copy h2 { max-width: 12ch; }
.tap-copy p { margin-top: 20px; color: var(--lichen); }
.tap-copy h2 + p { margin-top: 30px; }
.text-link {
  display: inline-block; margin-top: 32px; padding-bottom: 5px;
  font-weight: 600; color: var(--brass-hi);
  background-size: 100% 1px;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

.how h2 { margin-bottom: clamp(44px, 6vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 72px); }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li::before {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--brass); transform-origin: left; transform: scaleX(0);
  transition: transform 1.3s var(--ease) var(--d, 0s);
}
.steps li.is-in::before, html:not(.js) .steps li::before { transform: scaleX(1); }
.step-n { display: block; margin-bottom: 30px; font-family: var(--serif); font-size: clamp(3.5rem, 5.6vw, 5.25rem); line-height: .9; color: var(--brass); }
.steps h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.steps p { color: var(--lichen); max-width: 30em; }

.questions {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 104px); align-items: start;
  border-top: 1px solid var(--line);
}
.questions h2 { position: sticky; top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.25;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass-hi); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px;
  background: var(--brass); border-radius: 2px; transition: transform .5s var(--spring);
}
.faq-mark::after { transform: rotate(90deg); }
details[open] .faq-mark::after { transform: rotate(0deg); }
.faq-answer { padding: 0 0 28px; max-width: 38em; color: var(--lichen); }
details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .55s var(--ease), content-visibility .55s allow-discrete;
}
details[open]::details-content { block-size: auto; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px;
  padding: 56px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.signoff { font-family: var(--serif); font-size: clamp(1.375rem, 2.2vw, 2rem); }
.small { font-size: .875rem; color: var(--lichen); }

/* ---------- Mini player ---------- */
.mini {
  position: fixed; z-index: 30; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 18px; border-radius: 999px;
  background: var(--limestone); color: var(--tile);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .7);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  transform: translate(-50%, 170%); visibility: hidden;
  transition: transform .6s var(--spring), visibility 0s linear .6s;
}
.mini.is-shown { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--spring), visibility 0s; }
.mini-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--occupied); animation: dot 2.2s ease-in-out infinite; }
@keyframes dot { 50% { opacity: .35; } }
.mini-link { color: #4b5a4f; font-weight: 500; text-underline-offset: 3px; }
.mini-stop {
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--tile); color: var(--limestone); font-weight: 600; cursor: pointer;
  transition: background .3s;
}
.mini-stop:hover { background: var(--moss); }
.mini :focus-visible { outline-color: var(--tile); }

.no-script { padding: 20px var(--gutter); text-align: center; }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .site-header { animation: fade 1s var(--ease) both; }
  .js .hero h1 .line > span { animation: rise 1.15s var(--ease) .05s both; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: .17s; }
  .js .lede { animation: up 1s var(--ease) .4s both; }
  .js .hero-controls { animation: up 1s var(--ease) .55s both; }
  .js .arch { animation: arch-in 1.7s var(--ease) .1s both; }
  .js .arch img { animation: settle 2.6s var(--ease) .1s both; }
  .js .door::before, .js .door::after { animation: fade 1.4s var(--ease) .8s both; }
  .js .lock-wrap { animation: lock-in 1.1s var(--spring) .95s both; }
  .js .lock-status { animation: fade 1s var(--ease) 1.25s both; }

  .js [data-reveal="up"] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
  }
  .js [data-reveal="up"].is-in { opacity: 1; transform: none; }
  .js [data-reveal="step"] .step-n, .js [data-reveal="step"] h3, .js [data-reveal="step"] p {
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s var(--ease) calc(var(--d, 0s) + .15s), transform .9s var(--ease) calc(var(--d, 0s) + .15s);
  }
  .js [data-reveal="step"].is-in .step-n, .js [data-reveal="step"].is-in h3, .js [data-reveal="step"].is-in p { opacity: 1; transform: none; }
  /* clip the image, not the observed figure, so the observer can still see it */
  .js [data-reveal="wipe"] img { clip-path: inset(0 100% 0 0); transform: scale(1.16); transition: clip-path 1.5s var(--ease), transform 2.4s var(--ease); }
  .js [data-reveal="wipe"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1.02); }

  @supports (animation-timeline: view()) {
    .tap-pan { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes parallax {
      from { transform: translateY(-4%); }
      to { transform: translateY(4%); }
    }
  }
}
@keyframes rise { from { transform: translateY(108%); } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes arch-in {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
  to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
}
@keyframes settle { from { transform: scale(1.2); } }
@keyframes lock-in { from { opacity: 0; transform: scale(.55) rotate(-100deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripples, .lock-wrap::before { display: none; }
  .arch-pan, .mini-dot { animation: none; }
  .lock-disc, .lock-knob, .picker-thumb, .mini, .steps li::before, details::details-content { transition-duration: .01ms; }
  .lock.is-loading .lock-ring { animation: none; stroke-dasharray: none; opacity: .5; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stage" "controls";
    grid-template-rows: auto;
    padding-top: 4px;
  }
  .hero::before { inset: -90px 0 0; -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 48%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 90% 45% at 50% 48%, #000 10%, transparent 75%); }
  .hero-copy { padding-top: 6px; }
  .lede { margin-top: 16px; }
  .hero-stage { width: min(80%, 380px); min-width: 0; padding-top: 40px; }
  .arch { aspect-ratio: 5 / 6; }
  .hero-controls { max-width: 560px; width: 100%; justify-self: center; padding-top: 18px; }
  .tap { grid-template-columns: minmax(0, 1fr); }
  .tap-art { margin-right: calc(var(--gutter) * -1); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .questions { grid-template-columns: minmax(0, 1fr); }
  .questions h2 { position: static; }
}
@media (max-width: 560px) {
  nav { display: none; }
  .site-header { padding-top: 18px; padding-bottom: 14px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
  .lede { font-size: 1rem; }
  .pick { padding: 12px 13px 13px; }
  .door::after { left: -32px; right: -32px; }
  .site-footer { flex-direction: column; gap: 10px; }
}

/* ---------- Footer links, header current page ---------- */
.footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; font-size: .875rem; color: var(--lichen); }
.footer-links a { color: var(--lichen); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.footer-links a:hover { color: var(--limestone); background-size: 100% 1px; }
nav a[aria-current="page"] { color: var(--limestone); background-size: 100% 1px; }
.faq-more { margin-top: 28px; color: var(--lichen); }
.faq-more a, .error a { color: var(--brass-hi); text-underline-offset: 3px; }

/* ---------- Inner pages ---------- */
.page { padding: clamp(32px, 7vh, 88px) var(--gutter) clamp(84px, 12vw, 160px); min-height: 60vh; }
.page h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1; letter-spacing: -.012em; }
.simple-page { display: grid; align-content: center; min-height: 62vh; }
.simple-page .text-link { margin-top: 28px; }

.contact-page { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.page-intro { position: sticky; top: 40px; }
.side-note { margin-top: 26px; padding-left: 18px; border-left: 2px solid var(--brass); max-width: 28em; font-size: .9375rem; color: var(--lichen); }
.form-wrap { max-width: 640px; width: 100%; }

.contact-form { display: grid; gap: 24px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label { font-size: .9375rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--lichen); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--limestone);
  background: rgba(236, 228, 210, .05); border: 1px solid rgba(236, 228, 210, .22); border-radius: 12px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 176px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(236, 228, 210, .38); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); background-color: rgba(236, 228, 210, .08);
  box-shadow: 0 0 0 3px rgba(201, 162, 91, .28);
}
.field [aria-invalid="true"] { border-color: #f2ab94; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(242, 171, 148, .25); }
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--limestone); caret-color: var(--limestone);
  box-shadow: 0 0 0 100px #213429 inset; transition: background-color 9999s;
}
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer; }
.select select option { background: var(--tile); color: var(--limestone); }
.select::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
}
.hint { font-size: .875rem; color: var(--lichen); }
.field-error { font-size: .875rem; color: #f2ab94; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 4px; }
.form-note { flex: 1 1 220px; font-size: .875rem; color: var(--lichen); }
.form-note a { color: var(--brass-hi); text-underline-offset: 3px; }
.form-status { font-size: .9375rem; color: #f2ab94; }
.button {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px;
  min-height: 54px; padding: 16px 32px; cursor: pointer;
  background: var(--brass); color: var(--tile); font: 650 1rem/1 var(--sans);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8);
  transition: background-color .3s, transform .2s var(--ease);
}
.button:hover { background: var(--brass-hi); }
.button:active { transform: scale(.98); }
.button:focus-visible { outline: 2px solid var(--limestone); outline-offset: 4px; }
.button[aria-busy="true"] { cursor: progress; opacity: .75; }
.form-done { padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(201, 162, 91, .45); border-radius: 22px; background: rgba(236, 228, 210, .04); }
.form-done:focus { outline: none; }
.form-done h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-bottom: 14px; }
.form-done p { color: var(--lichen); }
.form-done strong { color: var(--limestone); font-weight: 600; word-break: break-all; }

/* privacy policy */
.prose { max-width: 44rem; margin: 0 auto; }
.prose .meta { margin-top: 14px; font-size: .9375rem; color: var(--lichen); }
.prose > p, .prose li, .prose td { color: rgba(236, 228, 210, .86); }
.prose .lede { color: var(--lichen); }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.15; margin: 64px 0 16px; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin: 32px 0 8px; }
.prose p + p { margin-top: 16px; }
.prose ul { margin: 16px 0; padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brass); }
.prose a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { font-size: .875em; color: var(--brass-hi); }
.summary { margin-top: 36px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(236, 228, 210, .035); }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0 20px; }
.prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 12px 18px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--limestone); }

.opt-out {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 8px 0 20px; padding: 22px 24px;
  border: 1px solid rgba(201, 162, 91, .45); border-radius: 18px; background: rgba(236, 228, 210, .04);
}
html:not(.js) .opt-out { display: none; }
.opt-out-title { font-weight: 600; }
.opt-out-state { margin-top: 4px; font-size: .9375rem; color: var(--lichen); }
.switch {
  position: relative; flex: none; width: 60px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid rgba(236, 228, 210, .28); border-radius: 999px; background: rgba(236, 228, 210, .1);
  transition: background-color .3s, border-color .3s;
}
.switch[aria-checked="true"] { background: var(--brass); border-color: var(--brass); }
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--limestone); box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  transition: transform .5s var(--spring), background-color .3s;
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(26px); background: var(--tile); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--limestone); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .js .page-anim { animation: up 1s var(--ease) var(--d, .05s) both; }
}
@media (prefers-reduced-motion: reduce) {
  .switch-knob { transition-duration: .01ms; }
}
@media (max-width: 899px) {
  .contact-page { grid-template-columns: minmax(0, 1fr); }
  .page-intro { position: static; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .opt-out { padding: 18px; }
  .button { width: 100%; }
}

/* /contact/?check status */
.form-check { margin-top: 24px; padding: 16px 18px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; }
.form-check.is-ok { background: rgba(47, 107, 69, .35); border: 1px solid #4f8a5b; }
.form-check.is-bad { background: rgba(168, 54, 31, .3); border: 1px solid #c4553b; }

/* contact form, plain HTML version */
.contact-form p.field { margin: 0; }
.field .hint { display: block; }
.field :user-invalid { border-color: #f2ab94; }
.contact-form + .form-note { margin-top: 18px; }

/* ---------- Mailing list ---------- */
.newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 104px); align-items: center;
  background: var(--tile-2); border-top: 1px solid rgba(236, 228, 210, .06);
}
.newsletter-copy h2 { max-width: 11ch; }
.newsletter-copy .lede { margin-top: 26px; max-width: 32em; }
.newsletter-panel {
  padding: clamp(24px, 3.2vw, 40px); border-radius: 24px;
  border: 1px solid rgba(201, 162, 91, .42); background: rgba(21, 36, 29, .55);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.newsletter-form { display: grid; gap: 22px; }
.newsletter-form p.field { margin: 0; }
.check { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.check label { font-size: .9375rem; line-height: 1.5; color: rgba(236, 228, 210, .88); cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 22px; height: 22px; margin: 1px 0 0; display: grid; place-content: center; cursor: pointer;
  border: 1px solid rgba(236, 228, 210, .38); border-radius: 6px; background: rgba(236, 228, 210, .05);
  transition: background-color .25s, border-color .25s;
}
.check input::before {
  content: ''; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2px solid var(--tile); border-bottom: 2px solid var(--tile);
  transform: rotate(-45deg) scale(0); transition: transform .35s var(--spring);
}
.check input:checked { background: var(--brass); border-color: var(--brass); }
.check input:checked::before { transform: rotate(-45deg) scale(1); }
.check input:hover { border-color: rgba(236, 228, 210, .6); }
.check input:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.check input:user-invalid { border-color: #f2ab94; }
.newsletter-form .form-actions { margin: 2px 0 0; }
.fine-print { margin-top: 20px; font-size: .8125rem; line-height: 1.6; color: var(--lichen); }
.fine-print a, .side-note a { color: var(--brass-hi); text-underline-offset: 3px; }
.simple-page .side-note { margin-top: 22px; }
@media (max-width: 899px) {
  .newsletter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .newsletter-panel { padding: 22px 18px; border-radius: 20px; }
}
