:root {
  --bg: #030507;
  --bg-2: #070b0f;
  --panel: rgba(7, 10, 12, .88);
  --panel-strong: rgba(5, 7, 9, .94);
  --panel-soft: rgba(12, 16, 19, .72);
  --ink: #f2ebdc;
  --muted: #c9bca3;
  --faint: #8f7b55;
  --gold: #d0a354;
  --gold-strong: #f1c46a;
  --amber: #ef9d43;
  --red: #7e271e;
  --blue: #07111a;
  --line: rgba(208, 163, 84, .42);
  --line-soft: rgba(208, 163, 84, .18);
  --shadow: 0 22px 58px rgba(0, 0, 0, .54);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(circle at 78% 4%, rgba(239, 157, 67, .16), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(56, 82, 112, .14), transparent 34rem),
    linear-gradient(180deg, #020405, #06090d 58%, #030506);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-shell {
  width: min(1920px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  opacity: .18;
  mix-blend-mode: soft-light;
  z-index: 20;
}

.site-header {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.25rem);
  padding: clamp(1rem, 1.65vw, 1.65rem) clamp(1.25rem, 3vw, 3rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .66rem;
  color: var(--gold-strong);
  font-family: var(--serif);
  font-size: clamp(.94rem, 1.05vw, 1.25rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(208, 163, 84, .25);
}
.brand img { width: 1.85rem; height: 1.85rem; opacity: .92; }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.95rem, 1.7vw, 2.05rem);
  font-size: clamp(.74rem, .78vw, .9rem);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(242, 235, 220, .82);
}
.main-nav a {
  position: relative;
  padding: .45rem 0;
  transition: color .18s ease, text-shadow .18s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .12rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--gold-strong), transparent);
  transition: transform .18s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active,
.main-nav a[aria-current="page"] { color: var(--gold-strong); text-shadow: 0 0 16px rgba(208,163,84,.24); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.hero {
  min-height: clamp(470px, 56vh, 660px);
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(208,163,84,.22);
}
.compact-hero { min-height: clamp(420px, 48vh, 570px); }
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(2,4,5,.95) 0%, rgba(2,4,5,.72) 34%, rgba(2,4,5,.28) 68%, rgba(2,4,5,.62) 100%),
    linear-gradient(180deg, rgba(2,4,5,.24) 0%, rgba(2,4,5,.18) 44%, rgba(2,4,5,.91) 100%),
    url("assets/hero/notice-board-party-muted.jpg") center 42% / cover no-repeat;
  transform: scale(1.012);
  filter: saturate(.78) brightness(.66) contrast(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 74% 24%, rgba(241,196,106,.08), transparent 18rem),
    radial-gradient(circle at 18% 72%, rgba(126,39,30,.10), transparent 21rem),
    linear-gradient(90deg, rgba(0,0,0,.34), transparent 52%, rgba(0,0,0,.28));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at center, transparent 34%, rgba(0,0,0,.54) 100%);
}
.embers {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  z-index: -1;
  opacity: .42;
  background:
    radial-gradient(circle at 12% 70%, rgba(241,196,106,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 84%, rgba(239,157,67,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 76%, rgba(241,196,106,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 68%, rgba(239,157,67,.62) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 82%, rgba(241,196,106,.65) 0 1px, transparent 2px);
  filter: blur(.2px);
}
.hero-content {
  width: min(880px, calc(100% - clamp(2rem, 7vw, 8rem)));
  padding: clamp(7rem, 10vw, 10rem) 0 clamp(4.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 5rem);
}
.eyebrow,
.panel-label,
.feed-kicker {
  margin: 0 0 .72rem;
  color: var(--gold-strong);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 5.15vw, 6.65rem);
  line-height: .88;
  letter-spacing: -.045em;
  color: #fbf2de;
  text-shadow:
    0 0 28px rgba(208, 163, 84, .18),
    0 18px 45px rgba(0, 0, 0, .52);
}
.hero-subtitle {
  width: min(660px, 100%);
  margin: clamp(1.2rem, 2vw, 1.8rem) 0 0;
  color: rgba(242,235,220,.82);
  font-size: clamp(.94rem, 1.1vw, 1.18rem);
  line-height: 1.58;
}

.ornament {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(1.1rem, 2vw, 1.8rem);
  width: min(760px, calc(100% - 2rem));
  min-height: 36px;
  opacity: .82;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208,163,84,.42), transparent);
}
.ornament span {
  width: 140px;
  height: 32px;
  margin: 0 1rem;
  background: url("assets/ui/section-divider-filigree.png") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(208,163,84,.16));
}

.board-intro {
  width: min(1160px, calc(100% - clamp(2rem, 5vw, 5.5rem)));
  margin: 0 auto clamp(1.2rem, 2.4vw, 2rem);
  padding: 0 clamp(.25rem, 1vw, .75rem);
}
.board-intro h2 {
  margin: 0;
  max-width: 920px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.9vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fff4dd;
}
.board-intro p:not(.panel-label) {
  max-width: 820px;
  margin: .95rem 0 0;
  color: rgba(242,235,220,.72);
  font-size: clamp(.98rem, 1.04vw, 1.08rem);
  line-height: 1.7;
}

