/* ANON — the unmarked parcel, second pass.
   Dark slate-green ground, bone text, one brass accent.
   One screen by design: a 100dvh grid column whose row heights come from
   clamp()/vh, never from shrinking type. Short viewports scroll instead.
   Mobile first; wider layouts are added with min-width queries. */

:root {
  --ground: #18211e;
  --ground-2: #1f2b27;
  --ground-hi: #22302b;      /* lamp-lit centre of the vignette */
  --bone: #e9e6dd;
  --stone: #9aa199;
  --brass: #b9b072;
  --line: rgba(233, 230, 221, 0.14);
  --glow: rgba(185, 176, 114, 0.10);
  --grain: rgba(255, 255, 255, 0.025);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* one shared margin for bar, content and footer */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 82rem;

  /* spacing scale, viewport-aware so tall screens breathe and short ones don't clip */
  --s1: 0.5rem;
  --s2: clamp(0.75rem, 1.6vh, 1.25rem);
  --s3: clamp(1rem, 2.6vh, 2rem);
  --s4: clamp(1.5rem, 4vh, 3rem);

  --seal: clamp(7.5rem, 22vh, 20rem);   /* seal diameter; grows with viewport height */
}

/* Light variant for people who ask for it; same structure, warm paper ground. */
@media (prefers-color-scheme: light) {
  :root {
    --ground: #ebe8df;
    --ground-2: #e2ded3;
    --ground-hi: #f3f0e8;
    --bone: #1b2421;
    --stone: #545c56;
    --brass: #6f6a2a;
    --line: rgba(27, 36, 33, 0.18);
    --glow: rgba(111, 106, 42, 0.10);
    --grain: rgba(0, 0, 0, 0.03);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--ground);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* soft lamp-light high on the page, plus a faint paper grain */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0) 0, transparent 0),
    radial-gradient(var(--grain) 1px, transparent 1px),
    radial-gradient(120% 90% at 50% 30%, var(--ground-hi) 0%, var(--ground) 62%);
  background-size: auto, 3px 3px, auto;
  background-attachment: scroll, scroll, fixed;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--bone);
  color: var(--ground);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* ---------- the one-screen frame ---------- */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- bar ---------- */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  min-height: 3rem;
}
.brand {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.domain { color: var(--stone); font-size: 0.9375rem; letter-spacing: 0.02em; }

/* ---------- hero: text and seal, two halves on one axis ---------- */
.hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s2) 0;
  text-align: center;
}
.hero__text { max-width: 36rem; }

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.125rem, 8.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
.lede {
  color: var(--bone);
  opacity: 0.82;
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(1.0625rem, 1.2vw + 0.7rem, 1.375rem);
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- seal ---------- */
.hero__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  isolation: isolate;
}
.hero__seal::before {                 /* lamp-glow behind the seal, centred, never wider than the column */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, calc(var(--seal) * 1.7));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.seal {
  position: relative;
  width: var(--seal);
  height: auto;
  aspect-ratio: 1;
  color: var(--brass);
  overflow: visible;
}
.seal__edge { fill: none; stroke: var(--line); stroke-width: 1; }
.seal__edge--fine { stroke: var(--brass); stroke-width: 0.6; opacity: 0.55; }
.seal__edge--dash { stroke: var(--brass); stroke-dasharray: 1.5 4.5; opacity: 0.7; }
.seal__text {
  fill: var(--bone);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}
