/* NOBCChE at NCCU — styles
   Palette nods to NCCU maroon & gray with a warm gold accent. */
:root {
  --maroon: #7a1f2b;
  --maroon-700: #5e1621;
  --maroon-100: #f6e9eb;
  --gold: #c9a227;
  --gray-50: #f7f6f4;
  --gray-200: #e4e1dd;
  --gray-500: #6e6a66;
  --ink: #1d1a19;

  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --surface: #ffffff;
  --text: var(--ink);
  --muted: var(--gray-500);
  --border: var(--gray-200);
  --accent: var(--maroon);
  --accent-strong: var(--maroon-700);
  --accent-soft: var(--maroon-100);
  --on-accent: #ffffff;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141112;
    --bg-alt: #1b1718;
    --surface: #211c1d;
    --text: #f1ecea;
    --muted: #a59e9b;
    --border: #352e2f;
    --accent: #e0707f;
    --accent-strong: #ee8f9b;
    --accent-soft: #3a1f24;
    --on-accent: #1a0e10;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.02em; }
h1 { font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .6rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.4em; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  text-decoration: none; border: 2px solid var(--accent); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-small { padding: .45em 1.1em; font-size: .95rem; }
.btn-block { display: block; text-align: center; margin-top: .6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.brand small { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-menu a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-menu .btn { margin-top: .8rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4rem, 10vw, 7rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,162,39,.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 45%),
    linear-gradient(135deg, #5e1621 0%, #7a1f2b 55%, #8f2a37 100%);
}
.hero-bg::after {
  /* subtle hexagon (benzene) lattice */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 1 L55 17 L55 49 L28 65 L1 49 L1 17 Z M28 65 L28 97' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 98px;
  mask-image: linear-gradient(to left, #000 10%, transparent 75%);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%);
}
.hero .eyebrow { color: #f0d77a; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 17ch; line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 .hl { color: #f0d77a; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 58ch; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn:not(.btn-ghost) { background: #fff; color: var(--maroon); border-color: #fff; }
.hero .btn:not(.btn-ghost):hover { background: #f6e9eb; border-color: #f6e9eb; color: var(--maroon-700); }

/* Facts */
.facts { border-bottom: 1px solid var(--border); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-grid div { padding: 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; }
.facts-grid div + div { border-left: 1px solid var(--border); }
.facts-grid strong { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: .2rem; }
.facts-grid span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) {
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid div + div { border-left: 0; border-top: 1px solid var(--border); }
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.mission { border-top: 4px solid var(--gold); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .8rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237a1f2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.feature { transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); }
.feature h3 { margin-bottom: .5rem; }
.feature .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); font-size: 1.5rem; margin-bottom: 1rem; }
.feature p { color: var(--muted); margin: 0; }

/* Events */
.events { display: grid; gap: 1rem; margin: 2rem 0 1.25rem; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 1.25rem; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.event-date { background: var(--accent); color: var(--on-accent); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; }
.event-date .m { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; font-weight: 600; }
.event-date .d { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.event-body h3 { margin: .5rem 0 .25rem; }
.event-body p { margin: 0 0 .4rem; }
.event-meta { color: var(--accent); font-weight: 500; font-size: .93rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .2em .7em; border-radius: 999px; }
@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; gap: .5rem; height: auto; padding: .4rem .8rem; width: fit-content; }
  .event-date .d { font-size: 1.2rem; }
}

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 1.25rem; margin-top: 2rem; }
.person { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem; }
.person h3 { font-size: 1.05rem; margin: 1rem 0 .2rem; }
.person .role { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0; }
.person .muted { margin: .3rem 0 0; }
.avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon), #a33a48); color: #fff; font-size: 1.6rem; font-weight: 700; border: 3px solid var(--gold); }
.subhead { margin-top: 3.5rem; margin-bottom: 0; }

/* Join */
.steps { padding-left: 1.3rem; margin: 1.5rem 0 0; }
.steps li { margin-bottom: 1rem; padding-left: .4rem; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.contact-card { border-top: 4px solid var(--accent); }

/* Resources */
.resource-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.resource-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.resource-list a { font-weight: 600; text-decoration: none; }
.resource-list a::after { content: " ↗"; }
.resource-list span { color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { background: #1b1314; color: #d9d0cd; padding: 3rem 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #b5aaa7; }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-inner p { margin: 0; max-width: 70ch; }
.site-footer .muted { color: #958a87; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }

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

.person-link { display: inline-block; margin-top: .7rem; font-size: .85rem; font-weight: 600; text-decoration: none; padding: .3em .9em; border: 1px solid var(--border); border-radius: 999px; }
.person-link:hover { border-color: var(--accent); }
.person-link::after { content: " ↗"; }

/* Logo in hero */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
.hero-logo { width: clamp(220px, 28vw, 380px); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { order: -1; width: 160px; }
}
.site-footer .social a { color: #f0d77a; font-weight: 600; text-decoration: none; }
.site-footer .social a::after { content: " ↗"; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gallery-item { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { padding: .75rem 1rem; font-size: .9rem; color: var(--muted); }
.gallery-more { margin-top: 1.25rem; }

/* Hall of Fame */
.hof { background: #f4eedd; }
.hof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hof-meta { font-weight: 600; color: var(--accent); }
.hof h3 { margin-top: 2rem; }
.honorees { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.25rem; }
.honorees li { padding: .65rem 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 8px; font-weight: 500; }
.hof-flyer { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hof-flyer img { width: 100%; height: auto; }
@media (max-width: 860px) { .hof-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .honorees { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) { .hof { background: #1f1a16; } }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 1.25rem; }
/* tighter nav spacing on mid-size screens */
@media (max-width: 1060px) and (min-width: 821px) { .nav-menu { gap: 1rem; } }

/* Contact icon buttons */
.contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.contact-email { margin: 1rem 0 0; text-align: center; font-weight: 600; }
@media (max-width: 420px) { .social-tile { padding: .9rem .25rem; } .social-icon { width: 46px; height: 46px; } }
.social-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.1rem .5rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); transition: transform .15s, border-color .15s, box-shadow .15s; }
.social-tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.social-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: .25rem; }
.social-icon svg { width: 26px; height: 26px; }
.social-icon.email { background: var(--maroon); }
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon.facebook { background: #1877f2; }
.social-icon.linkedin { background: #0a66c2; }
.social-icon.groupme { background: #00aff0; }
.social-label { font-weight: 600; font-size: .95rem; }
.social-sub { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }

.footer-social { display: flex; gap: .75rem; }
.footer-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #f0d77a; transition: background .15s, color .15s; }
.footer-icon svg { width: 20px; height: 20px; }
.footer-icon:hover { background: #f0d77a; color: #1b1314; }
.social-sub.short { display: none; }
@media (max-width: 560px) { .social-sub:has(+ .social-sub.short) { display: none; } .social-sub.short { display: block; } }

/* Sub-page hero */
.page-hero { background: linear-gradient(135deg, #5e1621 0%, #7a1f2b 60%, #8f2a37 100%); color: #fff; padding: clamp(3rem, 8vw, 5rem) 0; }
.page-hero .eyebrow { color: #f0d77a; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; }
.page-hero .lede { color: rgba(255,255,255,.88); max-width: 55ch; margin: 0; }
.nav-menu a[aria-current="page"] { color: var(--accent); }
.event-date .y { font-size: .7rem; opacity: .85; }
.back-home { text-align: center; }
.back-home p { margin-bottom: 1.5rem; }
