/* NWC Class of 1977 — 50th Reunion
   Design tokens come from CLAUDE.md. Audience is ~68 years old:
   large type, high contrast, big tap targets, visible focus. */

:root {
  --heritage-green: #284A32;
  --brand-green: #0C662F;   /* actions + links */
  --cream: #F7F2E7;         /* page background */
  --ink: #1A1A17;           /* body text */
  --white: #FFFFFF;

  /* Supporting neutrals */
  --paper: #FFFDF8;         /* cards, panels */
  --line: #E3DCCB;          /* dividers */
  --muted: #6B675C;         /* secondary text (5:1 on cream) */
  --field-border: #6B675C;  /* outlines of inputs and choice buttons (well over 3:1) */

  --font-head: "Oswald", "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: 1.25rem;
  --max-width: 44rem;
}

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

/* "hidden" always wins, even over components that set their own display */
[hidden] {
  display: none !important;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--brand-green);
  text-underline-offset: 0.15em;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 4px solid var(--brand-green);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus {
  top: var(--gutter);
}

/* Header */
.site-header {
  background: var(--heritage-green);
  color: var(--white);
  padding: 2rem 0 1.75rem;
  border-bottom: 6px solid var(--brand-green);
}

/* Contain the floated logo so the header wraps around it */
.site-header .container {
  display: flow-root;
}

/* Committee-approved 50th Reunion logo (cream on transparent).
   Phones: small, top-right beside the title so the header gets no taller. */
.site-emblem {
  float: right;
  width: 96px;
  height: auto;
  margin: 0 0 0.5rem 0.75rem;
}

@media (min-width: 700px) {
  .site-emblem {
    width: 230px;
    margin-left: 1.5rem;
  }
}

.site-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.site-subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Site navigation */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;  /* 44px tap target */
  padding: 0 0.25rem;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--white);
}

/* Current page: underline plus aria-current, so it doesn't rely on color */
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--cream);
  font-weight: 700;
}

/* Green focus ring would vanish on the green header */
.site-header :focus-visible {
  outline-color: var(--white);
}

/* Main */
main {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.welcome {
  margin: 0 0 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.4;
}

/* Primary action button */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;   /* 56px, well over the 44px minimum */
  min-width: 12rem;
  padding: 0.75rem 2rem;
  background: var(--brand-green);
  color: var(--white);
  border: 3px solid var(--brand-green);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary:hover {
  background: var(--heritage-green);
  border-color: var(--heritage-green);
}

.button-primary:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

/* Secondary action: same size as the primary button, outlined */
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  min-width: 12rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--brand-green);
  border: 3px solid var(--brand-green);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.button-secondary:hover {
  background: var(--white);
}

/* A row of action buttons, with room between them */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reg-later {
  margin: 1.25rem 0 0;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--heritage-green);
  padding: 1.5rem 0;
  font-size: 1.125rem;
}
.site-footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  .button-primary,
  .button-secondary {
    width: 100%;
  }
}

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

/* Keep short phrases together when a line wraps */
.nowrap {
  white-space: nowrap;
}
