/* Nordic Calm: a centred, magazine-like composition. Pale birch and linen, thin rules,
   a tall framed plate instead of a wide hero photograph, asymmetric editorial chapters.
   Re-colour the whole template from this one block. */
:root {
  --brand: #34503a;          /* pine: buttons, links, focus */
  --brand-ink: #f5f1e8;      /* text on the brand colour */
  --ground: #f5f1e8;         /* birch */
  --fog: #ebe5d7;            /* linen band */
  --ink: #1f2a22;            /* dark spruce */
  --muted: #5a6052;          /* >= 4.5:1 on ground and fog */
  --line: #cdc3ae;           /* hairline rules */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 6vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* the sample kit (customiser, chat) follows this palette */
  --kit-accent: var(--brand);
  --kit-accent-ink: var(--brand-ink);
  --kit-surface: var(--ground);
  --kit-ink: var(--ink);
  --kit-muted: var(--muted);
  --kit-line: var(--line);
  --kit-radius: 2px;
  --kit-font: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  /* the fixed SAMPLE bar (~40px) must never cover the footer */
  padding-bottom: 56px; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 1px; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 12px; }

.nd-wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.nd-narrow { max-width: 760px; }
.nd-center { text-align: center; }
.nd-kicker { font: 500 .75rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nd-lede { max-width: 38rem; margin-inline: auto; color: var(--muted); font-size: 1.125rem; }

/* header: wordmark centred over the nav, thin rules above and below */
.nd-head { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 20; }
.nd-head__top { padding: 28px var(--gutter) 18px; display: flex; justify-content: center; align-items: center; position: relative; }
.nd-mark { font: 400 clamp(1.35rem, 2.4vw, 1.75rem)/1.1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; text-wrap: balance; }
.nd-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 36px; padding: 14px var(--gutter); border-top: 1px solid var(--line); font-size: .9375rem; }
.nd-nav a, .nd-link-btn { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), color .3s; }
.nd-nav a:hover, .nd-link-btn:hover { border-bottom-color: var(--ink); }
.nd-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.nd-link-btn { font: inherit; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; color: var(--muted); }
.nd-toggle { display: none; }

/* buttons: a quiet filled one and an outlined one, both square like a printed label */
.nd-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.nd-btns--left { justify-content: flex-start; }
.nd-btn { font: 500 .9375rem/1 var(--sans); letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); text-align: center; }
.nd-btn:hover { background: transparent; color: var(--brand); }
.nd-btn--ghost { background: transparent; color: var(--brand); }
.nd-btn--ghost:hover { background: var(--brand); color: var(--brand-ink); }
.nd-more { display: inline-block; margin-top: 28px; font-size: .9375rem; letter-spacing: .04em; color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--brand); padding-bottom: 3px; }
.nd-more:hover { border-bottom-color: transparent; }

/* hero */
.nd-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); text-align: center; }
.nd-hero__top h1, .nd-mast h1 { font-size: clamp(2.1rem, 6.2vw, 5rem); margin: 22px auto 24px; max-width: 16ch; }
.nd-hero__top h1 { max-width: 20ch; }
.nd-hero__top h1 em, .nd-mast h1 em { color: var(--muted); font-style: italic; }
.nd-hero__plate { display: grid; grid-template-columns: 1fr minmax(260px, 440px) 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-top: clamp(48px, 7vw, 88px); }
.nd-frame { margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--fog); }
.nd-frame img { width: 100%; object-fit: cover; }
.nd-hero .nd-frame img { aspect-ratio: 4 / 5; }
.nd-frame figcaption { padding-top: 12px; font: italic 400 .9375rem/1.3 var(--serif); color: var(--muted); }
.nd-notes { display: flex; flex-direction: column; gap: 14px; font: 400 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 44px; }
.nd-notes li { padding-top: 14px; border-top: 1px solid var(--line); }
.nd-notes--l { text-align: right; }
.nd-notes--r { text-align: left; }
.nd-notes a { text-decoration: none; }
.nd-notes a:hover { color: var(--ink); text-decoration: underline; }

