/* ==========================================================================
   GAC - Ghanem Azire & Abdelkarim Confection
   Systeme de design
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #14181f;
  --ink-soft:   #2a313d;
  --graphite:   #5a6474;
  --mist:       #8b95a5;
  --line:       #e2e5ea;
  --paper:      #ffffff;
  --paper-warm: #faf8f5;
  --paper-deep: #f2efe9;

  --gold:       #a8874f;
  --gold-deep:  #8a6d38;
  --gold-mist:  #f0e7d8;

  /* Typographie */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rythme */
  --gut:     clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --maxw:    1200px;
  --narrow:  760px;

  --radius: 2px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 12px 32px rgba(20, 24, 31, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* --- Utilitaires ------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: var(--narrow); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.bg-warm { background: var(--paper-warm); }
.bg-deep { background: var(--paper-deep); }
.bg-ink  { background: var(--ink); color: #cfd5de; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--graphite); line-height: 1.75; }
.bg-ink .lead { color: #aab3c0; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.bg-ink .eyebrow { color: var(--gold); }

.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.8rem; }
.center .rule { margin-left: auto; margin-right: auto; }

/* --- Boutons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: .95rem 2.1rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
  text-decoration: none;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- En-tete ----------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; color: var(--ink); letter-spacing: .06em; display: block; }
.brand__tag { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); display: block; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--graphite); font-weight: 500; text-decoration: none;
  padding: .4rem 0; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
/* Le bouton reste blanc sur fond encre, y compris quand il est la page courante */
.nav .btn,
.nav .btn:hover,
.nav .btn[aria-current="page"] { padding: .7rem 1.4rem; border-bottom: 0; color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.5rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; text-align: center; }
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #d5dae2;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(168,135,79,.20), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { max-width: 56ch; color: #aeb7c4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.page-hero {
  background: var(--ink); color: #aeb7c4;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 85% 0%, rgba(168,135,79,.18), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { max-width: 62ch; color: #a5aeba; }

/* --- Chiffres ---------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 2.2rem 1.6rem; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); line-height: 1; display: block; }
.stat__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-top: .75rem; display: block; }
.bg-ink .stats { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.14); }
.bg-ink .stat { background: var(--ink); }
.bg-ink .stat__num { color: #fff; }

/* --- Grilles ----------------------------------------------------------- */

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --- Cartes ------------------------------------------------------------ */

.card {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.4rem); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card__icon { color: var(--gold-deep); margin-bottom: 1.3rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--graphite); font-size: .96rem; }
.card__more { display: inline-block; margin-top: 1.2rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }

.sector { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: var(--paper); }
.sector__visual { height: 190px; position: relative; overflow: hidden; }
.sector__body { padding: clamp(1.6rem, 3vw, 2.2rem); flex: 1; display: flex; flex-direction: column; }
.sector__body p { flex: 1; }
.sector ul { margin: 1.1rem 0 0; padding: 0 0 0 1.1rem; color: var(--graphite); font-size: .93rem; }
.sector ul li { margin-bottom: .35rem; }

.v-work   { background: linear-gradient(135deg, #22303f, #16202b); }
.v-school { background: linear-gradient(135deg, #2e3550, #1c2136); }
.v-knit   { background: linear-gradient(135deg, #3a3229, #221d17); }
/* Voile de lisibilite : le titre reste lisible sur photo claire comme sur l'aplat */
.sector__visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(12,15,20,.78) 0%, rgba(12,15,20,.34) 34%, transparent 62%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 12px);
}
.sector__visual span {
  position: absolute; left: 1.6rem; bottom: 1.3rem; z-index: 2;
  font-family: var(--serif); color: #fff; font-size: 1.35rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

/* --- Photographies ----------------------------------------------------- */

.photo { margin: 0; position: relative; }
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--paper-deep);
}
.photo figcaption {
  font-size: .82rem; color: var(--mist); margin-top: .8rem;
  letter-spacing: .02em; line-height: 1.5;
}
.bg-ink .photo figcaption { color: #7f8a99; }

/* Le ratio reserve la place avant chargement : pas de saut de mise en page */
.photo img { aspect-ratio: var(--ratio, 4 / 3); }

/* Placeholder affiche tant que le fichier image n'existe pas */
.photo.is-missing img { display: none; }
.photo.is-missing::before {
  content: attr(data-label);
  display: flex; align-items: flex-end;
  aspect-ratio: var(--ratio, 4 / 3);
  padding: 1.4rem;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; color: rgba(255,255,255,.92);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 12px),
    linear-gradient(140deg, #2b3340, #171d26 62%, #3a3229);
}
.photo.is-missing::after {
  content: "Photographie à venir";
  position: absolute; top: 1rem; left: 1.4rem;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
}

.gallery { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.gallery--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gallery--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Bandeau photo pleine largeur */
.band-photo { position: relative; overflow: hidden; background: var(--ink); }
.band-photo .photo { --ratio: 21 / 9; }
.band-photo .photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) {
  .band-photo .photo { --ratio: 4 / 3; }
  .band-photo .photo img { aspect-ratio: 4 / 3; }
}

/* Carte secteur : la photo remplace l'aplat quand elle existe */
.sector__visual .photo, .sector__visual .photo img { height: 100%; width: 100%; }
.sector__visual .photo { position: absolute; inset: 0; }
.sector__visual .photo.is-missing::before,
.sector__visual .photo.is-missing::after { display: none; }
.sector__visual .photo.is-missing { background: transparent; }

/* --- Etapes ------------------------------------------------------------ */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 78px 1fr; gap: clamp(1rem, 3vw, 2rem);
  padding: 2.2rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--graphite); margin: 0; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: .5rem; } }

/* --- Listes ------------------------------------------------------------ */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .85rem; color: var(--graphite); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border: 1.5px solid var(--gold); border-radius: 50%;
}
.bg-ink .checklist li { color: #aab3c0; }

/* --- Citation ---------------------------------------------------------- */

.quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45; color: var(--ink); max-width: 26ch; }
.quote__author { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-top: 1.6rem; }
.bg-ink .quote { color: #fff; }

/* --- Bandeau CTA ------------------------------------------------------- */

.cta-band { background: var(--ink); color: #b9c1cc; text-align: center; padding: var(--section) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 50% 120%, rgba(168,135,79,.22), transparent 65%); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }

/* --- Formulaire -------------------------------------------------------- */

.form-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .45rem; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1.35rem; display: grid; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }

.field label { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-mist);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0453b; }
.field__error { font-size: .82rem; color: #c0453b; }
.field__error:empty { display: none; }
.field__hint { font-size: .82rem; color: var(--mist); }

.form__consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.form__consent input { width: 18px; height: 18px; margin-top: .25rem; }
.form__consent label { font-size: .88rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--graphite); }

.form__status { font-size: .95rem; padding: 1rem 1.2rem; border-radius: var(--radius); display: none; }
.form__status[data-state="ok"]   { display: block; background: #edf6ee; border: 1px solid #bcdcc0; color: #23632c; }
.form__status[data-state="err"]  { display: block; background: #fdeeed; border: 1px solid #f0c5c1; color: #96332b; }
.form__status[data-state="busy"] { display: block; background: var(--paper-warm); border: 1px solid var(--line); color: var(--graphite); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aside-card { background: var(--paper-warm); border: 1px solid var(--line); padding: clamp(1.8rem, 3vw, 2.3rem); }
.aside-card + .aside-card { margin-top: 1.5rem; }
.aside-card h3 { font-size: 1.15rem; }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); padding-top: .18rem; }

/* --- Tableau ----------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); font-weight: 600; background: var(--paper-warm); }
table.data td { color: var(--graphite); }

/* --- Fil d'Ariane ------------------------------------------------------ */

.crumbs { font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: 1.4rem; letter-spacing: .06em; }
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs span { margin: 0 .5rem; }

/* --- Pied de page ------------------------------------------------------ */

.site-footer { background: #0f1319; color: #7f8a99; padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.8rem, 4vw, 3rem); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #7f8a99; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #5c6675; }
.footer-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: #5c6675;
}

/* --- Apparition au defilement ------------------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- Accessibilite ----------------------------------------------------- */

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .8rem 1.2rem; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --- Bandeau cookies ---------------------------------------------------- */

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); color: #b9c1cc;
  border-top: 2px solid var(--gold);
  padding: clamp(1.2rem, 3vw, 1.8rem) 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.22);
  transform: translateY(110%);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.cookie[data-open="true"] { transform: none; }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

