/* Cherokee Language Program — the We Speak Cherokee family look (the hub's tokens):
   purple leads, gold is rare, small radii, a 2px gold rule above section headings. */

:root {
  --font-sans: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-cherokee: 'Noto Sans Cherokee', 'Plantagenet Cherokee', 'Gadugi', sans-serif;
  --purple: #592c88;
  --purple-dark: #3e1f60;
  --gold: #c1a875;
  --ink: #221a2c;
  --ink-soft: #5b5468;
  --line: #e6e1ec;
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f7f4fa;
  --link: #592c88;
  --radius-s: 4px;
  --radius-m: 10px;
  --shadow-card: 0 1px 2px rgba(44, 27, 57, 0.06), 0 8px 24px rgba(44, 27, 57, 0.08);
  color-scheme: light;
}

[data-theme='dark'] {
  --purple: #8a5cc2;
  --ink: #f5f1fa;
  --ink-soft: #b9aecb;
  --line: rgba(255, 255, 255, 0.12);
  --bg: #2c1b39;
  --surface: #3e1f60;
  --tint: #351f47;
  --link: #d9c6f2;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

[lang='chr'], .chr { font-family: var(--font-cherokee); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-s); }

/* ---- header ---- */
.site-header { background: var(--purple-dark); color: #fff; }
.header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: 10px; }
.hub-link { color: #e9dcf7; font-size: 0.875rem; text-decoration: none; order: 2; }
.hub-link:hover { text-decoration: underline; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.site-nav { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.site-nav a {
  color: #fff; text-decoration: none; white-space: nowrap;
  padding: 12px 12px 10px; font-weight: 600; font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: rgba(193, 168, 117, 0.6); }
.site-nav a[aria-current='page'] { border-bottom-color: var(--gold); }

/* ---- page heads ---- */
.hero {
  position: relative; color: #fff; background-color: var(--purple-dark);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(46, 21, 72, 0.92) 0%, rgba(62, 31, 96, 0.78) 55%, rgba(62, 31, 96, 0.35) 100%);
}
.hero > .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 18ch; }
.hero.small > .wrap { padding-top: 44px; padding-bottom: 44px; }
.hero.small h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: none; }
.hero .motto { margin: 20px 0 0; max-width: 40rem; }
.hero .motto [lang='chr'] { display: block; font-size: 1.3rem; line-height: 1.5; }
.hero .motto .en { display: block; color: #e9dcf7; font-style: italic; margin-top: 4px; }
.hero h1::before { content: ''; display: block; width: 56px; border-top: 2px solid var(--gold); margin-bottom: 18px; }

/* ---- sections ---- */
.section { padding: 48px 0; }
.section.tint { background: var(--tint); }
.section h2 {
  font-weight: 800; letter-spacing: -0.015em; font-size: 1.6rem; line-height: 1.2;
  margin: 0 0 16px; padding-top: 12px; border-top: 2px solid var(--gold); display: inline-block;
}
.section h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.section h3:first-child { margin-top: 0; }
.section p { margin: 0 0 14px; }
.lead { font-size: 1.125rem; max-width: 46rem; }
.prose { max-width: 46rem; }

.grid-2 { display: grid; gap: 32px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-2.wide-left { grid-template-columns: 3fr 2fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card); padding: 20px 22px;
}
.card h3 { margin-top: 0; }
.photo { border-radius: var(--radius-m); box-shadow: var(--shadow-card); width: 100%; object-fit: cover; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
ul.ticks { padding-left: 1.2em; margin: 0 0 14px; }
ul.ticks li { margin: 4px 0; }

.label { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin: 0 0 6px; }
.meta { color: var(--ink-soft); font-size: 0.9375rem; font-style: italic; margin: 0 !important; }

/* courses */
.course { display: grid; gap: 4px; }
.course .code { font-weight: 800; color: var(--purple); letter-spacing: 0.02em; }
.course h3 { margin: 0; font-size: 1.1rem; }
.course p { margin: 0; }
.course .meta { margin-top: 6px !important; }

/* people */
.person h3 { margin: 0 0 2px; font-size: 1.25rem; }
.person .role { color: var(--ink-soft); margin: 0 0 12px; }
.speaker { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.speaker [lang='chr'] { font-size: 1.2rem; min-width: 5.5em; }
.logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.logos img { max-height: 120px; width: auto; }
.logo-on-dark { background: var(--purple-dark); padding: 12px; border-radius: var(--radius-m); }
.clp-logo { max-width: 320px; margin: 0 auto; border-radius: var(--radius-m); }

/* teaching material */
.tile { display: block; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); background: var(--surface); }
.tile img { width: 100%; height: auto; }
.grid-3, .grid-4 { align-items: start; }
a.tile { transition: transform 0.15s ease; }
a.tile:hover { transform: translateY(-2px); }

/* news */
.news a { font-weight: 700; }

/* ---- footer ---- */
.site-footer { background: var(--purple-dark); color: #e9dcf7; margin-top: 0; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-top: 36px; padding-bottom: 16px; }
.footer-title { color: #fff; font-weight: 800; margin: 0 0 6px; padding-top: 10px; border-top: 2px solid var(--gold); display: inline-block; }
.site-footer p { margin: 0 0 10px; }
.footer-line { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 14px; padding-bottom: 20px; font-size: 0.8125rem; }
