/* =========================================================
   PRIMAVERA — design system for thediscussiongroup.es
   Tokens, base type and components shared by all mockups.
   ========================================================= */

/* Self-hosted fonts (SIL OFL) — no Google Fonts hotlinking */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "UnifrakturMaguntia"; src: url("../fonts/unifrakturmaguntia-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* ---- Colour: sampled from La Primavera ---- */
  --night:     #12140f;  /* the orange grove after dark */
  --grove:     #1f261b;  /* foliage */
  --moss:      #3a4630;
  --vellum:    #f5eee0;  /* page */
  --parchment: #ebe1cc;  /* panels */
  --ink:       #1d1b17;  /* text */
  --muted:     #6b6457;  /* secondary text */
  --rule:      #cfc3a9;  /* hairlines on vellum */
  --vermilion: #b4432a;  /* Venus's robe — primary accent */
  --carmine:   #8b2519;  /* Flora's darkest red — Satan series, hovers */
  --orange:    #d9822b;  /* the Hesperidean oranges — highlights */
  --gold:      #a2732b;  /* the frame — museum labels, fine details */
  --zephyr:    #5f7a8c;  /* the west wind — cool counterpoint */
  --flesh:     #e0bc88;  /* skin tones — subtle tints */

  /* ---- Type ---- */
  --f-display: "Libre Caslon Display", "Big Caslon", Georgia, serif;
  --f-text:    "EB Garamond", Garamond, Georgia, serif;
  --f-ui:      "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-black:   "UnifrakturMaguntia", serif;

  --t-hero:  clamp(2.8rem, 5.6vw, 5rem);
  --t-h1:    clamp(2.3rem, 4.2vw, 3.6rem);
  --t-h2:    clamp(1.7rem, 2.6vw, 2.3rem);
  --t-h3:    1.45rem;
  --t-body:  1.22rem;   /* ~19.5px EB Garamond reads like 17px elsewhere */
  --t-small: 1rem;
  --t-ui:    0.78rem;

  /* ---- Space & layout ---- */
  --s1: .25rem; --s2: .5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.5rem; --s6: 4rem; --s7: 6rem;
  --wrap: 1240px;
  --measure: 34em;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--vermilion); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--carmine); }
::selection { background: var(--orange); color: var(--night); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }

/* ---------- Typographic primitives ---------- */
h1, h2, h3, .display { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p { margin: 0 0 1em; }

.kicker {
  font-family: var(--f-ui); font-size: var(--t-ui); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--vermilion);
}
.kicker--ink { color: var(--ink); }
.kicker--light { color: var(--orange); }
.smallcaps { font-variant-caps: all-small-caps; letter-spacing: .06em; }
.deck { font-style: italic; font-size: 1.4rem; line-height: 1.35; color: var(--muted); }
.muted { color: var(--muted); }

.dropcap::first-letter {
  float: left; font-family: var(--f-display); color: var(--vermilion);
  font-size: 4.6em; line-height: .78; padding: .08em .08em 0 0;
}

/* Lapham-style rules */
.rule        { border: 0; border-top: 1px solid var(--ink); margin: 0; }
.rule--double{ border: 0; border-top: 4px double var(--ink); margin: 0; }
.rule--hair  { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Section header: label + double rule */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  border-top: 4px double var(--ink); padding-top: var(--s2); margin-bottom: var(--s4); }
.section-head h2 { font-size: var(--t-h2); }

/* Manicule link — ☞ the early-printer's pointing hand */
.manicule { font-family: var(--f-ui); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.manicule::before { content: "☞"; font-family: var(--f-text); font-size: 1.5em; margin-right: .35em; vertical-align: -.12em; color: var(--vermilion); }
.manicule:hover::before { color: var(--carmine); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--f-ui); font-weight: 600;
  font-size: .9rem; letter-spacing: .04em; padding: .8em 1.3em; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn--primary { background: var(--vermilion); color: var(--vellum); }
.btn--primary:hover { background: var(--carmine); color: var(--vellum); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--vellum); }
.btn--light { border-color: var(--vellum); color: var(--vellum); }
.btn--light:hover { background: var(--vellum); color: var(--night); }

