* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --blue: #0b4ea2;
  --blue-dark: #12345f;
  --red: #d71920;
  --ink: #172033;
  --muted: #5d6a7c;
  --line: #d9e2ee;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --gold: #c69c42;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-mark {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid transparent;
  color: var(--ink);
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.site-nav a.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-head,
.archive-head,
.page-title,
.article-header {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) 0 1.25rem;
}

.intro-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 1.25rem 2rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro-copy h1 {
  font-size: 3.4rem;
}

.intro-copy p {
  max-width: 72ch;
  margin-bottom: 1rem;
}

.intro-photo {
  min-width: 0;
  margin: 0;
  border-top: 6px solid var(--blue);
}

.intro-photo a {
  display: block;
  background: var(--soft);
}

.intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-head .stats {
  grid-column: 1 / -1;
}

.archive-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.eyebrow,
.date-chip,
.legacy-path {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

h1,
h2,
h3 {
  color: var(--blue-dark);
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 3.8rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.05rem;
}

.archive-head p,
.intro-copy p,
.page-title p,
.article-header p {
  max-width: 70ch;
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(5rem, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.stats div {
  border-top: 4px solid var(--blue);
  background: var(--soft);
  padding: 0.75rem;
}

.stats dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.stats dd {
  color: var(--blue-dark);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.photo-strip figure,
.gallery-figure,
.article-hero,
.inline-photo,
.content-gallery figure {
  margin: 0;
}

.photo-strip img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.france-feature {
  margin: 1.5rem calc(50% - 50vw) 0;
  padding: 2.2rem clamp(1rem, 4vw, 3rem);
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.france-feature-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.france-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.france-feature-head .eyebrow {
  grid-column: 1 / -1;
  color: var(--red);
}

.france-feature-head h2 {
  font-size: 2.6rem;
  padding-left: 0.8rem;
  border-left: 6px solid var(--blue);
}

.france-feature-head p:last-child {
  margin: 0;
  max-width: 68ch;
}

.france-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.france-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(18, 52, 95, 0.11);
}

.france-main-photo {
  display: block;
  background: var(--blue-dark);
}

.france-main-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.france-card-copy {
  padding: 1rem;
}

.france-card-copy h3 {
  font-size: 1.35rem;
}

.france-card-copy h3 a {
  color: var(--blue-dark);
  text-decoration: none;
}

.france-card-copy p:last-of-type {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.intro-copy .feature-link {
  margin-top: 0.9rem;
}

.feature-link:hover,
.feature-link:focus {
  background: var(--red);
}

.france-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0 1rem 1rem;
}

.france-photo-row figure {
  min-width: 0;
  margin: 0;
}

.france-photo-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.france-photo-row figcaption {
  display: none;
}

figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  padding-top: 0.45rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.text-link {
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  padding: 1rem 0 0;
}

.timeline-year {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
}

.timeline-year.is-france-1998 {
  border-left: 4px solid var(--blue);
  padding: 0.8rem 0 0.8rem 0.9rem;
  background: #f4f8ff;
}

.timeline-year.is-france-1998 .year-label {
  color: var(--blue);
}

.timeline-year.is-france-1998 .post-card.compact {
  border-top: 4px solid var(--red);
}

.year-label {
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 900;
  padding-top: 0.5rem;
}

.timeline-list,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.post-card,
.gallery-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.post-card.compact {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
}

.card-media {
  display: block;
  background: var(--soft);
}

.card-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.post-card.compact .card-media img {
  height: 100%;
}

.card-body {
  min-width: 0;
  padding: 0.85rem;
}

.card-body h3 a {
  color: var(--blue-dark);
  text-decoration: none;
}

.card-body p:last-child {
  color: var(--muted);
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.list-year {
  margin: 1.8rem 0 0.8rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-page {
  width: min(980px, 100%);
  margin: 0 auto;
}

.article-header h1 {
  font-size: 3rem;
}

.article-hero {
  margin: 0 auto 2rem;
}

.article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: var(--soft);
}

.article-body {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.article-body p {
  margin: 1.1rem auto;
  max-width: 720px;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem auto;
  max-width: 720px;
}

.article-body .mt-enclosure {
  display: block;
  margin: 2rem auto;
  max-width: 900px;
}

.article-body .mt-enclosure img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: var(--soft);
}

.inline-photo {
  margin: 2.2rem auto;
  max-width: 900px;
}

.inline-photo img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: var(--soft);
}

.inline-photo figcaption {
  border-left: 3px solid var(--red);
  margin: 0.75rem auto 0;
  max-width: 720px;
  padding-left: 0.8rem;
}

.legacy-center {
  color: var(--blue-dark);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
}

.content-gallery {
  margin: 2.6rem auto;
  max-width: 940px;
  padding-top: 0.9rem;
}

.content-gallery h3 {
  border-top: 2px solid var(--blue);
  color: var(--red);
  font-size: 0.88rem;
  letter-spacing: 0;
  margin: 0 auto 1.2rem;
  max-width: 720px;
  padding-top: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.content-gallery-grid {
  display: grid;
  gap: 2.2rem;
}

.content-gallery figure {
  margin: 0 auto;
  max-width: 940px;
  min-width: 0;
}

.gallery-figure {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.6rem;
}

.gallery-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--soft);
}

.content-gallery img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: var(--soft);
}

.content-gallery figcaption {
  border-left: 3px solid var(--red);
  margin: 0.75rem auto 0;
  max-width: 720px;
  padding-left: 0.8rem;
}

.gallery-grid {
  padding-bottom: 2rem;
}

.caption-missing {
  color: #7a5600;
}

.used-by {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.warnings {
  color: #7a5600;
  background: #fff7df;
  border-left: 4px solid var(--gold);
  padding: 0.7rem 1rem 0.7rem 1.2rem;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
}

.related-block {
  width: min(1180px, 100%);
  margin: 0 auto 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 3rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
}

@media (max-width: 760px) {
  h1,
  .article-header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .legacy-center {
    font-size: 1.25rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-head,
  .archive-head {
    grid-template-columns: 1fr;
  }

  .intro-copy h1 {
    font-size: 2rem;
  }

  .france-feature {
    margin-inline: calc(50% - 50vw);
    padding-block: 1.5rem;
  }

  .france-feature-head,
  .france-feature-grid {
    grid-template-columns: 1fr;
  }

  .france-feature-head h2 {
    font-size: 2rem;
  }

  .france-card-copy h3 {
    font-size: 1.15rem;
  }

  .stats {
    width: 100%;
  }

  .timeline-year {
    grid-template-columns: 1fr;
  }

  .year-label {
    border-left: 4px solid var(--red);
    padding-left: 0.65rem;
  }

  .post-card.compact {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
