/* Hemla Collection: site styles. Tokens mirror brand/design-system/tokens.json. */

:root {
  /* Colour */
  --linen: #efe7da;
  --ghost-pumpkin: #efe7ca;
  --mushroom-taupe: #b8aa98;
  --forest-olive: #3f4530;
  --chocolate: #4d3219;
  --terracotta: #a9573a;
  --beetroot: #5b2018;
  --ripe-fig: #473439;
  --ink: #2b2219;
  --ink-muted: #6b5a48;
  --surface-page: var(--linen);
  --surface-alt: var(--ghost-pumpkin);
  --surface-muted: var(--mushroom-taupe);
  --text: var(--ink);
  --text-heading: var(--chocolate);
  --text-on-dark: var(--linen);
  --divider: var(--mushroom-taupe);
  --accent: var(--terracotta);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: Jost, "Futura PT", Futura, "Century Gothic", system-ui, sans-serif;
  --size-numeral: 220px;
  --size-display-xl: 112px;
  --size-display-l: 72px;
  --size-title: 40px;
  --size-title-italic: 28px;
  --size-body: 15px;
  --size-body-small: 13px;
  --size-label: 11px;
  --size-button: 12px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 104px;
  --space-8: 160px;

  /* Radius and shadow */
  --radius-none: 0;
  --radius-soft: 2px;
  --radius-round: 9999px;
  --shadow-none: none;

  /* Page gutter */
  --gutter: max(5vw, var(--space-3));
}

@media (max-width: 599px) {
  :root {
    --size-numeral: 120px;
    --size-display-xl: 62px;
    --size-display-l: 40px;
    --size-title: 28px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--size-body);
  line-height: 1.75;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 1px solid var(--chocolate); outline-offset: 4px; }
.on-dark :focus-visible { outline-color: var(--text-on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Skip link */
.skip { position: absolute; left: var(--space-3); top: -100px; background: var(--chocolate); color: var(--text-on-dark); padding: var(--space-2) var(--space-3); font-size: var(--size-body-small); z-index: 10; }
.skip:focus { top: var(--space-3); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Type */
.label { font-family: var(--font-sans); font-size: var(--size-label); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.4; }
.display-xl, .display-l, .title { margin: 0; font-family: var(--font-display); font-weight: 300; color: var(--text-heading); }
.display-xl { font-size: var(--size-display-xl); line-height: 0.95; letter-spacing: -0.02em; }
.display-l { font-size: var(--size-display-l); line-height: 1; letter-spacing: -0.015em; }
.title { font-size: var(--size-title); line-height: 1.1; letter-spacing: -0.01em; }
.on-dark .display-xl, .on-dark .display-l, .on-dark .title { color: var(--text-on-dark); }
.lead { margin: 0; max-width: 52ch; font-size: 17px; }
.tbc { font-style: italic; color: var(--ink-muted); }
.on-dark .tbc { color: var(--text-on-dark); opacity: 0.8; }

/* Layout */
.band { padding: var(--space-8) var(--gutter); }
.band-tight { padding: var(--space-6) var(--gutter); }
.stack { display: grid; gap: var(--space-4); }
.stack > p { margin: 0; max-width: 60ch; }
@media (max-width: 599px) { .band { padding: var(--space-7) var(--gutter); } }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) var(--gutter); border-bottom: 1px solid var(--divider); }
.site-header .home img { height: 34px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.nav-wrap ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-wrap a { display: inline-block; padding: var(--space-1) 0; color: var(--ink-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.nav-wrap a:hover { color: var(--chocolate); border-bottom-color: var(--chocolate); }
.nav-wrap a[aria-current="page"] { color: var(--chocolate); border-bottom-color: var(--chocolate); }
.lang ul { gap: var(--space-3); }
.menu-btn { display: none; appearance: none; background: none; border: 1px solid var(--chocolate); color: var(--chocolate); padding: var(--space-2) var(--space-3); cursor: pointer; }
@media (max-width: 819px) {
  .js .menu-btn { display: inline-block; }
  .js .nav-wrap { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-3) 0 var(--space-2); }
  .js .nav-wrap.open { display: flex; }
  .js .nav-wrap .main-nav ul { flex-direction: column; gap: var(--space-3); }
}

/* Buttons: quiet outline only */
.btn { display: inline-block; justify-self: start; align-self: flex-start; font-family: var(--font-sans); font-size: var(--size-button); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; padding: var(--space-3) var(--space-4); border: 1px solid var(--chocolate); color: var(--chocolate); text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--chocolate); color: var(--text-on-dark); }
.on-dark .btn { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.on-dark .btn:hover { background: var(--text-on-dark); color: var(--chocolate); }

/* Photo slot */
.photo { position: relative; background: var(--surface-muted); overflow: hidden; }
.photo svg, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 16 / 7; }
@media (max-width: 719px) { .photo-wide { aspect-ratio: 4 / 3; } }
.photo-card { aspect-ratio: 4 / 5; }
.slot-tag { position: absolute; left: var(--space-3); bottom: var(--space-3); background: var(--linen); color: var(--ink); padding: var(--space-1) var(--space-2); }
.ps-ground { fill: var(--linen); }
.ps-light { fill: var(--mushroom-taupe); opacity: 0.28; }
.ps-floor { fill: var(--mushroom-taupe); opacity: 0.55; }
.ps-shadow { fill: var(--chocolate); opacity: 0.14; }
.ps-stem { fill: none; stroke: var(--chocolate); stroke-width: 1.4; opacity: 0.6; }
.ps-vessel { fill: var(--mushroom-taupe); }
.ps-vessel-shade { fill: var(--chocolate); opacity: 0.18; }
.ps-cloth { fill: var(--ghost-pumpkin); }

/* SplitPanel */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.split .photo { min-height: 320px; }
.split-block { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-4); padding: var(--space-6); }
.split-block p { margin: 0; max-width: 38ch; }
.split.reverse .photo { order: 2; }
.tone-olive { background: var(--forest-olive); }
.tone-chocolate { background: var(--chocolate); }
.tone-alt { background: var(--surface-alt); }
.on-dark { color: var(--text-on-dark); }
@media (max-width: 719px) {
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split.reverse .photo { order: 0; }
  .split .photo { min-height: 260px; }
  .split-block { padding: var(--space-5) var(--gutter); }
}

/* SectionNumeral */
.numeral { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: var(--space-4); }
.numeral-n { font-family: var(--font-display); font-weight: 300; font-size: var(--size-numeral); line-height: 0.8; letter-spacing: -0.04em; color: var(--mushroom-taupe); }
.numeral-body { display: grid; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--divider); }
.numeral-body .label { color: var(--ink-muted); }
.numeral-body p { margin: 0; max-width: 52ch; }
a.numeral { text-decoration: none; color: inherit; }
a.numeral:hover .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
@media (max-width: 599px) { .numeral { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); } }