/* masthead for inner pages */
.nd-mast { padding: clamp(48px, 8vw, 96px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.nd-mast .nd-lede { margin-top: 8px; }

.nd-sec { padding: clamp(56px, 9vw, 120px) 0; }
.nd-sec h2 { font-size: clamp(1.9rem, 4.4vw, 3.25rem); margin-top: 14px; }
.nd-sec > .nd-wrap > header { margin-bottom: clamp(32px, 6vw, 72px); }
.nd-range { border-top: 1px solid var(--line); }

/* chapters: asymmetric, the picture takes seven columns, the text five, alternating */
.nd-chap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(28px, 5vw, 56px); }
.nd-chap + .nd-chap { border-top: 1px solid var(--line); }
.nd-chap:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
.nd-chap:nth-of-type(even) .nd-chap__img { order: 2; }
.nd-chap__img { margin: 0; overflow: hidden; }
.nd-chap__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nd-chap__text { counter-increment: chap; }
.nd-chap__text::before { content: counter(chap, upper-roman); display: block; font: italic 400 1.125rem/1 var(--serif); color: var(--muted); margin-bottom: 18px; }
.nd-range .nd-wrap { counter-reset: chap; }
.nd-chap__text h2, .nd-chap__text h3 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0 0 20px; }
.nd-chap__text h3 a { text-decoration: none; }
.nd-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.nd-rows li:last-child { border-bottom: 1px solid var(--line); }
.nd-rows small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: 3px; }
.nd-price { font: italic 400 1rem/1.3 var(--serif); color: var(--muted); text-align: right; white-space: nowrap; }
.nd-range .nd-center:last-child { margin-top: clamp(24px, 4vw, 48px); }
.nd-cat { padding-block: clamp(16px, 3vw, 32px); }
.nd-cat:first-of-type { padding-top: clamp(40px, 6vw, 72px); }
.nd-cat .nd-chap__text::before { content: ""; display: none; }


/* place band */
.nd-place { background: var(--ground); }
.nd-place h2 { font-size: clamp(2.4rem, 7.5vw, 6rem); font-style: italic; }
.nd-usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.nd-usps li { padding: 28px 22px; text-align: center; border-left: 1px solid var(--line); }
.nd-usps li:first-child { border-left: 0; }
.nd-usps strong { display: block; font: 400 1.25rem/1.25 var(--serif); }
.nd-usps span { display: block; margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* about */
.nd-about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 7vw, 100px); align-items: center; }
.nd-about .nd-frame img { aspect-ratio: 4 / 5; }
.nd-dropcap { font: 400 clamp(1.25rem, 2.2vw, 1.625rem)/1.5 var(--serif); }
.nd-dropcap::first-letter { float: left; font-size: 4.4em; line-height: .8; padding: .08em .1em 0 0; color: var(--brand); }
.nd-wallsec { background: var(--fog); border-block: 1px solid var(--line); }
.nd-wall { columns: 3 260px; column-gap: 20px; }
.nd-wall figure { margin: 0 0 20px; break-inside: avoid; }
.nd-wall img { width: 100%; }
.nd-wall figure:nth-child(3n+2) img { aspect-ratio: 4 / 5; object-fit: cover; }

/* faq and contact */
.nd-faq__item { padding: 28px 0; border-top: 1px solid var(--line); }
.nd-faq__item:last-child { border-bottom: 1px solid var(--line); }
.nd-faq__item h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0 0 10px; }
.nd-faq__item p { color: var(--muted); max-width: 40rem; }
.nd-ask { margin-top: clamp(40px, 6vw, 72px); text-align: center; }
.nd-ask h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 12px; }
.nd-big { font: 400 clamp(1.5rem, 5.4vw, 3.5rem)/1.15 var(--serif); overflow-wrap: anywhere; }
.nd-big a { text-decoration-thickness: 1px; }
.nd-big--sub { margin-top: 10px; color: var(--muted); font-size: clamp(1.25rem, 3.4vw, 2rem); }
.nd-contact .nd-btns { margin-top: 36px; }

