:root {
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --muted: #6b645a;
  --paper: #f3eee4;
  --paper-2: #e7dfd0;
  --cream: #faf7f1;
  --white: #fffdf8;
  --brass: #a65d1a;
  --brass-dark: #7a4210;
  --pine: #243f34;
  --pine-mid: #335546;
  --rule: #cfc4b3;
  --rule-strong: #b7ab96;
  --danger: #8a2f22;
  --ok: #243f34;
  --focus: #1c1915;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 72rem;
  --narrow: 44rem;
  --radius: 2px;
  --header-h: 5.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-image:
    linear-gradient(90deg, rgba(28, 25, 21, 0.035) 1px, transparent 1px);
  background-size: 4.5rem 100%;
  background-position: center;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
.brand-name,
.footer-mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.65rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

.script-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f3d9d3;
  color: var(--danger);
  border-bottom: 1px solid var(--danger);
}

[data-include] {
  min-height: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.4rem 0.7rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-bottom: 4.5rem;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.7rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  margin-bottom: 1.75rem;
}

.idx {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 0.95rem;
}

.hero {
  padding: 2.2rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
}

.hero-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: var(--cream);
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--rule);
}

.spec-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--rule-strong);
  background: var(--cream);
}

.spec-item {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--rule);
}

.spec-item:last-child {
  border-right: 0;
}

.spec-item dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.spec-item dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.45rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--ink);
}

.btn-solid {
  background: var(--brass);
  border-color: var(--brass-dark);
  color: var(--cream);
}

.btn-solid:hover {
  background: var(--brass-dark);
  color: var(--cream);
}

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

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-actions {
  margin-top: 1.4rem;
}

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

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

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

.card,
.quote,
.price-card,
.case,
.article-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1.2rem;
}

.card img,
.article-card img,
.course-card img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
  margin: -1.2rem -1.2rem 1rem;
  width: calc(100% + 2.4rem);
  border-bottom: 1px solid var(--rule);
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0 0 1.2rem;
  text-decoration: none;
  color: inherit;
}

.course-card img {
  height: 13rem;
  margin: 0;
  width: 100%;
}

.course-card-body {
  padding: 1.1rem 1.15rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card h3 {
  color: var(--ink);
}

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat {
  padding: 1.3rem 1rem;
  border-right: 1px solid var(--rule);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.quote figcaption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-long {
  grid-column: span 2;
}

.stars {
  color: var(--brass-dark);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.band {
  background: var(--pine);
  color: var(--cream);
  padding: 2.6rem 0;
}

.band a {
  color: #f0d3a8;
}

.band .btn-solid {
  background: var(--cream);
  color: var(--pine);
  border-color: var(--cream);
}

.band .btn-solid:hover {
  background: var(--paper-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.split img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
}

.person {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.1rem;
  align-items: start;
}

.person img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.modules li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

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

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

.faq p {
  margin: 0.7rem 0 0.2rem;
  color: var(--ink-soft);
}

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

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.price-card.featured a {
  color: #f0d3a8;
}

.amount {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.4rem 0 0.9rem;
}

.price-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  flex: 1;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose table,
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td,
.cookies-table th,
.cookies-table td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.article-hero img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
  margin: 1rem 0 1.5rem;
}

.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  min-height: 1.2rem;
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.form-status {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
}

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

.form-status.is-error {
  background: #f3d9d3;
  border-color: var(--danger);
}

.form-status.is-pending {
  background: var(--paper-2);
}

.address-block {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1.2rem;
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  max-width: 18ch;
}

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

.breadcrumb a {
  color: inherit;
}

.site-footer {
  background: var(--ink);
  color: #e6ddd0;
  padding: 2.8rem 1.25rem 1.4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  gap: 1.8rem;
}

.footer-mark {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--cream);
  margin: 0 0 0.7rem;
}

.site-footer a {
  color: #f0d3a8;
}

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

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

.footer-copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid #3a342c;
  font-size: 0.85rem;
  color: #b8ae9f;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 30px rgba(28, 25, 21, 0.12);
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--brass);
  margin: 0;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-plain li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}

.rating-chip {
  display: inline-block;
  border: 1px solid var(--rule-strong);
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .stat-row,
  .spec-bar,
  .split,
  .contact-layout,
  .price-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .quote-long {
    grid-column: span 1;
  }

  .stat:nth-child(2),
  .spec-item:nth-child(2) {
    border-right: 0;
  }

  .hero-photo img {
    height: 20rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem 1.25rem 1rem;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.4rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .stat-row,
  .spec-bar,
  .split,
  .contact-layout,
  .price-grid,
  .footer-inner,
  .section-head,
  .person {
    grid-template-columns: 1fr;
  }

  .stat,
  .spec-item {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .cookie-banner-inner,
  .cookie-banner-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .hero-photo img,
  .split img,
  .article-hero img {
    height: 16rem;
  }
}
