/* ==========================================================================
   Grand Forks Young Republicans
   Styled after ndyr.org: black canvas, white bold uppercase type, red accents.
   ========================================================================== */

:root {
  --black: #000;
  --surface: #0c0c0c;
  --surface-2: #151515;
  --line: rgba(255, 255, 255, 0.12);
  --white: #fff;
  --text: rgba(255, 255, 255, 0.84);
  --muted: rgba(255, 255, 255, 0.62);
  --red: #b21e24;          /* logo feather red: use for fills, bars, buttons */
  --red-hover: #cc262d;
  --red-text: #f0474f;     /* brighter red for small text on black (readable contrast) */

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Saira", "Arial Black", Impact, sans-serif;

  --container: 1200px;
  --gutter: 24px;
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; color: var(--white); text-wrap: balance; }

.display,
.statement,
.cta-band h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.display { font-size: clamp(3rem, 9vw, 6.5rem); }
.display--page { font-size: clamp(2.5rem, 7vw, 5rem); }

.statement { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1; color: var(--white); }

.eyebrow {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-text);
}

.lede {
  max-width: 40rem;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-title::before {
  content: "";
  flex: none;
  width: 36px;
  height: 3px;
  background: var(--red);
}

h3 {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--red-text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 18px 34px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); }

.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }

.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: transparent; border-color: var(--black); color: var(--black); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-sm { padding: 11px 20px; font-size: 0.75rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

@media (max-width: 520px) {
  .btn { padding: 16px 22px; letter-spacing: 0.16em; }
  .btn-sm { padding: 11px 18px; }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.brand { position: relative; z-index: 2; flex: none; }
.brand img { width: auto; height: 58px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.site-nav ul a:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-inner { min-height: 76px; }
  .brand img { height: 44px; }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 44px;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }

  .site-nav ul { flex-direction: column; align-items: center; gap: 14px; }
  .site-nav ul a {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-stretch: 125%;
    font-size: 2.1rem;
    letter-spacing: 0.01em;
  }
}

/* ---------- Hero (home) ---------- */

.hero { padding: clamp(64px, 10vw, 130px) 0 clamp(80px, 11vw, 140px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-mark { justify-self: end; width: 100%; max-width: 420px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* ---------- Inner page header ---------- */

.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }

/* ---------- Sections & grids ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.grid-2--cards { gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-4--people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .grid-4--people .person-name { font-size: 0.95rem; }
}

.stack-lg > * + * { margin-top: 56px; }

.photo-wide { margin: clamp(40px, 6vw, 72px) 0 0; }
.photo-wide img { width: 100%; border: 1px solid var(--line); }

/* ---------- Cards ---------- */

.card { padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); }
.card p + p, .card p + .text-link { margin-top: 20px; }
.card p + .btn { margin-top: 28px; }
.card .statement { color: var(--white); }

.card-num {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red-text);
}

/* ---------- Events ---------- */

.event-list { display: grid; gap: 16px; }

.event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--red);
  color: var(--white);
  text-transform: uppercase;
}
.event-month { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.2em; }
.event-day {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 2.4rem;
  line-height: 1;
}

.event-meta {
  margin: 6px 0 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
}
.event-body p { margin: 0; }
.event-body p:last-child { color: var(--muted); }

@media (max-width: 700px) {
  .event { grid-template-columns: auto minmax(0, 1fr); gap: 18px 20px; padding: 20px; }
  .event .btn { grid-column: 1 / -1; }
  .event-date { width: 72px; height: 72px; align-self: start; }
  .event-day { font-size: 1.8rem; }
}

.schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.schedule .statement { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--white); }
.schedule p + p { margin: 12px 0 0; }

/* ---------- Leadership ---------- */

.headshot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.headshot--empty {
  background: var(--surface-2) url("../assets/img/feather.png") center / 42% no-repeat;
}

.person-role {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-text);
}
.person-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.person-contact { margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Store ---------- */

.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }

.product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 16%;
  background: var(--surface-2);
}
.product-img img { width: 100%; }
.product-img--photo { padding: 0; }
.product-img--photo img { width: 100%; height: 100%; object-fit: cover; }

.product-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 22px; }
.product-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.product-body .product-price { margin-top: auto; padding-top: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--white); }
.product-body .btn { margin-top: 18px; }
.product-body .product-status {
  margin-top: auto;
  padding: 11px 20px;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-body h3 + .product-status { margin-top: 18px; }

/* ---------- Contact ---------- */

.contact-list { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.contact-list .label {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-text);
}
.contact-list .value { font-weight: 600; font-size: 1.15rem; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
a.value:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Red call-to-action band ---------- */

.cta-band { padding: clamp(56px, 8vw, 96px) 0; background: var(--red); color: var(--white); }
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.cta-band p { max-width: 34rem; margin: 14px 0 0; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { padding: 72px 0 44px; text-align: center; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.footer-brand img { width: auto; height: 64px; }

.social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--white);
  transition: background-color 0.15s, color 0.15s;
}
.social a:hover { background: var(--white); color: var(--black); }
.social svg { width: 20px; height: 20px; }
.social--left { justify-content: flex-start; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-underline-offset: 4px;
}
.footer-links a:hover { color: var(--red-text); }

.fineprint { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.fineprint a:hover { color: var(--white); }
.credit { margin-top: -20px; font-size: 0.72rem; letter-spacing: 0.04em; }

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