/* Layout: highway signage. Asphalt header with a dashed lane stripe, one green guide sign for the next meeting, left-aligned content on a concrete ground. */
:root {
  --ground: #eceeea;      /* concrete */
  --surface: #f8f9f6;
  --ink: #1b1e1c;
  --muted: #59605b;
  --rule: #c9cdc7;
  --asphalt: #262927;
  --asphalt-ink: #eef0ec;
  --stripe: #e8ad00;      /* lane-line yellow */
  --route: #146b40;       /* guide-sign green */
  --route-ink: #ffffff;
  --link: #0f5a35;
  --shield-bg: #ffffff;
  --shield-fg: #1b1e1c;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141715; --surface: #1c201d; --ink: #e7eae6; --muted: #9ea69f; --rule: #333833;
    --asphalt: #0c0e0d; --asphalt-ink: #e7eae6; --stripe: #f2bd1f; --route: #17744a; --route-ink: #ffffff;
    --link: #6fcf9c; --shield-bg: #e7eae6; --shield-fg: #141715; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #141715; --surface: #1c201d; --ink: #e7eae6; --muted: #9ea69f; --rule: #333833;
  --asphalt: #0c0e0d; --asphalt-ink: #e7eae6; --stripe: #f2bd1f; --route: #17744a; --route-ink: #ffffff;
  --link: #6fcf9c; --shield-bg: #e7eae6; --shield-fg: #141715; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--stripe); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h2 { font-size: 1.85rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-head { background: var(--asphalt); color: var(--asphalt-ink); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand b { display: block; font: 900 1.45rem/1 var(--display); letter-spacing: .02em; }
.brand small { font: 700 1rem/1.1 var(--display); color: var(--stripe); letter-spacing: .08em; }
.shield { width: 44px; height: 48px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--asphalt-ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--stripe); }
.menu-btn { display: none; background: none; color: var(--asphalt-ink); border: 2px solid var(--asphalt-ink); border-radius: 4px; font: 600 .95rem var(--body); padding: 6px 12px; cursor: pointer; }
.lane { height: 6px; background: repeating-linear-gradient(90deg, var(--stripe) 0 48px, transparent 48px 84px); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid #ffffff22; }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid #ffffff22; color: var(--stripe); }
}

