/* Localing base: tokens and primitives (brief section 7).
   Size follows the device: phones and tablets take the LARGER scale,
   desktop (1024px and up) the smaller one. */

:root {
  --lc-display: var(--wp--preset--font-family--display);
  --lc-ease: var(--wp--custom--ease);
  --lc-t1: var(--wp--custom--duration--fast);
  --lc-t2: var(--wp--custom--duration--base);
  --lc-t3: var(--wp--custom--duration--slow);
  --lc-hair: var(--wp--custom--hairline);
  --lc-hair-dark: var(--wp--custom--hairline-dark);
  --lc-target: 44px;
  --lc-header-h: 72px;
  --lc-bar-h: 0px;
  --lc-accent: var(--wp--preset--color--eucalyptus);

  /* phone and tablet scale */
  --lc-fs-small: 14px;
  --lc-fs-body: 17px;
  --lc-fs-lead: 19px;
  --lc-fs-h3: 28px;
  --lc-fs-h2: 44px;
  --lc-fs-h1: 52px;
}
@media (min-width: 1024px) {
  :root {
    --lc-fs-small: 13px;
    --lc-fs-body: 16px;
    --lc-fs-lead: 18px;
    --lc-fs-h3: 26px;
    --lc-fs-h2: clamp(36px, 3.34vw, 56px); /* 48px at 1440 */
    --lc-fs-h1: clamp(48px, 4.6vw, 80px);
  }
}

/* The client may switch the display face. Nothing else changes. */
body.lc-face-grotesque { --lc-display: var(--wp--preset--font-family--display-grotesque); }

html { scroll-padding-top: calc(var(--lc-header-h) + var(--lc-bar-h) + 8px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.lc-locked { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; display: block; }

/* One emphasised run per statement: <em> in content.
   Italic in the serif, the light weight in the grotesque. */
.lc-display em, h1 em, h2 em, h3 em { font-style: italic; }
body.lc-face-grotesque :is(h1, h2, h3, .lc-display) em { font-style: normal; font-weight: 300; }

/* ---------- label: 11px, 500, uppercase, 0.28em, eucalyptus, with the pin ---------- */
.lc-label {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 500 11px/1.2 var(--wp--preset--font-family--body);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--wp--preset--color--eucalyptus);
  margin: 0;
}
p.lc-label.has-text-align-center { display: flex; justify-content: center; }
.lc-label--pin::before {
  content: ""; width: 10px; height: 12px; flex: none;
  background: currentColor;
  -webkit-mask: url("../img/pin.svg") center / contain no-repeat;
          mask: url("../img/pin.svg") center / contain no-repeat;
}
.lc-on-dark .lc-label { color: rgb(255 255 255 / 0.75); }

/* ---------- section rhythm ---------- */
.lc-section { padding-block: var(--wp--preset--spacing--section); }
.lc-section__head { text-align: center; margin-bottom: var(--wp--preset--spacing--heading); }
.lc-section__head > * + * { margin-top: 1rem; }
.lc-headline { max-width: 14ch; margin-inline: auto; font-family: var(--lc-display); font-size: var(--lc-fs-h2); line-height: 1.08; color: var(--wp--preset--color--saltbush); font-weight: 400; }
.lc-lead { max-width: 44ch; margin-inline: auto; font-size: var(--lc-fs-lead); color: var(--wp--preset--color--grey); }
.lc-measure { max-width: 66ch; }

/* ---------- hairlines ---------- */
.lc-rule { border: 0; border-top: 1px solid var(--lc-hair); margin: 0; }
.lc-on-dark .lc-rule { border-top-color: var(--lc-hair-dark); }

/* ---------- dark blocks (statement, closing) ---------- */
.lc-on-dark { background: var(--wp--preset--color--saltbush); color: var(--wp--preset--color--white); }
.lc-on-dark :is(h1, h2, h3, .lc-headline) { color: var(--wp--preset--color--white); }

/* ---------- buttons and pills ---------- */
.lc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--lc-target); padding: 0 1.5em;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--wp--preset--font-family--body);
  text-decoration: none; cursor: pointer;
  transition: transform var(--lc-t1) var(--lc-ease);
}
.lc-btn--primary { background: var(--wp--preset--color--saltbush); color: #fff; }
.lc-btn--ghost { background: transparent; color: var(--wp--preset--color--saltbush); border-color: var(--lc-hair); }
.lc-btn--light { background: #fff; color: var(--wp--preset--color--saltbush); }
.lc-btn:hover { transform: translateY(-1px); } /* hover is a lift, never a colour change */
.lc-link { color: var(--wp--preset--color--saltbush); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }

.lc-chip {
  display: inline-flex; align-items: center; min-height: var(--lc-target);
  padding: 0 1.1em; border-radius: 999px;
  border: 1px solid var(--lc-hair); background: transparent;
  font: 400 15px/1 var(--wp--preset--font-family--body); color: var(--wp--preset--color--saltbush);
  cursor: pointer;
}
.lc-chip[aria-pressed="true"] { background: var(--wp--preset--color--saltbush); color: #fff; border-color: transparent; }
.lc-switch { display: inline-flex; padding: 4px; border: 1px solid var(--lc-hair); border-radius: 999px; gap: 2px; }
.lc-switch .lc-chip { border: 0; min-height: 38px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--wp--preset--color--harbour); outline-offset: 3px;
}

/* ---------- photographs and cards: sharp corners; hover lift 1.06 over 1.4s ---------- */
.lc-photo { position: relative; overflow: hidden; background: var(--wp--preset--color--slate); border-radius: 0; }
.lc-photo img, .lc-photo video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--lc-t3) var(--lc-ease); }
a:hover .lc-photo img, .lc-photo:hover img { transform: scale(1.06); }
.lc-scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(29 39 41 / 0.55), rgb(29 39 41 / 0) 55%); pointer-events: none; }

/* ---------- heart (save) ---------- */
.lc-heart {
  width: var(--lc-target); height: var(--lc-target);
  display: inline-grid; place-items: center;
  border-radius: 999px; border: 0; background: #fff; cursor: pointer;
  color: var(--wp--preset--color--saltbush);
}
.lc-heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lc-heart[aria-pressed="true"] svg { fill: var(--lc-state, var(--wp--preset--color--state-vic)); stroke: var(--wp--preset--color--saltbush); }

/* ---------- state colour: grounds and marks only, never text on eggshell ---------- */
.lc-state-vic { --lc-state: var(--wp--preset--color--state-vic); }
.lc-state-nsw { --lc-state: var(--wp--preset--color--state-nsw); }
.lc-state-tas { --lc-state: var(--wp--preset--color--state-tas); }
.lc-state-qld { --lc-state: var(--wp--preset--color--state-qld); }
.lc-ground-state { background: var(--lc-state); color: var(--wp--preset--color--saltbush); }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc-state); display: inline-block; }

/* ---------- toast ---------- */
.lc-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--wp--preset--color--saltbush); color: #fff;
  padding: 0.85em 1.4em; border-radius: 999px; font-size: 15px;
  transition: opacity var(--lc-t1) var(--lc-ease), transform var(--lc-t1) var(--lc-ease);
  pointer-events: none;
}
.lc-toast:empty { display: none; }
.lc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- accessibility helpers ---------- */
.screen-reader-text, .lc-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.lc-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 0.75em 1em; }

/* ---------- reduced motion is a still page, not a broken one ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .lc-photo img { transform: none !important; }
}
