:root{
  --bg: #0b0b0c;
  --panel: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.62);
  --line: rgba(255,255,255,.14);
  --accent: rgba(255,255,255,.92);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,255,255,.06), transparent 55%),
              radial-gradient(900px 600px at 90% 30%, rgba(255,255,255,.05), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .9; }

.skip{
  position:absolute; left:-999px; top: 8px;
}
.skip:focus{
  left: 12px; padding: 10px 12px;
  background: #fff; color: #000; border-radius: 10px;
}

.header{
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: rgba(11,11,12,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.logo{ display:flex; align-items:center; gap: 12px; }
.logo-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-weight: 500;
}
.logo-type{
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: .2px;
}
.logo-type em{ font-style: italic; opacity: .85; }

.nav{ display:flex; align-items:center; gap: 14px; }
.nav a{ color: var(--muted); padding: 8px 10px; border-radius: 12px; }
.nav a:hover{ background: rgba(255,255,255,.06); color: var(--text); }

.button{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  box-shadow: var(--shadow);
  color: var(--accent);
}
.ghost{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: transparent;
}

main{ max-width: 1040px; margin: 0 auto; padding: 0 18px 40px; }

.hero{
  padding: 56px 0 18px;
}
.eyebrow{
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1{
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.02;
  margin: 10px 0 12px;
}
.thin{ font-weight: 200; opacity: .9; }
.serif{ font-family: "Instrument Serif", Georgia, serif; font-style: italic; }
.lede{ max-width: 62ch; color: var(--muted); font-size: 16px; }

.hero-actions{ display:flex; gap: 12px; margin-top: 18px; }
.meta{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.section{ padding: 46px 0; border-top: 1px solid var(--line); }
.section-head{ margin-bottom: 18px; }
.section-head h2{
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 6px;
}
.section-head p{ margin: 0; color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 4;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  min-height: 150px;
}
.card h3{ margin: 0 0 6px; font-weight: 500; }
.sub{ margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.excerpt{ margin: 0 0 12px; color: rgba(255,255,255,.78); }
.link{ color: var(--accent); border-bottom: 1px solid rgba(255,255,255,.25); }

.filters{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.chip.is-active{ color: var(--text); background: rgba(255,255,255,.08); }

.list{ display:flex; flex-direction: column; gap: 10px; }
.row{
  display:flex; align-items:center; justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 14px 14px;
}
.row h3{ margin: 0 0 4px; font-weight: 500; }
.row .sub{ margin: 0; }

.embed{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.embed iframe{
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.bullets{ margin: 8px 0 0; padding-left: 18px; color: rgba(255,255,255,.78); }
.prose{ max-width: 72ch; color: rgba(255,255,255,.78); }
.hint{ color: var(--muted); font-size: 12px; margin-top: 10px; }

.form{
  display:grid;
  gap: 12px;
  max-width: 560px;
}
label span{ display:block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: inherit;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.35); }

.footer{
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 18px 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer-links{ display:flex; gap: 14px; }
.footer a{ color: var(--muted); }

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px){
  .card{ grid-column: span 6; }
}
@media (max-width: 620px){
  .nav{ display:none; }
  .card{ grid-column: span 12; }
  .hero-actions{ flex-direction: column; align-items: flex-start; }
}
