/* Stone and Gold, after the Sarah Haywood website: a warm stone page, deep navy and near black bands, gold details, a high contrast display
   serif with a clean sans, small capitals led by a short dash, rounded pictures, an open list and a full screen menu.
   Every colour and both fonts come from the planner's branding (--we-*) with this template's own values as fallback. */
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/libre-caslon-display-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../assets/fonts/manrope-normal-300-700.woff2') format('woff2'); }

:root {
  --paper: var(--we-background, #efede7);
  --ink: var(--we-text, #332920);
  --primary: var(--we-primary, #00263a);
  --accent: var(--we-accent, #c19b5a);
  --line: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --stone: color-mix(in srgb, var(--ink) 5%, var(--paper));
  --card: color-mix(in srgb, #fff 55%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 84%, var(--paper));
  --label: color-mix(in srgb, var(--ink) 75%, var(--paper));
  --gold: color-mix(in srgb, var(--accent) 78%, #5a4320);
  --night-text: #f3f0e8;
  --black: color-mix(in srgb, var(--primary) 22%, #0c0c0c);
  --head: var(--we-font-heading, 'Libre Caslon Display', Georgia, serif);
  --body: var(--we-font-body, 'Manrope', system-ui, sans-serif);
  --page: min(1180px, 100% - 48px);
  --pad: max(24px, calc((100% - 1180px) / 2));
  --round: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.12; color: inherit; }
p { margin: 0 0 1em; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }

/* Top bar: the brand in the middle, the menu on the right; links open as a full screen sheet when the script runs */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px var(--pad); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.bar.solid { background: color-mix(in srgb, var(--paper) 97%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar.open, .bar.open.solid { background: transparent; color: var(--night-text); box-shadow: none; }
.brand, .burger { position: relative; z-index: 2; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; text-align: center; min-width: 0; }
.logo { height: 44px; width: auto; max-width: 168px; object-fit: contain; }
.brand-name { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; line-height: 1.3; max-width: 260px; }
.burger { display: none; justify-self: end; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 0; color: inherit; font: 500 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.burger-lines { width: 28px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s; }
.bar.open .burger-lines { transform: scaleY(.1) rotate(0); border-bottom-color: transparent; }
.sheet { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; padding-top: 8px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.sheet a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.sheet a:hover { border-color: currentColor; }
.js .burger { display: inline-flex; }
.js .sheet { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 96px 24px 48px; background: var(--black); color: var(--night-text); font: 400 clamp(34px, 6vw, 60px)/1.2 var(--head); letter-spacing: 0; text-transform: none; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.js .sheet a { padding: 4px 0; }
.js .sheet a:hover { color: var(--accent); border-color: transparent; }
.js .bar.open .sheet { opacity: 1; visibility: visible; }

/* Welcome: a full height dark photo with the name set low and centred, then the message in two columns */
.stage { position: relative; min-height: min(100vh, 920px); display: flex; align-items: flex-end; justify-content: center; padding: 140px 24px 72px; background: #1a1a1a; isolation: isolate; overflow: hidden; color: #fff; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.stage-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5) 0, rgba(0,0,0,.08) 38%, rgba(0,0,0,.78) 100%); }
.caption { width: min(960px, 100%); text-align: center; }
.kicker { margin: 0 0 22px; font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.kicker span { display: inline-flex; align-items: center; gap: 18px; }
.kicker span::before, .kicker span::after { content: ''; width: 36px; height: 1px; background: var(--accent); }
.caption h1 { font-size: clamp(44px, 7.4vw, 96px); overflow-wrap: anywhere; }
.intro-split { padding: 112px 0 104px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 80px; align-items: start; }
.intro-lead { display: contents; }
.intro-lead p:first-child { grid-column: 1; grid-row: 1 / span 2; font-family: var(--head); font-size: clamp(26px, 3.1vw, 38px); line-height: 1.32; margin: 0; }
.intro-lead p:not(:first-child) { grid-column: 2; grid-row: 1; margin: 6px 0 0; color: var(--muted); }
.intro-action { grid-column: 2; grid-row: 2; margin: 36px 0 0; }

/* Quiet links and pills */
.textlink { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color .2s; }
.textlink:hover { color: var(--gold); }
.pill { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #1b1710; text-decoration: none; padding: 14px 30px; border: 1px solid var(--accent); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: opacity .2s, background .2s, color .2s; }
.pill:hover { opacity: .88; }
.pill.line { background: transparent; color: var(--night-text); border-color: color-mix(in srgb, var(--night-text) 45%, transparent); text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 15px; }
.pill.line:hover { opacity: 1; background: var(--night-text); color: var(--black); border-color: var(--night-text); }

/* Sections */
.sec { padding: 112px 0; }
.sec.stone { background: var(--stone); }
.sec.night { background: var(--primary); color: var(--night-text); }
.sec.dark { background: var(--black); color: var(--night-text); }
.wrap { width: var(--page); margin: 0 auto; }
.wrap.narrow { max-width: 780px; }
.wrap.two { display: grid; grid-template-columns: 1fr 1.5fr; gap: 88px; align-items: start; }
.head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; text-align: left; }
.head.centre { align-items: center; text-align: center; margin-bottom: 64px; }
.wrap.two .head { position: sticky; top: 110px; }
.dash { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.dash::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.night .dash, .dark .dash { color: var(--accent); }
.head h2 { font-size: clamp(36px, 4.8vw, 62px); max-width: 14em; }
.intro { max-width: 38em; margin: -28px auto 64px; text-align: center; color: color-mix(in srgb, var(--night-text) 82%, var(--primary)); }

/* Getting started: an open list, each step can be folded */
.fold { list-style: none; margin: 0; padding: 0; counter-reset: step; border-bottom: 1px solid var(--line); }
.fold li { counter-increment: step; border-top: 1px solid var(--line); }
.fold summary { display: flex; align-items: baseline; gap: 22px; padding: 26px 0; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; margin-left: auto; font-size: 26px; line-height: 1; color: var(--gold); }
.fold details[open] summary::after { content: '\2212'; }
.fold .num::before { content: counter(step, decimal-leading-zero); font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--gold); }
.fold h3 { font-size: clamp(24px, 2.6vw, 32px); }
.fold p { margin: -6px 0 0; padding: 0 48px 30px 56px; color: var(--muted); }

/* Designs: rounded pictures with the name set across the foot of each */
.designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; align-items: start; }
.design-photo { display: block; position: relative; border-radius: var(--round); overflow: hidden; }
.design-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: color-mix(in srgb, var(--primary) 70%, #000); transition: transform .8s ease; }
.design-photo:hover img { transform: scale(1.04); }
.design-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 20px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1.15; color: #fff; }
.flag { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--accent); color: #1b1710; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.design-text { display: block; margin: 18px 0 14px; font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--night-text) 78%, var(--primary)); }
.night .textlink { color: var(--accent); }
.night .textlink:hover { color: #fff; }

/* Planning: editorial rows with a large title and the text beside it */
.editorial { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.editorial li { display: grid; grid-template-columns: 56px 1fr 1.25fr; gap: 12px 48px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); }
.editorial h3 { font-size: clamp(28px, 3.4vw, 42px); }
.editorial p { margin: 6px 0 0; color: var(--muted); }
.icon { display: block; width: 34px; height: 34px; color: var(--gold); margin-top: 6px; }
.icon svg { width: 34px; height: 34px; stroke-width: 1.1; }

/* Next steps: four rounded cards */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.track li { counter-increment: step; background: var(--card); border-radius: var(--round); padding: 40px 30px 42px; }
.track .num::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--head); font-size: 48px; line-height: 1; color: var(--gold); margin-bottom: 22px; }
.track h3 { font-size: 27px; margin-bottom: 12px; }
.track p { font-size: 15px; line-height: 1.75; margin: 0; color: var(--muted); }

/* Help */
.dark .head.centre { margin-bottom: 40px; }
.help-body { text-align: center; }
.help-message { font-family: var(--head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; margin-bottom: 26px; }
.help-name { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.help-number { margin-bottom: 30px; color: color-mix(in srgb, var(--night-text) 80%, var(--black)); }
.help-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

.foot { background: var(--black); color: color-mix(in srgb, var(--night-text) 70%, var(--black)); text-align: center; padding: 40px 24px 56px; border-top: 1px solid rgba(255,255,255,.12); }
.foot span { font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }

/* Reveal: content is visible without JavaScript; the .js class is added in the head. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .wrap.two { grid-template-columns: 1fr; gap: 40px; }
  .wrap.two .head { position: static; }
  .track { grid-template-columns: repeat(2, 1fr); }
  .editorial li { grid-template-columns: 48px 1fr; }
  .editorial p { grid-column: 2; margin-top: 0; }
}
@media (max-width: 900px) {
  .bar { padding: 12px 24px; }
  .sec { padding: 72px 0; }
  .stage { padding: 112px 24px 48px; min-height: 80vh; }
  .intro-split { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .intro-lead p:first-child, .intro-lead p:not(:first-child), .intro-action { grid-column: 1; grid-row: auto; }
  .intro-lead p:not(:first-child) { margin-top: 24px; }
  .designs { grid-template-columns: repeat(2, 1fr); }
  .head.centre { margin-bottom: 44px; }
  .intro { margin-top: -20px; margin-bottom: 44px; }
}
@media (max-width: 640px) {
  .designs, .track { grid-template-columns: 1fr; }
  .fold p { padding-left: 0; padding-right: 0; }
  .editorial li { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .sheet { transition: none; }
  .design-photo img { transition: none; }
}

/* Motion: light and slow. Only transform and opacity move; everything stops for visitors who ask for reduced motion. */
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes grow-left { from { transform: scaleX(0); transform-origin: right; } to { transform: scaleX(1); transform-origin: right; } }
@keyframes grow-right { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@media (prefers-reduced-motion: no-preference) {
  .stage-bg { animation: drift 3s cubic-bezier(.2, .7, .2, 1) both; }
  .kicker span { animation: rise .8s ease .35s both; }
  .kicker span::before { animation: grow-left 1.1s cubic-bezier(.2, .7, .2, 1) .7s both; }
  .kicker span::after { animation: grow-right 1.1s cubic-bezier(.2, .7, .2, 1) .7s both; }
  .caption h1 { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .55s both; }
  .js .sheet a { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease, color .2s; }
  .js .bar.open .sheet a { opacity: 1; transform: none; }
  .js .bar.open .sheet a:nth-child(1) { transition-delay: .12s, .12s, 0s; }
  .js .bar.open .sheet a:nth-child(2) { transition-delay: .2s, .2s, 0s; }
  .js .bar.open .sheet a:nth-child(3) { transition-delay: .28s, .28s, 0s; }
  .js .bar.open .sheet a:nth-child(4) { transition-delay: .36s, .36s, 0s; }
  .js .bar.open .sheet a:nth-child(5) { transition-delay: .44s, .44s, 0s; }
  .js .track li.reveal, .track li { transition: opacity .7s ease, transform .7s ease, translate .35s ease, box-shadow .35s ease; }
  .track li:hover { translate: 0 -5px; box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
  .editorial .icon { transition: translate .4s ease; }
  .editorial li:hover .icon { translate: 6px 0; }
  .fold summary::after { transition: rotate .3s ease; }
  .fold details:not([open]) summary:hover::after { rotate: 90deg; }
}
