:root {
  color-scheme: light;
  --ink: #182019;
  --muted: #5c685f;
  --surface: #f5f2e9;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(24, 32, 25, 0.14);
  --accent: #265f46;
  --accent-soft: #dcecdf;
  --accent-deep: #173d2c;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body);
  font-synthesis: none;
}

html[data-template="language-club"] {
  --ink: #231b18;
  --muted: #6d5b54;
  --surface: #fbf0e8;
  --accent: #b44936;
  --accent-soft: #f5d9c9;
  --accent-deep: #713023;
  --display: "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
}

html[data-template="knowledge-hub"] {
  --ink: #18212c;
  --muted: #586577;
  --surface: #edf2f7;
  --accent: #245b91;
  --accent-soft: #d5e6f4;
  --accent-deep: #163b60;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, var(--accent-soft), transparent 31rem),
    var(--surface);
  font-family: var(--body);
  line-height: 1.55;
}
button, input { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-family: var(--display);
}
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 0.92rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.nav-member { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink) !important; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: center;
  min-height: 650px;
  padding: 76px 0 92px;
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.8vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}
.hero-copy { max-width: 680px; margin-bottom: 31px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.24rem); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-deep); font-weight: 760; text-underline-offset: 5px; }
.text-link::after { content: "→"; text-decoration: none; }
.member-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(34, 43, 36, 0.12);
  backdrop-filter: blur(18px);
}
.member-card::before {
  position: absolute;
  top: -80px;
  right: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
}
.member-card > * { position: relative; }
.member-card h2 { margin-bottom: 12px; font-family: var(--display); font-size: 2.15rem; line-height: 1.06; }
.member-intro { margin-bottom: 25px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 15px; font-size: 0.86rem; font-weight: 700; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.member-card button {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}
.member-card button:hover { background: var(--accent-deep); }
.access-note { margin: 16px 0 0; color: var(--accent-deep); font-size: 0.88rem; font-weight: 700; }
.access-note[hidden] { display: none; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric { padding: 34px clamp(12px, 3vw, 38px); border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric strong { display: block; margin-bottom: 3px; color: var(--accent-deep); font-family: var(--display); font-size: 2rem; }
.metric span { color: var(--muted); font-size: 0.9rem; }
.programme { padding: 104px 0 116px; }
.programme-heading { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 40px; margin-bottom: 48px; }
.programme h2 { max-width: 720px; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
}
.feature-index { display: block; margin-bottom: 65px; color: var(--accent); font-size: 0.78rem; font-weight: 800; }
.feature h3 { margin-bottom: 10px; font-family: var(--display); font-size: 1.45rem; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.site-footer p { margin: 0; }

@media (max-width: 840px) {
  .site-header { min-height: 76px; }
  .site-nav a:not(.nav-member) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 64px 0 76px; }
  .hero-copy { max-width: 620px; }
  .member-card { max-width: 600px; }
  .programme-heading { grid-template-columns: 1fr; gap: 5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-index { margin-bottom: 35px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { gap: 44px; padding-top: 48px; }
  h1 { font-size: clamp(2.75rem, 16vw, 4.6rem); }
  .member-card { border-radius: 20px; }
  .metrics { grid-template-columns: 1fr; padding: 14px 0; }
  .metric, .metric:first-child { padding: 19px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .programme { padding: 76px 0 84px; }
  .site-footer { flex-direction: column; }
}

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