@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --chtw-amber: #d4922a;
  --chtw-amber-l: #f0c56a;
  --chtw-grass: #3d6b3a;
  --chtw-grass-l: #5a9a52;
  --chtw-earth: #2a1f14;
  --chtw-earth-m: #4a3728;
  --chtw-sand: #f4ead8;
  --chtw-sand-d: #e8dcc4;
  --chtw-ink: #1a1208;
  --chtw-muted: #6b5c48;
  --chtw-border: rgba(42, 31, 20, 0.12);
  --chtw-radius: 12px;
  --chtw-shadow: 0 8px 32px rgba(42, 31, 20, 0.12);
  --chtw-sans: 'DM Sans', system-ui, sans-serif;
  --chtw-serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--chtw-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--chtw-ink);
  background: linear-gradient(165deg, var(--chtw-sand) 0%, var(--chtw-sand-d) 45%, #ddd0b8 100%);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--chtw-grass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--chtw-earth); }

.chtw-wrap { width: min(1120px, 92vw); margin-inline: auto; }

/* Header */
.chtw-header {
  background: var(--chtw-earth);
  color: var(--chtw-sand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--chtw-shadow);
}

.chtw-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0;
}

.chtw-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.chtw-logo em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chtw-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chtw-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chtw-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 234, 216, 0.25);
  border-radius: 8px;
  background: transparent;
  color: var(--chtw-sand);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (min-width: 860px) {
  .chtw-menu-toggle { display: none; }
}

.chtw-nav {
  width: 100%;
  display: none;
  padding-bottom: 0.5rem;
}

.chtw-nav.is-open { display: block; }

@media (min-width: 860px) {
  .chtw-nav {
    display: block;
    width: auto;
    order: 3;
    flex: 1 1 100%;
    padding-bottom: 0;
  }
  .chtw-header-inner { flex-wrap: nowrap; }
  .chtw-nav { flex: 1; order: 2; }
  .chtw-header-actions { order: 3; }
}

.chtw-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 860px) {
  .chtw-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem 1rem;
  }
}

.chtw-nav a {
  color: var(--chtw-sand-d);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  display: block;
}

.chtw-nav a:hover { color: var(--chtw-amber-l); }

/* Buttons */
.chtw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.chtw-btn:active { transform: scale(0.98); }

.chtw-btn-primary {
  background: linear-gradient(135deg, var(--chtw-amber) 0%, var(--chtw-amber-l) 100%);
  color: var(--chtw-earth);
  box-shadow: 0 4px 16px rgba(212, 146, 42, 0.35);
}

.chtw-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(212, 146, 42, 0.45);
  color: var(--chtw-earth);
}

.chtw-btn-secondary {
  background: transparent;
  border-color: rgba(244, 234, 216, 0.4);
  color: var(--chtw-sand);
}

.chtw-btn-secondary:hover { background: rgba(244, 234, 216, 0.08); color: var(--chtw-sand); }

.chtw-btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.chtw-btn-outline {
  background: var(--chtw-sand);
  border-color: var(--chtw-grass);
  color: var(--chtw-grass);
}

.chtw-btn-outline:hover { background: var(--chtw-grass); color: var(--chtw-sand); }

/* Hero */
.chtw-hero {
  background: linear-gradient(135deg, var(--chtw-earth) 0%, var(--chtw-earth-m) 55%, var(--chtw-grass) 100%);
  color: var(--chtw-sand);
  padding: 2.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.chtw-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--chtw-amber), var(--chtw-grass-l), var(--chtw-amber));
}

.chtw-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212, 146, 42, 0.25);
  border: 1px solid rgba(240, 197, 106, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.chtw-hero h1 {
  font-family: var(--chtw-serif);
  font-size: clamp(1.65rem, 5vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.chtw-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 58ch;
  margin: 0 0 1.5rem;
}

.chtw-hero-banner {
  margin-top: 1.5rem;
  border-radius: var(--chtw-radius);
  overflow: hidden;
  border: 1px solid rgba(240, 197, 106, 0.35);
  box-shadow: var(--chtw-shadow);
}

.chtw-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.chtw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.chtw-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .chtw-stats { grid-template-columns: repeat(4, 1fr); }
}

.chtw-stat {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--chtw-radius);
  padding: 0.85rem;
  text-align: center;
}

.chtw-stat b {
  display: block;
  font-size: 1.15rem;
  color: var(--chtw-amber-l);
}

.chtw-stat small {
  font-size: 0.72rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Main content */
.chtw-main { padding: 2rem 0 3rem; }

.chtw-section {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--chtw-border);
  border-radius: var(--chtw-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(42, 31, 20, 0.04);
}

.chtw-section h2 {
  font-family: var(--chtw-serif);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--chtw-earth);
}

.chtw-section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--chtw-earth-m);
}

.chtw-section p { margin: 0 0 0.85rem; }
.chtw-section p:last-child { margin-bottom: 0; }

.chtw-section ul, .chtw-section ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.chtw-section li { margin-bottom: 0.35rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0;
}

th, td {
  border: 1px solid var(--chtw-border);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

th { background: var(--chtw-sand-d); font-weight: 600; }

.chtw-note {
  font-size: 0.88rem;
  color: var(--chtw-muted);
  border-left: 3px solid var(--chtw-amber);
  padding-left: 0.85rem;
  margin: 1rem 0;
}

/* Hub grid */
.chtw-hub-intro {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.chtw-hub-intro h1 {
  font-family: var(--chtw-serif);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  margin: 0 0 0.75rem;
  color: var(--chtw-earth);
}

.chtw-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  padding-bottom: 2rem;
}

.chtw-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--chtw-border);
  border-radius: var(--chtw-radius);
  text-decoration: none;
  color: var(--chtw-earth);
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.chtw-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--chtw-shadow);
  color: var(--chtw-grass);
}

.chtw-hub-card span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--chtw-muted);
}

/* Footer */
.chtw-footer {
  background: var(--chtw-earth);
  color: var(--chtw-sand-d);
  padding: 2rem 0;
  font-size: 0.88rem;
}

.chtw-footer a { color: var(--chtw-amber-l); text-decoration: none; }
.chtw-footer a:hover { text-decoration: underline; }

.chtw-footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .chtw-footer-grid { grid-template-columns: 1fr 1fr; }
}

.chtw-footer h3 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
  color: var(--chtw-sand);
}

.chtw-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chtw-footer li { margin-bottom: 0.35rem; }

.chtw-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 234, 216, 0.15);
  opacity: 0.75;
  font-size: 0.8rem;
}

.chtw-age {
  display: inline-block;
  background: var(--chtw-amber);
  color: var(--chtw-earth);
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.35rem;
}
