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

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

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --rule: #2a2a2a;
  --muted: #555;
  --red: #c0392b;
  --green: #2e7d32;
  --amber: #e65100;
  --blue: #1565c0;
  --highlight-bg: #EDE8D5;
  --highlight-text: #1a1a1a;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
}

/* ── Masthead ── */
.masthead {
  border-bottom: 4px double var(--rule);
  padding: 1rem 2rem 0;
  text-align: center;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}
.masthead h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.masthead-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}
.masthead-rule { border: none; border-top: 2px solid var(--rule); margin: 0.5rem 0 0; }

/* ── Nav ── */
.site-nav {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-emoji { font-size: 1rem; line-height: 1; }

/* ── Berating highlight box ── */
.berating-box {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  border-left: 3px solid var(--red);
}
.berating-box::before {
  content: "🤬 PAUL BERATES";
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* ── Utility ── */
.section-label {
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--paper);
  background: var(--ink);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-bottom: 1rem;
}
.article-date {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.75rem;
}
.article-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1rem;
}
.divider { border: none; border-top: 1px solid #ccc; margin: 1.5rem 0; }
.back-link {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--ink); }

/* ── Footer ── */
footer {
  border-top: 4px double var(--rule);
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
footer a { color: inherit; }

/* ── Homepage ── */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-bottom: 3px double var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) { .featured { grid-template-columns: 1fr; } }

.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
}
.featured-content .article-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.featured-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.featured-content h2 a { color: var(--ink); text-decoration: none; }
.featured-content h2 a:hover { text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.card {
  border-top: 3px solid var(--rule);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .article-desc { font-size: 0.85rem; flex-grow: 1; }
.card .berating-box { margin-top: 0.75rem; }

.reckon-card {
  border-top: 3px solid #1083fe;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
}
.reckon-card blockquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid #1083fe;
  padding-left: 0.75rem;
  margin: 0 0 0.75rem;
  flex-grow: 1;
}
.reckon-card a {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1083fe;
  text-decoration: none;
}

/* ── Bingo page ── */
.container--bingo {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.bingo-header {
  text-align: center;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.bingo-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.bingo-header .subtitle {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.4rem;
}
.score-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-box { text-align: center; }
.score-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}
.score-number.ticked { color: var(--green); }
.score-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.12em; }
.score-divider { font-size: 2rem; color: var(--rule); font-weight: 100; }
.last-updated {
  text-align: center;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 3px solid var(--rule);
  margin-bottom: 2rem;
}
.bingo-cell {
  border: 1px solid var(--rule);
  padding: 0.75rem 0.6rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.bingo-cell .cell-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.bingo-cell .cell-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.35;
}
.bingo-cell.free {
  background: var(--highlight-bg);
  color: var(--ink);
}
.bingo-cell.free .cell-label { color: var(--muted); }
.bingo-cell.free .cell-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.bingo-cell.ticked { background: #e8f5e9; }
.bingo-cell.ticked .cell-text { text-decoration: line-through; color: var(--muted); }
.tick-mark {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
}
.tick-mark::before, .tick-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 3px;
  background: var(--red);
  opacity: 0.6;
  border-radius: 2px;
}
.tick-mark::before { transform: translate(-50%, -50%) rotate(45deg); }
.tick-mark::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.bingo-col-header {
  border: 1px solid var(--rule);
  padding: 0.5rem;
  text-align: center;
  background: var(--highlight-bg);
  color: var(--ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
}
.check-log { border-top: 2px solid var(--rule); padding-top: 1.5rem; }
.check-log h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
}
.log-entry {
  border-left: 3px solid var(--rule);
  padding: 0.5rem 0 0.5rem 1rem;
  margin-bottom: 1rem;
}
.log-entry .log-date {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.log-entry .log-text { font-size: 0.9rem; line-height: 1.5; }
.log-entry .log-text strong { color: var(--red); }
@media (max-width: 600px) {
  .bingo-cell { min-height: 80px; padding: 0.4rem 0.3rem; }
  .bingo-cell .cell-text { font-size: 0.65rem; }
  .bingo-col-header { font-size: 1rem; }
}
