:root {
  --orange: #e86a12;
  --orange-dark: #c4550c;
  --brown: #3c2415;
  --ink: #2a1c14;
  --muted: #6b5344;
  --cream: #fbf6f0;
  --paper: #fffdf9;
  --line: #ead9c8;
  --black: #1a120c;
  --red: #c41e3a;
  --shadow: 0 10px 30px rgba(60, 36, 21, 0.08);
  --radius: 18px;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--orange-dark); }

a:hover { color: var(--brown); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--black);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--brown);
}

.brand img {
  width: 52px;
  height: 52px;
  background: transparent;
}

html.cookies-ok .cookie-banner,
.cookie-banner[hidden] {
  display: none !important;
}

.brand-text { display: flex; align-items: baseline; gap: 0.15rem; }

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
}

.brand-tld { color: var(--orange); font-weight: 700; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(232, 106, 18, 0.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  padding: 2.5rem 0 1rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 0.4rem;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--brown);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 0.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }

.search-box {
  margin-top: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}

.search-box label,
.city-search label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.search-row { display: flex; gap: 0.6rem; }

.search-row input,
.city-search .search-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  background: var(--cream);
}

.city-search .search-box {
  margin: 1rem 0 0;
}

.search-empty {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.city-list-caption {
  margin: 1.4rem 0 0.4rem;
  font-weight: 700;
  color: var(--brown);
}

.btn {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { background: var(--orange-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--line);
}

.hero-note, .meta, .muted { color: var(--muted); }

.hero-art {
  display: flex;
  justify-content: center;
  background: transparent;
}

.hero-art img {
  width: min(300px, 72vw);
  background: transparent;
}

.band { padding: 2rem 0; }

.chip-grid, .card-grid, .tutor-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.chip-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.chip {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.chip:hover { border-color: var(--orange); color: var(--orange-dark); }

.chip-city { background: #fff7ef; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.split article, .text-card, .contact-panel, .notice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.tutor-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.tutor-grid > li {
  display: flex;
  height: 100%;
}

.tutor-card {
  display: flex;
  gap: 1.15rem;
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  align-items: center;
}

.tutor-card:hover { border-color: var(--orange); }

.avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  background: #f3e6d8;
  flex-shrink: 0;
}

.avatar-lg { width: 160px; height: 160px; }

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3e6d8;
  color: var(--brown);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
}

.card-body { display: flex; flex-direction: column; gap: 0.2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.mini-chip {
  background: var(--cream);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.distance { font-size: 0.9rem; color: var(--muted); }

.page { padding: 1.5rem 0 3rem; }

.page-head { margin-bottom: 1.5rem; }

.prose { max-width: 46rem; }

.prose p, .prose li { color: var(--ink); }

.prose h2 { margin-top: 1.8rem; }

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 1rem 0 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line);
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}

.city-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
}

.city-list span { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.suggest {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 5;
}

.suggest a {
  display: block;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: var(--brown);
  border-radius: 8px;
}

.suggest a:hover, .suggest a:focus { background: var(--cream); }

.profile-head {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.contact-panel { margin-top: 1.5rem; }

.reveal-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }

.notice { margin-top: 1rem; }

.site-footer {
  background: var(--black);
  color: #f3e6d8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a { color: #ffd2a8; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand, .footer-heading {
  font-family: var(--display);
  color: #fff;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }

.copyright { opacity: 0.7; margin-top: 1.5rem; }

.cookie-banner {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--brown);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 40;
}

.cookie-banner a { color: #ffd2a8; }

@media (max-width: 860px) {
  .hero-inner, .split, .footer-grid, .profile-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 4.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 1rem;
  }
  .header-inner { position: relative; }
  .search-row { flex-wrap: wrap; }
  .search-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.tutor-card strong {
  font-size: 1.15rem;
}

.wolf-page { padding-bottom: 3rem; }

.wolf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.wolf-stats li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.wolf-stats strong { display: block; font-size: 1.5rem; color: var(--brown); }

.wolf-label { font-weight: 700; display: block; margin-bottom: 0.35rem; }

.wolf-select {
  font: inherit;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  min-width: min(100%, 320px);
  margin-bottom: 0.8rem;
}

#wolf-map {
  height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-top: 0.6rem;
}

@media (max-width: 860px) {
  .wolf-stats { grid-template-columns: 1fr 1fr; }
  #wolf-map { height: 380px; }
}
