/* 1 œuvre, 1 histoire
   Même famille graphique que rome-passion.com :
   Cormorant Garamond + Jost, terre cuite et or.
   Mobile d'abord. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Jost-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Jost-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Jost-LightItalic.woff2") format("woff2");
}

:root {
  --terracotta: #c0441e;
  --terracotta-dark: #8b2e10;
  --gold: #b8932a;
  --gold-light: #e8c96a;
  --stone: #f5f0e8;
  --stone-dark: #e8e0cc;
  --ink: #2a2418;
  --ink-mid: #4a3f2f;
  --ink-light: #7a6a54;
  --white: #fdfaf5;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--terracotta-dark); }

.site-header {
  display: flex;
  align-items: stretch;
  min-height: 4.5rem;
  background: var(--ink);
  overflow: hidden;
}

.site-logo {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  flex: 1 1 auto;
}

.site-logo-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.site-logo-text span { color: var(--gold-light); }

.site-header-photo {
  display: none;
  flex: 0 0 46%;
  max-width: 36rem;
}

.site-header-photo img {
  width: 100%;
  height: 100%;
  max-height: 7.5rem;
  object-fit: cover;
  object-position: center 22%;
}

.site-nav { background: var(--terracotta); }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: var(--terracotta-dark);
  color: var(--white);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.ham {
  width: 1.15rem;
  height: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ham span {
  display: block;
  height: 2px;
  background: var(--white);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--terracotta-dark);
}

.nav-links.open { display: block; }

.nav-links > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.nav-links > li > a,
.nav-cat summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav-cat summary { list-style: none; }
.nav-cat summary::-webkit-details-marker { display: none; }
.nav-cat summary::after {
  content: "";
  margin-left: auto;
  border: 5px solid transparent;
  border-top-color: var(--gold-light);
  transform: translateY(3px);
}
.nav-cat[open] summary::after { transform: rotate(180deg) translateY(-2px); }

.nav-cat ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.6rem;
  background: rgba(0, 0, 0, 0.15);
}

.nav-cat li a {
  display: block;
  padding: 0.4rem 1.25rem 0.4rem 1.6rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
}

.nav-links a:hover,
.nav-cat summary:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.nav-links a[aria-current="page"],
.nav-cat a[aria-current="page"] { color: var(--gold-light); }

.site-main {
  width: min(100%, 62rem);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1rem;
  color: var(--ink-light);
  font-size: 0.82rem;
}

.breadcrumb a { color: var(--ink-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  color: var(--terracotta-dark);
}

h2 {
  margin: 1.8rem 0 0.7rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--ink);
}

.article-body p,
.article-body li { font-size: 1.05rem; }

.article-body p { margin: 0 0 1rem; }

.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.2rem; }

figure { margin: 1.2rem 0; }

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

.media-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.2rem 0 1.4rem;
}

.media-figures figure { margin: 0; }

.media-stack figure + figure { margin-top: 1rem; }

.excerpt-more { margin-top: 0.4rem; font-weight: 500; }

.related {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stone-dark);
}

.related h2 { margin-top: 0; font-size: 1.45rem; color: var(--terracotta); }

.related ul { list-style: none; margin: 0; padding: 0; }

.related li { margin: 0.35rem 0; }

.related a { font-weight: 500; }

.site-footer {
  background: var(--stone);
  color: var(--ink-mid);
  text-align: center;
  padding: 1.4rem 1rem 1.8rem;
  font-size: 0.92rem;
}

.site-footer p { margin: 0.35rem 0; }

.site-footer a { color: var(--terracotta-dark); }

.same-author {
  color: var(--ink-light);
  font-size: 0.85rem;
}

.article-body a { overflow-wrap: anywhere; }

@media (min-width: 700px) {
  .site-header-photo { display: block; }
  .site-header { min-height: 7.5rem; }
}

@media (min-width: 768px) {
  .media-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.4rem;
  }
  .media-text { flex: 1 1 52%; min-width: 0; }
  .media-figures { flex: 1 1 42%; min-width: 0; }
  .site-main { padding: 2rem 1.5rem 4rem; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: transparent;
  }
  .nav-links > li { border: 0; position: relative; }
  .nav-links > li > a,
  .nav-cat summary {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    padding: 0.95rem 0.9rem;
  }
  .nav-cat summary::after { margin-left: 0.4rem; }
  .nav-cat ul {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    min-width: 17rem;
    max-height: 70vh;
    overflow: auto;
    padding: 0.4rem 0;
    background: var(--white);
    border: 1px solid var(--stone-dark);
    box-shadow: 0 10px 28px rgba(42, 36, 24, 0.12);
    columns: 1;
  }
  .nav-cat.cat-md ul { columns: 2; min-width: 28rem; }
  .nav-cat.cat-lg ul { columns: 3; width: min(42rem, calc(100vw - 2rem)); }
  .nav-cat[open] ul { display: block; }
  .nav-cat li { break-inside: avoid; }
  .nav-cat li a {
    color: var(--ink);
    padding: 0.35rem 0.9rem;
    font-size: 0.92rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 300;
  }
  .nav-cat li a:hover { background: var(--stone); color: var(--terracotta); }
  .nav-cat a[aria-current="page"] { color: var(--terracotta); font-weight: 500; }
  .nav-links > li > a:hover,
  .nav-cat summary:hover { background: rgba(0, 0, 0, 0.12); color: var(--white); }
}

@media (min-width: 1100px) {
  .site-main { padding-inline: 2rem; }
}
