:root {
  --paper: #efe8da;
  --cream: #f7f1e6;
  --white: #fbf7f0;
  --ink: #241f19;
  --muted: #5c564c;
  --rule: #d0c6b4;
  --brick: #9c4034;
  --brick-dark: #7a3229;
  --brass: #b08968;
  --moss: #3f4a3c;
  --error: #8a2b22;
  --ok: #2f4a3c;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: 0.5rem;
  --measure: 40rem;
  --wide: 72rem;
  --radius: 3px;
  --header: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--brick);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brick-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

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

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

.island-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f3d6d0;
  color: var(--error);
  text-align: center;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.header__bar {
  height: 4px;
  background: var(--brick);
}

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

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.header__mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--brick);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--brass);
}

.header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.header__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

.header__toggle-icon {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.header__toggle-icon::before,
.header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.header__toggle-icon::before {
  top: -5px;
}

.header__toggle-icon::after {
  top: 5px;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link--current {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.nav__link--accent {
  color: var(--brick);
}

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

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.25rem 0;
}

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: calc(100vh - var(--header) - 4px);
  max-height: 52rem;
}

.hero__rail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2rem 0.75rem;
  border-right: 1px solid var(--rule);
  background: var(--cream);
}

.hero__copy {
  padding: 3rem 2rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--cream);
}

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

.hero__media {
  position: relative;
  min-height: 22rem;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(247, 241, 230, 0.92);
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brick);
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--brick);
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  background: var(--brick-dark);
  color: var(--white);
  border-color: var(--brick-dark);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
}

.btn--text {
  background: none;
  border: 0;
  color: var(--brick);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  border-radius: 0;
}

.btn--text:hover {
  color: var(--brick-dark);
  background: none;
}

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

.split--uneven {
  grid-template-columns: 1.15fr 0.85fr;
}

.panel {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1.5rem;
}

.panel--moss {
  background: var(--moss);
  color: var(--cream);
  border-color: var(--moss);
}

.panel--moss a {
  color: #f0d2b0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

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

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

.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card__body h3 {
  font-size: 1.25rem;
}

.card__body p {
  color: var(--muted);
  flex: 1;
}

.flag {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--cream);
  border: 1px solid var(--rule);
}

.flag__media {
  min-height: 18rem;
}

.flag__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flag__body {
  padding: 2rem;
}

.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
}

.who__col {
  padding: 1.75rem;
}

.who__col + .who__col {
  border-left: 1px solid var(--rule);
}

.who__col--out {
  background: var(--cream);
}

.quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 500;
}

.quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 0.85rem;
}

.page-hero {
  padding: 3.25rem 0 2rem;
}

.page-hero--media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.page-hero--media .page-hero__copy {
  padding: 3rem 2rem 3rem 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.prose {
  max-width: 42rem;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--cream);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  font-weight: 600;
  background: #efe6d4;
}

.rate {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.rate__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: right;
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.reviews {
  display: grid;
  gap: 1.25rem;
}

.review {
  background: var(--cream);
  border-left: 3px solid var(--brass);
  padding: 1.25rem 1.4rem;
}

.review--long {
  border-left-color: var(--brick);
}

.review p:last-of-type {
  margin-bottom: 0.4rem;
}

.review__who {
  font-size: 0.88rem;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.75rem;
  margin: 2rem 0;
  align-items: start;
}

.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.form {
  display: grid;
  gap: 0.95rem;
  max-width: 36rem;
}

.form__row {
  display: grid;
  gap: 0.3rem;
}

.form__row--two {
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.field-error {
  color: var(--error);
  font-size: 0.85rem;
}

.is-invalid {
  border-color: var(--error);
}

.form__banner {
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
}

.form__banner--ok {
  background: #e4eee6;
  border-color: var(--ok);
  color: var(--ok);
}

.form__banner--err {
  background: #f6e4e0;
  border-color: var(--error);
  color: var(--error);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.meta-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}

.meta-list span {
  flex: 0 0 7.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: 0.85rem 0 0.85rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  font-family: var(--font-display);
  color: var(--brick);
  font-weight: 600;
}

.curriculum {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--cream);
}

.curriculum__week {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.curriculum__week:last-child {
  border-bottom: 0;
}

.curriculum__num {
  font-family: var(--font-display);
  color: var(--brick);
  font-weight: 600;
}

.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.1rem;
}

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

.footer {
  background: var(--ink);
  color: #d9d1c3;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer a {
  color: #f0d2b0;
}

.footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 0.9fr 0.9fr;
  gap: 1.5rem;
}

.footer__name {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}

.footer__address,
.footer__tag {
  font-size: 0.92rem;
}

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

.footer__links li {
  margin-bottom: 0.3rem;
}

.footer__note {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid #3a342c;
  font-size: 0.82rem;
  color: #a79e90;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--cream);
  border-top: 4px solid var(--brick);
  box-shadow: 0 -8px 24px rgba(36, 31, 25, 0.08);
}

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

.cookie__text {
  margin: 0;
  font-size: 0.92rem;
}

.cookie__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

.article-hero img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .split--uneven,
  .flag,
  .who,
  .cards,
  .cards--two,
  .page-hero--media,
  .people,
  .story,
  .contact-grid,
  .footer__inner,
  .form__row--two,
  .rate,
  .curriculum__week {
    grid-template-columns: 1fr;
  }

  .hero {
    max-height: none;
    min-height: 0;
  }

  .hero__rail {
    writing-mode: horizontal-tb;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0.7rem 1.25rem;
  }

  .hero__media {
    min-height: 16rem;
    position: relative;
  }

  .hero__media img {
    position: relative;
    height: 16rem;
  }

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

  .rate__price {
    text-align: left;
  }

  .person {
    grid-template-columns: 7rem 1fr;
  }

  .header__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

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

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

  .nav__list {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .hero__copy,
  .flag__body,
  .page-hero--media .page-hero__copy {
    padding: 1.75rem 1.25rem;
  }

  .person {
    grid-template-columns: 1fr;
  }
}
