:root {
  --paper: #f7f1e6;
  --paper-2: #eadfca;
  --ink: #0b0b0b;
  --ink-soft: #2a1a12;
  --muted: #6b5744;
  --line: rgba(139, 21, 21, 0.12);
  --line-strong: rgba(11, 11, 11, 0.18);
  --saffron: #8b1515;
  --saffron-2: #c9a227;
  --gold: #d4af37;
  --gold-deep: #b8892a;
  --crimson: #9b1b1b;
  --cream: #fff8ea;
  --white: #fffdf8;
  --chip: #efe2c4;
  --success: #2f6b45;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(11,11,11,.04), 0 18px 40px rgba(139,21,21,.08);
  --shadow-lg: 0 30px 80px rgba(11,11,11,.18);
  --max: 1240px;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Cinzel", "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  font-size: 15.5px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap, .container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Utility */
.kicker {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Top rail */
.rail {
  background: var(--ink);
  color: #e8dfd0;
  font-size: 12px;
  padding: 8px 0;
}
.rail .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.clocks { display: flex; gap: 20px; flex-wrap: wrap; opacity: .9; }
.clocks b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-links { display: flex; gap: 16px; }
.rail-links a:hover { color: #fff; }

/* App header */
.header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244, 238, 228, .86);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: #0b0b0b;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px #0b0b0b;
}
.mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text small {
  display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.brand-text strong { font-family: var(--serif); font-size: 18px; font-weight: 560; }

.search-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.search-pill input {
  border: 0; outline: 0; background: transparent; width: 100%;
}
.search-pill kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px;
}

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 8px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 560; color: var(--ink-soft);
}
.menu a:hover, .menu a.active { background: var(--chip); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; font-weight: 680; font-size: 13.5px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #d4af37, #9a7420);
  color: #1a1204;
  border: 1px solid #f0d78a;
}
.btn-saffron { background: var(--crimson); color: #fff; box-shadow: 0 8px 20px rgba(155,27,27,.28); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-sm { padding: 8px 12px; font-size: 12.5px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center;
}
.burger { display: none; }

/* Hero */
.hero {
  padding: 56px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(47,107,69,.15); }
h1, .display {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(40px, 5.6vw, 68px);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin: 16px 0 28px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-card .overlay {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
  background: linear-gradient(180deg, rgba(26,20,16,.1), rgba(26,20,16,.82));
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: rgba(255,250,243,.1);
  border: 1px solid rgba(255,250,243,.14);
  border-radius: 16px; padding: 12px 14px;
}
.stat b { display: block; font-family: var(--serif); font-size: 26px; }
.stat span { font-size: 11px; opacity: .75; }

/* Sections */
section { padding: 56px 0; }
.sec-head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 560; letter-spacing: -.02em;
}

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-3 { grid-column: span 3; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad { padding: 20px 22px; }
.media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.media img, .media .ph { width: 100%; height: 100%; object-fit: cover; }
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip); border-radius: 999px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 600; border: 0;
}
.chip.active { background: var(--ink); color: var(--paper); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.feed-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px;
  object-fit: cover; background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px;
}
.avatar.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.badge {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #f0d78a, #d4af37);
  color: #3a2a08; padding: 3px 8px; border-radius: 999px; font-weight: 700;
}
.logo-lg {
  width: 160px; height: 160px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  background: #000;
}
.motto {
  font-family: var(--serif);
  letter-spacing: .28em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.progress { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); }

.page-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 180px at 10% 0%, rgba(194,77,28,.08), transparent 60%),
    var(--paper);
}
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--saffron); font-weight: 600; }

.member-card { text-align: left; padding: 18px; display: flex; gap: 14px; align-items: center; }
.member-card img.avatar { width: 64px; height: 64px; border-radius: 18px; }

.event-date {
  width: 56px; text-align: center; background: var(--crimson); color: #fff8ea;
  border-radius: 14px; padding: 8px 0; flex-shrink: 0;
  border: 1px solid var(--gold);
}
.event-date b { display: block; font-size: 20px; font-family: var(--serif); line-height: 1; }
.event-date span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery .tile { border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.gallery .tile:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

form { display: grid; gap: 12px; }
label { font-size: 12.5px; font-weight: 650; color: var(--ink-soft); }
input, textarea, select {
  width: 100%; background: var(--white); border: 1px solid var(--line-strong);
  padding: 12px 14px; border-radius: 12px; outline: none;
}
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26,20,16,.08); }
textarea { min-height: 140px; resize: vertical; }

.footer {
  margin-top: 40px; padding: 48px 0 24px;
  background: #0b0b0b; color: #d8cfc2;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-family: var(--serif); color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; color: #c9bdae; }
.footer a:hover { color: #fff; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #9c9083; }

.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 14px;
  display: none; box-shadow: var(--shadow-lg);
}
.toast.show { display: block; }

.lightbox {
  position: fixed; inset: 0; background: rgba(16,12,10,.88); z-index: 120;
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; }

.promo { display: grid; grid-template-columns: 1.2fr .8fr; }
@media (max-width: 980px) {
  .promo { grid-template-columns: 1fr; }
  .nav { grid-template-columns: 1fr auto; }
  .search-pill { display: none; }
  .hero-grid, .grid-12, .footer-grid, .gallery { display: flex; flex-direction: column; }
  .span-8, .span-4, .span-6, .span-3, .span-7, .span-5 { width: 100%; }
  .gallery .tile { height: 200px; }
  .burger { display: grid; }
  .menu {
    display: none; position: absolute; left: 24px; right: 24px; top: 78px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: 10px; flex-direction: column; box-shadow: var(--shadow-lg);
  }
  .menu.open { display: flex; }
}
.dark-mode {
  --paper: #111111;
  --paper-2: #1e1e1e;
  --ink: #eeeeee;
  --ink-soft: #dddddd;
  --muted: #bbbbbb;
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.18);
  --white: #222222;
}
