@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --fg: #1a1a1a;
  --fg-muted: #555555;
  --fg-light: #888888;
  --accent: #005f5f;
  --accent-hover: #004848;
  --accent-bg: #f0f5f5;
  --border: #e5e7eb;
  --border-light: #f0f1f2;
  --radius: 6px;
  --maxw: 740px;
  --maxw-wide: 1100px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
}

/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-bottom: 1px solid var(--border);
  max-width: none;
  width: 100%;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  flex-wrap: nowrap;
}
.site-title a {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.site-title a:hover { color: var(--accent); }
nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem 1.2rem;
  margin-left: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* Main layout */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
}

/* Hero */
.hero {
  padding: 4rem 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  max-width: 680px;
  font-weight: 600;
  color: var(--fg);
}
.lead {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.65;
}

/* Reviews list */
.reviews-list {
  margin-bottom: 3rem;
}
.reviews-list h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-light);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Review grid - list style for editorial feel */
.review-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}
.review-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  padding: 1.6rem 0;
  transition: background 0.15s ease;
}
.review-card:first-child {
  border-top: 1px solid var(--border-light);
}
.review-card:hover { background: var(--bg-subtle); box-shadow: none; transform: none; }
.review-card a { text-decoration: none; color: inherit; display: block; padding: 0 0.5rem; margin: 0 -0.5rem; }
.review-card .category {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: .4rem;
}
.review-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--fg);
  font-weight: 600;
}
.review-card p {
  font-size: .98rem;
  color: var(--fg-muted);
  margin-bottom: .6rem;
  line-height: 1.6;
}
.review-card .date {
  font-size: .82rem;
  color: var(--fg-light);
  font-weight: 500;
}

/* Snippet */
.about-snippet {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.about-snippet h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: .7rem;
  font-weight: 600;
}
.about-snippet p {
  color: var(--fg-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 0.98rem;
}
.cta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.cta-link:hover { border-bottom-color: var(--accent); text-decoration: none; }

/* Article pages */
.article-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}
.article-header .category-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: .6rem;
  max-width: 680px;
  font-weight: 600;
}
.article-header .meta {
  font-size: .88rem;
  color: var(--fg-light);
  font-weight: 500;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 2.4rem 0 .8rem;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 1.6rem 0 .5rem;
  color: var(--fg);
  font-weight: 600;
}
.article-body p {
  margin-bottom: 1.1rem;
  color: var(--fg);
  line-height: 1.75;
}
.article-body ul {
  margin: 0 0 1.4rem 1.4rem;
  color: var(--fg);
  line-height: 1.7;
}
.article-body li { margin-bottom: .4rem; }
.article-body li > strong {
  color: var(--fg);
  font-weight: 600;
}

/* Pros/cons boxes */
.article-body .pros-cons {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin: 1.8rem 0;
}
@media(min-width:640px){
  .article-body .pros-cons { grid-template-columns: 1fr 1fr; }
}

.pros, .cons {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.pros h4, .cons h4 {
  font-family: var(--font-sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .7rem;
  font-weight: 700;
}
.pros h4 { color: #0a6e4a; }
.cons h4 { color: #a63c2c; }
.pros ul, .cons ul { margin-left: 1.1rem; margin-bottom: 0; }
.pros ul li, .cons ul li { color: var(--fg-muted); }

/* Verdict box */
.verdict {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2.2rem 0;
}
.verdict strong {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  font-weight: 700;
}
.verdict p { margin-bottom: 0; color: var(--fg-muted); }

/* Info pages */
.info-page h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: .7rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  padding-top: 2rem;
}
.info-page .last-updated {
  color: var(--fg-light);
  font-size: .88rem;
  margin-bottom: 1.8rem;
  display: block;
  font-weight: 500;
}
.info-page h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 1.8rem 0 .6rem;
  font-weight: 600;
}
.info-page p {
  margin-bottom: 1rem;
  color: var(--fg);
  line-height: 1.7;
}
.info-page ul {
  margin: 0 0 1.2rem 1.4rem;
  color: var(--fg);
  line-height: 1.7;
}
.info-page li { margin-bottom: .35rem; }
.info-page address {
  font-style: normal;
  margin: 1rem 0;
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.info-page a { color: var(--accent); text-decoration: none; }
.info-page a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tables */
.article-body table, .info-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.article-body th, .info-page th,
.article-body td, .info-page td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body th, .info-page th {
  font-weight: 600;
  color: var(--fg-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-subtle);
}
.article-body tbody tr:hover,
.info-page tbody tr:hover {
  background: var(--bg-subtle);
}
/* Scrollable wrapper for tables on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* Footer */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.4rem;
  margin-bottom: .8rem;
}
.footer-links a {
  color: var(--fg-light);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.copyright {
  font-size: .8rem;
  color: var(--fg-light);
  font-weight: 500;
}

/* Selection color */
::selection {
  background: rgba(0, 95, 95, 0.12);
  color: var(--fg);
}

/* Responsive */
@media (max-width: 560px) {
  header { padding: 0.8rem 1rem; }
  .hero { padding: 2.5rem 0 1.8rem; }
  .hero h1 { font-size: 1.75rem; }
  .lead { font-size: 1rem; }
  .article-header { padding: 1.8rem 0 1.2rem; }
  .article-header h1 { font-size: 1.6rem; }
  .article-body h2 { font-size: 1.2rem; }
  .review-card h3 { font-size: 1.1rem; }
  main { padding: 0 1rem 3rem; }
  .info-page h1 { font-size: 1.7rem; }
  .about-snippet { padding: 1.4rem; }
  nav { gap: 0.5rem 0.8rem; }
  nav a { font-size: 0.82rem; }
}

/* Review card thumbnails */
.review-thumb {
  margin: -1.6rem -0.5rem 1rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16/9;
  background: var(--bg-subtle);
}
.review-card:first-child .review-thumb {
  margin-top: -1.6rem;
}
.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article hero image */
.article-hero-img {
  margin: 0 -1.2rem 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  background: var(--bg-subtle);
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline article images */
.inline-img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
}
.inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image credits page */
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li { margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.credit-list li:last-child { border-bottom: none; }

/* Mobile nav - clean wrapping pill nav */
@media (max-width: 640px) {
  header { flex-wrap: wrap; padding: 0.6rem 1rem; height: auto; }
  .site-title a { font-size: 1.15rem; }
  nav { flex-wrap: wrap; justify-content: flex-start; overflow-x: visible; margin-left: 0; width: 100%; gap: 0.35rem 0.5rem; padding-top: 0.3rem; }
  nav a { font-size: 0.78rem; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.65rem; line-height: 1.4; transition: background 0.15s ease, border-color 0.15s ease; }
  nav a:hover { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); text-decoration: none; }
  .hero { padding: 2.5rem 0 1.8rem; }
  .article-hero-img { margin: 0 -1rem 1.2rem; }
}
