/* =========================================================================
   Filippos Imports — main.css
   Direction: OLIVE-FORWARD (per client note).
   Ground = Bone deep · Text = Ink · Primary accent = Olive muted ·
   Secondary accent = Aegean. Brass reserved for foil/seal moments.
   Swap --accent back to Aegean to return to the brand-deck "mono core" reading.
   ========================================================================= */

/* ---- Fonts ------------------------------------------------------------- */
/* @font-face declarations are self-hosted in fonts.css (loaded before this
   file in base.html). Archivo variable (100–900) + GFS Didot, OFL-licensed. */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Ink & Bone */
  --ink:        #16191C;
  --ink-soft:   #2A2E33;
  --bone:       #F4F1E9;
  --bone-deep:  #ECE7DB;
  --paper:      #FBFAF6;

  /* Aegean blue family */
  --aegean:      #103A5C;
  --aegean-deep: #0A2A42;
  --mid:         #1C5688;
  --label-blue:  #2E5BD6;

  /* Foil / seal only */
  --brass: #A8884E;
  --olive: #6E7449;
  --olive-deep: #4E5334;   /* derived, for legible olive grounds */

  /* Stone cool-neutral ramp */
  --stone-50:  #F3F3F1;
  --stone-100: #E7E7E2;
  --stone-200: #D2D2CA;
  --stone-300: #B7B8AE;
  --stone-400: #9A9B90;
  --stone-500: #767A6C;
  --stone-700: #3A3C33;

  /* ---- Semantic mapping (OLIVE-FORWARD) ---- */
  --bg:          var(--bone-deep);
  --bg-alt:      var(--bone);
  --fg:          var(--ink);
  --fg-soft:     var(--ink-soft);
  --accent:        var(--olive);
  --accent-strong: var(--olive-deep);
  --accent-2:      var(--aegean);   /* secondary accent */
  --rule:          var(--label-blue); /* thin editorial rule only */
  --on-accent:     var(--paper);

  /* Type */
  --font-house: "Archivo", "Helvetica Neue", "Arial Nova", Arial, system-ui, sans-serif;
  --font-class: "GFS Didot", "Didot", "Cormorant", Georgia, "Times New Roman", serif;

  /* Type scale — deck: Hero 76/61 · H1·H2 49/39 · Lead 20 (1.25) · Body 16/14 */
  --fs-hero: clamp(2.75rem, 6.5vw, 4.75rem);   /* ~44 → 76 */
  --fs-h1:   clamp(2rem, 4.2vw, 3.0625rem);    /* ~32 → 49 */
  --fs-h2:   clamp(1.6rem, 3vw, 2.4375rem);    /* ~26 → 39 */
  --fs-lead: clamp(1.125rem, 1.6vw, 1.25rem);  /* 18 → 20 */
  --fs-body: 1rem;                             /* 16 */
  --fs-small: 0.875rem;                        /* 14 */

  --lh-tight: 1.02;
  --lh-body: 1.6;

  /* Rhythm */
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 2px;
}

/* ---- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-house);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--paper); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---- Shared type helpers ---------------------------------------------- */
.eyebrow {
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-strong);
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: color-mix(in srgb, var(--on-accent) 82%, transparent); }

.h1 {
  font-weight: 900; font-size: var(--fs-h1); line-height: var(--lh-tight);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.h1--light { color: var(--on-accent); }

.prose { font-size: var(--fs-lead); max-width: 44ch; margin-top: 1.25rem; color: var(--fg-soft); }
.prose--light { color: color-mix(in srgb, var(--on-accent) 88%, transparent); }

.provenance {
  font-family: var(--font-class); font-size: 1.4rem;
  color: var(--accent-2); margin-top: 1.75rem; letter-spacing: .01em;
}

.section { padding-block: var(--section-y); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block; font-weight: 700; font-size: var(--fs-small);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: var(--radius);
  border: 2px solid transparent; transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-strong); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { border-color: var(--fg); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; }

.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: var(--fg); }
.wordmark__crest { color: var(--accent-strong); display: inline-flex; }
.wordmark__text {
  display: inline-flex; flex-direction: column; line-height: .92;
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.05rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.9rem); font-weight: 600; font-size: var(--fs-small); }
.site-nav a { text-transform: uppercase; letter-spacing: .04em; color: var(--fg-soft); }
.site-nav a:hover { color: var(--fg); }
.site-nav__cta { color: var(--accent-strong) !important; }
@media (max-width: 640px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: var(--paper); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--aegean-deep) 30%, transparent) 0%,
    color-mix(in srgb, var(--aegean-deep) 78%, transparent) 100%);
}
.hero__inner { padding-block: clamp(5rem, 16vw, 11rem); }
.hero__title {
  font-weight: 900; font-size: var(--fs-hero); line-height: var(--lh-tight);
  letter-spacing: -0.025em; text-transform: uppercase; max-width: 16ch;
  text-wrap: balance;
}
.hero__lead {
  font-size: var(--fs-lead); max-width: 46ch; margin-top: 1.5rem;
  color: color-mix(in srgb, var(--paper) 90%, transparent);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero .btn--ghost { border-color: var(--paper); color: var(--paper); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--aegean-deep); }

/* ---- Story ------------------------------------------------------------- */
.story__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 800px) { .story__grid { grid-template-columns: 40% 1fr; } }
.story__media { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -22px rgba(22,25,28,.5); }
.story__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---- Products ---------------------------------------------------------- */
.card-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--stone-200);
  border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.8rem;
}
.card__title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.15rem; }
.card__body { margin-top: .7rem; color: var(--fg-soft); font-size: var(--fs-body); }

/* ---- Provenance band --------------------------------------------------- */
.provenance-band { background: var(--olive-deep); }
.provenance-band__inner { text-align: center; display: grid; justify-items: center; }
.provenance-band .prose { text-align: center; }

/* ---- Contact ----------------------------------------------------------- */
.contact__inner { max-width: 40rem; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--stone-200); padding-block: 2.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; justify-content: space-between; }
.site-footer__mark { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.site-footer__meta { color: var(--fg-soft); font-size: var(--fs-small); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