.seal__spin {
  transform-origin: 100px 100px;
  animation: turn 120s linear infinite;
}
.seal__mark {
  fill: var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: 64px;
}
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- points: an even row, hairline dividers ---------- */
.points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.point {
  padding: clamp(0.5rem, 1.4vh, 0.875rem) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.point:last-child { border-bottom: 0; }
.point h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  font-size: clamp(1.1875rem, 1.6vh + 0.9rem, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 0.25rem;
}
.point p {
  margin: 0;
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.4;
  max-width: 44ch;
}

/* ---------- contact: the email is the one action ---------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--s2) 0 0.25rem;
  border-top: 1px solid var(--line);
}
.mail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  min-height: 3.5rem;
  background: var(--ground-2);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.12s;
}
.mail:hover { border-color: var(--brass); background: var(--ground-hi); }
.mail:active { transform: scale(0.985); }
.mail__addr {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.5rem, 7vw, 2.125rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.mail__hint {
  color: var(--stone);
  font-size: 0.875rem;
  transition: color 0.25s;
}
.mail:hover .mail__hint { color: var(--brass); }
.mail.is-copied { border-color: var(--brass); }
.mail.is-copied .mail__hint { color: var(--brass); }

.mail-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--stone);
  font-size: 0.9375rem;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.mail-link:hover { color: var(--bone); text-decoration-color: var(--brass); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 0.875rem;
}
.foot__links {
  display: flex;
  align-items: center;
  gap: 0 clamp(0.875rem, 3.5vw, 1.75rem);
}
.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: calc(2.75rem - 1px);   /* 44px touch target; the 1px is the footer's own top border, so the footer stays 44px */
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
.foot__links a:hover {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.3em;
}
.foot__links a[aria-current="page"] { color: var(--bone); }
.foot__links .full { display: none; }              /* phones: short labels so the row stays on one line */
@media (min-width: 40rem) {
  .foot__links .full { display: inline; }
  .foot__links .short { display: none; }
}

/* ---------- document pages: terms, privacy, refunds ---------- */
.doc {
  width: 100%;
  max-width: 42rem;
  padding: var(--s4) 0;
}
.doc h1 {                              /* beats the hero-sized global h1 on specificity, in every media query */
  font-size: clamp(2rem, 2.4vw + 1.35rem, 3.25rem);
  margin: 0 0 0.5rem;
}
.doc .doc__meta {
  margin: 0 0 var(--s4);
  color: var(--stone);
  font-size: 0.9375rem;
}
.doc h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: var(--s4) 0 0.5rem;
}
.doc section p,
.doc section li {
  opacity: 0.86;
  line-height: 1.65;
  margin: 0 0 0.875rem;
}
.doc section ul { margin: 0 0 0.875rem; padding-left: 1.25rem; }
.doc li::marker { color: var(--brass); }
.doc a { text-decoration-color: var(--brass); text-underline-offset: 0.25em; }
.doc a:hover { color: var(--brass); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  background: var(--bone);
  color: var(--ground);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 20;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- one orchestrated entrance: the hero only ---------- */
.hero__text > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(2) { animation-delay: 0.12s; }
.hero__seal { animation: fade 1.4s 0.25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- tablet and up: two halves, three columns ---------- */
@media (min-width: 48rem) {
  body { font-size: 1.125rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: center;
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(2rem, 6vw, 6rem);
    padding: var(--s3) 0;
    text-align: left;
  }
  .hero__text { justify-self: start; max-width: 40rem; }
  .hero__seal { justify-self: center; }
  .lede { margin: 0; }
  h1 { font-size: clamp(2.5rem, 4.9vw + 0.35rem, 5.25rem); }
  :root { --seal: clamp(11rem, min(40vh, 34vw), 26rem); }

  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .point { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 0; }
  .point + .point {
    padding-left: var(--s4);
    border-left: 1px solid var(--line);
  }
  .point p { font-size: 1.0625rem; }

  /* contact: one centred unit on the page axis. The pill is the action; the mail-app link sits beneath it. */
  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: var(--s3) 0 var(--s1);
  }
  .mail {
    width: min(100%, 38rem);
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.7rem 1.75rem;
    border-radius: 999px;
  }
  .mail__addr { font-size: clamp(1.625rem, 2.2vw + 0.6rem, 2.5rem); }
  .mail__hint { font-size: 0.9375rem; }
  .mail-link { align-self: center; }
}

/* short landscape phones and squat windows: tighten, then let the page scroll */
@media (max-height: 44rem) and (min-width: 48rem) {
  :root { --seal: clamp(9rem, 34vh, 14rem); }
}

/* short portrait phones (e.g. 375x667): put each point on one row, heading left, sentence right,
   and keep the seal modest. Anything still too tall scrolls; nothing is hidden. */
@media (max-height: 46rem) and (max-width: 47.99rem) {
  :root { --seal: clamp(6.5rem, 20vh, 9rem); }
  .point { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: baseline; }
  .point h2 { margin: 0; font-size: 1.0625rem; }
  .point p { font-size: 0.875rem; }
  .mail { min-height: 3.25rem; padding: 0.5rem 1.25rem; }
  .mail__addr { font-size: 1.5rem; }
  .hero__text .lede { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
