:root {
  --forest: #0e3b2e;
  --forest-2: #164a3a;
  --forest-deep: #08251c;
  --gold: #e2b00e;
  --gold-2: #c49208;
  --cream: #f4efe4;
  --sand: #e7dcc6;
  --paper: #fffaf2;
  --ink: #1a1612;
  --mute: #5e574c;
  --line: rgba(26, 22, 18, 0.12);
  --ff-d: "Fraunces", Georgia, serif;
  --ff-b: "Figtree", system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
  --e: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-b);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -40px; z-index: 20;
  background: var(--gold); color: var(--forest-deep); padding: 8px 12px;
}
.skip:focus { top: 12px; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  padding: 18px 0;
  transition: background .35s var(--e), box-shadow .35s, padding .35s;
}
.nav.is-on {
  background: rgba(8, 37, 28, 0.94);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(8, 37, 28, .2);
}
.nav__in { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-right: auto; }
.brand img {
  width: 46px; height: 46px; object-fit: cover; object-position: 70% 70%;
  border-radius: 50%; border: 2px solid var(--gold);
}
.brand b { display: block; font-family: var(--ff-d); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.brand small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.nav__links { display: flex; gap: 16px; }
.nav__links a { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500; }
.nav__links a:hover { color: var(--gold); }
.burger { display: none; width: 42px; height: 42px; }
.burger span { display: block; height: 2px; background: #fff; margin: 7px 10px; }
.drawer {
  position: fixed; inset: 0; z-index: 25; background: var(--forest-deep);
  display: grid; align-content: center; gap: 18px; padding: 80px 32px;
  transform: translateY(-110%); transition: transform .5s var(--e);
}
.drawer.open { transform: none; }
.drawer a {
  color: #fff; font-family: var(--ff-d); font-size: 2rem; font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--e), background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--forest-deep); }
.btn--gold:hover { background: #f0c43a; }
.btn--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--forest); }
.btn--forest { background: var(--forest); color: #fff; }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; overflow: hidden; padding-top: 96px;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,37,28,.55) 0%, rgba(8,37,28,.15) 38%, rgba(8,37,28,.88) 100%),
    linear-gradient(90deg, rgba(8,37,28,.55), transparent 55%);
}
.hero__copy { position: relative; z-index: 1; padding: 0 0 72px; max-width: 760px; }
.plate {
  display: inline-block; background: var(--gold); color: var(--forest-deep);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 4px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--ff-d); font-weight: 600; font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.03em; max-width: 14ch;
}
.motto {
  margin: 14px 0 18px; font-family: var(--ff-d); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--gold);
}
.lede { max-width: 58ch; color: rgba(255,255,255,.86); font-size: 1.05rem; }
.hero__go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.strip { background: var(--forest); color: #fff; }
.strip__in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 28px 0;
}
.strip span {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.strip b { font-weight: 600; }

section { scroll-margin-top: 88px; }
.sec--forest { background: var(--forest); color: #fff; }
.sec--sand { background: var(--sand); }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 12px;
}
.kicker--gold { color: var(--gold); }
.sec h2, .join h2 {
  font-family: var(--ff-d); font-weight: 600; font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; margin-bottom: 22px;
}
.sec__lead { max-width: 62ch; color: var(--mute); font-size: 1.08rem; margin-bottom: 36px; }
.sec--forest .sec__lead { color: rgba(255,255,255,.78); }
.sec__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.sec__lead--tight { margin: 0; }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.about__text p { margin-bottom: 16px; color: var(--mute); font-size: 1.05rem; }
.about__text strong, .about__text em { color: var(--ink); }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); padding-top: 4px; }
.about__fig img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 35%;
  border-radius: 18px;
}
.about__fig figcaption { margin-top: 10px; font-size: .85rem; color: var(--mute); }

