:root {
  --bg: #090909;
  --panel: #111;
  --text: #f4f1eb;
  --muted: #aaa49a;
  --line: rgba(255,255,255,.14);
  --soft: rgba(255,255,255,.06);
  --accent: #d9d3c7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
}

a { color: inherit; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.page-shell {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  background: #050505 url('assets/hero.png') center center / cover no-repeat;
  filter: contrast(1.04) brightness(.82);
  transform: scale(1.01);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.22) 35%, rgba(0,0,0,.92));
}
.hero-content {
  position: absolute;
  inset: auto 28px 30px;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 9px;
  color: #d3cec4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}
h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 13vw, 82px);
  line-height: .94;
  letter-spacing: -.05em;
}
h1 span { color: #aaa49a; }
.tagline {
  max-width: 460px;
  margin: 18px 0 22px;
  color: #dedad2;
  font-size: 15px;
  line-height: 1.6;
}

.links { display: grid; gap: 10px; padding: 18px 0; }
.link-card {
  min-height: 90px;
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.32);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
}
.link-card.featured { background: #ece8df; color: #0c0c0c; }
.link-number { font-size: 10px; color: #8f8a82; letter-spacing: .15em; }
.link-copy { display: grid; gap: 6px; }
.link-copy strong { font-size: 13px; letter-spacing: .08em; }
.link-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.featured .link-copy small, .featured .link-number { color: #625e57; }
.arrow { font-size: 19px; text-align: right; }

.manifesto {
  padding: 54px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.quote {
  margin: 0 auto;
  max-width: 560px;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 6vw, 37px);
  line-height: 1.2;
}
.signature { margin: 22px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .18em; }

.tools { padding: 48px 0 26px; }
.section-heading h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 38px;
}
.section-heading > p:last-child { color: var(--muted); line-height: 1.65; font-size: 13px; }
code { color: #d8d2c7; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.tool-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--soft);
}
.tool-card strong { font-size: 13px; letter-spacing: .1em; }
.tool-card span { color: var(--muted); font-size: 12px; line-height: 1.45; }

footer {
  padding: 22px 2px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
button {
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  letter-spacing: .1em;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 16px;
  border-radius: 999px;
  color: #0c0c0c;
  background: #eee9df;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 100;
  font-size: 12px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .page-shell { padding: 10px 10px 38px; }
  .hero { min-height: 680px; border-radius: 20px; }
  .hero-content { inset: auto 22px 24px; }
  .tool-grid { grid-template-columns: 1fr; }
}
