@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ch-bg: #1a2f24;
  --ch-bg-light: #f4f1ea;
  --ch-fg: #e8e4dc;
  --ch-fg-dark: #1a2f24;
  --ch-accent: #7cb87a;
  --ch-muted: #9aab9e;
  --ch-border: rgba(232,228,220,.15);
  --ch-font-display: 'Archivo Black', sans-serif;
  --ch-font-body: 'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ch-body {
  margin: 0;
  font-family: var(--ch-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ch-fg);
  background: var(--ch-bg);
}
.ch-body.ch-nav-open { overflow: hidden; }

.ch-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  background: transparent;
  transition: background .3s;
}
.ch-header.ch-solid { background: rgba(26,47,36,.92); backdrop-filter: blur(6px); }
.ch-brand {
  font-family: var(--ch-font-display);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ch-fg);
  text-decoration: none;
}
.ch-progress {
  display: none;
  gap: .5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ch-progress { display: flex; }
  .ch-progress-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1px solid var(--ch-accent);
    background: transparent;
    transition: background .2s;
  }
  .ch-progress-dot.ch-active { background: var(--ch-accent); }
}
.ch-menu-btn {
  background: none;
  border: 1px solid var(--ch-border);
  color: var(--ch-fg);
  padding: .4rem .75rem;
  font-family: var(--ch-font-body);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
@media (min-width: 900px) { .ch-menu-btn { display: none; } }

.ch-rail {
  display: none;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 220px;
  padding: 5rem 1.5rem 2rem;
  border-right: 1px solid var(--ch-border);
  z-index: 90;
}
.ch-rail nav { display: flex; flex-direction: column; gap: .65rem; }
.ch-rail a {
  color: var(--ch-muted);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .03em;
}
.ch-rail a:hover, .ch-rail a.ch-active { color: var(--ch-accent); }
@media (min-width: 900px) { .ch-rail { display: block; } .ch-main-offset { margin-left: 220px; } }

.ch-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ch-bg);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform .3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ch-drawer.ch-is-open { transform: translateX(0); }
.ch-drawer a { color: var(--ch-fg); text-decoration: none; font-size: 1.1rem; }
.ch-drawer .ch-cbtn { align-self: flex-end; margin-bottom: 1rem; }

.ch-hero-map {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 3rem;
  background: var(--ch-bg);
}
.ch-map-diagram {
  max-width: 720px;
  width: 100%;
  border: 2px solid var(--ch-accent);
  padding: 2rem;
  position: relative;
}
.ch-map-diagram::before {
  content: 'TARTU · ESTONIA';
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  background: var(--ch-bg);
  padding: 0 .5rem;
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--ch-accent);
}
.ch-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  text-align: center;
}
.ch-map-cell {
  padding: 1.25rem .5rem;
  border: 1px dashed var(--ch-border);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ch-muted);
}
.ch-map-cell.ch-you {
  border: 2px solid var(--ch-accent);
  color: var(--ch-accent);
  font-family: var(--ch-font-display);
  font-size: .75rem;
}
.ch-hero-map h1 {
  font-family: var(--ch-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 2rem 0 .5rem;
  line-height: 1.1;
}
.ch-hero-map .ch-caption {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ch-muted);
}

.ch-section {
  padding: 4rem 1.5rem;
}
@media (min-width: 900px) { .ch-section { padding: 5rem 3rem 5rem 1.5rem; } }
.ch-section.ch-light {
  background: var(--ch-bg-light);
  color: var(--ch-fg-dark);
}
.ch-section.ch-light .ch-quote { border-color: rgba(26,47,36,.15); }
.ch-wrap { max-width: 820px; margin: 0 auto; }
.ch-wrap-wide { max-width: 960px; margin: 0 auto; }