.timeline {
  list-style: none;
  border-left: 3px solid var(--gold);
  margin: 8px 0 40px 10px;
  padding: 0 0 0 28px;
  display: grid;
  gap: 32px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline span {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.timeline h3 { font-family: var(--ff-d); font-size: 1.55rem; margin-bottom: 8px; }
.timeline p { color: var(--mute); max-width: 68ch; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.people article {
  background: var(--paper);
  padding: 22px;
  border-radius: 16px;
}
.people h3 { font-family: var(--ff-d); font-size: 1.25rem; margin-bottom: 8px; }
.people p { color: var(--mute); font-size: .98rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards article {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 28px 24px; border-radius: 18px;
}
.cards span { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: .8rem; }
.cards h3 { font-family: var(--ff-d); font-size: 1.6rem; margin: 12px 0 10px; }
.cards p { color: rgba(255,255,255,.78); }

.life { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.life p { color: var(--mute); margin-bottom: 16px; font-size: 1.05rem; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px;
  background: var(--gold); border-radius: 2px;
}
.mosaic {
  display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 220px 180px; gap: 12px;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.mosaic img:first-child { grid-row: 1 / 3; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.result {
  background: var(--paper); padding: 28px; border-radius: 18px;
  border-left: 6px solid var(--gold);
}
.result__year { color: var(--gold-2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.result h3 { font-family: var(--ff-d); font-size: 1.55rem; margin: 10px 0 12px; }
.result p, .note { color: var(--mute); }
.note { margin-top: 20px; font-size: .92rem; }

.events { display: grid; gap: 28px; }
.event {
  background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(26,22,18,.06);
}
.event__meta {
  display: flex; gap: 12px; align-items: center; padding: 22px 22px 0;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
}
.event h3 { font-family: var(--ff-d); font-size: 1.7rem; padding: 8px 22px 0; }
.event p { color: var(--mute); padding: 10px 22px 18px; }
.event__media {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px;
}
.event__media img, .event__media video {
  width: 100%; height: 220px; object-fit: cover; background: #111;
}
.event__media img { cursor: zoom-in; }
.event__tubes { display: grid; gap: 10px; padding: 0 0 8px; }
.event__tube-frame {
  position: relative; aspect-ratio: 16 / 9; background: #111;
}
.event__tube-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.event__tube-open {
  display: block; padding: 8px 22px 16px; font-size: .85rem; font-weight: 600;
  color: var(--forest);
}
.loading { color: var(--mute); }

.join {
  background:
    linear-gradient(180deg, rgba(8,37,28,.78), rgba(8,37,28,.88)),
    url("/img/campus-hall.jpg") center/cover;
  color: #fff; padding: 100px 0;
}
.join__in { max-width: 680px; }
.join p { color: rgba(255,255,255,.84); max-width: 54ch; margin-bottom: 24px; font-size: 1.08rem; }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact__card {
  background: var(--forest); color: #fff; padding: 32px; border-radius: 22px;
  display: grid; gap: 16px; align-content: start;
}
.contact__card span { display: block; color: var(--gold); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.contact__hint { color: rgba(255,255,255,.7); font-size: .95rem; }
.form { display: grid; gap: 14px; }
.form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold); border-color: transparent;
}
.form__msg { min-height: 1.2em; font-size: .92rem; }
.form__msg.ok { color: var(--forest); }
.form__msg.no { color: #9a2f1a; }

.foot { background: var(--forest-deep); color: rgba(255,255,255,.78); padding: 56px 0 24px; }
.foot__in { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 28px; }
.foot b { display: block; color: #fff; font-family: var(--ff-d); font-size: 1.2rem; margin-bottom: 10px; }
.foot a, .foot p { display: block; margin-top: 6px; }
.foot a:hover { color: var(--gold); }
.foot__bar {
  width: var(--wrap); margin: 36px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
}

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(8,37,28,.92);
  display: grid; place-items: center; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute; top: 18px; right: 18px; color: #fff;
  border: 1px solid rgba(255,255,255,.3); padding: 8px 14px; border-radius: 999px;
}

@media (max-width: 900px) {
  .nav__links, .nav .btn { display: none; }
  .burger { display: block; }
  .strip__in, .about, .cards, .life, .results, .people, .contact, .foot__in, .sec__head, .form__2, .mosaic {
    grid-template-columns: 1fr;
  }
  .mosaic { grid-template-rows: 220px 180px 180px; }
  .mosaic img:first-child { grid-row: auto; }
  .hero { min-height: auto; padding: 110px 0 0; }
  .hero__copy { padding: 28px 0 48px; }
  .sec { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.editbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--forest-deep); color: #fff; padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25); font-family: var(--ff-b); font-size: .9rem;
}
.editbar[hidden] { display: none; }
.editbar__label { font-weight: 700; color: var(--gold); margin-right: 4px; }
.editbar button, .editbar a {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  padding: 7px 12px; border-radius: 8px; font-size: .85rem; cursor: pointer; text-decoration: none;
}
.editbar button.is-active { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
.editbar button:hover, .editbar a:hover { background: rgba(255,255,255,.2); }
.editbar button.btn--gold { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
.editbar__msg { margin-left: auto; font-size: .85rem; }
.editbar__msg.ok { color: #9be39b; }
.editbar__msg.no { color: #ffb3b3; }

body.is-editing-text { padding-bottom: 56px; }
body.is-editing-text [data-key] {
  outline: 1px dashed rgba(226,176,14,.5); outline-offset: 2px; cursor: text; border-radius: 2px;
}
body.is-editing-text [data-key]:focus {
  outline: 2px solid var(--gold); background: rgba(226,176,14,.08);
}

body.is-rearranging { padding-bottom: 56px; }
body.is-rearranging [data-section] { position: relative; outline: 2px dashed var(--gold); }
.reorder-controls {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: flex; gap: 6px;
}
.reorder-controls button {
  background: var(--forest-deep); color: var(--gold); border: 1px solid var(--gold);
  width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; cursor: pointer;
}
.reorder-controls button:hover { background: var(--gold); color: var(--forest-deep); }
