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

:root {
  --bg:       #f4f3ef;
  --bg-card:  #eeede9;
  --border:   #d8d5ce;
  --text:     #1a1a1a;
  --muted:    #77706a;
  --accent:   #c0392b;
  --dark:     #1a1a1a;
  --max:      960px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }


/* ── MASTHEAD ── */
.masthead {
  border-bottom: 3px solid var(--dark);
  background: var(--bg);
}

.masthead-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.masthead-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  line-height: 1.5;
}

.masthead-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  overflow-x: auto;
}

.masthead-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 10px 18px 10px 0;
  margin-right: 18px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.masthead-nav a:hover,
.masthead-nav a.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}


/* ── PAGE WRAPPER ── */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 64px;
}


/* ── LEAD STORY ── */
.lead {
  display: block;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  align-items: start;
}

.lead-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.lead h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.lead-byline {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.lead p {
  font-size: 15px;
  line-height: 1.65;
  color: #3a3530;
}

.lead-visual {
  background: #e8ddd2;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lead-visual svg {
  width: 100%;
  height: 100%;
}


/* ── TWO COLUMN GRID ── */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.grid-article {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--border);
}

.grid-article:nth-child(even) {
  padding-left: 24px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}


/* ── ARTICLE ROW LIST ── */
.section-head {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 40px 0 0;
}

.article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}

.article-row:hover { opacity: 0.65; }

.article-row h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 4px;
}

.article-row p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.row-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}


/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}


/* ── SIDEBAR ── */
.two-col-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-top: 40px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
}

.sidebar-box h4 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.sidebar-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #3a3530;
  margin-bottom: 16px;
}

.nl-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.nl-input:focus { border-color: var(--dark); }
.nl-input::placeholder { color: var(--muted); }

.nl-btn {
  width: 100%;
  background: var(--dark);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.nl-btn:hover { background: #333; }


/* ── TOPICS ── */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.topic-pill {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.topic-pill:hover {
  background: var(--dark);
  color: var(--bg);
  border-color: var(--dark);
}


/* ── PAGE LAYOUT: persistent left rail ── */
.page-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 40px;
  align-items: start;
}

.left-rail {
  position: sticky;
  top: 24px;
}

/* ── LEAD IMAGE ── */
.lead-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.img-credit {
  font-family: 'Inter', sans-serif;
  font-size: 10px !important;
  color: var(--muted) !important;
  margin-top: 10px;
  letter-spacing: 0.03em;
}


/* ── PL STANDINGS TABLE ── */
.pl-gw {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
  margin-left: 4px;
}

.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  margin-top: 4px;
}

.pl-table thead th {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 7px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.pl-table thead th:last-child { text-align: right; }

.pl-table tbody td {
  padding: 5px 0 4px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.2;
}

.pl-table tbody tr:last-child td { border-bottom: none; }

.pl-table .pl-pos {
  width: 18px;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 10px;
  color: var(--muted);
}

.pl-table .pl-pts {
  text-align: right;
  font-weight: 600;
}

.pl-zone-cl  { border-left: 3px solid #1e90ff; }
.pl-zone-el  { border-left: 3px solid #ff8c00; }
.pl-zone-rel { border-left: 3px solid #dc3545; }


/* ── FOOTER ── */
footer {
  border-top: 3px solid var(--dark);
  padding: 20px 24px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.footer-logo span { color: var(--accent); }

.footer-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}


/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .page-layout { grid-template-columns: 1fr; }
  .left-rail { position: static; }
  .lead { grid-template-columns: 1fr; }
  .lead-visual { display: none; }
  .grid-two { grid-template-columns: 1fr; }
  .grid-article:nth-child(even) { padding-left: 0; border-left: none; }
  .two-col-wrap { grid-template-columns: 1fr; }
}
