:root {
  color-scheme: light;
  --navy: #242947;
  --ink: #252638;
  --red: #a3332c;
  --paper: #fbf7ed;
  --cream: #f3ebda;
  --muted: #565366;
  --rule: #d9d0bf;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
textarea, select, button { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol { margin: 0; }
svg { width: 19px; height: 19px; display: block; flex: 0 0 auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a3332c; outline-offset: 4px; }
section[id] { scroll-margin-top: 22px; }
.shell { width: min(1140px, calc(100% - 84px)); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 10px; left: 12px; padding: 9px 14px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.header { background: #faf5e8; border-bottom: 1px solid #cfbfaa; }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 16px; font-weight: 850; letter-spacing: -.045em; flex: 0 0 auto; }
.brand img { display: block; }
nav { display: flex; align-items: center; gap: 29px; }
nav a, .header-chat { font-size: 13px; line-height: 1.2; font-weight: 720; }
nav a:hover, .text-link:hover, .contacts a:hover strong, .footer-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-chat { display: inline-flex; align-items: center; gap: 7px; padding: 8px 9px; border-bottom: 1px solid #aa463b; color: #88352e; }
.header-chat:hover { background: #f2e7d8; }
.header-chat svg { width: 16px; height: 16px; }

.bookshelf {
  min-height: clamp(185px, 26vw, 338px);
  color: #fff3de;
  background: linear-gradient(90deg,#1718255e,#17182530 45%,#17182541), url("bookshelf.jpeg") center top / max(820px, 100%) auto;
}
.shelf-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.shelf-stamp {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  color: #fff8e7; background: #242947ec; border: 1px solid #f7ecd77d;
  font: 700 11px/1.2 var(--mono); letter-spacing: .08em;
}
.shelf-stamp i { font: italic 15px/1.25 var(--serif); letter-spacing: 0; }
.shelf-corner { text-align: right; padding: 6px 9px; color: #fff8e7; background: #242947ec; border: 1px solid #f7ecd77d; font: 700 10px/1.4 var(--mono); letter-spacing: .1em; }

.fold { position: relative; height: clamp(76px, 10vw, 133px); margin-top: calc(-1 * clamp(76px, 10vw, 133px)); pointer-events: none; }
.fold::before, .fold::after { content: ""; position: absolute; inset: 0; }
.fold::before { background: var(--navy); clip-path: polygon(0 0, 48.5% 55%, 50% 70%, 100% 96%, 100% 100%, 0 100%); }
.fold::after { background: var(--paper); clip-path: polygon(0 9%, 48% 64%, 49.4% 80%, 91% 100%, 100% 100%, 0 100%); }
.notebook {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #b2a78c35 31px 32px);
}
.hero { padding: 30px 0 62px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); gap: clamp(23px, 5vw, 72px); align-items: center; }
.eyebrow { color: var(--red); font: 800 12px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { padding-inline: 1px; }
h1 {
  margin: 10px 0 8px; color: var(--navy); font-size: clamp(49px, 7.55vw, 113px);
  font-weight: 930; line-height: .96; letter-spacing: -.081em;
}
h1 span { color: var(--red); }
.hero-line { margin: 12px 0 11px; color: var(--navy); font: italic clamp(26px, 3vw, 40px)/1.1 var(--serif); letter-spacing: -.035em; }
.lede { max-width: 495px; color: var(--muted); font-size: 16px; line-height: 1.63; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 20px; margin-top: 22px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 10px 15px; border: 1px solid transparent; font-weight: 740; font-size: 14px; line-height: 1.22; transition: background-color .16s, color .16s; }
.button svg { width: 18px; height: 18px; }
.button-ink { color: #fff8e9; background: var(--navy); }
.button-ink:hover { background: #373e64; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: #81332e; font-size: 14px; font-weight: 740; }
.text-link svg { width: 15px; height: 15px; }

.index-card {
  position: relative; margin: 6px 8px 0 0; padding: 17px 18px 15px;
  background: #fffbee; border: 1px solid #cabda9;
  box-shadow: 5px 6px 0 #dfd0b7, 6px 7px 0 #c5b598, 0 13px 25px #62523914;
  transform: rotate(1.35deg);
}
.index-card::before { content: ""; position: absolute; width: 83px; height: 21px; left: calc(50% - 42px); top: -12px; background: #dfbc76b5; transform: rotate(-4deg); pointer-events: none; }
.index-head { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0 8px; color: #665846; border-bottom: 1px solid var(--rule); font: 700 10px/1.2 var(--mono); letter-spacing: .1em; }
.index-card h2 { margin-top: 13px; color: var(--navy); font: 700 clamp(20px, 2.15vw, 27px)/1.15 var(--serif); letter-spacing: -.04em; }
.index-card ol { list-style: none; padding: 0; margin-top: 9px; }
.index-card li { border-bottom: 1px solid #e2d7c5; }
.index-card li a { min-height: 39px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; line-height: 1.3; }
.index-card li a span { color: var(--red); font: 700 11px/1 var(--mono); }
.index-card li a svg { width: 14px; height: 14px; }
.index-card li a:hover, .entry-link:hover { color: var(--red); }
.margin-note { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--red); font: italic 15px/1.2 var(--serif); }
.margin-note svg { width: 15px; height: 15px; }

.section { padding-block: 64px; }
.support { border-block: 1px solid #d6c8b4; background: #f3ebda; }
.section-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-intro > p { justify-self: end; max-width: 350px; color: var(--muted); }
.section h2 { margin-top: 6px; color: var(--navy); font: 700 clamp(35px, 4.45vw, 61px)/1.02 var(--serif); letter-spacing: -.057em; }
.study-index {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 29px;
  padding: 6px 21px; background: #fbf6e9; border: 1px solid #d3c6af;
  box-shadow: 0 5px 0 #e4d8c2;
}
.study-index article { display: grid; grid-template-columns: 23px minmax(0, 1fr) 35px; gap: 9px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.study-index article:last-child { grid-column: 1 / -1; border-bottom: 0; }
.index-no, .sessions li > span { color: var(--red); font: 800 12px/1.2 var(--mono); }
.index-no { padding-top: 4px; }
h3 { color: var(--navy); font: 700 22px/1.17 var(--serif); letter-spacing: -.035em; }
.study-index p, .sessions li p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.entry-link { display: grid; place-items: center; width: 35px; height: 35px; margin-top: 1px; color: var(--navy); background: #efe4d2; }
.entry-link:hover { background: #e9dac0; }

.sessions { background: #252a46; color: #fff5df; }
.session-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.sessions .eyebrow { color: #f2a28e; }
.sessions h2, .sessions h3 { color: #fff5df; }
.session-note { margin-top: 14px; color: #eadcc3; max-width: 290px; }
.sessions ol { list-style: none; padding: 0; }
.sessions li { display: grid; grid-template-columns: 24px 1fr; gap: 13px; padding: 13px 0; border-top: 1px solid #77768b; }
.sessions li > span { color: #f0a28f; padding-top: 4px; }
.sessions li p { color: #f0e4d0; }

.enquiry-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(25px, 6vw, 74px); }
.enquiry-copy > p:not(.eyebrow) { margin-top: 15px; max-width: 390px; color: var(--muted); }
.contacts { display: grid; gap: 10px; justify-items: start; margin-top: 19px; }
.contacts a { display: flex; align-items: center; gap: 10px; color: var(--navy); line-height: 1.3; max-width: 100%; }
.contacts a > svg { color: var(--red); }
.contacts small, .qr-note small { color: var(--muted); display: block; font-size: 12px; }
.contacts strong { font-size: 15px; overflow-wrap: anywhere; }
.qr-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 17px; padding: 7px 12px 7px 7px; background: #fffdf5; border: 1px solid var(--rule); color: var(--navy); font-size: 13px; line-height: 1.3; }
.qr-note img { display: block; background: #fff; }
.qr-note:hover { border-color: #9d8067; }
.form { padding: 25px; border: 1px solid #cabcab; background: #fffdf5; box-shadow: 5px 5px 0 #e8dcc5; }
.form h3 { margin: 5px 0 17px; font-size: 27px; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field label { color: var(--navy); font-weight: 720; font-size: 14px; }
.field label span { color: var(--muted); font-size: 12px; font-weight: 480; }
.field select, .field textarea { min-width: 0; width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #c5b9a7; border-radius: 0; background: #fcf8ed; color: var(--ink); font-size: 14px; }
.field textarea { resize: vertical; }
.field textarea::placeholder { color: #625d68; opacity: 1; }
.form .button { width: 100%; justify-content: flex-start; }
.form-arrow { margin-left: auto; }
.form-note { margin-top: 10px; color: var(--muted); font-size: 12px; }

.footer { background: #eee4d2; border-top: 1px solid #d6c8b4; }
.footer-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner p { color: var(--muted); font-size: 12px; }
.footer-top { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 740; color: var(--navy); }
.footer-top svg { width: 15px; height: 15px; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 54px); }
  h1 { font-size: clamp(47px, 7.8vw, 96px); }
}
@media (max-width: 790px) {
  .hero-inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
  .index-card { padding: 14px 12px 12px; }
  .hero-actions { gap: 10px 13px; }
  .section { padding-block: 52px; }
  .session-inner { gap: 24px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  nav { order: 3; justify-content: space-between; gap: 10px; width: 100%; padding-top: 8px; border-top: 1px solid #e3d8c3; }
  nav a { font-size: 12px; }
  .header-chat { padding: 5px 4px; font-size: 12px; }
  .header-arrow { display: none; }
  .shelf-inner { min-height: 69px; }
  .shelf-stamp { padding: 6px 8px; font-size: 10px; }
  .shelf-stamp i { font-size: 12px; }
  .shelf-corner { display: none; }
  .fold { height: 69px; margin-top: -69px; }
  .hero { padding: 19px 0 40px; }
  .hero-inner, .section-intro, .session-inner, .enquiry-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 28px; }
  h1 { font-size: clamp(42px, 11vw, 68px); margin: 9px 0 6px; }
  .hero-line { margin-top: 10px; }
  .lede { font-size: 15px; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button, .text-link { font-size: 13px; }
  .hero-actions .button { padding-inline: 10px; }
  .index-card { max-width: 420px; margin: 0 8px 0 0; transform: rotate(.8deg); }
  .section { padding-block: 42px; }
  .section-intro { gap: 10px; margin-bottom: 18px; }
  .section-intro > p { justify-self: start; }
  .study-index { grid-template-columns: minmax(0, 1fr); padding: 3px 13px; }
  .study-index article { grid-template-columns: 19px minmax(0, 1fr) 34px; padding-block: 13px; }
  .study-index h3, .sessions h3 { font-size: 20px; }
  .session-inner, .enquiry-inner { gap: 23px; }
  .form { padding: 17px; box-shadow: 3px 3px 0 #e8dcc5; }
  .footer-inner { min-height: 0; flex-wrap: wrap; gap: 9px 13px; padding-block: 12px; }
  .footer-inner p { order: 3; width: 100%; }
}
@media (max-width: 360px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
