/* Landing — same ground as the dashboard's generic ("shared") pages: fd-a11 tokens, hex lattice,
   teal/amber washes, signal line, spine on the header. Self-contained (no dashboard CSS import). */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --fd-bg: #0a0c11;
  --fd-surface: #10131a;
  --fd-surface-2: #161a23;
  --fd-border: #262d3a;
  --fd-border-soft: #1b202a;
  --fd-text: #eceae4;
  --fd-text-soft: #cfcbc3;
  --fd-muted: #a9a59c;
  --fd-dim: #7f7b73;
  --fd-accent: #f0b64c;
  --fd-accent-ink: #1a1305;
  --fd-accent-tint: #f0b64c1a;
  --fd-signal: #6fe3d0;
  --fd-signal-tint: #6fe3d01a;
  --fd-link: #7fdcf2;
  --fd-font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --fd-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --fd-display: "Instrument Serif", Georgia, serif;
  --hex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='97'><path d='M28 0L56 16.17V48.5L28 64.67 0 48.5V16.17ZM28 64.67V97' fill='none' stroke='white' stroke-opacity='.075' stroke-width='1'/></svg>");
  --hex-strong: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='97'><path d='M28 0L56 16.17V48.5L28 64.67 0 48.5V16.17ZM28 64.67V97' fill='none' stroke='white' stroke-opacity='.16' stroke-width='1'/></svg>");
}

html { background: var(--fd-bg); }

body {
  margin: 0;
  display: flow-root;
  min-height: 100vh;
  padding: 0 1.25rem;
  box-sizing: border-box;
  color: var(--fd-text);
  font-family: var(--fd-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--fd-bg);
  background-image:
    radial-gradient(1200px 640px at 18% -12%, rgba(111,227,208,.13), transparent 62%),
    radial-gradient(1000px 560px at 92% -4%, rgba(240,182,76,.12), transparent 62%),
    var(--hex);
  background-size: auto, auto, 56px 97px;
  background-attachment: fixed, fixed, fixed;
}

/* the brighter lattice fading in from the top, as on the dashboard's shared pages */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto 0;
  height: 640px;
  background-image: var(--hex-strong);
  background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
}

/* signal line across the top, teal to amber */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--fd-signal) 30%, var(--fd-accent) 70%, transparent 100%);
}

main {
  position: relative;
  max-width: 38rem;
  margin: 14vh auto 10vh;
  padding: .4rem 1.5rem 1.5rem 1.6rem;
}

/* the dashboard's page-header spine */
main::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem; bottom: 1.5rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--fd-signal), var(--fd-accent));
}

.mark {
  margin: 0 0 .9rem;
  font: 600 .7rem var(--fd-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fd-dim);
}

h1 {
  margin: 0 0 1.1rem;
  font: 400 clamp(2.4rem, 6vw, 3.2rem)/1.05 var(--fd-display);
  letter-spacing: .005em;
  color: var(--fd-text);
}

p {
  margin: 0 0 1rem;
  color: var(--fd-muted);
}

.lede {
  font-size: 1.08rem;
  color: var(--fd-text-soft);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0 2.5rem;
}

nav a {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--fd-border);
  border-radius: 6px;
  background: var(--fd-surface);
  color: var(--fd-text);
  font: 600 .85rem var(--fd-font);
  text-decoration: none;
  transition: background .12s, border-color .12s;
}

nav a:first-child {
  background: var(--fd-accent);
  border-color: var(--fd-accent);
  color: var(--fd-accent-ink);
}

nav a:hover { background: var(--fd-surface-2); border-color: var(--fd-link); }
nav a:first-child:hover { background: #f5c46a; border-color: #f5c46a; }
nav a:focus-visible { outline: 2px solid var(--fd-accent); outline-offset: 2px; }

.note {
  font: 500 .72rem var(--fd-mono);
  letter-spacing: .02em;
  color: var(--fd-dim);
}

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}
