:root {
  --navy: #0a1628;
  --deep: #06101c;
  --amber: #e8a645;
  --beam: #f0c078;
  --cool: #a8b4c4;
  --sheet: #d8dee8;
  --ink: #e8eef6;
  --muted: #7a8799;
  --rule: color-mix(in srgb, var(--cool) 22%, transparent);
  --display: "Syne", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--navy);
  background:
    radial-gradient(900px 480px at 70% 0%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 55%),
    linear-gradient(180deg, var(--deep) 0%, var(--navy) 42%, #1c2a40 58%, var(--sheet) 58%, #eef1f6 100%);
  min-height: 100vh;
  line-height: 1.65;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 9;
  background: var(--amber); color: var(--deep); padding: .5rem 1rem;
}

.mast {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 1.05rem 1.35rem;
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--deep) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--display);
  font-weight: 700; font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav a {
  color: color-mix(in srgb, var(--cool) 85%, transparent);
  text-decoration: none; font-size: .92rem; font-weight: 500;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--amber); }

.hero {
  min-height: min(88vh, 820px);
  display: grid; align-items: end;
  padding: 4.5rem 1.35rem 3.2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -10% -20%;
  background:
    linear-gradient(
      118deg,
      transparent 0%,
      transparent 38%,
      color-mix(in srgb, var(--amber) 8%, transparent) 46%,
      color-mix(in srgb, var(--beam) 55%, transparent) 50%,
      color-mix(in srgb, var(--amber) 12%, transparent) 54%,
      transparent 62%,
      transparent 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 27px,
      color-mix(in srgb, var(--cool) 7%, transparent) 27px 28px
    );
  animation: beamSweep 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -5%; right: -5%; bottom: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: .55;
  animation: beamPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto; width: 100%;
}
.hero-brand {
  display: flex; flex-direction: column; gap: .4rem;
  margin: 0 0 1rem;
  font-family: var(--mono); font-size: .76rem;
  color: var(--cool); letter-spacing: .12em; text-transform: uppercase;
}
.hero-brand span { color: var(--amber); font-weight: 600; }
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: .96; letter-spacing: -.03em;
  color: var(--ink);
  max-width: 11ch;
  animation: riseIn .85s ease both;
}
.hero-lede {
  max-width: 34rem;
  color: color-mix(in srgb, var(--cool) 92%, #fff);
  font-size: 1.08rem; margin: 0 0 1.55rem;
  animation: riseIn .95s .1s ease both;
}
.cta-row { display: flex; gap: .85rem; flex-wrap: wrap; animation: riseIn 1.05s .18s ease both; }
.cta {
  display: inline-block;
  background: var(--amber); color: var(--deep);
  text-decoration: none; font-weight: 700;
  padding: .85rem 1.3rem; border-radius: 2px;
}
.cta-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--cool) 45%, transparent);
}

.beam-strip {
  max-width: 1080px; margin: -1.2rem auto 0; padding: 0 1.35rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  position: relative; z-index: 2;
}
.beam-strip p {
  margin: 0; padding: 1rem 1.1rem;
  background: #eef1f6;
  border-top: 3px solid var(--amber);
  font-size: .92rem; color: var(--muted);
}
.beam-strip strong {
  display: block; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .35rem;
}

.readings {
  max-width: 1080px; margin: 0 auto; padding: 3.8rem 1.35rem 5rem;
}
.readings h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 2rem; letter-spacing: -.02em;
  margin: 0 0 1.4rem; color: var(--navy);
}
.note-list { display: flex; flex-direction: column; gap: .7rem; }
.note-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  text-decoration: none; color: inherit;
  padding: 1.1rem 1.15rem; background: #eef1f6;
  border-left: 3px solid var(--navy);
  transition: border-color .2s ease, transform .2s ease;
}
.note-list a:hover { border-left-color: var(--amber); transform: translateX(3px); }
.note-list .mark {
  font-family: var(--mono); font-size: .76rem; color: var(--amber);
  padding-top: .2rem; font-weight: 600;
}
.note-list h3 { margin: 0 0 .35rem; font-size: 1.1rem; color: var(--navy); font-family: var(--display); font-weight: 700; }
.note-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.board {
  max-width: 720px; margin: 0 auto; padding: 3.2rem 1.35rem 4.5rem;
  background: #eef1f6; min-height: 55vh;
}
.article-head .kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #b87920; margin: 0 0 .4rem;
}
.article-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--navy); line-height: 1.12;
}
.meta { color: var(--muted); margin: 0 0 1.4rem; }
.prose { color: var(--muted); }
.prose a { color: var(--navy); text-decoration-color: var(--amber); }
.prose h2 { font-family: var(--display); color: var(--navy); margin-top: 1.7rem; font-weight: 700; }
.prose ul { padding-left: 1.2rem; }

.foot {
  border-top: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  background: #e4e9f0;
  padding: 2rem 1.35rem;
}
.foot nav {
  max-width: 1080px; margin: 0 auto 1rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.foot a { color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 600; }
.foot .copy, .foot > p {
  max-width: 1080px; margin: 0 auto;
  font-size: .82rem; color: var(--muted);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes beamSweep {
  from { transform: translateX(-3%) rotate(-1deg); opacity: .7; }
  to { transform: translateX(3%) rotate(1deg); opacity: 1; }
}
@keyframes beamPulse {
  0%, 100% { opacity: .35; }
  50% { opacity: .75; }
}

@media (max-width: 720px) {
  .beam-strip { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; padding-top: 3rem; }
  .note-list a { grid-template-columns: 1fr; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