.cookie__inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.cookie__text { flex: 1 1 420px; font-size: .93rem; line-height: 1.6; }
.cookie__text strong { color: #fff; display: block; margin-bottom: .3rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.cookie__text a { color: var(--gold); }
.cookie__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cookie .btn { padding: .75rem 1.5rem; font-size: .74rem; }

/* --- Blog --------------------------------------------------------------- */

.post-list { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); height: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.post-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card a:hover { text-decoration: none; }
.post-card .photo { --ratio: 3 / 2; }
.post-card .photo img { aspect-ratio: 3 / 2; }
.post-card__body { padding: clamp(1.3rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: .7rem; }
.post-card h3 { font-size: 1.2rem; margin-bottom: .5rem; line-height: 1.25; }
.post-card p { font-size: .93rem; color: var(--graphite); flex: 1; margin: 0; }
.post-card__date { font-size: .78rem; color: var(--mist); margin-top: 1.1rem; }

.article { max-width: 720px; margin: 0 auto; }
.article > p, .article > h2, .article > h3, .article > ul, .article > ol, .article > blockquote, .article > .table-scroll { margin-left: auto; margin-right: auto; }
.article h2 { margin-top: 2.6rem; }
.article h3 { margin-top: 2rem; font-size: 1.22rem; }
.article ul, .article ol { color: var(--graphite); padding-left: 1.3rem; }
.article li { margin-bottom: .55rem; }
.article blockquote {
  margin: 2.2rem 0; padding: 1.2rem 0 1.2rem 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink);
}
.article__intro { font-size: 1.15rem; color: var(--graphite); line-height: 1.75; }

.byline { display: flex; align-items: center; gap: .9rem; margin: 2.5rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.byline__avatar {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em;
}
.byline__who { font-size: .92rem; line-height: 1.45; }
.byline__who strong { color: var(--ink); display: block; }
.byline__who span { color: var(--mist); font-size: .85rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a { display: block; border: 1px solid var(--line); padding: 1.2rem 1.4rem; text-decoration: none; transition: border-color .2s ease; }
.post-nav a:hover { border-color: var(--gold); text-decoration: none; }
.post-nav span { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-bottom: .4rem; }
.post-nav strong { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 1.02rem; line-height: 1.3; }
.post-nav .next { text-align: right; }
