:root {
  --navy: #0f2440;
  --red: #b5372b;
  --text: #1c2533;
  --muted: #5a6577;
  --border: #e4e7ec;
}

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

/* Always reserve scrollbar space so the header doesn't shift between short and long pages */
html { scrollbar-gutter: stable; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--red); }

.container { width: min(960px, 92%); margin: 0 auto; }

/* Header + tabs */
header {
  background: linear-gradient(180deg, #0b1c33 0%, var(--navy) 100%);
  border-top: 4px solid var(--red);
  color: #fff;
  text-align: center;
}
.brand { display: inline-block; padding: 2rem 0 1.25rem; color: #fff; text-decoration: none; }
.site-title { display: block; font-family: Georgia, serif; font-size: 2.1rem; letter-spacing: 0.01em; line-height: 1.2; }
.site-title .amp { font-style: italic; color: #e8a49c; }
.tagline {
  display: block; margin-top: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #8fa3bf;
}
header nav { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; list-style: none; }
.tabs a {
  display: block; padding: 0.9rem 0.15rem 0.8rem; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #a9bad0; text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tabs a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.3); }
.tabs a.active { color: #fff; border-bottom-color: var(--red); }

/* Content */
main { padding: 2rem 0 3rem; }
h1 { font-family: Georgia, serif; font-size: 2rem; line-height: 1.25; color: var(--navy); margin-bottom: 1.2rem; }
h2 { font-family: Georgia, serif; font-size: 1.4rem; color: var(--navy); margin: 2.5rem 0 1rem; }
p { margin-bottom: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

ul.points { margin: 0 0 1.2rem 1.3rem; }
ul.points li { margin-bottom: 0.4rem; }

/* Post lists */
.post-list { list-style: none; border-top: 1px solid var(--border); }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.post-list a { font-weight: 600; color: var(--navy); text-decoration: none; }
.post-list a:hover { color: var(--red); }
.post-list p { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0; }
.post-list li[hidden] { display: none; }
.post-list time { display: block; font-size: 0.85rem; color: var(--muted); }
.post-search { display: block; width: 100%; margin-bottom: 1rem; }
.no-results { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* Email form */
.signup-embed { max-width: 685px; margin: 1.5rem auto 0; }
form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
input {
  flex: 1; min-width: 220px; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 8px; font-size: 1rem;
}
button {
  padding: 0.75rem 1.5rem; border: none; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
}
button:hover { opacity: 0.9; }

footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: 0.85rem; }

/* Photos */
.hero-photo img { width: 100%; height: min(66.67vw, 640px); object-fit: cover; object-position: center 47%; display: block; }
.photo-credit { margin: 0.4rem 0 0; font-size: 0.75rem; }
.photo-credit a { color: inherit; }

/* Single post */
.post-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.post-meta a { color: var(--red); text-decoration: none; }
.post h2 { font-size: 1.3rem; margin-top: 2rem; }
.post h3 { font-family: Georgia, serif; font-size: 1.1rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.cost-box { background: #f5f7fa; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.8rem 0; }
.cost-box h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.cost-box table { width: 100%; border-collapse: collapse; }
.cost-box td { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.cost-box td:last-child { text-align: right; }
.cost-box tr.total td { font-weight: 700; color: var(--navy); }
.back { margin-top: 2.5rem; }
.signup-cta { background: var(--navy); color: #fff; border-radius: 10px; padding: 1.75rem; margin-top: 2.5rem; }
.signup-cta h2 { color: #fff; margin: 0 0 0.5rem; }
.signup-cta p { color: #c9d4e3; }
.button {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 600; text-decoration: none;
}
.button:hover { opacity: 0.9; }

/* Affiliate offers */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.offer { border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.offer .button { margin-top: auto; }
.offer-card { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto 1.25rem; border-radius: 12px; }
.offer h2 { font-size: 1.25rem; margin: 0 0 1.25rem; }
.offer-tile { aspect-ratio: 1.586; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; }
.offer-tile img { width: 70%; height: auto; }
.disclosure { font-size: 0.85rem; color: var(--muted); margin-top: 2rem; }

.post-figure { margin: 1.8rem 0; }
.post-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 10px; }
.post-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }

/* Review filter tabs */
.subtabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.5rem; }
.subtab {
  padding: 0.45rem 1.1rem; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.subtab:hover { border-color: var(--navy); color: var(--navy); opacity: 1; }
.subtab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
