:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b6560;
  --line: #e4e0d8;
  --accent: #3d4a3e;
  --accent-hover: #2c372e;
  --sand: #ebe6dc;
  --warn: #8a3b2a;
  --ok: #2f5d45;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(28, 26, 23, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark { color: var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: #f1efe9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.35rem; }

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-mast {
  padding: 4.2rem 0 2.2rem;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 40rem;
  color: var(--muted);
}

.taxonomy-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 2.4rem 0 1.4rem;
}

.tax-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  animation: rise 0.6s ease both;
}

.tax-chip:nth-child(2) { animation-delay: 0.08s; }
.tax-chip:nth-child(3) { animation-delay: 0.16s; }
.tax-chip:nth-child(4) { animation-delay: 0.24s; }

.tax-chip span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.tax-chip strong {
  font-family: var(--serif);
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.quote-list {
  display: grid;
  gap: 1.2rem;
}

.quote-card,
.card,
.price-card,
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(28, 26, 23, 0.08);
}

.quote-card p:last-child { margin-bottom: 0; }

.quote-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.stars {
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.85rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card img,
.hero-figure img,
.portrait {
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
}

.card img { height: 180px; margin-bottom: 0.9rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #f7f6f3;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--sand);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.price-card .fee {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0.4rem 0 1rem;
}

.price-card ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.price-card.featured {
  border-color: var(--accent);
  background: #fbfaf7;
}

.note-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.note-row img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.prose {
  max-width: 42rem;
}

.prose h2 { margin-top: 2rem; }

.legal {
  max-width: 46rem;
  padding-bottom: 3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
}

th, td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sand);
  font-weight: 500;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-error,
.inline-error,
.form-status.is-error {
  color: var(--warn);
}

.field-error { font-size: 0.9rem; margin: 0.35rem 0 0; }

.form-status {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.form-status.is-success {
  background: #e7f3ea;
  color: var(--ok);
}

.form-status.is-error {
  background: #f8ece8;
}

.inline-error {
  background: #f8ece8;
  padding: 0.7rem 1rem;
  margin: 0;
}

.modules {
  list-style: none;
  padding: 0;
  counter-reset: mod;
}

.modules li {
  counter-increment: mod;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--serif);
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.portrait {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.instructor {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.page-hero {
  padding: 3.4rem 0 1.5rem;
}

.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 1.4rem;
}

.crumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(28, 26, 23, 0.06);
}

.cookie-banner-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.cookie-banner-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.cookie-banner-copy {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--serif);
  font-size: 4.5rem;
  color: var(--accent);
  margin: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .taxonomy-strip,
  .grid-3,
  .price-grid,
  .stat-row,
  .footer-grid,
  .split,
  .note-row {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.2rem;
    flex-direction: column;
  }

  .site-nav.is-open { display: flex; }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
