/* Hallmark · macrostructure: Photographic (home) / Long Document (content) · H6 photographic fold, caption panel pinned bottom-left
 * theme: custom · vibe: "carnet de ferme, cream paper, one ink, printed table" · paper: oklch(96.4% 0.013 78) · accent: oklch(66% 0.108 62)
 * display: Libre Caslon Display · body: Spectral · axes: light / roman-serif / chromatic-ochre ~62°
 * studied: no · context: inferred from the farm's own logo · v0.8.0
 */

/* ---------- Fonts (self-hosted, latin + latin-ext only) ---------- */
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-display-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-display-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/spectral-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/spectral-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spectral-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spectral-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spectral-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spectral-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Colour ---------- */
  --color-paper:        oklch(96.4% 0.013 78);
  --color-paper-2:      oklch(93.2% 0.018 76);
  --color-paper-3:      oklch(88.5% 0.022 74);
  --color-ink:          oklch(21% 0.014 62);
  --color-ink-2:        oklch(36% 0.016 62);
  --color-muted:        oklch(44% 0.015 64);
  --color-rule:         oklch(78% 0.016 74);
  --color-rule-2:       oklch(85% 0.014 76);
  --color-accent:       oklch(66% 0.108 62);
  --color-accent-deep:  oklch(48% 0.095 55);
  --color-accent-ink:   oklch(20% 0.02 60);
  --color-deep:         oklch(28% 0.062 268);
  --color-deep-2:       oklch(23% 0.05 268);
  --color-on-deep:      oklch(94% 0.012 80);
  --color-on-deep-2:    oklch(80% 0.02 80);
  --color-rule-on-deep: oklch(94% 0.012 80 / 0.22);
  --color-focus:        oklch(58% 0.16 255);
  --color-danger:       oklch(48% 0.16 27);

  /* ---------- Type ---------- */
  --font-display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --font-body:    "Spectral", Georgia, "Times New Roman", serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-md:   1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.6875rem;
  --text-4xl:  3.5625rem;
  --text-5xl:  clamp(2.75rem, 6.2vw, 4.75rem);
  --text-6xl:  clamp(3.25rem, 8.5vw, 6.5rem);

  --lh-tight:  1.04;
  --lh-display: 1.1;
  --lh-body:   1.62;

  --tracking-label: 0.1em;
  --tracking-display: -0.005em;

  /* ---------- Space (4pt) ---------- */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 11rem;

  /* ---------- Layout ---------- */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 62ch;
  --measure-wide: 74rem;

  /* ---------- Lines & shape ---------- */
  --rule-hair: 1px;
  --rule-strong: 2px;
  --radius: 0;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur-micro: 120ms;
  --dur-minor: 220ms;
  --dur-major: 420ms;

  /* ---------- Layers ---------- */
  --z-sticky: 200;
  --z-nav: 300;
  --z-skip: 400;
}
