/* Site theme: the five exact colours from Hugh's original moodboard.
   Layout and copy stay in the compact page styles. Wood remains a material accent. */
:root {
  --colour-burnt-orange: #B65327;
  --colour-warm-paper: #F1E7D2;
  --colour-ivory: #FFFBED;
  --colour-deep-ink: #293C38;
  --colour-muted-teal: #557E76;
  --paper: var(--colour-warm-paper);
  --white: var(--colour-ivory);
  --ink: var(--colour-deep-ink);
  --accent: var(--colour-burnt-orange);
  --teal: var(--colour-muted-teal);
  --muted: rgb(41 60 56 / .82);
  --line: rgb(85 126 118 / .35);
  --display: Georgia, 'Times New Roman', serif;
  --control-border: rgb(41 60 56 / .42);
  --control-shadow: rgb(41 60 56 / .32);
}

body.moodboard-theme {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23293C38' opacity='.025' filter='url(%23n)' d='M0 0h80v80H0z'/%3E%3C/svg%3E");
}

/* Substantial serif titles; small labels and body text keep their clear sans face. */
.moodboard-theme.compact-home h1,
.moodboard-theme.compact-page .page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.moodboard-theme .compact-heading h2,
.moodboard-theme.compact-page .page-heading h2,
.moodboard-theme .library-heading h2,
.moodboard-theme .reason-grid h2,
.moodboard-theme.compact-home .contact h2,
.moodboard-theme.compact-page .compact-contact h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
}
.moodboard-theme .hero-intro { color: var(--accent); font-weight: 700; }

/* Ivory separates sections; teal supplies small structural accents. */
.moodboard-theme .compact-teaching,
.moodboard-theme.compact-page .olive-band { background: var(--white); }
.moodboard-theme .compact-teaching,
.moodboard-theme.compact-page .olive-band { box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line); }
.moodboard-theme.compact-page .utility-panel { background: var(--white); border-left: 3px solid var(--teal); }
.moodboard-theme .pupil-highlights li,
.moodboard-theme.compact-page .fact-block,
.moodboard-theme .reason-grid article { border-top-color: var(--teal); }
.moodboard-theme .advice-pair>a:nth-child(2) { border-color: var(--teal); }
.moodboard-theme .portrait-screen { border-color: var(--ink); background: var(--ink); }
.moodboard-theme .portrait figcaption { color: var(--white); }
.moodboard-theme .teaching-locations,
.moodboard-theme .learning-note,
.moodboard-theme .pupil-highlights p,
.moodboard-theme .homepage-quote figcaption { color: var(--muted); }

/* Small text uses ink. Orange on paper is reserved for large text and graphics. */
.moodboard-theme .eyebrow,
.moodboard-theme .pupil-achievements>.eyebrow,
.moodboard-theme.compact-page .page-hero .eyebrow,
.moodboard-theme.compact-page .page-heading .eyebrow,
.moodboard-theme.compact-page .fact-block .fact-label,
.moodboard-theme .card-category,
.moodboard-theme .book-group .book-author { color: var(--ink); }
.moodboard-theme .compact-heading .eyebrow::before,
.moodboard-theme .page-heading .eyebrow::before {
  content: ''; display: inline-block; width: 15px; height: 3px;
  margin-right: 9px; vertical-align: .22em; background: var(--accent);
}
.moodboard-theme .compact-teaching .eyebrow,
.moodboard-theme.compact-page .olive-band .eyebrow { color: var(--accent); }
.moodboard-theme .price-table td { color: var(--accent); }
.moodboard-theme a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.moodboard-theme .text-link,
.moodboard-theme .utility-link,
.moodboard-theme .example-link,
.moodboard-theme .page-index a,
.moodboard-theme .card-actions a { text-decoration-color: var(--accent); }
.moodboard-theme .site-links[aria-label] a[aria-current=page] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Enamel-like switchgear, with exact ivory/orange/ink faces. */
.moodboard-theme .masthead .site-menu a,
.moodboard-theme .masthead.menu-ready .menu-toggle,
.moodboard-theme .filter-controls button,
.moodboard-theme #reset-library {
  background: linear-gradient(var(--white), var(--paper));
  border-color: var(--control-border);
  color: var(--ink);
  box-shadow: inset 0 1px var(--white), 0 3px 0 var(--control-shadow);
}
.moodboard-theme .masthead .site-menu a:hover,
.moodboard-theme .masthead.menu-ready .menu-toggle:hover,
.moodboard-theme .filter-controls button:hover,
.moodboard-theme #reset-library:hover { background: var(--white); border-color: var(--accent); }
.moodboard-theme .masthead .site-menu a[aria-current=page],
.moodboard-theme .filter-controls button[aria-pressed=true],
.moodboard-theme .button {
  background: var(--accent); color: var(--white); border-color: var(--accent);
  box-shadow: inset 0 1px rgb(255 251 237 / .3), 0 3px 0 var(--control-shadow);
}
.moodboard-theme .masthead .site-menu a:last-child:not([aria-current=page]) {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.moodboard-theme .masthead .site-menu a[aria-current=page]:hover,
.moodboard-theme .filter-controls button[aria-pressed=true]:hover,
.moodboard-theme .button:hover { background: var(--accent); color: var(--white); border-color: var(--ink); }
.moodboard-theme .masthead .site-menu a:active,
.moodboard-theme .masthead.menu-ready .menu-toggle:active,
.moodboard-theme .filter-controls button:active,
.moodboard-theme #reset-library:active,
.moodboard-theme .button:active { box-shadow: inset 0 1px var(--control-shadow), 0 1px 0 var(--control-shadow); transform: translateY(2px); }
.moodboard-theme .resource-search input { background: var(--white); border-color: var(--teal); }
.moodboard-theme .resource-search input::placeholder { color: var(--muted); }
.moodboard-theme .paper-preview { background: var(--white); border-color: var(--line); }
.moodboard-theme .empty-state { background: var(--white); }
.moodboard-theme .project-visual:not(.dock-visual) { background: var(--white); border-color: var(--line); }
.moodboard-theme .first-book { color: var(--white); }
.moodboard-theme .first-book p:not(.eyebrow),
.moodboard-theme.compact-page .first-book .text-link,
.moodboard-theme .first-book .text-link:hover { color: var(--white); }
.moodboard-theme .first-book .eyebrow { color: var(--paper); }
.moodboard-theme .first-book a:focus-visible { outline-color: var(--white); }

@media(max-width:600px) {
  .moodboard-theme.compact-home h1,
  .moodboard-theme.compact-page .page-hero h1 { letter-spacing: -.045em; }
}
@media print {
  body.moodboard-theme { background: white; color: black; }
}
