/* crg-ve.com: colors taken from the amber display of the radio in pic/radio.webp. */
:root {
  --ink: #1b1e23;
  --ink-2: #4a5059;
  --paper: #ffffff;
  --paper-2: #f6f3ee;
  --line: #e6dfd4;
  --night: #15181c;
  --night-2: #23282e;
  --amber: #ff8a2a;        /* LCD amber: on dark backgrounds only */
  --accent: #c2410c;       /* links and buttons on light backgrounds (white text passes AA) */
  --accent-dark: #9a3412;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 10px 28px rgba(20, 22, 26, .07);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header { background: var(--night); color: #fff; border-bottom: 3px solid var(--amber); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.3rem; letter-spacing: .03em; }
.brand-text span { font-size: .8rem; color: #aeb4bc; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: #e6e8eb; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--amber); color: var(--night); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; line-height: 1.2; text-decoration: none; }
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* Hero (home) */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--night) url("/pic/radio.webp") 72% center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 17, 20, .95) 0%, rgba(15, 17, 20, .84) 48%, rgba(15, 17, 20, .3) 100%); }
.hero .wrap { padding-block: clamp(72px, 11vw, 136px); }
.hero h1 { max-width: 13ch; }
.hero .lead { color: #d3d7dc; max-width: 54ch; }
.hero .eyebrow { color: var(--amber); }
.hero .btn-primary { background: var(--amber); color: var(--night); }
.hero .btn-primary:hover { background: #ffa04f; color: var(--night); }

/* Inner page headers: faint radio-wave rings behind the title */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding-block: clamp(52px, 8vw, 92px); }
.page-head::after { content: ""; position: absolute; z-index: -1; right: -160px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 138, 42, .2) 0 2px, transparent 2px 32px); }
.page-head .eyebrow { color: var(--amber); }
.page-head .lead { color: #c9ced4; }
.page-head-tall { padding-block: clamp(80px, 14vw, 160px); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); }
.split { display: grid; gap: 48px; align-items: start; }
.split > * { min-width: 0; }

/* Steps (home) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.step { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 1.15rem; background: var(--night); color: var(--amber); text-shadow: 0 0 8px rgba(255, 138, 42, .5); }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step a { margin-top: auto; font-weight: 700; text-decoration: none; }
.step a::after { content: "\00a0\2192"; }
.step a:hover { text-decoration: underline; }
.step-final { background: var(--night); border-color: var(--night); color: #fff; }
.step-final p { color: #c9ced4; }
.step-final a, .step-final a:hover { color: var(--amber); }
.step-final::before { background: var(--amber); color: var(--night); text-shadow: none; }

/* Orange band */
.band { background-color: var(--accent); color: #fff; text-align: center; padding-block: clamp(52px, 7vw, 84px);
  background-image: repeating-radial-gradient(circle at 50% 130%, rgba(255, 255, 255, .07) 0 2px, transparent 2px 34px); }
.band h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); }
.band p { max-width: 62ch; margin: 0 auto; font-size: 1.1rem; }

/* Session facts */
.facts { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 18px; }
.facts li { display: flex; gap: 16px; align-items: flex-start; }
.fact-icon, .card-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: #fff1e6; color: var(--accent); }
.fact-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.fact-value { display: block; font-weight: 600; font-size: 1.08rem; }
.fact-link { display: inline-block; margin-top: 4px; font-size: .95rem; font-weight: 600; }
.note { background: #fff7ef; border-left: 4px solid var(--amber); border-radius: 8px; padding: 12px 16px; color: var(--ink); }

/* Elfsight calendar */
.calendar { min-height: 320px; scroll-margin-top: 24px; }

/* FAQ */
.faq-layout { display: grid; gap: 40px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details > p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }
.faq-aside { display: grid; gap: 20px; }
.tip { background: var(--night); color: #d3d7dc; border-radius: var(--radius); padding: 24px; }
.tip h2 { color: #fff; font-size: 1.25rem; }
.tip strong { color: #fff; }
.tip a { color: var(--amber); font-weight: 700; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* Team */
.photo-tall { max-width: 320px; aspect-ratio: 3 / 4; justify-self: center; }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px 24px; text-align: center; }
.callsign { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 1.4rem; letter-spacing: .1em; color: var(--amber); background: var(--night);
  padding: 8px 16px; border-radius: 8px; text-shadow: 0 0 10px rgba(255, 138, 42, .55); box-shadow: inset 0 0 0 1px rgba(255, 138, 42, .3); }
.member h3 { margin: 16px 0 6px; font-size: 1.3rem; }
.license { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px; padding: 24px 28px; background: #fff; border: 1px dashed #d8cbbb; border-radius: var(--radius); }
.join h3, .join p { margin: 0; }
.join p { color: var(--ink-2); }

/* Contact cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card-icon { margin-bottom: 16px; }
.card h2 { font-size: 1.4rem; }
.email-link { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--night); color: #b9bfc6; padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 40px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a[aria-current="page"] { color: var(--amber); }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: .03em; margin-bottom: 6px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .875rem; color: #8d949c; }
.footer-base p { margin: 0; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-media { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .faq-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .faq-aside { position: sticky; top: 24px; }
}

@media (max-width: 899px) {
  .faq-aside .photo { max-height: 360px; object-position: center 25%; }
}

@media (max-width: 720px) {
  .hero { background-position: 78% center; }
  .hero::before { background: rgba(15, 17, 20, .84); }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 2px; }
  .site-nav a { padding: 7px 11px; font-size: .92rem; }
  .page-head::after { right: -300px; opacity: .7; }
  .join { padding: 20px; }
  .team { gap: 12px; }
  .member { padding: 22px 10px 18px; }
  .callsign { font-size: 1.15rem; padding: 7px 10px; }
  .member h3 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
