/* ==========================================================================
   KRESTA TEXTILE — Reset & base typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  /* Sage page ground. The rounded section cards sit on top of it and it
     shows through the gaps between them — the reference's defining move. */
  background: var(--sage);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: var(--w-body);
  line-height: 1.7;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Locks scroll while the enquiry drawer is open */
body.is-locked {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Browsers draw a groove border and inset padding on fieldset by default */
fieldset {
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Focus ---------------------------------------------------------------
   Green fails contrast as a focus ring on ink, so the ring is ivory with a
   green outer edge for brand read. Never green alone.                      */

:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
  border-radius: var(--radius);
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--green);
  color: var(--ivory);
}

/* --- Type roles ----------------------------------------------------------
   Cormorant Garamond, set LIGHT, carries every display role. Headings are
   mixed case: the reference reserves capitals for the hero wordmark alone,
   where the extreme tracking is what does the work.                       */

/* Hero wordmark — enormous, capitalised, very widely tracked. */
.u-hero {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--track-hero);
  text-transform: uppercase;
  /* Tracking adds trailing space after the last letter, which throws a
     centred line off-centre. Indenting by the same amount cancels it. */
  text-indent: var(--track-hero);
  color: var(--text);
}

.u-display {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--track-display);
  color: var(--text);
}

.u-h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text);
}

.u-h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

/* Tracked sans caps under the hero wordmark. */
.u-kicker {
  font-family: var(--font-ui);
  font-size: clamp(0.6875rem, 0.85vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: var(--track-brand);
  text-transform: uppercase;
  text-indent: var(--track-brand);
  color: var(--text-2);
}

.u-h3 {
  font-family: var(--font-ui);
  font-size: var(--t-h3);
  font-weight: var(--w-medium);
  line-height: 1.35;
  color: var(--text);
}

.u-lead {
  font-size: var(--t-lead);
  font-weight: var(--w-body);
  line-height: 1.7;
  color: var(--text-3);
  max-width: 44ch;
}

.u-body {
  max-width: var(--measure);
  color: var(--text-3);
}

/* Section eyebrow — tracked sans caps, as in the reference. */
.u-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: var(--w-medium);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-4);
}

.u-mono {
  font-family: var(--font-ui);
  font-size: var(--t-small);
  font-weight: var(--w-body);
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.u-micro {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: var(--w-medium);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-4);
}

/* Screen-reader only */
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--t-small);
}

.skip-link:focus {
  top: var(--s-4);
}