/* ByNook theme: brand tokens and shared components for the customer site.
   Source: bynook-design/DESIGN.md. Load Jost from Google Fonts in each page's <head>. */
:root {
  /* Colour (sampled from the brand board) */
  /* Oct 2026 palette, matched to bynook.com.au */
  --cream: #F5F0E8;        /* Oat: page background */
  --sand: #CFBDA5;         /* Sand: alternate sections, image placeholders */
  --sand-soft: #E6DCCD;    /* hover and quiet fills */
  --taupe: #C2AE93;        /* 1px lines and borders only, never text */
  --walnut: #8B6A47;       /* Walnut: small labels and links on oat */
  --sage: #70756A;         /* Sage: secondary text */
  --espresso: #2F3125;     /* Olive: headings and body text */
  --olive-black: #2F3125;  /* Olive: dark bands, footer, primary buttons */

  /* Type */
  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --fs-body: 15px;
  --fs-lead: 17px;
  --fs-label: 11px;
  --fs-label-sm: 10px;
  --fs-h-hero: clamp(42px, 5.6vw, 78px);
  --fs-h-section: clamp(32px, 3.6vw, 48px);
  --fs-h-band: clamp(34px, 4vw, 56px);
  --fs-h-sub: 30px;
  --track-label: 0.2em;
  --track-button: 0.18em;
  --track-nav: 0.14em;

  /* Layout */
  --container: 100%;        /* the page runs the full width of the screen, monitor or phone */
  --gutter: clamp(16px, 2.4vw, 48px);
  --section-y: 104px;
  --section-y-sm: 96px;
  --line: 1px solid var(--taupe);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--cream); color: var(--espresso);
  font-family: var(--font); font-weight: 400; font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--walnut); }
a:hover { color: var(--espresso); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--walnut); outline-offset: 3px;
}

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--sm { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
.band-sand { background: var(--sand); }
.band-dark { background: var(--olive-black); color: var(--cream); }
.stack { display: flex; flex-direction: column; }

/* ---------- type components ---------- */
.label {
  font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--walnut);
}
.label--sm { font-size: var(--fs-label-sm); letter-spacing: var(--track-button); }
.band-sand .label { color: var(--espresso); }   /* walnut fails contrast on sand */
.band-dark .label { color: var(--sand); }
.h-hero { font-family: var(--font-serif); font-size: var(--fs-h-hero); font-weight: 300; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.h-section { font-family: var(--font-serif); font-size: var(--fs-h-section); font-weight: 300; line-height: 1.12; text-wrap: balance; }
.h-band { font-family: var(--font-serif); font-size: var(--fs-h-band); font-weight: 300; line-height: 1.1; }
.h-sub { font-family: var(--font-serif); font-size: var(--fs-h-sub); font-weight: 300; line-height: 1.2; }
.lead { font-size: var(--fs-lead); max-width: 30em; }
.measure { max-width: 28em; }
/* Signature detail: max once per section */
.rule { width: 36px; height: 1px; background: currentColor; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-block; font-family: var(--font); font-size: var(--fs-label); letter-spacing: var(--track-button);
  text-transform: uppercase; text-decoration: none; padding: 18px 34px; border: 1px solid var(--olive-black);
  background: var(--olive-black); color: var(--cream); border-radius: 0; cursor: pointer; line-height: 1.4;
}
.btn:hover { background: var(--espresso); color: var(--cream); }
.btn--outline { background: transparent; color: var(--olive-black); }
.btn--outline:hover { background: var(--olive-black); color: var(--cream); }
.btn:disabled { opacity: .6; cursor: wait; }
.text-link {
  color: var(--espresso); font-size: var(--fs-label); letter-spacing: var(--track-button); text-transform: uppercase;
  text-underline-offset: 6px; padding: 12px 0; display: inline-block;
}
.band-dark .text-link { color: var(--cream); }

/* ---------- lined lists ---------- */
.lined > li { padding: 14px 0; border-top: var(--line); font-size: 16px; }
.lined > li:last-child { border-bottom: var(--line); }
.spec > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 15px 0; border-top: var(--line); font-size: 16px; }
.spec > div:last-child { border-bottom: var(--line); }
.spec dt { flex: 0 0 130px; font-size: var(--fs-label); letter-spacing: var(--track-nav); text-transform: uppercase; padding-top: 3px; }
.spec dd { flex: 1 1 200px; min-width: 0; }

/* ---------- announcement bar, header, footer ---------- */
.announce {
  background: var(--olive-black); color: var(--cream); padding: 12px var(--gutter); text-align: center;
  font-size: var(--fs-label-sm); letter-spacing: var(--track-button); text-transform: uppercase; line-height: 1.8;
}
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 26px; padding-bottom: 26px; }
.wordmark {
  color: var(--espresso); text-decoration: none; font-size: 24px; font-weight: 300; letter-spacing: 0.34em;
  text-transform: uppercase; line-height: 1;
}
.wordmark:hover { color: var(--espresso); }
.band-dark .wordmark { color: var(--cream); }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 34px; font-size: var(--fs-label); letter-spacing: var(--track-nav); text-transform: uppercase; }
.main-nav a { color: var(--espresso); text-decoration: none; padding: 12px 0; }
.main-nav a:hover, .main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

.site-footer .container { padding-top: 80px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 64px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.footer-cols > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-cols a, .footer-cols .item { color: var(--cream); text-decoration: none; padding: 6px 0; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols .label { padding-bottom: 10px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 24px;
  border-top: 1px solid var(--walnut); font-size: var(--fs-label-sm); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand);
}

@media (max-width: 720px) {
  :root { --section-y: 72px; --section-y-sm: 64px; --gutter: 16px; }
  .main-nav { gap: 0 22px; }
}
