:root {
  --bg: #f3eee4;
  --bg-deep: #e7dfd0;
  --surface: rgba(255, 250, 243, 0.78);
  --surface-solid: #fffaf3;
  --ink: #14131a;
  --muted: #5c564c;
  --faint: rgba(20, 19, 26, 0.1);
  --faint-strong: rgba(20, 19, 26, 0.16);
  --accent: #3a2a8f;
  --accent-hover: #2a1d6c;
  --gold: #8a4b12;
  --gold-soft: #c4893c;
  --shadow: 0 18px 40px rgba(20, 19, 26, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Big Caslon", "Book Antiqua", "URW Palladio L", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "SF Pro Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --lux: #b08a3a;
  --seeker: #5b45c4;
  --pt: #c4493a;
  --udder: #3d7a45;
  --pubby: #b56a1a;
  --cosmos: #2d6aa3;
  --reef: #1c8a7a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b10;
    --bg-deep: #12131a;
    --surface: rgba(18, 20, 28, 0.72);
    --surface-solid: #16171f;
    --ink: #f4efe6;
    --muted: #b0a99c;
    --faint: rgba(244, 239, 230, 0.1);
    --faint-strong: rgba(244, 239, 230, 0.16);
    --accent: #c4b6ff;
    --accent-hover: #ddd4ff;
    --gold: #e0b36a;
    --gold-soft: #f0d19a;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(700px 480px at 100% 8%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 58%),
    radial-gradient(900px 600px at 80% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  body::after { opacity: 0.18; mix-blend-mode: overlay; }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
.card:focus-visible,
.x-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--faint);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand:hover { color: inherit; }
.brand svg { width: 30px; height: 30px; display: block; flex: none; }

nav ul {
  display: flex;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
nav a:hover { color: var(--ink); }

.hero {
  padding: 3.4rem 0 3.1rem;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 650;
}
.kicker span:not(.dot) { min-width: 0; }
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.15rem, 11vw, 6.4rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 1.35rem;
}
h1 .ink {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--ink) 20%, var(--gold) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  h1 .ink {
    background: linear-gradient(120deg, var(--ink) 10%, var(--gold-soft) 160%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  margin: 0 0 1.6rem;
  line-height: 1.5;
}
.lede strong { color: var(--ink); font-weight: 620; }
    .lede { max-width: 44rem; }
    .byline { margin: -0.85rem 0 1.5rem; color: var(--muted); font-size: 0.98rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}
.btn:hover { color: var(--bg); background: var(--accent-hover); transform: translateY(-1px); }

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--faint-strong);
  background: var(--surface);
}
.x-link:hover { color: var(--ink); border-color: var(--accent); }
.x-link svg { width: 15px; height: 15px; }

.chains {
  margin: 1.7rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.chains a { font-weight: 600; }

.section { padding: 0 0 4.2rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--faint);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 1.15rem;
  padding: 1.2rem 1.2rem 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), border-color 0.2s ease, background 0.2s ease;
  min-height: 100%;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--faint-strong);
  color: inherit;
}
.card.static { cursor: default; }
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  flex: none;
}
.icon svg { width: 1.25rem; height: 1.25rem; display: block; }
.card.lux .icon { background: color-mix(in srgb, var(--lux) 18%, var(--surface-solid)); color: var(--lux); }
.card.seeker .icon { background: color-mix(in srgb, var(--seeker) 20%, var(--surface-solid)); color: var(--seeker); }
.card.pt .icon { background: color-mix(in srgb, var(--pt) 18%, var(--surface-solid)); color: var(--pt); }
.card.udder .icon { background: color-mix(in srgb, var(--udder) 20%, var(--surface-solid)); color: var(--udder); }
.card.pubby .icon { background: color-mix(in srgb, var(--pubby) 20%, var(--surface-solid)); color: var(--pubby); }
.card.cosmos .icon { background: color-mix(in srgb, var(--cosmos) 20%, var(--surface-solid)); color: var(--cosmos); }
    .card.reef .icon { background: color-mix(in srgb, var(--reef) 20%, var(--surface-solid)); color: var(--reef); }

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  white-space: nowrap;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.38rem;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0;
  line-height: 1.15;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}
.go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent);
}
.go svg { width: 14px; height: 14px; }
a.card:hover .go { color: var(--accent-hover); gap: 0.5rem; }
.go, a.card:hover .go { transition: gap 0.25s var(--ease), color 0.2s ease; }

.legal {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 1.35rem;
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
}
.legal p { margin: 0 0 1rem; color: var(--muted); }
.legal p:last-child { margin-bottom: 0; }
.legal strong { color: var(--ink); font-weight: 620; }
.facts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}
.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.2rem;
}
.facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  border: 1px dashed var(--faint-strong);
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  overflow-wrap: anywhere;
}
.terms { display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; }

footer {
  border-top: 1px solid var(--faint);
  padding: 1.25rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 639px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (min-width: 640px) {
  .hero { padding: 4.6rem 0 3.8rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .legal { padding: 1.7rem 1.7rem 1.55rem; }
}

@media (min-width: 960px) {
  .wrap { width: min(100% - 3rem, var(--max)); }
  .hero { padding: 5.4rem 0 4.4rem; }
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .go { transition: none; }
  a.card:hover, .btn:hover { transform: none; }
}

/* Legal / privacy documents */
.page-hero {
  padding: 2.8rem 0 1.2rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.7rem;
}
.lede-tight {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}
.prose {
  max-width: 42rem;
  padding: 0 0 3.6rem;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 1.85rem 0 0.55rem;
  line-height: 1.2;
}
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose .facts { margin: 0.4rem 0 1.15rem; }
@media (min-width: 640px) {
  .page-hero { padding: 3.6rem 0 1.4rem; }
}

.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
