/* The Berlin Daily — newspaper styling */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+Pro:ital,wght@0,400;0,600;1,400&family=Oswald:wght@500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #ece7da;
  color: #1a1a1a;
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.55;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #faf7f0;
  padding: 0 28px 40px;
  border-left: 1px solid #d8d2c2;
  border-right: 1px solid #d8d2c2;
  min-height: 100vh;
}

/* ---------- Masthead ---------- */
.masthead {
  text-align: center;
  padding: 28px 0 14px;
  border-bottom: 4px solid #1a1a1a;
}

.masthead .kicker {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.35em;
  font-size: 12px;
  text-transform: uppercase;
  color: #6b4f2a;
  margin: 0 0 8px;
}

.masthead h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 64px;
  margin: 0;
  letter-spacing: 1px;
}

.masthead .tagline {
  font-style: italic;
  font-size: 14px;
  margin: 6px 0 14px;
  color: #444;
}

.masthead .meta-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid #1a1a1a;
  padding-top: 6px;
  margin-top: 10px;
}

.masthead .meta-row .lang-switch a {
  color: #a8321f;
  text-decoration: none;
  font-weight: 600;
}

.masthead .meta-row .lang-switch a:hover {
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 10px 0;
  border-bottom: 3px double #1a1a1a;
  margin-bottom: 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav a {
  color: #1a1a1a;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom: 2px solid #a8321f;
  color: #a8321f;
}

/* ---------- Section heading ---------- */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  border-bottom: 2px solid #1a1a1a;
  margin: 0 0 18px;
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-title .count {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b6b;
}

/* ---------- Front page layout ---------- */
.front-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.lead-story {
  border-bottom: 1px solid #c9c1ab;
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.lead-story .eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #a8321f;
  margin: 0 0 6px;
}

.lead-story h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.lead-story p {
  font-size: 18px;
  margin: 0 0 10px;
}

.front-grid .secondary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.front-grid .secondary article {
  border-bottom: 1px solid #c9c1ab;
  padding-bottom: 14px;
}

.front-grid .secondary article:last-child {
  border-bottom: none;
}

.front-grid .secondary h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  margin: 0 0 6px;
  line-height: 1.25;
}

.front-grid .secondary p {
  font-size: 14px;
  margin: 0;
  color: #333;
}

/* ---------- Section index columns (front page) ---------- */
.toc-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
  border-top: 3px double #1a1a1a;
  padding-top: 22px;
}

.toc-columns h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 4px;
  margin: 0 0 10px;
}

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

.toc-columns li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.toc-columns a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.toc-columns a:hover {
  text-decoration: underline;
}

.toc-columns .time {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Articles on category pages ---------- */
.article-list {
  column-count: 2;
  column-gap: 36px;
}

.article {
  break-inside: avoid;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c9c1ab;
}

.article:first-child {
  column-span: all;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.article:first-child h2 {
  font-size: 34px;
}

.article:first-child p {
  font-size: 18px;
  max-width: 80%;
}

.article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.article .time {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8321f;
  margin: 0 0 6px;
  display: block;
}

.article p {
  margin: 0 0 8px;
  font-size: 15px;
}

.article .original {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article .original a {
  color: #6b4f2a;
  text-decoration: none;
}

.article .original a:hover {
  text-decoration: underline;
}

.empty-note {
  font-style: italic;
  color: #777;
  text-align: center;
  padding: 40px 0;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid #1a1a1a;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  text-align: center;
}

@media (max-width: 800px) {
  .front-grid,
  .toc-columns,
  .article-list {
    grid-template-columns: 1fr;
    column-count: 1;
  }
  .article:first-child h2,
  .lead-story h2 {
    font-size: 28px;
  }
  .masthead h1 {
    font-size: 42px;
  }
}
