:root {
  --bg: #faf8f3;
  --fg: #303b36;
  --card: #fffefa;
  --primary: #425e4c;
  --primary-fg: #fffefa;
  --muted: #696e65;
  --border: #e1e2d9;
  --brand: #6c8168;
  --notice: #eef1e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Watercolour splashes, as on the site */
.paint { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.paint svg { position: absolute; width: 640px; }
.paint .peach { color: #f2d7c7; top: -215px; right: -230px; }
.paint .sage { color: #dfe6d2; top: 310px; left: -375px; width: 690px; }
.paint .lilac { color: #e3ddef; top: 440px; right: -345px; width: 720px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 24px; border-bottom: 1px solid var(--border);
}
.brand { text-decoration: none; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
header.site nav { display: flex; gap: 24px; font-size: 14px; }
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a:hover { color: var(--fg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 4.6vw, 58px); }
h2 { font-size: clamp(30px, 3.4vw, 42px); }
h3 { font-size: 26px; }

section { padding-block: 56px; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero figure { margin: 0; }
.hero figure img { margin-inline: auto; }
.hero-copy { display: grid; gap: 18px; max-width: 460px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--fg); }
.lines { color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.lines strong { color: var(--primary); font-weight: 500; }
.notice { background: var(--notice); border: 1px solid #d8dfcd; border-radius: 6px; padding: 14px 16px; font-size: 15px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary); color: var(--primary-fg); text-decoration: none;
  border-radius: 4px; padding: 14px 22px; font-size: 15px; font-weight: 500; justify-self: start;
}
.button:hover { background: #36503f; }
.small { font-size: 13px; color: var(--muted); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about img { border-radius: 2px; }
.about .text { display: grid; gap: 16px; color: var(--muted); max-width: 520px; }
.about .text h2 { color: var(--fg); }
.about .text p, .hero-copy p { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 32px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.facts dd small { display: block; font-size: 12px; color: var(--muted); }

.courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.course { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.course img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.course div { padding: 22px; display: grid; gap: 10px; }
.course p { margin: 0; font-size: 14px; color: var(--muted); }
.course .price { font-size: 13px; color: var(--primary); font-variant-numeric: tabular-nums; }

.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pay > div { display: grid; gap: 18px; align-content: start; }
.pay .small { margin: 0; }
.pay ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.pay table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.pay td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pay td:last-child { text-align: right; }

footer.site { border-top: 1px solid var(--border); padding-block: 32px 48px; font-size: 13px; color: var(--muted); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
footer.site p { margin: 0; }
footer.site .right { text-align: right; }

/* Legal pages */
.legal { max-width: 720px; padding-block: 48px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: #4a524c; }
.legal .back { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--muted); text-decoration: none; }

/* Details still to be filled in before publishing */
.todo { background: #fff2a8; outline: 1px dashed #c9a400; padding: 0 4px; }

@media (max-width: 860px) {
  .hero, .about, .pay { grid-template-columns: 1fr; gap: 32px; }
  .hero figure { max-width: 300px; margin-inline: auto; }
  .facts, .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site { grid-template-columns: 1fr; }
  footer.site .right { text-align: left; }
}
@media (max-width: 520px) {
  header.site nav { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
  .courses, .facts { grid-template-columns: 1fr; }
  section { padding-block: 40px; }
}