/* Hero */
main { display: block; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: 56px 40px; }
.hero-text { min-width: 0; display: grid; gap: 20px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.75rem); text-transform: uppercase; line-height: .92; }
.hero h1 span { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* The guide sign */
.guide-sign { background: var(--route); color: var(--route-ink); border-radius: 14px; padding: 8px; box-shadow: 0 2px 0 #0000002e; }
.sign-inner { border: 3px solid var(--route-ink); border-radius: 9px; padding: 22px 22px 18px; display: grid; gap: 14px; }
.sign-label { font: 700 1rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
#next-meetings { display: grid; gap: 14px; }
.sign-row { display: grid; gap: 2px; }
.sign-row + .sign-row { border-top: 2px solid #ffffff55; padding-top: 14px; }
.sign-row strong { font: 900 2.1rem/1 var(--display); }
.sign-row .when { font: 700 1.35rem/1.15 var(--display); letter-spacing: .02em; }
.sign-row span { font-size: .98rem; }
.sign-link { color: var(--route-ink); font-weight: 700; justify-self: start; }

/* Sections */
.section { padding-block: 40px; display: grid; gap: 18px; }
.section > h2 { margin-top: 12px; }
.page-title { font-size: clamp(2.6rem, 6vw, 4rem); text-transform: uppercase; }
.note { color: var(--muted); font-size: .95rem; }
.btn { display: inline-block; background: var(--asphalt); color: var(--asphalt-ink); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 4px; border-bottom: 4px solid var(--stripe); }
.btn:hover { filter: brightness(1.15); }

.exits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.exits li { border-bottom: 1px solid var(--rule); }
.exits li:nth-child(odd) { border-right: 1px solid var(--rule); }
.exits a { display: grid; gap: 2px; padding: 18px 20px 18px 0; text-decoration: none; color: var(--ink); height: 100%; }
.exits li:nth-child(even) a { padding-left: 20px; }
.exits b { font: 900 1.55rem/1.1 var(--display); color: var(--link); }
.exits span { color: var(--muted); }
.exits a:hover b { text-decoration: underline; text-underline-offset: 4px; }

.split { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px; }
.split > div { display: grid; gap: 12px; }
.split img { border-radius: 12px; }

/* Meetings */
.sched-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sched { background: var(--surface); border-top: 6px solid var(--route); padding: 22px; display: grid; gap: 14px; align-content: start; }
.where { color: var(--muted); }
.where b { color: var(--ink); }
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dates li { font: 700 1.35rem/1 var(--display); padding: 12px 10px; border: 2px solid var(--rule); border-radius: 6px; font-variant-numeric: tabular-nums; }
.dates li small { display: block; font: 400 .8rem var(--body); color: var(--muted); margin-top: 4px; }
.dates li.past { opacity: .45; }
.dates li.next { border-color: var(--route); background: var(--route); color: var(--route-ink); }
.dates li.next small { color: var(--route-ink); }

/* Embeds */
.embed { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed.cal iframe { height: 640px; }
.embed.form iframe { height: 1400px; }

/* Upcoming events */
.upcoming { display: grid; gap: 14px; }
.cal-head { margin-top: 12px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.event { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.ev-date { background: var(--route); color: var(--route-ink); border-radius: 8px; text-align: center; padding: 8px 4px; display: grid; font: 700 .85rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ev-date b { font: 900 2rem/1 var(--display); }
.ev-body { display: grid; gap: 4px; min-width: 0; }
.ev-body h3 { font-size: 1.6rem; }
.ev-meta { color: var(--muted); font-weight: 600; }
.ev-desc { max-width: 60ch; }
.flyer { display: grid; gap: 8px; justify-items: start; }
.flyer img { width: 160px; border-radius: 6px; border: 1px solid var(--rule); }
.flyer-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .event { grid-template-columns: 60px minmax(0, 1fr); }
  .flyer { grid-column: 2; }
}

/* Lists */
.clubs { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 32px; border-top: 2px solid var(--ink); }
.clubs li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 700 1.4rem/1.2 var(--display); }
.linklist { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.officers { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.officer { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.officer dt { font-size: .9rem; color: var(--muted); font-weight: 600; }
.officer dd { margin: 4px 0 0; display: grid; gap: 2px; }
.officer dd b { font: 900 1.6rem/1.1 var(--display); }
.officer dd a { font-variant-numeric: tabular-nums; }

/* Rights */
.rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 8px; }
.rights-grid article { display: grid; gap: 10px; align-content: start; min-width: 0; }
.rights-grid h2 { font-size: 1.6rem; border-bottom: 3px solid var(--stripe); padding-bottom: 6px; }
.rights-grid ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; }
.script { background: var(--asphalt); color: var(--asphalt-ink); border-radius: 8px; padding: 24px; display: grid; gap: 12px; margin-block: 16px; }
.script blockquote { margin: 0; display: grid; gap: 10px; font-size: 1.1rem; max-width: 70ch; }

/* Footer */
.site-foot { background: var(--asphalt); color: var(--asphalt-ink); margin-top: 40px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; font-size: .95rem; }
.site-foot a { color: var(--stripe); }
.foot-row { align-items: center; }
.fu { display: flex; align-items: center; gap: 10px; font: 900 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.fu img { border-radius: 6px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 24px; gap: 28px; }
  .exits { grid-template-columns: 1fr; }
  .exits li:nth-child(odd) { border-right: 0; }
  .exits li:nth-child(even) a { padding-left: 0; }
  .sched-grid, .rights-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split img { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
