/* Ak-Sar-Ben ARC — colors taken from the club shield. */
:root {
  --green-900: #0f3d1d;
  --green-800: #15502a;
  --green-700: #1c6a37;
  --green-100: #e7f2ea;
  --gold: #f4d000;
  --gold-soft: #fff6c7;
  --ink: #1b2420;
  --ink-soft: #4c5a53;
  --line: #dbe3de;
  --bg: #f7f8f6;
  --card: #ffffff;
  --link: #17602f;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 40 24 / 6%), 0 4px 16px rgb(16 40 24 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ece8;
    --ink-soft: #a9b8b0;
    --line: #2c3a33;
    --bg: #111814;
    --card: #18221c;
    --link: #8fd4a4;
    --green-100: #1d2e23;
    --gold-soft: #3a3410;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: .88rem; color: var(--ink-soft); }
.meta { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; margin: 0 0 .5rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: .5rem 1rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.button {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  margin: .25rem .5rem .25rem 0;
  border: 2px solid transparent;
}
.button:hover { background: var(--green-800); }
.button-accent { background: var(--gold); color: var(--green-900); }
.button-accent:hover { background: #ffe03a; }
.button-ghost { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.button-ghost:hover { background: rgb(255 255 255 / 10%); }
.button-secondary { background: transparent; color: var(--link); border-color: currentColor; }
.button-secondary:hover { background: var(--green-100); }

/* Header */
.site-header {
  background: var(--card);
  border-top: 5px solid var(--gold);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.brand small { color: var(--ink-soft); font-size: .8rem; }

.menu-button { display: none; }
.site-nav { display: flex; gap: .25rem; align-items: center; }
.site-nav a {
  padding: .5rem .75rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: .95rem;
}
.site-nav a:hover { background: var(--green-100); }
.site-nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-nav a.nav-cta { background: var(--green-700); color: #fff; border-radius: 999px; margin-left: .5rem; box-shadow: none; }
.site-nav a.nav-cta:hover { background: var(--green-800); }

@media (max-width: 960px) {
  .brand small { display: none; }
  /* Without JavaScript the menu just wraps under the logo. */
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  .no-js .site-nav { flex-wrap: wrap; }
  .js .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    cursor: pointer;
  }
  .menu-button span,
  .menu-button span::before,
  .menu-button span::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }
  .menu-button span::before { position: absolute; top: -6px; }
  .menu-button span::after { position: absolute; top: 6px; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem;
    box-shadow: var(--shadow);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: .8rem .5rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 1rem; }
  .js .site-nav a.nav-cta { margin: .5rem 0 0; text-align: center; padding-left: .5rem; }
}

.timetravel {
  background: var(--gold-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: .5rem 16px;
  font-size: .92rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgb(244 208 0 / 18%), transparent 60%),
    linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: rgb(255 255 255 / 85%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.hero-actions { margin-top: 1.5rem; }

.meeting-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgb(0 0 0 / 25%);
  border-top: 6px solid var(--gold);
}
.meeting-card .eyebrow { color: var(--green-700); }
.meeting-date { font-size: 1.6rem; font-weight: 750; margin: 0; line-height: 1.2; }
.meeting-time { margin: .25rem 0 1rem; color: var(--ink-soft); }
.meeting-card dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.meeting-card dt { font-weight: 650; color: var(--ink-soft); font-size: .9rem; padding-top: .1rem; }
.meeting-card dd { margin: 0; }
.meeting-card .small { margin: 0; border-top: 1px solid var(--line); padding-top: .75rem; }

@media (prefers-color-scheme: dark) {
  .meeting-card .eyebrow { color: var(--gold); }
}

/* Quick links */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -1.75rem; position: relative; }
.quick-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-700);
  display: grid;
  gap: .2rem;
}
.quick-card strong { font-size: 1.05rem; color: var(--link); }
.quick-card span { color: var(--ink-soft); font-size: .93rem; }
.quick-card:hover { border-left-color: var(--gold); transform: translateY(-1px); }

/* Home */
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin: 1rem auto 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head a { font-size: .92rem; font-weight: 600; }

.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.news-card.has-image { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; }
.news-card img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.news-card h2, .news-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.news-card h2 a, .news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--link); text-decoration: underline; }
.news-card p:last-child { margin-bottom: 0; }
.news-list { margin-bottom: 3rem; }
.news-list > * { max-width: 760px; }

/* Agenda */
.agenda { list-style: none; padding: 0; margin: 0 0 1rem; }
.agenda-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: start;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.agenda-item:first-child { padding-top: 0; }
.agenda-item h3 { font-size: 1rem; }
.agenda-item h3 a { color: var(--ink); text-decoration: none; }
.agenda-item h3 a:hover { color: var(--link); text-decoration: underline; }
.agenda-item .meta { margin: 0; }
.datebox {
  display: grid;
  text-align: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  line-height: 1.1;
  padding: .35rem 0;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
}
.datebox strong { font-size: 1.35rem; color: var(--ink); letter-spacing: 0; }
.kind-meeting .datebox { background: var(--green-700); border-color: var(--green-700); color: rgb(255 255 255 / 80%); }
.kind-meeting .datebox strong { color: #fff; }
.kind-hamfest .datebox, .kind-community-service .datebox { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.is-cancelled h3 { text-decoration: line-through; }

/* Inner pages */
.page-head { padding: 2.5rem 0 1rem; }
.page-head .lede { margin-top: .5rem; }
.prose { margin-bottom: 3rem; }
.prose > * { max-width: 760px; }
.prose > h2:first-child { border-top: 0; padding-top: 0; margin-top: .5rem; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.prose table, table.data { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; background: var(--card); }
.prose th, .prose td, table.data th, table.data td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th:empty { display: none; }
.prose thead:has(th:empty) { display: none; }
.prose th, table.data th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); background: var(--green-100); }
.prose li { margin-bottom: .35rem; }
.callout {
  background: var(--gold-soft);
  border-left: 5px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.table-scroll table.data { margin: 0; }
table.data tr.is-club td { background: var(--gold-soft); font-weight: 600; }

.feature-repeater {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.feature-repeater .eyebrow { color: var(--gold); }
.feature-repeater p { margin: 0; }
.feature-repeater .freq { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.feature-repeater .freq span { font-size: 1rem; opacity: .8; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.chips a {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: .3rem .9rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}

.nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.nets section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.nets h3 { color: var(--link); }
.nets ul { list-style: none; padding: 0; margin: 0; }
.nets li { display: grid; grid-template-columns: 5.5rem 5.5rem 1fr; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.nets li:first-child { border-top: 0; }

.contact-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.contact-groups h2 { margin-top: 0; }
.contacts { list-style: none; padding: 0; margin: 0; }
.contacts li { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contacts .role { font-weight: 650; }
.contacts a { grid-column: 1 / -1; font-size: .92rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--green-900); color: rgb(255 255 255 / 82%); padding: 2.5rem 0 1.5rem; font-size: .93rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-grid p { margin: .5rem 0 0; }
.demo-bar {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgb(255 255 255 / 25%);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
}
.demo-bar input, .demo-bar button { font: inherit; padding: .25rem .5rem; border-radius: 6px; border: 0; }
.demo-bar button { background: var(--gold); color: var(--green-900); font-weight: 700; cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .home-grid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-repeater { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .news-card.has-image { grid-template-columns: 1fr; }
  .prose table { display: block; overflow-x: auto; }
  .nets li { grid-template-columns: 4.8rem 4.8rem 1fr; }
}
