/* Serene Blue, restyled after the Serenity Rose website: Bodoni Moda with Montserrat and a thin WindSong script accent, a white card over a full
   width photo, soft grey and pale blue bands, thin framed pictures, charcoal rectangular buttons and a dark footer.
   Every colour and both main fonts come from the planner's branding (--we-*) with this template's own values as fallback. */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/bodoni-moda-normal-400-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../assets/fonts/montserrat-normal-400-600.woff2') format('woff2'); }
@font-face { font-family: 'WindSong'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/windsong-normal-400.woff2') format('woff2'); }

:root {
  --paper: var(--we-background, #ffffff);
  --ink: var(--we-text, #2d3748);
  --primary: var(--we-primary, #333333);
  --accent: var(--we-accent, #b8cde0);
  --line: color-mix(in srgb, var(--ink) 12%, var(--paper));
  --soft: color-mix(in srgb, var(--ink) 3%, var(--paper));
  --tint: color-mix(in srgb, var(--accent) 30%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 78%, var(--paper));
  --label: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --deep: color-mix(in srgb, var(--accent) 55%, var(--ink));
  --head: var(--we-font-heading, 'Bodoni Moda', Georgia, serif);
  --body: var(--we-font-body, 'Montserrat', system-ui, sans-serif);
  --script: 'WindSong', 'Snell Roundhand', cursive;
  --page: min(1180px, 100% - 48px);
  --pad: max(24px, calc((100% - 1180px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* The heading face is a variable font with an optical size axis: pinned to its text cut so large headings keep sturdy hairlines and normal letter spacing. */
h1, h2, h3, .brand-name, .design-name, .rows .num::before, .help-message { font-optical-sizing: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 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.15; color: color-mix(in srgb, var(--ink) 80%, #000); }
p { margin: 0 0 1em; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 3px; z-index: 50; }
.skip:focus { left: 8px; }

/* Top bar: transparent over the photo, solid after the first scroll. Menu split either side of the brand. */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 16px var(--pad); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.bar.solid { background: color-mix(in srgb, var(--paper) 96%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; justify-self: center; min-width: 0; }
.logo { height: 48px; width: auto; max-width: 168px; object-fit: contain; }
.brand-name { font-family: var(--head); font-size: 22px; line-height: 1.1; color: inherit; max-width: 260px; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.menu.left { justify-self: end; }
.menu.right { justify-self: start; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover { border-color: currentColor; }
.menu a.cta { border: 1px solid currentColor; border-radius: 3px; padding: 9px 18px; }
.menu a.cta:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Hero: a full width photo with a white card over it */
.hero { position: relative; min-height: min(100vh, 880px); display: flex; align-items: center; padding: 132px 0 88px; background: #2a2a2a; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0) 280px); }
.hero-card { width: min(600px, 100% - 48px); margin-left: var(--pad); background: var(--paper); padding: 52px 52px 48px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.eyebrow { font-family: var(--script); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 4.8vw, 60px); margin-bottom: 26px; overflow-wrap: anywhere; }
.hero-text { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 30px; }
.hero-text p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Buttons: charcoal rectangles with a small radius */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; text-decoration: none; padding: 13px 24px; border: 1px solid var(--primary); border-radius: 3px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: opacity .2s, background .2s, color .2s; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 55%, transparent); text-transform: none; letter-spacing: .02em; font-size: 15px; font-weight: 400; }
.btn.ghost:hover { opacity: 1; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-actions .btn.ghost { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 500; }

/* Sections */
.sec { padding: 112px 0; }
.sec.soft { background: var(--soft); }
.sec.tint { background: var(--tint); }
.wrap { width: var(--page); margin: 0 auto; }
.wrap.narrow { max-width: 780px; }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 56px; }
.head.left { align-items: flex-start; text-align: left; margin-bottom: 0; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.head h2 { font-size: clamp(32px, 4.2vw, 48px); }
.intro { max-width: 38em; text-align: center; color: var(--muted); margin: -24px auto 60px; }

/* Blocks: a thin pale blue rule down the side */
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 40px; counter-reset: step; }
.blocks.two { grid-template-columns: repeat(2, 1fr); }
.block { border-left: 2px solid var(--accent); padding: 8px 0 10px 26px; counter-increment: step; }
.block h3 { font-size: 25px; margin-bottom: 10px; }
.block p { color: var(--muted); font-size: 16px; margin: 0; }
.block .num::before { content: counter(step, decimal-leading-zero); display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--label); margin-bottom: 8px; }
.hub .block:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 20px); justify-self: center; }
.icon { display: block; width: 30px; height: 30px; color: var(--deep); margin-bottom: 14px; }
.icon svg { width: 30px; height: 30px; stroke-width: 1.2; }

/* Designs: framed pictures, the middle one lowered */
.designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; align-items: start; }
.design:nth-child(3n+2) { margin-top: 48px; }
.design-photo { display: block; position: relative; padding: 10px; border: 2px solid var(--accent); background: var(--paper); margin-bottom: 22px; }
.design-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); transition: opacity .3s; }
.design-photo:hover img { opacity: .9; }
.flag { position: absolute; top: 22px; left: 22px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; }
.design-name { display: block; font-family: var(--head); font-weight: 400; font-size: 27px; line-height: 1.2; margin-bottom: 8px; color: color-mix(in srgb, var(--ink) 80%, #000); }
.design-text { display: block; color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.more { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--label); padding-bottom: 3px; }
.more:hover { border-color: var(--ink); }

/* What happens next: heading on the left, numbered rows on the right */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 88px; align-items: start; }
.split .head { position: sticky; top: 120px; }
.rows { list-style: none; margin: 0; padding: 0; counter-reset: step; border-bottom: 1px solid var(--line); }
.rows li { counter-increment: step; display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 30px 0; border-top: 1px solid var(--line); }
.rows .num::before { content: counter(step, decimal-leading-zero); font-family: var(--head); font-size: 40px; line-height: 1; color: var(--deep); }
.rows h3 { font-size: 25px; margin-bottom: 8px; }
.rows p { color: var(--muted); font-size: 16px; margin: 0; }

/* Help: a soft blush of colour behind a centred message */
.help { background: radial-gradient(60% 90% at 15% 25%, color-mix(in srgb, var(--accent) 34%, var(--paper)), transparent 70%), radial-gradient(55% 80% at 88% 80%, color-mix(in srgb, var(--accent) 22%, var(--paper)), transparent 70%), var(--soft); }
.help .head { margin-bottom: 36px; }
.help-body { text-align: center; }
.help-message { font-family: var(--head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: color-mix(in srgb, var(--ink) 85%, #000); margin-bottom: 22px; }
.help-name { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--label); margin-bottom: 6px; }
.help-number { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.help-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

.foot { background: var(--primary); color: #fff; text-align: center; padding: 64px 24px 72px; }
.foot span { font-family: var(--script); font-size: clamp(40px, 6vw, 64px); line-height: 1.15; }

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

@media (max-width: 1060px) {
  .designs { grid-template-columns: repeat(2, 1fr); }
  .design:nth-child(3n+2) { margin-top: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .head { position: static; }
}
@media (max-width: 900px) {
  .bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 24px; }
  .brand { justify-self: auto; }
  .brand-name { font-size: 19px; max-width: 46vw; }
  .menu.left, .menu a:not(.cta) { display: none; }
  .hero { padding: 108px 0 56px; min-height: 0; }
  .hero-card { margin: 0 auto; padding: 36px 28px 34px; }
  .sec { padding: 72px 0; }
  .head { margin-bottom: 40px; }
  .intro { margin-top: -16px; margin-bottom: 44px; }
}
@media (max-width: 700px) {
  .blocks.two, .designs { grid-template-columns: 1fr; }
  .hub .block:last-child:nth-child(odd) { width: auto; }
  .rows li { grid-template-columns: 58px 1fr; }
  .rows .num::before { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Motion: light and slow. Only transform, opacity and clip 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(32px); } to { opacity: 1; transform: none; } }
@keyframes write { from { clip-path: inset(-40% 100% -40% 0); } to { clip-path: inset(-40% -4% -40% 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: drift 2.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-card { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .eyebrow { animation: write 1.8s cubic-bezier(.4, .1, .2, 1) .7s both; }
  .js .block.reveal, .block { transition: opacity .7s ease, transform .7s ease, border-color .3s ease, translate .35s ease; }
  .block:hover { border-left-color: var(--deep); translate: 4px 0; }
  .design-photo { transition: translate .4s ease, box-shadow .4s ease; }
  .design:hover .design-photo { translate: 0 -5px; box-shadow: 0 16px 34px rgba(0, 0, 0, .1); }
  .js .rows li.reveal, .rows li { transition: opacity .7s ease, transform .7s ease, translate .35s ease; }
  .rows li:hover { translate: 6px 0; }
}
