:root {
  --paper: #F4F6F1;
  --panel: #E6EBDF;
  --ink: #1E2A20;
  --moss: #3E6B41;
  --sage: #7B8A78;
  --moss-deep: #2F5232;
  --line: rgba(30, 42, 32, .14);
  --paper-warm: #FBFCF9;
  --rail: clamp(204px, 17vw, 250px);
}

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

html {
  scroll-behavior: smooth;
}

html.consent-done .cookie-bar {
  display: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.68;
}

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

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

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

h1,
h2,
h3 {
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .7em;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  letter-spacing: -.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  max-width: 66ch;
  margin: 0 0 1em;
}

.small {
  font-size: .92rem;
  line-height: 1.55;
}

.lede {
  font-size: 1.08rem;
  max-width: 62ch;
}

ul,
ol {
  max-width: 66ch;
  padding-left: 1.2em;
}

li {
  margin-bottom: .45em;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  z-index: 40;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  margin-bottom: 26px;
}

.rail__brand:hover {
  color: var(--moss-deep);
}

.rail__brand svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.rail__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rail__link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px 6px 12px;
  margin-bottom: 14px;
  border-left: 3px solid transparent;
}

.rail__link:hover {
  color: var(--moss);
}

.rail__link.is-active {
  color: var(--moss);
  border-left-color: var(--moss);
}

.rail__foot {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.rail__foot a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 6px;
}

.rail__foot a:hover {
  color: var(--moss);
}

.rail__foot p {
  margin: 10px 0 0;
  max-width: none;
  color: var(--sage);
  font-size: 1rem;
}

.stage {
  margin-left: var(--rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.center-col {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 64px);
}

.band {
  padding-block: clamp(58px, 7.5vw, 108px);
}

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

.band--edge {
  border-top: 1px solid var(--line);
}

.band__head {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.band__head p {
  margin-inline: auto;
}

.mark-bar {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--moss);
  border-radius: 2px;
  margin: 18px auto 0;
}

.duo {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  gap: clamp(24px, 3.2vw, 56px);
  align-items: start;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.stack-rows {
  display: grid;
  gap: 0;
}

.stack-rows > * {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.stack-rows > *:first-child {
  padding-top: 0;
}

.stack-rows > *:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pitch .pills {
  margin: 22px 0 26px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}

.pill-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

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

.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  min-height: 44px;
}

.btn-solid {
  background: var(--moss);
  color: #F4F6F1;
  border: 1px solid var(--moss);
}

.btn-solid:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: #F4F6F1;
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: #F4F6F1;
}

.btn-solid:focus-visible,
.btn-ghost:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

.enquiry-card,
.card,
.qa,
.note-item,
.course-row {
  border-radius: 14px;
}

.enquiry-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 12px 28px rgba(30, 42, 32, .07);
}

.enquiry-card h2 {
  margin-bottom: .45em;
}

.form-hint {
  margin: 14px 0 0;
  color: var(--sage);
  font-size: 1rem;
}

.field {
  margin-bottom: 14px;
  position: relative;
}

.field label {
  display: block;
  font-family: Karla, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 500 1rem/1.45 Karla, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field .hint {
  display: block;
  margin-top: 6px;
  color: var(--sage);
  font-size: 1rem;
}

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

.check input {
  width: auto;
  margin-top: 5px;
  flex-shrink: 0;
}

.check label {
  font-weight: 500;
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
}

.card h3 {
  margin-bottom: .35em;
}

.card .format {
  color: var(--sage);
  font-size: 1rem;
  margin-bottom: 10px;
}

.course-row {
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.course-row:last-of-type {
  border-bottom: 0;
}

.step-line {
  display: grid;
  gap: 0;
  max-width: 76ch;
  margin-inline: auto;
}

.step-line article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-line article:first-child {
  padding-top: 0;
}

.step-line article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.qa {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.qa h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: .55em;
}

.note-item {
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

.note-item:last-child {
  border-bottom: 0;
}

.note-item time {
  display: block;
  color: var(--sage);
  font-size: 1rem;
  margin: 8px 0 16px;
}

.figure-frame {
  margin: 0;
}

.figure-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.figure-frame figcaption {
  margin-top: 10px;
  color: var(--ink);
}

.map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.map-frame iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.map-frame.map-tall iframe {
  height: 360px;
}

.notice-good,
.notice-bad {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 70ch;
}

.notice-good {
  background: #e4eedc;
  border: 1px solid var(--moss);
}

.notice-bad {
  background: #f3e4e1;
  border: 1px solid #7a3532;
}

.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea {
  border-color: #7a3532;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-size: 1rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--panel);
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 500;
}

.site-foot {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 28px 32px;
  align-items: start;
}

.foot-brand {
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.site-foot p,
.site-foot address {
  font-style: normal;
  max-width: none;
  margin: 0 0 8px;
}

.site-foot a {
  color: var(--ink);
}

.foot-links {
  display: grid;
  gap: 8px;
}

.foot-links a {
  text-decoration: none;
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 500;
}

.foot-links a:hover {
  color: var(--moss);
}

.foot-base {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}

.foot-base p {
  max-width: none;
  margin: 0 0 10px;
}

.foot-base a {
  color: var(--moss-deep);
}

.signoff {
  margin-top: 28px;
  font-family: Rubik, "Trebuchet MS", sans-serif;
  font-weight: 500;
}

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(640px, calc(100% - 28px));
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(30, 42, 32, .12);
}

.cookie-bar p {
  margin: 0 0 12px;
  max-width: none;
}

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

.lift-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

html.js .lift-in:not(.shown) {
  opacity: 0;
  transform: translateY(14px);
}

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

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

  .lift-in,
  html.js .lift-in:not(.shown) {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px 0;
  }

  .rail__brand {
    margin-bottom: 8px;
  }

  .rail__nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    flex: none;
    padding-bottom: 8px;
    gap: 0;
  }

  .rail__link {
    display: inline-block;
    margin: 0 4px 0 0;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .rail__link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--moss);
  }

  .rail__foot {
    display: none;
  }

  .stage {
    margin-left: 0;
  }

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

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