/* ============================================
   uaxd.fr — Style principal
   Charte DA V6d · Tokens section 8
   ============================================ */

/* --- @font-face : self-hosted WOFF2 --- */

/* Source Serif 4 — Normal (variable, 400–600) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-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;
}

/* Source Serif 4 — Italic (variable, 400–500) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/source-serif-4-400-italic-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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/source-serif-4-400-italic-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;
}

/* Inter — Normal (variable, 400–500) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-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;
}

/* --- Tokens (charte V6d section 8) --- */

:root {
  /* Palette */
  --ink: #1a1a1a;
  --ink-65: rgba(26, 26, 26, 0.65);
  --ink-45: rgba(26, 26, 26, 0.45);
  --ink-30: rgba(26, 26, 26, 0.30);
  --paper: #faf8f3;
  --ocre: #8b6b2d;
  --ocre-30: rgba(139, 107, 45, 0.30);

  /* Typographie */
  --font-serif: "Source Serif 4", "Lora", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Tailles desktop */
  --fs-h1: 56px;
  --fs-h2: 34px;
  --fs-h3: 22px;
  --fs-body: 20px;
  --fs-lead: 24px;
  --fs-meta: 13px;
  --fs-nav: 15px;
  --fs-cta: 14px;
  --fs-footer: 13px;

  /* Espacements */
  --col-read: 680px;
  --col-wide: 1120px;
  --gap-block: 96px;
  --gap-section: 48px;

  /* Hero */
  --hero-pt: 120px;
  --hero-pb: 80px;
}

@media (max-width: 640px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 28px;
    --fs-body: 18px;
    --gap-block: 64px;
    --hero-pt: 72px;
    --hero-pb: 48px;
  }
}

/* --- Reset minimal --- */

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

/* --- Base --- */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; }
h3 { font-size: var(--fs-h3); font-weight: 500; font-style: italic; line-height: 1.3; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ocre-30);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--ocre);
  text-decoration-color: var(--ocre);
}

img { max-width: 100%; height: auto; display: block; }

/* --- Masthead --- */

.masthead {
  text-align: center;
  padding: 48px 24px 0;
  max-width: var(--col-wide);
  margin: 0 auto;
}

.masthead-wordmark {
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.masthead-wordmark:hover { color: var(--ink); text-decoration: none; }

.masthead-subtitle {
  font-family: var(--font-serif);
  font-size: var(--fs-meta);
  font-style: italic;
  color: var(--ink-65);
  margin-top: 8px;
  line-height: 1.4;
}

.masthead-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--ocre-30);
}

.masthead-nav a {
  font-family: var(--font-sans);
  font-size: var(--fs-nav);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.masthead-nav a:hover { color: var(--ocre); }

/* --- Hero (home) --- */

.hero-grid {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: var(--hero-pt) 24px var(--hero-pb);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap-section);
  align-items: start;
}

.hero-main {}

.hero-meta {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-deck {
  font-size: var(--fs-lead);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-65);
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero-byline {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 32px;
}

.hero-cta {
  font-family: var(--font-sans);
  font-size: var(--fs-cta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ocre);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.15s, color 0.15s;
  padding: 8px 0;
  display: inline-block;
  min-height: 44px;
  line-height: 28px;
}
.hero-cta:hover {
  text-decoration-thickness: 2px;
  color: var(--ocre);
}

/* --- In This Issue (sidebar column) --- */

.in-this-issue {
  padding-top: 8px;
  min-width: 0;
  padding-right: 24px;
}

.in-this-issue-label {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 24px;
}

.issue-item {
  padding: 20px 0;
  border-top: 1px solid var(--ocre);
}

.issue-item-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

.issue-item-author {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-45);
  letter-spacing: 0.04em;
}

.issue-item-date {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-45);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* --- Colophon (footer, shared) --- */

.colophon {
  text-align: center;
  padding: var(--gap-block) 24px 48px;
  max-width: var(--col-wide);
  margin: 0 auto;
  border-top: 1px solid var(--ocre-30);
}

.colophon-thesis {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--ink-65);
  line-height: 1.5;
  margin-bottom: 32px;
}

.colophon-admin {
  font-family: var(--font-sans);
  font-size: var(--fs-footer);
  color: var(--ink-45);
  line-height: 1.5;
}

.colophon-admin a {
  color: var(--ink-45);
}
.colophon-admin a:hover {
  color: var(--ocre);
}

.colophon-legal {
  margin-top: 16px;
}

.colophon-legal a {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-30);
  text-decoration: none;
}
.colophon-legal a:hover {
  color: var(--ocre);
}

/* --- Separator --- */

