/* Rose Mist, restyled after the Fields and Festoons website: a warm light grey page with dusty pink panels, an ultra light Garamond style
   serif, a fine light sans with open letter spacing, small quiet buttons, a frosted card over a full width photo and cards that overlap pictures.
   Every colour and both fonts come from the planner's branding (--we-*) with this template's own values as fallback. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../assets/fonts/cormorant-garamond-normal-300-600.woff2') format('woff2'); }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../assets/fonts/assistant-normal-300-600.woff2') format('woff2'); }

:root {
  --paper: var(--we-background, #efecec);
  --ink: var(--we-text, #605e5e);
  --primary: var(--we-primary, #6f5f64);
  --accent: var(--we-accent, #d8c8cc);
  --line: color-mix(in srgb, var(--ink) 18%, var(--paper));
  --rose: color-mix(in srgb, var(--accent) 88%, var(--paper));
  --rose-soft: color-mix(in srgb, var(--accent) 45%, var(--paper));
  --white: color-mix(in srgb, #fff 82%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 88%, var(--paper));
  --label: color-mix(in srgb, var(--ink) 80%, var(--paper));
  --deep: color-mix(in srgb, var(--ink) 92%, #000);
  --head: var(--we-font-heading, 'Cormorant Garamond', Georgia, serif);
  --body: var(--we-font-body, 'Assistant', system-ui, sans-serif);
  --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: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.85 var(--body); letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; margin: 0; line-height: 1.15; color: var(--deep); letter-spacing: .01em; }
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: 50; }
.skip:focus { left: 8px; }

/* Top bar: transparent over the photo, solid after the first scroll */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.bar.solid { background: color-mix(in srgb, var(--paper) 94%, 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; min-width: 0; }
.logo { height: 48px; width: auto; max-width: 168px; object-fit: contain; }
.brand-name { font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1.1; color: inherit; max-width: 300px; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.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; padding: 9px 20px; }
.menu a.cta:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Welcome: a full height photo with a small frosted box at its centre, then the message set as a centred statement on the page */
.stage { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; justify-content: center; padding: 120px 24px 96px; background: #3a3436; isolation: isolate; overflow: hidden; }
.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,.38), rgba(0,0,0,0) 260px); }
.mark { width: min(560px, 100%); text-align: center; background: color-mix(in srgb, var(--paper) 74%, transparent); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); padding: 56px 40px 60px; color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--label); margin-bottom: 22px; }
.mark h1 { font-size: clamp(42px, 5.6vw, 72px); margin: 0; overflow-wrap: anywhere; letter-spacing: .005em; }
.statement { width: min(780px, 100% - 48px); margin: 0 auto; padding: 96px 0 104px; text-align: center; }
.statement-text p:first-child { font-family: var(--head); font-weight: 300; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; color: var(--deep); letter-spacing: .01em; margin-bottom: 28px; }
.statement-text p:not(:first-child) { font-size: 16px; line-height: 1.9; max-width: 38em; margin-left: auto; margin-right: auto; }
.statement-text p:last-child { margin-bottom: 0; }
.statement-action { margin: 40px 0 0; }

/* Buttons: small and quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; text-decoration: none; padding: 13px 28px; border: 1px solid var(--primary); font-size: 13px; font-weight: 400; letter-spacing: .14em; 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) 45%, transparent); text-transform: none; letter-spacing: .04em; font-size: 15px; }
.btn.ghost:hover { opacity: 1; background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Sections */
.sec { padding: 112px 0; }
.sec.rose { background: var(--rose); }
.wrap { width: var(--page); margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 60px; }
.head.left { align-items: flex-start; text-align: left; margin-bottom: 0; }
.label { font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.head h2 { font-size: clamp(34px, 4.6vw, 54px); max-width: 18em; }
.intro { max-width: 38em; text-align: center; margin: -28px auto 64px; }

/* Getting started: columns divided by fine vertical lines */
.cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; text-align: center; }
.cols li { counter-increment: step; padding: 8px 32px; border-left: 1px solid var(--line); }
.cols li:first-child { border-left: 0; }
.cols .num::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--head); font-size: 44px; line-height: 1; color: var(--label); margin-bottom: 16px; }
.cols h3 { font-size: 26px; margin-bottom: 12px; }
.cols p { font-size: 15px; line-height: 1.8; margin: 0; }