/* SwatchRow */
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.swatches a { display: grid; justify-items: start; gap: var(--space-2); text-decoration: none; color: var(--ink); }
.swatches a:hover span:last-child { text-decoration: underline; }
.chip { width: 44px; height: 44px; border-radius: var(--radius-round); box-shadow: inset 0 0 0 1px var(--divider); }
.swatches.square .chip { border-radius: var(--radius-soft); width: 28px; height: 28px; }
.sw-linen { background: var(--linen); }
.sw-plaster { background: var(--ghost-pumpkin); }
.sw-walnut { background: var(--chocolate); }
.sw-clay { background: var(--mushroom-taupe); }

/* Pieces grid */
.pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.pieces li { display: grid; gap: var(--space-2); font-size: var(--size-body-small); }
@media (max-width: 899px) { .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contact */
.mail { font-family: var(--font-display); font-weight: 300; font-size: var(--size-display-l); line-height: 1.05; letter-spacing: -0.015em; color: var(--text-heading); overflow-wrap: anywhere; }

/* Care line */
.care { display: grid; gap: var(--space-1); padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, var(--text-on-dark) 35%, transparent); }

/* Footer */
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: var(--space-6); padding: var(--space-6) var(--gutter); background: var(--chocolate); color: var(--text-on-dark); font-size: var(--size-body-small); }
.site-footer img { height: 44px; width: auto; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: var(--space-4); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .meta { display: grid; gap: var(--space-1); justify-items: end; text-align: right; }
@media (max-width: 719px) { .site-footer { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .site-footer .meta { justify-items: start; text-align: left; } }

/* 404 */
.notfound ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); max-width: 46rem; }
.notfound li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--divider); }
.notfound li .label { color: var(--ink-muted); padding-top: 0.35em; }
