:root {
  --ink: #1b1714;
  --ink-soft: #4a433c;
  --paper: #f3ecdf;
  --paper-2: #fffaf3;
  --line: #d8cdb8;
  --red: #c4332a;
  --red-deep: #8e241d;
  --pine: #1e4638;
  --pine-soft: #e7f0ea;
  --shadow: 0 18px 40px rgba(40, 28, 16, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(196, 51, 42, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f1e6 0%, var(--paper) 220px);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: #f3d2cc; }

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 4;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.7rem;
}

.brand-mark span { color: var(--red); }

.brand small {
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

nav a { text-decoration: none; }

nav a:hover,
nav a[aria-current="page"] { color: var(--red-deep); }

nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }

.issue-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.hero-card,
.side-card,
.guide-card,
.pick,
.note,
.prose {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.6rem 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--red);
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; }

.hero-card h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin: 0 0 0.8rem; }

.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.2rem; }

.prose .meta time { font-weight: 600; color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: #fffaf3;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover { background: var(--red-deep); }

.side-stack { display: grid; gap: 0.8rem; }

.side-card { padding: 1rem 1.1rem; text-decoration: none; display: block; }

.side-card:hover { border-color: var(--ink); }

.side-card strong { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin-top: 0.2rem; }

.section { padding: 1.4rem 0 2.5rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-head h1,
.section-head h2 { margin: 0; font-size: 2.4rem; }

.guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.guide-card {
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover { transform: translateY(-2px); border-color: var(--ink); }

.num {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.78rem;
}

.guide-card h3 { margin: 0.4rem 0; font-size: 1.45rem; }

.guide-card p { margin: 0; color: var(--ink-soft); }

.guide-card .meta { margin-top: auto; padding-top: 1rem; }

.ad-slot { display: none; }

.ad-slot.is-filled {
  display: block;
  margin: 0.4rem 0 1.2rem;
  min-height: 96px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7d68;
  margin-bottom: 0.4rem;
}

.ad-hint { margin: 0; color: #8a7d68; font-size: 0.92rem; }

.ad-slot.is-filled .ad-hint { display: none; }

.ad-mount:empty { display: none; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.4rem;
  padding: 1.6rem 0 3rem;
}

.prose { padding: 1.5rem 1.5rem 2rem; }

.prose h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin: 0.2rem 0 0.35rem; }

.prose h1 + .meta { margin: 0 0 1rem; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  background: #f6f0e6;
  padding: 0.05rem 0.3rem;
}

.prose h2 { font-size: 1.7rem; margin: 1.8rem 0 0.5rem; }

.prose p { max-width: var(--measure); }

.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); }

.breadcrumb a { color: var(--pine); }

.note {
  padding: 0.9rem 1rem;
  background: var(--pine-soft);
  border-color: #c9ddd1;
  margin: 1rem 0 1.3rem;
  max-width: var(--measure);
}

.note strong { font-family: var(--sans); }

.pick {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.4rem 0.8rem;
  padding: 1.1rem 1.1rem 1.15rem;
  margin: 0.85rem 0;
}

.pick-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.pick h2 { margin: 0.15rem 0 0.35rem; font-size: 1.55rem; }

.pick p { margin: 0.35rem 0; }

.price {
  display: inline-block;
  background: #f8e7e1;
  color: var(--red-deep);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.7rem 0;
  list-style: none;
}

.specs li {
  border: 1px solid var(--line);
  background: #fbf6ee;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.buy {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--pine);
  font-weight: 600;
}

.sidebar { display: grid; align-content: start; gap: 0.8rem; }

.side-box {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1rem;
}

.side-box h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }

.side-box ol, .side-box ul { margin: 0; padding-left: 1.1rem; }

.side-box a { color: var(--pine); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper-2);
}

th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.55rem 0.45rem; vertical-align: top; }

th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.site-footer a { color: var(--pine); }

@media (max-width: 860px) {
  .hero, .guides, .layout, .pick { grid-template-columns: 1fr; }
  .issue-bar { flex-direction: column; gap: 0.15rem; }
  .masthead-inner { align-items: flex-start; flex-direction: column; padding: 0.7rem 0; }
  .pick-index { font-size: 1.6rem; }
  nav { flex-wrap: wrap; gap: 0.7rem 1rem; }
}