/* Designs: a picture with a white card laid over its lower edge */
.designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 36px; align-items: start; }
.design { position: relative; }
.design-photo { display: block; position: relative; }
.design-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.flag { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; }
.design-card { display: block; position: relative; margin: -52px 0 0 24px; width: calc(100% - 48px); background: var(--white); padding: 22px 24px 24px; }
.design-name { display: block; font-family: var(--head); font-weight: 400; font-size: 27px; line-height: 1.2; color: var(--deep); margin-bottom: 8px; }
.design-text { display: block; font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.more { font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--label); padding-bottom: 3px; }
.more:hover { border-color: var(--ink); }

/* Planning hub: a full width row of tall panels in alternating tints */
.hub { padding: 112px 0 0; }
.hub .head { margin-bottom: 60px; padding: 0 24px; }
.panels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.panel { padding: 56px 34px 64px; text-align: center; background: var(--rose-soft); }
.panel:nth-child(even) { background: var(--rose); }
.panel h3 { font-size: 28px; margin-bottom: 16px; }
.panel p { font-size: 15px; line-height: 1.8; margin: 0; }
.icon { display: block; width: 36px; height: 36px; color: var(--deep); margin: 0 auto 22px; }
.icon svg { width: 36px; height: 36px; stroke-width: 1; }

/* What happens next: a rose pane with the heading beside numbered rows */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.pane { background: var(--rose); padding: 112px 56px 112px var(--pad); display: flex; align-items: center; }
.pane .head h2 { max-width: 12em; }
.rows { list-style: none; margin: 0; padding: 112px var(--pad) 112px 64px; counter-reset: step; align-self: center; }
.rows li { counter-increment: step; display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .num::before { content: counter(step, decimal-leading-zero); font-family: var(--head); font-size: 42px; line-height: 1; color: var(--label); }
.rows h3 { font-size: 26px; margin-bottom: 6px; }
.rows p { font-size: 15px; line-height: 1.8; margin: 0; }

/* Help */
.talk .head { margin-bottom: 36px; }
.talk .head h2 { letter-spacing: .04em; }
.help-body { text-align: center; }
.help-message { font-family: var(--head); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: var(--deep); margin-bottom: 24px; }
.help-name { font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--label); margin-bottom: 4px; }
.help-number { margin-bottom: 30px; }
.help-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

.foot { text-align: center; padding: 56px 24px 72px; border-top: 1px solid var(--line); }
.foot span { font-family: var(--head); font-weight: 300; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; color: var(--deep); letter-spacing: .02em; }

/* 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) {
  .cols { grid-template-columns: repeat(2, 1fr); gap: 44px 0; }
  .cols li:nth-child(odd) { border-left: 0; }
  .designs { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .pane { padding: 72px var(--pad) 40px; }
  .rows { padding: 40px var(--pad) 80px; }
}
@media (max-width: 900px) {
  .bar { padding: 12px 24px; gap: 16px; }
  .brand-name { font-size: 20px; max-width: 46vw; }
  .menu a:not(.cta) { display: none; }
  .stage { padding: 104px 24px 56px; min-height: 0; }
  .mark { padding: 40px 24px 44px; }
  .statement { padding: 64px 0 72px; }
  .sec { padding: 72px 0; }
  .hub { padding-top: 72px; }
  .head { margin-bottom: 40px; }
  .intro { margin-top: -20px; margin-bottom: 44px; }
}
@media (max-width: 640px) {
  .cols, .designs { grid-template-columns: 1fr; }
  .cols li { border-left: 0; border-top: 1px solid var(--line); padding: 28px 8px 0; }
  .cols li:first-child { border-top: 0; padding-top: 8px; }
  .rows li { grid-template-columns: 58px 1fr; }
  .rows .num::before { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; 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.06); } to { transform: scale(1); } }
@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .stage-bg { animation: drift 3s cubic-bezier(.2, .7, .2, 1) both; }
  .mark { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .mark .eyebrow { animation: rise .8s ease .7s both; }
  .mark h1 { animation: rise .9s ease .85s both; }
  .design-card { transition: translate .4s ease; }
  .design:hover .design-card { translate: 0 -6px; }
  .panel .icon { transition: translate .45s ease; }
  .panel:hover .icon { translate: 0 -4px; }
  .js .rows li.reveal, .rows li { transition: opacity .7s ease, transform .7s ease, translate .35s ease; }
  .rows li:hover { translate: 6px 0; }
}
