/* /confirm and /unsubscribe (links in the Early Access emails): the landing's look, kept small.
   Fonts are the landing's self-hosted files (styles.css is not loaded here). */
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}
:root {
  --forest: #123d2d;
  --forest-deep: #0a2d21;
  --sage-pale: #f2f7f3;
  --sage-line: #cddfd3;
  --muted: #5a6d64;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(115deg, rgba(241, 247, 242, 0.94) 0%, rgba(251, 250, 246, 0) 48%), #fbfaf6;
  color: var(--forest);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--forest); }
:where(a, button):focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.site-header {
  display: flex;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--forest);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.token-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px calc(48px + env(safe-area-inset-bottom));
}
.token-page .hl-wl {
  --hl-wl-primary: var(--forest);
  --hl-wl-primary-hover: var(--forest-deep);
  --hl-wl-border: var(--sage-line);
  --hl-wl-text: var(--forest-deep);
  --hl-wl-text-2: var(--muted);
  --hl-wl-radius: 14px;
  --hl-wl-font: "Manrope", system-ui, sans-serif;
}
.token-page .hl-wl-title {
  font-family: "DM Serif Display", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Legal pages (/privacy, /terms; rendered from legal/*.md by legal.mjs). Text as written: no
   text-transform, the ALL-CAPS sections stay as they are. */
.legal-body {
  display: flex;
  flex-direction: column;
}
.legal-body > .site-header {
  width: 100%;
}
.legal-page {
  flex: 1;
  width: 100%;
  max-width: 712px; /* 680px of text + the 16px gutters */
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.legal-doc {
  color: var(--forest-deep);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.legal-doc h1 {
  margin: 8px 0 12px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.legal-doc h1 + p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}
.legal-doc h2 {
  margin: 40px 0 10px;
  scroll-margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.legal-doc p,
.legal-doc ul {
  margin: 0 0 14px;
}
.legal-doc ul {
  padding-left: 22px;
}
.legal-doc li {
  margin-bottom: 8px;
  padding-left: 2px;
}
.legal-doc li::marker {
  color: var(--muted);
}
.legal-doc strong {
  font-weight: 700;
}
.legal-doc code {
  padding: 1px 5px;
  border: 1px solid var(--sage-line);
  border-radius: 5px;
  background: var(--sage-pale);
  font-size: 0.9em;
}
.legal-doc a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Footer: the landing's footer (styles.css → "Footer"), repeated here because pages.css pages
   don't load styles.css. Keep the two in step. */
.site-footer {
  padding: 56px max(32px, calc((100vw - 1180px) / 2)) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c2d0c9;
  background: var(--forest-deep);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer p {
  margin: 0;
}
.site-footer :where(a, button):focus-visible {
  outline-color: #c6a769;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer .brand {
  color: white;
  font-size: 19px;
}
.site-footer .footer-tagline {
  margin-top: 10px;
  color: #dbe6e0;
  font-family: "DM Serif Display", serif;
  font-size: 20px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: white;
  font-weight: 600;
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-fine {
  display: grid;
  margin-top: 36px;
  padding-top: 24px;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3c4bb;
  font-size: 12px;
}
.footer-fine .footer-legal {
  color: #dbe6e0;
  font-size: 13px;
}
@media (max-width: 560px) {
  .site-footer {
    padding: 44px 16px calc(32px + env(safe-area-inset-bottom));
  }
}
