/* Fonts are served from this repo so the page needs no third-party font requests. */
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("assets/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("assets/fonts/outfit-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --cyan: #01d3ff;       /* CSTA logo blue */
  --black: #000000;      /* CSTA logo black */
  --text: #1b2429;
  --muted: #4c5a61;
  --link: #005f75;       /* darker cyan, readable on white */
  --tint: #eefaff;
  --line: #cfe3ea;
  --display: "Outfit", "Century Gothic", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

h1, h2, h3 { font-family: var(--display); color: var(--black); line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.015em; max-width: 19ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; box-shadow: 0 0 0 6px var(--cyan); }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
main [id] { scroll-margin-top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1rem; }
.brand img { width: 15rem; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
nav a { color: var(--black); font-weight: 600; text-decoration: none; padding-block: .25rem; }
nav a:hover { text-decoration: underline; }

/* Top of page: headline, then one strong push to the chapter site */
.hero h1 { max-width: none; text-align: center; font-size: clamp(2.1rem, 5.6vw, 4rem); margin-block: 0; padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.go { background: var(--cyan); color: var(--black); text-align: center; padding-block: clamp(1.75rem, 3.5vw, 2.25rem); }
.go h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .35rem; }
.go p { font-size: 1.2rem; margin: 0 auto .5rem; }
.button {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  text-decoration: none;
  padding: 1.1rem clamp(1.4rem, 5vw, 2.75rem);
  margin-top: .75rem;
  border-radius: 4rem;
}
.button:hover { text-decoration: underline; }

/* Content sections: heading column on the left, content on the right */
.block { padding-block: clamp(3rem, 6vw, 5rem); }
.tint { background: var(--tint); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 1.5rem 4rem; align-items: start; }
.body > :last-child { margin-bottom: 0; }
.aside { color: var(--muted); }

.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; margin-top: 2rem; }
.activity-grid article { border-top: 4px solid var(--black); padding-top: 1rem; }
.activity-grid article:nth-child(odd) { border-top-color: var(--cyan); }
.activity-grid p { margin: 0; }

/* Year-by-year history */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.timeline > li:first-child { border-top: 0; padding-top: 0; }
.timeline h3 { display: contents; }
.timeline .year { grid-column: 1; grid-row: 1 / span 2; font-family: var(--display); font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--black); }
.timeline .when { grid-column: 2; font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--black); margin-bottom: .35rem; }
.timeline > li > p { grid-column: 2; margin: 0; }
.timeline .more { grid-column: 2; margin-top: .75rem; }

.facts-list { margin: 1.75rem 0 0; }
.facts-list > div { border-left: 4px solid var(--cyan); padding-left: 1.25rem; margin-bottom: 1.5rem; }
.facts-list dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--black); }
.facts-list dd { margin: .25rem 0 0; max-width: 62ch; }

/* Videos, documents and recordings that sit with their event */
.feature { margin: 0 0 2.5rem; }
.video { display: block; text-decoration: none; color: var(--black); }
.thumb { display: block; aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; }
.thumb img, .thumb iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.feature .title { display: block; font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-top: .65rem; }
.video:hover .title { text-decoration: underline; }
.length { color: var(--muted); font-size: 1rem; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.75rem; font-weight: 600; }
summary { cursor: pointer; color: var(--link); font-weight: 600; padding-block: .25rem; }
summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.links + details { margin-top: .5rem; }
details > p { margin: .5rem 0; color: var(--muted); }
details > ul { margin: .5rem 0 0; padding-left: 1.1rem; max-width: 62ch; }
details li { margin-bottom: .35rem; break-inside: avoid; }
.recordings { columns: 2 14rem; }
#community details { margin-bottom: 1em; }

/* Organization record */
.ink { background: var(--black); color: #fff; }
.ink h2 { color: #fff; }
.ink a { color: var(--cyan); }
.record { margin: 0; }
.record > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: .25rem 1.5rem; padding-block: .85rem; border-top: 1px solid #333; }
.record > div:first-child { border-top: 0; padding-top: 0; }
.record dt { color: #aebcc2; }
.record dd { margin: 0; font-weight: 600; }
.record .ein { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; color: var(--cyan); font-variant-numeric: tabular-nums; }

/* Contact and footer */
.contact .split { align-items: baseline; }
.email { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 4.5vw, 2.4rem); overflow-wrap: anywhere; }
.email a { color: var(--black); text-decoration-color: var(--cyan); text-decoration-thickness: .18em; }
.site-footer { background: var(--cyan); color: var(--black); padding-block: 2rem; font-size: 1rem; }
.site-footer p { margin: 0 0 .25rem; }
.site-footer a { color: var(--black); font-weight: 600; }

@media (max-width: 52rem) {
  body { font-size: 1.0625rem; }
  .split, .activity-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  .brand img { width: 12.5rem; }
  nav { width: 100%; justify-content: space-between; gap: .25rem .5rem; font-size: .9rem; }
  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.1rem); padding-block: 1.5rem; }
  .go { padding-block: 1.5rem; }
  .go p { font-size: 1.125rem; }
  .timeline > li { grid-template-columns: minmax(0, 1fr); }
  .timeline .year, .timeline .when, .timeline > li > p, .timeline .more { grid-column: 1; grid-row: auto; }
  .timeline .year { font-size: 2rem; margin-bottom: .35rem; }
  .record > div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22rem) {
  nav { display: grid; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.5rem; padding-block: 1rem; }
  .go { padding-block: 1rem; }
  .go h2 { font-size: 1.4rem; }
}

@media print {
  nav, .feature .thumb, .button { display: none; }
  .ink { background: #fff; color: #000; }
  .ink h2, .ink a, .record .ein, .record dt { color: #000; }
}