/* ---------- Masthead ---------- */
.grove-strip { height: 84px; background: var(--night) url("../img/primavera-grove.jpg") center 35% / cover no-repeat; }
.masthead { background: var(--parchment); border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; gap: var(--s4); padding-block: var(--s3); }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.emblem { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px var(--vellum), 0 0 0 3.5px var(--orange); background: var(--night); }
.emblem img { width: 100%; height: 100%; object-fit: cover; }
.wordmark { font-family: var(--f-display); font-size: 2.1rem; line-height: .95; }
.wordmark small { display: block; font-family: var(--f-ui); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .45rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s4); font-family: var(--f-ui); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a[aria-current] { color: var(--vermilion); }

/* ---------- Date stamp ---------- */
.datestamp { display: inline-grid; grid-template-columns: auto auto; column-gap: .55rem; align-items: center; }
.datestamp__day { grid-row: span 2; font-family: var(--f-display); font-size: 3.3rem; line-height: .8; color: var(--vermilion); }
.datestamp__month { font-family: var(--f-ui); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.datestamp__time { font-family: var(--f-ui); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- Museum label (image credit) ---------- */
.label { font-family: var(--f-ui); font-size: .78rem; line-height: 1.45; color: var(--muted);
  border-left: 2px solid var(--gold); padding: .2rem 0 .2rem .7rem; margin-top: .7rem; max-width: 36em; }
.label cite { font-family: var(--f-text); font-style: italic; font-size: 1.05rem; color: var(--ink); }
.label--light { color: #b8b19f; }
.label--light cite { color: var(--vellum); }

/* ---------- Tags & series badge ---------- */
.tag { display: inline-block; font-family: var(--f-ui); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .3em .7em; border: 1px solid currentColor; border-radius: 999px; color: var(--muted); text-decoration: none; }
.series { display: inline-flex; align-items: baseline; gap: .45em; color: var(--carmine); text-decoration: none; }
.series__name { font-family: var(--f-black); font-size: 1.35rem; line-height: 1; }
.series__no { font-family: var(--f-ui); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Event card ---------- */
.card { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: var(--ink); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s; filter: saturate(.92); }
.card:hover .card__img img { transform: scale(1.03); filter: saturate(1.05); }
.card__meta { font-family: var(--f-ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: .8em; flex-wrap: wrap; }
.card__meta b { color: var(--vermilion); font-weight: 700; }
.card h3 { transition: color .15s; }
.card:hover h3 { color: var(--carmine); }
.card__by { font-style: italic; color: var(--muted); font-size: 1.05rem; }

/* ---------- Pull quote ---------- */
.pull { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.18; margin: var(--s5) 0; padding-left: var(--s4); border-left: 3px solid var(--vermilion); }
.pull footer { font-family: var(--f-ui); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; }

/* ---------- Panels ---------- */
.panel { background: var(--parchment); padding: var(--s4); }
.panel--dark { background: var(--night); color: var(--vellum); }

/* ---------- Dark "grove" section ---------- */
.night { background: var(--night); color: var(--vellum); position: relative; overflow: hidden; }
.night a { color: var(--vellum); }
.night .rule--double, .night .section-head { border-color: var(--vellum); }

/* ---------- Newsletter form ---------- */
.signup { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup input { flex: 1 1 16rem; font: inherit; font-size: 1.05rem; padding: .7em 1em; border: 1.5px solid var(--ink); background: var(--vellum); border-radius: 999px; color: var(--ink); }
.signup input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Footer ---------- */
.meadow-strip { height: 46px; background: var(--night) url("../img/primavera-meadow.jpg") center / cover no-repeat; }
.footer { background: var(--night); color: #cfc7b4; font-family: var(--f-ui); font-size: .85rem; padding: var(--s5) 0 var(--s6); }
.footer a { color: var(--vellum); text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--s5); }
.footer h4 { font-family: var(--f-ui); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin: 0 0 .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer .wordmark { color: var(--vellum); font-size: 1.7rem; }
.footer .credit { margin-top: var(--s5); font-size: .74rem; color: #8f8877; border-top: 1px solid #2f362a; padding-top: var(--s3); }

/* ---------- Utilities ---------- */
.grid { display: grid; gap: var(--s5) var(--s4); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: var(--s3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Mockup annotation chip (design review only) */
.note { position: fixed; right: 14px; bottom: 14px; z-index: 50; font-family: var(--f-ui); font-size: .72rem; background: var(--ink); color: var(--vellum);
  padding: .55rem .8rem; border-radius: 6px; max-width: 18rem; line-height: 1.4; opacity: .92; }
.note a { color: var(--orange); }

@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .g-3, .g-4 { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.6rem; }
  .emblem { width: 52px; height: 52px; }
}