.separator {
  height: 1px;
  background: var(--ocre-30);
  margin: var(--gap-block) auto;
  max-width: var(--col-read);
}

/* --- Dispatch (article page) --- */

.dispatch-header {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: var(--hero-pt) 24px 0;
}

.dispatch-meta {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 24px;
}

.dispatch-title {
  margin-bottom: 24px;
}

.dispatch-deck {
  font-size: var(--fs-lead);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-65);
  line-height: 1.5;
  margin-bottom: 24px;
}

.dispatch-byline {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-top: 16px;
  border-top: 1px solid var(--ocre-30);
}

/* --- Dispatch body --- */

.dispatch-body {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: var(--gap-section) 24px;
}

.dispatch-body p {
  margin-bottom: 1.5em;
}

.dispatch-body h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-top: 1.5em;
  border-top: 1px solid var(--ocre-30);
}

.dispatch-body blockquote {
  margin: 1.5em 0;
  padding-left: 24px;
  border-left: 2px solid var(--ocre);
  font-style: italic;
  color: var(--ink-65);
}

.dispatch-body blockquote p { margin-bottom: 0.8em; }

/* --- Dispatch footer --- */

.dispatch-author-box {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: var(--gap-section) 24px;
  border-top: 1px solid var(--ocre-30);
}

.dispatch-author-name {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 4px;
}

.dispatch-author-role {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 400;
  color: var(--ink-45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.dispatch-author-bio {
  font-size: 17px;
  color: var(--ink-65);
  line-height: 1.5;
}

/* --- Dispatch nav (prev/next) --- */

.dispatch-nav {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: var(--gap-section) 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--ocre-30);
}

.dispatch-nav-item { text-decoration: none; }
.dispatch-nav-item:hover { text-decoration: none; }

.dispatch-nav-dir {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 8px;
}

.dispatch-nav-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  transition: color 0.15s;
}
.dispatch-nav-item:hover .dispatch-nav-title { color: var(--ocre); }

.dispatch-nav-author {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-45);
  margin-top: 4px;
}

.dispatch-nav-item--next { text-align: right; }

/* --- Subscribe CTA (post-article) --- */

.subscribe-cta {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: var(--gap-section) 24px;
  text-align: center;
}

.subscribe-cta p {
  font-size: 17px;
  color: var(--ink-65);
  line-height: 1.5;
  margin-bottom: 4px;
}

.subscribe-cta a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ocre);
  text-underline-offset: 3px;
}
.subscribe-cta a:hover { color: var(--ocre); }

/* --- Subscribe page --- */

.page-content {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: var(--hero-pt) 24px var(--gap-block);
}

.page-content h1 { margin-bottom: 24px; }

.page-content p {
  margin-bottom: 1.5em;
  color: var(--ink-65);
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  max-width: 480px;
}

.subscribe-form input[type="email"] {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  width: 100%;
  outline: 0;
  color: var(--ink);
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--ocre);
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--ink-30);
}

.btn-subscribe {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-cta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--ocre); }

.sib-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-message {
  max-width: 480px;
  margin-top: 16px;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
}
.form-message--success {
  color: var(--ink);
  border-left: 2px solid var(--ocre);
  background: rgba(139, 107, 45, 0.06);
}
.form-message--error {
  color: var(--ink);
  border-left: 2px solid var(--ink);
  background: rgba(26, 26, 26, 0.04);
}

/* --- About page: contributors grid --- */

.contributor {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: var(--gap-section);
  margin-bottom: var(--gap-block);
  align-items: start;
}

.contributor-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.contributor-photo-wrap {
  border-bottom: 1px solid var(--ocre-30);
  padding-bottom: 16px;
}

.contributor-name {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
}

.cg {
  font-size: 0.7em;
  color: var(--ink-45);
  letter-spacing: 0.04em;
}

.contributor-role {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 16px;
}

.contributor-bio {
  font-size: 17px;
  color: var(--ink-65);
  line-height: 1.6;
}

/* --- Mobile responsive --- */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: var(--hero-pt) 24px var(--hero-pb);
  }

  .in-this-issue {
    padding-top: 0;
    border-top: 1px solid var(--ocre-30);
    padding-top: 24px;
  }

  .masthead-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .masthead-wordmark {
    font-size: 48px;
  }

  .dispatch-nav {
    grid-template-columns: 1fr;
  }

  .dispatch-nav-item--next { text-align: left; }

  .contributor {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .masthead {
    padding: 32px 16px 0;
  }

  .hero-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dispatch-header,
  .dispatch-body,
  .dispatch-author-box,
  .dispatch-nav,
  .subscribe-cta,
  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-byline {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}
