:root {
  --bg: #EDE0CC;
  --ink: #241C13;
  --ink-soft: #4A4033;
  --navy: #1C3A5E;
  --bordeaux: #6B1F2E;
  --gold: #C08A28;
  --cream: #F7EFE0;
  --rule: rgba(36, 28, 19, 0.22);
  --font-head: 'EB Garamond', Georgia, serif;
  --font-body: 'Lora', 'Frank Ruhl Libre', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

#app {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

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

/* ---------- Masthead ---------- */

.masthead {
  padding: 26px 20px 0;
  text-align: center;
}

.masthead-rule {
  height: 3px;
  background: var(--navy);
}

.masthead-rule--top {
  margin-bottom: 5px;
}

.masthead-rule--top::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 5px;
  background: var(--navy);
  opacity: 0.5;
}

.masthead-rule--bottom {
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin-top: 20px;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 0 4px;
}

.emblem {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.emblem svg { width: 100%; height: 100%; }

.ribbon-navy { fill: var(--navy); opacity: 0.95; }
.ribbon-cream { fill: #F8F3EA; opacity: 0.95; }
.ribbon-red { fill: #8C2B3A; opacity: 0.95; }
.gold-swoosh { fill: var(--gold); opacity: 0.9; }
.tower path { stroke: var(--navy); stroke-width: 2.4; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.word-france,
.word-direct {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.word-france { color: var(--navy); }
.word-direct { color: var(--gold); }

.word-divider {
  width: 2px;
  height: 34px;
  background: var(--gold);
  opacity: 0.8;
  flex-shrink: 0;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px 0 0;
}

.tagline-ornament {
  font-size: 10px;
  color: var(--gold);
  opacity: 0.85;
}

.tagline-text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hairline {
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 12%, var(--gold) 88%, transparent 100%);
  opacity: 0.8;
}

/* ---------- View switching ---------- */

.view-hidden { display: none; }

/* ---------- Section wrapper (background tone shift) ---------- */

.section-block {
  background: var(--section-bg, var(--bg));
  padding-bottom: 8px;
}

/* ---------- Section divider (bold banner) ---------- */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 20px;
  margin-top: 40px;
  background: var(--section-accent);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.14);
}

.section-block:first-child .section-divider {
  margin-top: 8px;
}

.section-divider .ornament {
  font-size: 11px;
  color: var(--cream);
  opacity: 0.7;
  letter-spacing: 2px;
}

.section-divider .label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

/* ---------- Story block (list view) ---------- */

.story {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--section-accent);
  padding: 0 20px;
  margin-bottom: 10px;
}

.story-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ddd2c0;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.duotone {
  position: absolute;
  inset: 0;
  background: var(--section-accent);
  mix-blend-mode: multiply;
  opacity: 0.24;
  pointer-events: none;
}

.duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.16) 100%);
}

.story-headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.28;
  color: var(--ink);
  padding: 16px 20px 0;
  margin: 0;
}

.story-preview {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: 10px 20px 0;
  margin: 0;
}

.accent-word { color: var(--section-accent); }

/* ---- lead treatment: first story of a section, dramatic and large ---- */

.story--lead { padding: 30px 0 44px; }

.story--lead .story-image { aspect-ratio: 1 / 1.02; }
.story--lead .duotone { opacity: 0.36; }
.story--lead .kicker { font-size: 13px; letter-spacing: 4.5px; margin-bottom: 16px; }
.story--lead .story-headline { font-size: 37px; line-height: 1.16; padding-top: 22px; font-weight: 700; }
.story--lead .story-preview { font-size: 17px; padding-top: 14px; }

/* ---- full treatment: regular full-width stacked story ---- */

.story--full { padding: 34px 0 40px; }

.story--full .story-image { aspect-ratio: 16 / 10; }
.story--full .duotone { opacity: 0.22; }

/* ---- compact treatment: image + text side by side, smaller scale ---- */

.story--compact { padding: 22px 0; }

.story--compact .kicker {
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-bottom: 9px;
}

.compact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 0 20px;
}

.story--compact .story-image {
  flex: 0 0 36%;
  max-width: 36%;
  aspect-ratio: 1 / 1;
}

.story--compact .duotone { opacity: 0.2; }

.compact-text { flex: 1; min-width: 0; }

.story--compact .story-headline {
  font-size: 18px;
  line-height: 1.32;
  padding: 0;
}

.story--compact .story-preview {
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- divider rule between consecutive stories ---- */

.story-rule {
  margin: 0 20px;
  height: 1px;
  background: var(--rule);
}

/* ---------- Article view ---------- */

.article-nav {
  padding: 18px 20px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 0;
}

.back-link:hover { color: var(--ink); }

.article-kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--section-accent);
  padding: 14px 20px 10px;
}

.article-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: #ddd2c0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.22;
  color: var(--ink);
  padding: 22px 20px 0;
  margin: 0;
}

.article-section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--section-accent);
  padding: 12px 20px 0;
}

.article-body {
  padding: 22px 20px 8px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body p:first-of-type::first-letter {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 64px;
  line-height: 0.78;
  float: left;
  padding: 6px 8px 0 0;
  color: var(--section-accent);
}

.compass {
  display: flex;
  justify-content: center;
  padding: 18px 0 56px;
  color: var(--section-accent);
}

.compass svg { width: 40px; height: 40px; }

/* ---------- Responsive ---------- */

@media (max-width: 420px) {
  .word-france, .word-direct { font-size: 32px; }
  .word-divider { height: 26px; }
  .emblem { width: 46px; height: 46px; }
  .masthead-inner { gap: 12px; padding-top: 18px; }
  .tagline-text {
    font-size: 9.5px;
    letter-spacing: 1.3px;
    white-space: normal;
    max-width: 260px;
  }
  .tagline { padding: 4px 0 0; }
  .story-headline { font-size: 22px; }
  .story--lead .story-headline { font-size: 29px; }
  .article-headline { font-size: 27px; }
  .article-body { font-size: 16px; }
  .compact-row { gap: 12px; }
  .story--compact .story-headline { font-size: 16.5px; }
}
