:root {
  --ink: #1B1D16;
  --panel: #282B20;
  --paper: #EFEFE6;
  --gold: #B9A227;
  --moss: #8A8B7C;
  --hair: #3A3E30;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 18.5px;
  line-height: 1.65;
  min-height: 100%;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #D4BC36;
}

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

h1,
h2,
h3,
.btn,
.numeral,
.tally__num,
.topbar,
.sheet__link,
.sheet__meta,
.field__lab,
.slab__meta,
.opener__label,
.tally__cap,
.photo__cap,
.sitefoot h2,
.sitefoot h3 {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(32px, 6.4vw, 44px);
}

h2 {
  font-size: clamp(24px, 4.4vw, 32px);
}

h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
}

p {
  margin: 0 0 18px;
}

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

em,
i {
  font-style: italic;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 62px;
  background: rgba(27, 29, 22, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}

.topbar .spine {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__mark {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.topbar__mark:hover,
.topbar__mark:focus-visible {
  color: var(--paper);
}

.topbar__toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--paper);
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.burger__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
}

/* overlay menu */
.sheet {
  position: fixed;
  inset: 0;
  background: #282B20;
  display: none;
  align-content: center;
  z-index: 90;
  padding: 28px 22px;
}

.sheet--open {
  display: grid;
}

.sheet__nav {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.sheet__link {
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.15;
}

.sheet__link:hover,
.sheet__link:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.sheet__meta {
  margin-top: 40px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--moss);
}

.sheet__meta a {
  color: var(--paper);
  text-decoration: none;
}

.sheet__meta a:hover,
.sheet__meta a:focus-visible {
  color: var(--gold);
}

/* layout */
.spine {
  max-width: 688px;
  margin-inline: auto;
  padding-inline: 22px;
}

.strip {
  padding-block: clamp(56px, 9vw, 92px);
}

.strip--panel {
  background: var(--panel);
}

.strip--tight {
  padding-block: clamp(36px, 6vw, 56px);
}

.rule {
  height: 1px;
  background: var(--hair);
  border: 0;
  margin: 32px 0;
}

/* hero */
.opener__label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 14px;
}

.opener__title {
  margin-bottom: 18px;
}

.opener__lede {
  margin-bottom: 28px;
}

.opener__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* facts row */
.tally {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}

.tally__num {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 0 0 6px;
}

.tally__cap {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
  line-height: 1.35;
}

.tally__note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--moss);
}

/* 1.56 / 0.44 rows */
.duo {
  display: grid;
  grid-template-columns: 1.56fr 0.44fr;
  gap: 20px;
  align-items: baseline;
}

.duo + .duo {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.duo__side {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--paper);
  line-height: 1.35;
}

.numeral {
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

/* course cards */
.slab {
  padding: 28px 0;
  border-top: 1px solid var(--hair);
}

.slab:last-child {
  border-bottom: 1px solid var(--hair);
}

.slab__title {
  margin-bottom: 8px;
}

.slab__meta {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 16px;
}

.slab__body p {
  margin-bottom: 14px;
}

.slab__body ul {
  list-style: none;
  margin: 0 0 14px;
}

.slab__body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.slab__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

/* lists */
.ticks {
  list-style: none;
  margin-top: 28px;
}

.ticks__item {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--hair);
}

.ticks__item:last-child {
  border-bottom: 1px solid var(--hair);
}

.ticks__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.weeks {
  margin-top: 28px;
}

.weeks__row + .weeks__row {
  margin-top: 0;
}

/* questions */
.qa + .qa {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.qa__q {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.qa__a {
  margin: 0;
}

/* photos */
.photo {
  margin: 0;
}

.photo__img,
.photo iframe {
  width: 100%;
  display: block;
  background: var(--panel);
}

.photo iframe {
  height: 280px;
  border: 0;
}

.photo__cap {
  font-weight: 500;
  font-size: 15px;
  color: var(--moss);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 12px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65em 1.2em;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn--gold {
  background: #B9A227;
  color: #1B1D16;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #D4BC36;
  color: #1B1D16;
}

.btn--line {
  background: transparent;
  border-color: #8A8B7C;
  color: #EFEFE6;
}

.btn--line:hover,
.btn--line:focus-visible {
  background: #EFEFE6;
  color: #1B1D16;
}

/* forms */
.field {
  margin-bottom: 16px;
}

.field__lab {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 8px;
}

.field__in {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--hair);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 2px;
}

textarea.field__in {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

select.field__in {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field__in:focus {
  border-color: var(--gold);
  outline: none;
}

.field__hint {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--moss);
}

.field--check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.field--check input {
  margin-top: 6px;
  accent-color: var(--gold);
}

.field--check .field__lab {
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: "Instrument Serif", Georgia, serif;
  line-height: 1.5;
}

.field[data-trap] {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 16px;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
}

.form-msg--ok {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
}

.form-msg--bad {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #C45B4A;
}

/* footer */
.sitefoot {
  background: var(--panel);
  border-top: 1px solid var(--hair);
  padding-block: clamp(48px, 8vw, 80px);
}

.sitefoot__form h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.sitefoot__form > p {
  margin-bottom: 22px;
}

.sitefoot__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}

.sitefoot__cols h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sitefoot__cols ul {
  list-style: none;
}

.sitefoot__cols li {
  margin-bottom: 8px;
}

.sitefoot__cols a {
  color: var(--paper);
  text-decoration: none;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.sitefoot__cols a:hover,
.sitefoot__cols a:focus-visible {
  color: var(--gold);
}

.sitefoot__cols p {
  font-size: 16px;
  margin-bottom: 10px;
}

.sitefoot__legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}

.sitefoot__legal p {
  margin-bottom: 10px;
}

.sitefoot__fine {
  font-size: 15px;
  color: var(--moss);
}

/* cookie notice */
.cookiebar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  background: var(--panel);
  border-top: 1px solid var(--hair);
  padding: 16px 22px;
}

.cookiebar .spine {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0;
}

.cookiebar__text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 15px;
  color: var(--moss);
}

.cookiebar__text a {
  color: var(--paper);
}

.cookiebar__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-hidden {
  display: none !important;
}

/* motion */
.lift-in {
  opacity: 1;
  transform: none;
}

html.js .lift-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .lift-in.is-up {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 560px) {
  .duo {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .duo__side {
    text-align: left;
  }

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

  .sitefoot__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .btn {
    width: 100%;
  }

  .cookiebar .btn {
    width: auto;
  }
}
