:root {
  --ink: #111;
  --ink-light: #333;
  --ink-muted: #666;
  --rule: #222;
  --rule-light: #ccc;
  --paper: #f5f0e8;
  --paper-dark: #ede7d7;
  --accent: #b5000c;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
}

.masthead {
  border-bottom: 3px double var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.masthead-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.8rem 1.5rem 0.4rem;
  gap: 1rem;
}

.masthead-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.masthead-meta.right { text-align: right; }
.separator { margin: 0 0.4rem; }
.masthead-logo { text-align: center; }

.paper-name {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}

.paper-tagline {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.masthead-rule { height: 1px; background: var(--rule); margin: 0 1.5rem; }

.controls-bar { background: var(--paper); padding: 0.5rem 1.5rem; }
.controls-inner {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

select, #getnews {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 0.38rem 0.7rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
  appearance: auto;
}
select:hover, select:focus { background: var(--paper-dark); outline: none; }
#country { min-width: 200px; }

#getnews {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  padding: 0.38rem 1.6rem;
  letter-spacing: 0.1em;
}
#getnews:hover { background: #8b000a; }
#getnews:disabled { background: #999; border-color: #999; cursor: not-allowed; }

.section-rule {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rule) 0, var(--rule) 6px, transparent 6px, transparent 10px);
}

.ticker-wrap {
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  height: 28px;
  display: none;
}

.ticker-label {
  background: #111;
  padding: 0 0.9rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2em;
}

#ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.tick-item { display: inline-block; padding: 0 0.3rem; }
.tick-sep  { display: inline-block; padding: 0 0.6rem; opacity: 0.5; }

.paper-body { width: 100%; padding: 0 1.5rem 3rem; }

.splash {
  display: flex; align-items: center; justify-content: center; min-height: 40vh;
}
.splash-inner {
  text-align: center;
  border: 2px solid var(--rule-light);
  padding: 3rem 4rem;
  background: var(--paper-dark);
}
.splash-icon { font-size: 3rem; margin-bottom: 1rem; }
.splash-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;
}
.splash-inner p { font-style: italic; color: var(--ink-muted); }

.skeleton-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; padding-top: 0.5rem; }
.skel {
  background: linear-gradient(90deg, #ddd5c0 25%, #ccc4af 50%, #ddd5c0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 2px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-hero { height: 380px; }
.skel-side { height: 180px; }
.skel-card { height: 160px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
  margin: 2rem 0 0;
}
.paper-body > .section-header:first-child { margin-top: 0; }

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
}

.sec-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--accent);
}
.sec-icon svg { width: 18px; height: 18px; stroke: currentColor; }

.section-count {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-loading { color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-left: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.hero-main {
  padding: 1rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.hero-main .art-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 0.8rem;
  display: block;
  filter: grayscale(12%);
  transition: filter 0.3s;
  background: var(--paper-dark);
}
.hero-main .art-img:hover { filter: grayscale(0); }
.hero-main .art-headline { font-size: 1.65rem; line-height: 1.15; }

.art-img-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: var(--paper-dark);
  margin-bottom: 0.8rem;
  border: 1px solid var(--rule-light);
}

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.hero-side {
  padding: 0.75rem;
  border-right: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-side:nth-child(2n)   { border-right: none; }
.hero-side:nth-child(3),
.hero-side:nth-child(4)    { border-bottom: none; }

.hero-side .art-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 0.45rem;
  display: block;
  filter: grayscale(18%);
  transition: filter 0.3s;
  background: var(--paper-dark);
}
.hero-side .art-img:hover { filter: grayscale(0); }
.hero-side .art-headline { font-size: 0.82rem; line-height: 1.25; }

.article-grid {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid var(--rule-light);
  border-top: 1px solid var(--rule-light);
}
.article-grid--more { border-top: none; }

.grid-article {
  width: 25%;
  padding: 0.85rem;
  border-right: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  flex-direction: column;
}

.grid-article .art-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.55rem;
  display: block;
  filter: grayscale(18%);
  transition: filter 0.3s;
  background: var(--paper-dark);
}
.grid-article .art-img:hover { filter: grayscale(0); }
.grid-article .art-headline { font-size: 0.87rem; }
.grid-article .art-img-placeholder { aspect-ratio: 4/3; margin-bottom: 0.55rem; }

.section-more-bar {
  border-left: 1px solid var(--rule-light);
  border-right: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  text-align: center;
  padding: 0.55rem;
  background: var(--paper-dark);
}
.more-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.35rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.more-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.art-kicker {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.art-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.art-headline a { color: inherit; text-decoration: none; }
.art-headline a:hover { text-decoration: underline; color: var(--accent); }

.art-byline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.63rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.art-snippet {
  font-size: 0.81rem;
  color: var(--ink-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.art-readmore {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.55rem;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.art-readmore:hover { border-bottom-color: var(--accent); }

.paper-notice {
  text-align: center; padding: 3rem;
  font-style: italic; color: var(--ink-muted);
  border: 1px solid var(--rule-light);
}
.paper-notice strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-style: normal; color: var(--ink);
}

/* ── FOOTER ── */
.paper-footer {
  text-align: center; padding: 1.5rem 2rem;
  background: var(--paper-dark); margin-top: 2rem;
}
.footer-rule {
  height: 3px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}
.paper-footer p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-main .art-headline { font-size: 1.3rem; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-right { grid-template-columns: 1fr 1fr; }
  .grid-article { width: 50%; }
}
@media (max-width: 600px) {
  .masthead-top { grid-template-columns: 1fr; justify-items: center; gap: 0.3rem; }
  .masthead-meta.right { display: none; }
  .paper-body { padding: 0 0.75rem 2rem; }
  .controls-inner { flex-direction: column; align-items: stretch; }
  .hero-right { grid-template-columns: 1fr; }
  .grid-article { width: 100%; }
}