.update-board {
  width: min(1440px, calc(100% - clamp(1.5rem, 4vw, 5rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 1.6vw, 1.45rem);
}
.update-window {
  position: relative;
  height: clamp(360px, 28vw, 500px);
  min-height: 0;
  padding: clamp(1.2rem, 1.8vw, 1.8rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(241,196,106,.105), transparent 17rem),
    radial-gradient(circle at 88% 100%, rgba(126,39,30,.16), transparent 20rem),
    linear-gradient(180deg, rgba(11,15,18,.92), rgba(3,5,7,.96));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 226, 153, .05);
  isolation: isolate;
}
.update-window::before {
  content: "";
  position: absolute;
  inset: .42rem;
  border: 1px solid rgba(208,163,84,.18);
  pointer-events: none;
  z-index: 2;
}
.update-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(241,196,106,.78), transparent);
  opacity: .72;
}
.next-session { background:
  radial-gradient(circle at 15% 8%, rgba(241,196,106,.15), transparent 18rem),
  radial-gradient(circle at 90% 92%, rgba(126,39,30,.14), transparent 19rem),
  linear-gradient(180deg, rgba(12,15,17,.94), rgba(3,5,7,.96));
}
.website-updates { background:
  radial-gradient(circle at 12% 10%, rgba(70,102,135,.16), transparent 17rem),
  radial-gradient(circle at 90% 90%, rgba(241,196,106,.08), transparent 20rem),
  linear-gradient(180deg, rgba(9,14,19,.94), rgba(3,5,7,.96));
}
.announcements { background:
  radial-gradient(circle at 18% 0%, rgba(239,157,67,.13), transparent 17rem),
  radial-gradient(circle at 88% 100%, rgba(126,39,30,.18), transparent 20rem),
  linear-gradient(180deg, rgba(11,14,15,.94), rgba(3,5,7,.96));
}
.vault-updates { background:
  radial-gradient(circle at 12% 8%, rgba(90,110,135,.12), transparent 17rem),
  radial-gradient(circle at 88% 90%, rgba(241,196,106,.13), transparent 20rem),
  linear-gradient(180deg, rgba(7,11,15,.95), rgba(3,5,7,.96));
}
.window-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(.9rem, 1.3vw, 1.2rem);
  border-bottom: 1px solid rgba(208,163,84,.2);
}
.window-header .panel-label { margin: 0; }
.window-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.55vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff5df;
  text-align: right;
}
.window-body {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  gap: .88rem;
  padding-top: clamp(1rem, 1.4vw, 1.25rem);
  padding-right: .35rem;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.window-body::-webkit-scrollbar { width: .58rem; }
.window-body::-webkit-scrollbar-track { background: rgba(255,255,255,.035); }
.window-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(241,196,106,.52), rgba(126,39,30,.62));
  border-radius: 999px;
  border: 2px solid rgba(3,5,7,.85);
}
.feed-item {
  padding: clamp(.9rem, 1.2vw, 1.15rem);
  border: 1px solid rgba(208,163,84,.16);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 20px rgba(0,0,0,.16);
}
.feed-item.is-primary {
  background:
    radial-gradient(circle at 0% 0%, rgba(241,196,106,.09), transparent 14rem),
    rgba(255,255,255,.045);
  border-color: rgba(208,163,84,.28);
}
.feed-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: .55rem;
}
.feed-topline time {
  color: rgba(242,235,220,.56);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.feed-kicker { margin: 0; color: rgba(241,196,106,.92); font-size: .66rem; }
.feed-item h3 {
  margin: 0;
  color: #fff7e8;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.22rem, 1.45vw, 1.62rem);
  line-height: 1.12;
}
.feed-item p:not(.feed-kicker):not(.feed-meta) {
  margin: .65rem 0 0;
  color: rgba(242,235,220,.75);
  line-height: 1.62;
  font-size: .96rem;
}
.feed-meta {
  margin: .82rem 0 0;
  padding-top: .72rem;
  border-top: 1px solid rgba(208,163,84,.13);
  color: rgba(201,188,163,.62);
  font-size: .78rem;
  letter-spacing: .04em;
}
.scribe-footnote {
  width: min(1440px, calc(100% - clamp(1.5rem, 4vw, 5rem)));
  margin: clamp(1.1rem, 2vw, 1.6rem) auto clamp(2.5rem, 5vw, 4rem);
  color: rgba(201,188,163,.55);
  font-size: .82rem;
  letter-spacing: .06em;
  text-align: center;
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    background: rgba(2,4,5,.86);
    border-bottom: 1px solid rgba(208,163,84,.14);
    flex-wrap: wrap;
  }
  .main-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .hero { min-height: 430px; }
  .hero-content { padding-top: 4rem; }
  .update-board { grid-template-columns: 1fr; }
  .update-window { height: clamp(330px, 58vh, 430px); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(3.4rem, 13vw, 5.5rem); }
  .hero-content { width: calc(100% - 2rem); padding-left: 1rem; padding-bottom: 3rem; }
  .board-intro,
  .update-board,
  .scribe-footnote { width: calc(100% - 1.4rem); }
  .window-header { display: block; }
  .window-header h2 { margin-top: .42rem; text-align: left; }
  .feed-topline { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
