*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 6.5rem; }
body {
  margin: 0; min-width: 0; color: var(--foreground); font: 1rem/1.6 var(--font-body);
  background: radial-gradient(ellipse 55rem 38rem at 50% 8rem, #262423, transparent), var(--background);
}
[hidden] { display: none !important; }
.site { isolation: isolate; min-height: 100svh; }
main, .site-header, .site-footer { position: relative; z-index: 1; }
main { min-height: 65svh; }
a { color: var(--primary); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 4px;
}
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6.5vw, 5rem); letter-spacing: -.052em; color: var(--primary); }
h2 { font-size: clamp(1.65rem, 4vw, 2.8rem); letter-spacing: -.035em; color: var(--primary); }
h3 { font-size: clamp(1.1rem, 2vw, 1.36rem); letter-spacing: -.016em; }
p { color: var(--muted-foreground); }
.shell { width: min(calc(100% - 2rem), var(--shell-width)); margin-inline: auto; }
.measure { max-width: 59ch; margin-inline: auto; text-wrap: balance; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #10100f; border-bottom: 1px solid #e5bc8226;
}
.site-header > .shell, .site-footer > .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header > .shell { min-height: 4.75rem; }
.brand, nav a { color: var(--foreground); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; letter-spacing: -.03em; font-size: 1.2rem; white-space: nowrap; }
.brand img { width: 2.15rem; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: clamp(.7rem, 2vw, 1.5rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: var(--muted-foreground); }
nav a:hover, nav a[aria-current="page"] { color: var(--primary); }
.site-footer { background: #10100ff2; border-top: 1px solid #e5bc8226; padding: 1.1rem 0 max(1.1rem, env(safe-area-inset-bottom, 0px)); }
.site-footer nav { column-gap: .9rem; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 30; padding: .55rem .9rem; background: var(--primary); color: var(--primary-foreground); transform: translateY(-160%); }
.skip:focus { transform: none; }
.network { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; }
.hero { display: grid; justify-items: center; align-content: center; gap: 1.25rem; text-align: center; padding-block: clamp(2.75rem, 9svh, 6.5rem); }
.hero h1::after { display: block; content: ""; width: 7rem; height: 1px; margin: 1.35rem auto 0; background: linear-gradient(90deg, transparent, var(--champagne-edge), transparent); }
.hero .mark { width: clamp(5rem, 15vw, 8.5rem); filter: drop-shadow(0 12px 20px #000c); }
.hero.home { min-height: min(43rem, 76svh); }
.hero .measure { font-size: clamp(1rem, 2vw, 1.2rem); }
.section { padding-block-end: clamp(2.6rem, 6vw, 5.25rem); display: grid; gap: var(--card-gap); }
.section > header { display: grid; gap: .65rem; text-align: center; margin-block-end: .35rem; }
.surface {
  min-width: 0; padding: var(--card-padding); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--card-surface); box-shadow: var(--raised-shadow);
}
.surface > :is(h2, h3) { text-align: center; }
.surface.stack > p { text-align: center; }
.surface.stack > .action { justify-self: center; }
.grid { display: grid; align-items: stretch; gap: var(--card-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; align-content: start; gap: 1rem; }
.center { text-align: center; justify-items: center; align-content: center; }
.feature { display: grid; align-content: center; justify-items: center; text-align: center; gap: 1rem; min-height: 13rem; }
.feature p { max-width: 33ch; text-wrap: balance; }
.card-heading { display: grid; justify-items: center; gap: .85rem; text-align: center; }
.icon-tile {
  inline-size: 3.35rem; aspect-ratio: 1; display: grid; place-items: center; color: var(--primary);
  border: 1px solid var(--warm-border); border-radius: var(--radius); background: var(--card-surface); box-shadow: var(--raised-shadow);
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .85rem; }
.action {
  min-height: 3.1rem; min-width: min(11.5rem, 100%); max-width: 100%; padding: .6rem .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; color: var(--foreground);
  text-align: center; font-weight: 710; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--raised-surface); border: 1px solid var(--warm-border); border-radius: 5px; box-shadow: var(--raised-shadow);
}
.action.primary { color: var(--primary-foreground); background: var(--champagne-finish); border-color: var(--champagne-edge); box-shadow: inset 0 1px 0 #fff6e4, 0 3px 0 #6a492f, 0 6px 12px #0009; }
.action.primary:hover { background: var(--champagne-hover); }
.action:not(.primary):hover { color: var(--primary); }
.action:active { transform: translateY(1px); }
.action:disabled { opacity: .55; cursor: default; }
.prose { max-width: 48rem; margin-inline: auto; display: grid; align-content: start; gap: 1.25rem; }
.prose h2 { font-size: 1.55rem; }
.prose ul, .prose ol { margin: 0; padding-inline-start: 1.5rem; }
.prose li + li { margin-top: .55rem; }
form label { display: grid; gap: .45rem; color: var(--foreground); font-weight: 650; }
form :is(input, textarea, select) {
  width: 100%; min-width: 0; min-height: 3rem; border: 1px solid var(--warm-border); border-radius: 7px;
  background: linear-gradient(155deg, #131210, #1b1916); box-shadow: var(--recessed-shadow); color: var(--foreground); padding: .65rem .8rem;
}
textarea { resize: vertical; }
form output { display: block; color: var(--primary); }
form output:empty { display: none; }
form output[data-error] { color: var(--error); }
.callout { padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--recessed-surface); font-size: .94rem; }
@media (max-width: 760px) {
  html { scroll-padding-block-start: 7rem; }
  .site-header > .shell { flex-direction: column; min-height: 0; gap: .25rem; padding-block: .55rem .35rem; }
  .site-header .header-action { display: none; }
  .site-footer > .shell { flex-direction: column; }
  :is(.site-header, .site-footer) .brand {
    justify-content: center; max-inline-size: 100%; white-space: normal; text-align: center;
    font-size: clamp(.9rem, 3.65vw, 1.15rem); line-height: 1.25; overflow-wrap: anywhere;
  }
  .brand img { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .action { min-height: 3rem; }
  .hero .actions { display: grid; width: min(100%, 23rem); }
  .hero .action { width: 100%; }
  .feature { min-height: 11.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .action:active { transform: none; } }
