/* Academic Magnet High School Class of 2016 — 10-year reunion
   Colors and motifs sampled from the 2012–2016 school identity. */

:root {
  --seal: #005E2A;
  --accent: #00B25C;
  --deep: #064727;
  --frame: #054E2A;
  --mid: #036D3A;
  --raptor: #235B34;
  --gold: #D4B150;
  --gold-soft: #e4c97a;
  --black: #000000;
  --ink: #222634;
  --paper: #f4f1e8;
  --paper-2: #DEE0DF;
  --mist: #ECECEC;
  --white: #ffffff;
  --serif: "Cinzel", "Times New Roman", Times, serif;
  --script: "Great Vibes", "Palatino Linotype", cursive;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --safe-x: max(1.25rem, env(safe-area-inset-left, 0px));
  --safe-r: max(1.25rem, env(safe-area-inset-right, 0px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .raptor { animation: none !important; }
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--deep);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  touch-action: manipulation;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--black);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 0.75rem; }

/* ——— Header ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) var(--safe-r) 0.55rem var(--safe-x);
  background: rgba(6, 71, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 177, 80, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-seal,
.foot-seal {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.brand-script {
  font-family: var(--script);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  line-height: 1.05;
}
.brand-caps {
  font-family: var(--serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.15rem;
}
.top-class {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(10rem, 1fr) auto;
  align-items: stretch;
  gap: 0;
  min-height: calc(100svh - 4.2rem);
  padding: 1.5rem var(--safe-r) 2.5rem var(--safe-x);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(0, 178, 92, 0.28), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--seal) 55%, #037a40 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding-bottom: 0.5rem;
  grid-row: 2;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.mega {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4.1rem, 22vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 10px 40px rgba(0, 0, 0, 0.35);
}
.mega span { display: block; }

.hero-sub {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}
.hero-sub-school,
.hero-sub-line { display: block; }
.hero-sub em {
  font-style: normal;
  color: var(--gold);
  white-space: nowrap;
}

.motto {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--mist);
  letter-spacing: 0.02em;
}

.hero-where {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-mark {
  grid-row: 1;
  position: relative;
  width: min(100%, 30rem);
  justify-self: end;
  margin-right: -8%;
  margin-top: 0.4rem;
  z-index: 1;
  pointer-events: none;
}

.raptor {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  animation: raptor-float 6.5s ease-in-out infinite;
  transform-origin: 70% 60%;
}

@keyframes raptor-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  touch-action: manipulation;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); }

/* ——— 2012-style wavy black divider ——— */
.wave {
  background: linear-gradient(180deg, #037a40 0%, #037a40 40%, var(--black) 40%);
  line-height: 0;
  margin-top: -1px;
}
.wave svg { width: 100%; height: 52px; display: block; fill: var(--black); }

/* ——— Details / invitation ——— */
.details,
.flashback,
.loop { scroll-margin-top: 4.6rem; }

.details,
.loop {
  background: var(--black);
  padding: 3.25rem var(--safe-r) 3.75rem var(--safe-x);
  text-align: center;
}

.eyebrow-on-dark { color: var(--gold); }

.section-title {
  margin: 0 auto 0.75rem;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.7rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lede {
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.tbd-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 58rem;
  grid-template-columns: 1fr;
}

.tbd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(0, 178, 92, 0.16), rgba(5, 78, 42, 0.2)),
    var(--seal);
  border: 1px solid rgba(212, 177, 80, 0.55);
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(6, 71, 39, 0.65);
  border-radius: 6px;
}

.tbd-label {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}

.tbd-value {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

/* ——— Flashback ——— */
.flashback {
  background: var(--paper);
  color: var(--ink);
  padding: 3.25rem var(--safe-r) 3.5rem var(--safe-x);
}
.flashback .eyebrow { color: var(--mid); }
.flashback .section-title { color: var(--seal); margin-bottom: 1.5rem; }

.photos {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.75rem;
}

.photo {
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(6, 71, 39, 0.12);
  padding: 0.55rem 0.55rem 0;
  border-radius: 4px;
}
.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #111;
}
.photo figcaption {
  font-size: 0.88rem;
  font-style: italic;
  padding: 0.7rem 0.35rem 0.8rem;
  color: #3a3f4a;
}

.era {
  margin: 0 auto;
  max-width: 38rem;
  text-align: center;
  color: #3a3f4a;
  font-size: 1.02rem;
}
.era strong {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--seal);
  letter-spacing: 0.02em;
}

/* ——— Loop ——— */
.loop { padding-top: 3.5rem; }
.fine {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Footer ——— */
.foot {
  background: var(--black);
  color: var(--white);
  padding: 2.25rem var(--safe-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--safe-x);
  border-top: 4px solid var(--gold);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.foot-seal { width: 4.25rem; height: 4.25rem; }
.foot .brand-script { font-size: 2rem; margin: 0; }
.foot .brand-caps { margin: 0.1rem 0 0.45rem; }
.foot-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}
.foot-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
}

/* ——— Breakpoints ——— */
@media (min-width: 640px) {
  .tbd-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .tbd-card { padding: 1.7rem 1rem 1.5rem; }
  .wave svg { height: 72px; }
}

@media (min-width: 900px) {
  :root {
    --safe-x: max(3rem, env(safe-area-inset-left, 0px));
    --safe-r: max(3rem, env(safe-area-inset-right, 0px));
  }
  .brand-seal { width: 3.6rem; height: 3.6rem; }
  .brand-script { font-size: 2rem; }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 1fr;
    align-items: center;
    min-height: calc(100svh - 4.6rem);
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .hero-copy { grid-row: auto; grid-column: 1; }
  .hero-mark {
    grid-row: auto;
    grid-column: 2;
    width: 110%;
    max-width: none;
    margin-right: -8%;
    margin-top: 0;
    justify-self: end;
  }
  .raptor { width: 100%; max-width: none; }
  .details, .flashback, .loop { padding-top: 4.5rem; padding-bottom: 4.75rem; }
}

@media (min-width: 1200px) {
  .mega { font-size: 10.25rem; }
  .hero { padding-left: max(5rem, env(safe-area-inset-left, 0px)); padding-right: max(4rem, env(safe-area-inset-right, 0px)); }
}

/* Used only for ?fullpage=1 local/full-page captures */
html.fullpage-shot { scroll-behavior: auto; }
html.fullpage-shot .hero { min-height: 0; }