/* footer: fog, centred, a wordmark and three columns between rules */
.nd-foot { background: var(--fog); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 32px; text-align: center; }
.nd-mark--foot { display: inline-block; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.nd-foot__lede { max-width: 34rem; margin: 16px auto 0; color: var(--muted); }
.nd-foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); text-align: left; }
.nd-foot h2 { font: 500 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.nd-foot li { padding: 3px 0; overflow-wrap: anywhere; }
.nd-foot__cols a { text-decoration: none; }
.nd-foot__cols a:hover { text-decoration: underline; }
.nd-foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.nd-foot__legal span { display: block; margin-top: 6px; }

/* motion: slow and small; absent without JS or with reduced motion */
.js .nd-reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .nd-reveal.is-in { opacity: 1; transform: none; }
.js .nd-enter { animation: nd-in 1.1s var(--ease) both; }
.js .nd-hero__plate.nd-enter { animation-delay: .25s; }
@keyframes nd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .nd-reveal { opacity: 1; transform: none; transition: none; }
  .js .nd-enter { animation: none; }
  .nd-btn, .nd-nav a { transition: none; }
}

/* 1024 and down */
@media (max-width: 1024px) {
  .nd-hero__plate { grid-template-columns: 1fr minmax(260px, 420px) 1fr; }
  .nd-foot__cols { grid-template-columns: repeat(2, 1fr); }
}

/* 768 and down: the side notes fold under the plate, the menu becomes a panel */
@media (max-width: 768px) {
  .nd-head__top { justify-content: space-between; padding: 16px var(--gutter); gap: 16px; }
  .nd-mark { text-align: left; font-size: 1.15rem; }
  .nd-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 48px; height: 48px; padding: 0 12px; background: none; border: 1px solid var(--line); cursor: pointer; flex: none; }
  .nd-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nd-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nd-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .js .nd-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter) 12px; }
  .js .nd-nav.is-open { display: flex; }
  .nd-nav a, .nd-link-btn { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; }
  .nd-hero__plate { grid-template-columns: 1fr; justify-items: center; }
  .nd-hero__plate .nd-frame { width: min(420px, 100%); }
  .nd-notes { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; width: 100%; text-align: center; }
  .nd-notes li { border-top: 0; padding: 0; }
  .nd-notes--l { order: 2; margin-top: 8px; }
  .nd-notes--r { order: 3; }
  .nd-chap, .nd-chap:nth-of-type(even) { grid-template-columns: 1fr; }
  .nd-chap:nth-of-type(even) .nd-chap__img { order: 0; }
  .nd-about__grid { grid-template-columns: 1fr; }
  .nd-about .nd-frame { width: min(420px, 100%); margin-inline: auto; }
  .nd-usps li { border-left: 0; border-top: 1px solid var(--line); }
  .nd-usps li:first-child { border-top: 0; }
  .nd-usps { border-top: 0; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .nd-foot__cols { grid-template-columns: 1fr; }
  .nd-btns .nd-btn { width: 100%; }
  .nd-rows li { flex-direction: column; gap: 4px; }
  .nd-price { text-align: left; white-space: normal; }
  .nd-frame { padding: 10px; }
}

/* build: the 3D customiser's invitation, one full screen. The photograph is a real <img> (lazy), the spruce scrim keeps the
   birch-coloured type above 4.5:1 over its brightest part (the lit bench strip). */
.nd-build { position: relative; isolation: isolate; display: grid; align-items: center; min-block-size: 100vh; min-block-size: 100svh; padding-block: clamp(72px, 12vw, 140px); color: var(--ground); text-align: center; overflow: hidden; }
.nd-build__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.nd-build::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(25 36 27 / .5), rgb(25 36 27 / .68)); }
.nd-build .nd-kicker { color: rgb(245 241 232 / .82); }
.nd-build h2 { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.08; margin-top: 18px; }
.nd-build h2 em { font-style: italic; }
.nd-build .nd-lede { max-width: 34em; margin: 26px auto 0; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: rgb(245 241 232 / .92); }
.nd-build p:last-child { margin-top: 40px; }
.nd-btn--light { background: var(--ground); color: var(--brand); border-color: var(--ground); }
.nd-btn--light:hover { background: transparent; color: var(--ground); }
.nd-build :focus-visible { outline-color: var(--ground); }
@media (prefers-reduced-motion: reduce) { .nd-btn--light { transition: none; } }