.ch-quote-wall {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) { .ch-quote-wall { grid-template-columns: 1fr 1fr; } }
.ch-quote {
  border-left: 3px solid var(--ch-accent);
  padding: 1rem 0 1rem 1.25rem;
  margin: 0;
}
.ch-quote blockquote {
  margin: 0 0 .5rem;
  font-family: var(--ch-font-display);
  font-size: 1.05rem;
  line-height: 1.35;
}
.ch-quote cite {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ch-muted);
}
.ch-section.ch-light .ch-quote cite { color: #5a6b60; }

h2 {
  font-family: var(--ch-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}
h3 {
  font-family: var(--ch-font-display);
  font-size: 1rem;
  margin: 1.5rem 0 .5rem;
}

.ch-type-block {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--ch-border);
}
.ch-section.ch-light .ch-type-block { border-color: rgba(26,47,36,.12); }
.ch-type-block .ch-big {
  font-family: var(--ch-font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--ch-accent);
}
.ch-section.ch-light .ch-type-block .ch-big { color: var(--ch-bg); }

.ch-accordion details {
  border-bottom: 1px solid var(--ch-border);
  padding: .75rem 0;
}
.ch-section.ch-light .ch-accordion details { border-color: rgba(26,47,36,.12); }
.ch-accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.ch-accordion summary::-webkit-details-marker { display: none; }
.ch-accordion p { margin: .5rem 0 0; color: var(--ch-muted); font-size: .95rem; }
.ch-section.ch-light .ch-accordion p { color: #4a5a50; }

a { color: var(--ch-accent); transition: transform .2s, color .2s; }
.ch-section.ch-light a { color: #2d5a3a; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ch-accent);
  outline-offset: 3px;
  transform: translateY(-2px);
}
a:hover { transform: translateY(-2px); }

.ch-visit-teaser {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--ch-border);
}
.ch-visit-teaser .ch-label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ch-muted);
}

.ch-contact-stack { max-width: 540px; margin: 0 auto; }
.ch-contact-stack dl { margin: 0 0 2rem; }
.ch-contact-stack dt {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-top: 1rem;
}
.ch-contact-stack dd { margin: .25rem 0 0; }
.ch-form label { display: block; margin-bottom: 1rem; font-size: .85rem; }
.ch-form input, .ch-form textarea, .ch-form select {
  width: 100%;
  margin-top: .35rem;
  padding: .65rem;
  border: 1px solid var(--ch-border);
  background: rgba(255,255,255,.05);
  color: var(--ch-fg);
  font-family: var(--ch-font-body);
}
.ch-section.ch-light .ch-form input,
.ch-section.ch-light .ch-form textarea,
.ch-section.ch-light .ch-form select {
  background: #fff;
  color: var(--ch-fg-dark);
  border-color: rgba(26,47,36,.2);
}
.ch-cbtn {
  background: transparent;
  border: 1px solid var(--ch-accent);
  color: var(--ch-fg);
  padding: .55rem 1.1rem;
  font-family: var(--ch-font-body);
  cursor: pointer;
  font-size: .85rem;
}
.ch-cbtn.ch-main { background: var(--ch-accent); color: var(--ch-bg); border-color: var(--ch-accent); }
.ch-form-success {
  padding: 1rem;
  border: 1px solid var(--ch-accent);
  color: var(--ch-accent);
  margin-top: 1rem;
}

.ch-foot {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--ch-border);
  font-size: .85rem;
}
.ch-foot dl { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.ch-foot dt { font-weight: 600; }
.ch-foot dd { margin: 0; }
.ch-foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .75rem;
  color: var(--ch-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--ch-border);
}
.ch-foot-base a { color: var(--ch-muted); text-decoration: none; font-size: .75rem; }

.ch-cookie {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  z-index: 300;
  background: var(--ch-fg);
  color: var(--ch-bg);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.ch-cookie p { margin: 0 0 1rem; font-size: .85rem; }
.ch-cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ch-cookie .ch-cbtn { border-color: var(--ch-bg); color: var(--ch-bg); }
.ch-cookie .ch-cbtn.ch-main { background: var(--ch-bg); color: var(--ch-fg); }
.ch-cookie-panel { margin-top: 1rem; font-size: .85rem; }
.ch-cookie-panel label { display: inline-block; margin-right: 1rem; }

.ch-legal { padding: 6rem 1.5rem 3rem; }
@media (min-width: 900px) { .ch-legal { margin-left: 220px; padding-left: 3rem; } }
.ch-legal h1 { font-family: var(--ch-font-display); font-size: 2rem; }
.ch-legal h2 { font-size: 1.2rem; margin-top: 2rem; }
