:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5e5e5e;
  --line: #e5e5e5;
  --accent: #1a4d3e;
  --accent-soft: #f3f7f5;
  --warn: #b34646;
  --good: #1f7a4f;
  --max: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .dot { color: var(--accent); }
.brand-tag {
  display: block;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.primary { display: flex; gap: 26px; align-items: center; }
nav.primary > a, nav.primary > .menu > a {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
nav.primary > a:hover, nav.primary > .menu > a:hover { color: var(--accent); }

.menu { position: relative; }
.menu .menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-top: 8px;
  z-index: 200;
}
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: block; }
.menu-panel a {
  display: block;
  padding: 8px 18px;
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}
.menu-panel a:hover { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
}

/* Article */
article {
  padding: 48px 0 80px;
}
article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
article .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
article h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}
article h3 {
  font-size: 21px;
  margin: 32px 0 10px;
  font-weight: 700;
}
article h4 {
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 700;
}
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 18px; padding-left: 22px; }
article li { margin-bottom: 6px; }
article strong { font-weight: 700; }
article hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
article blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 6px 0 6px 18px;
  color: var(--muted);
  font-style: italic;
}

/* Tables */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-size: 14.5px;
}
article th, article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
article th {
  background: #fafaf8;
  font-weight: 700;
  font-size: 13.5px;
}
article tbody tr:nth-child(even) td { background: #fcfcfb; }

/* Cards (homepage) */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  padding: 22px 20px;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
.card .score {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.card .verdict { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.card .meta-row { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.card a.cta { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* Score helpers */
.s-good { color: var(--good); font-weight: 700; }
.s-warn { color: var(--warn); font-weight: 700; }

/* Email signup */
.signup {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.signup h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.signup p { color: var(--muted); margin: 0 0 18px; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 480px; }
.signup input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.signup button {
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.signup button:hover { background: #143b30; }

/* Footer */
footer.site-footer {
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
}
footer.site-footer .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer .col { min-width: 180px; }
footer.site-footer .col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin: 0 0 10px;
}
footer.site-footer .col ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer .col li { margin-bottom: 6px; }
footer.site-footer .legal {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* Mobile */
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  article h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
  nav.primary { gap: 14px; }
  nav.primary > a, nav.primary > .menu > a { font-size: 14px; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .menu .menu-panel { right: auto; left: 0; }
  article table { font-size: 13px; }
  article th, article td { padding: 8px; }
}
