:root {
  --paper: #F3F5EF;
  --sage: #E3EBE0;
  --line: #CCD8CA;
  --moss: #233127;
  --leaf: #4F6F52;
  --berry: #A63D5B;
  --berry-dark: #8A2F4A;
  --butter: #F3E2A9;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--moss);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--berry); text-underline-offset: 0.18em; }
a:hover { color: var(--berry-dark); }
a:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 560;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* Top bar */
.topbar { background: var(--berry); color: #fff; font-size: 0.85rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar p { margin: 0; }
.topbar-links { display: flex; gap: 18px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 640px) { .topbar-links { display: none; } }

/* Masthead: centered wordmark, follow button on the right */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; padding-block: 22px;
}
.masthead-side.end { justify-self: end; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--moss); text-decoration: none;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 650; letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--moss); }
.wordmark-tag { width: 0.95em; height: 0.95em; color: var(--berry); transform: rotate(-12deg); }
.follow {
  display: inline-block; padding: 8px 16px; border: 1.5px solid var(--moss); border-radius: 999px;
  color: var(--moss); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
.follow:hover { background: var(--moss); color: #fff; }
@media (max-width: 720px) {
  .masthead-row { grid-template-columns: 1fr auto; padding-block: 16px; }
  .masthead-side:first-child { display: none; }
  .wordmark { justify-self: start; font-size: 1.3rem; gap: 8px; white-space: nowrap; }
  .follow { padding: 6px 12px; font-size: 0.8rem; }
}
@media (max-width: 380px) { .follow { display: none; } }

.mainnav { border-top: 1px solid var(--sage); }
.mainnav-row {
  display: flex; justify-content: center; gap: 4px 26px; flex-wrap: wrap;
  padding-block: 12px; font-weight: 500; font-size: 0.97rem;
}
.mainnav a { color: var(--moss); text-decoration: none; padding-block: 2px; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--berry); }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--berry); }
@media (max-width: 720px) {
  .mainnav-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: none; }
  .mainnav a { white-space: nowrap; }
}

/* 1. Feature grid */
.feature-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2px; background: #fff; }
.feature { position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; }
.feature img { width: 100%; height: 100%; object-fit: contain; }
.feature-text {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px; padding: clamp(18px, 3vw, 34px);
}
.pill {
  background: var(--butter); color: var(--moss); border-radius: 4px;
  padding: 3px 9px; font-size: 0.78rem; font-weight: 600;
}
.feature-title {
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 620;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.15;
}
.feature-lead .feature-title { font-size: clamp(1.7rem, 3.3vw, 2.7rem); max-width: 16ch; }
.feature-meta { font-size: 0.9rem; opacity: 0.88; }
.feature:hover .feature-title { text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 2px; }
.feature:focus-visible { outline-offset: -4px; outline-color: var(--butter); }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-lead { grid-column: 1 / -1; }
}

/* Section headings with a rule */
.rule-head {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.35rem; color: var(--berry); margin-bottom: 18px;
}
.rule-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule-head a { color: inherit; text-decoration: none; }
.rule-head a:hover { text-decoration: underline; }

/* 2. Three columns */
.columns {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding-block: clamp(36px, 5vw, 60px);
}
@media (max-width: 960px) { .columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .columns { grid-template-columns: 1fr; } }
.col-photo, .row-photo {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.col-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.label { margin: 14px 0 4px; color: var(--berry); font-weight: 600; font-size: 0.85rem; }
.label a { color: inherit; text-decoration: none; }
.label a:hover { text-decoration: underline; }
.col-title { font-size: 1.4rem; margin-bottom: 4px; }
.col-title a, .row-card h3 a { color: var(--moss); text-decoration: none; }
.col-title a:hover, .row-card h3 a:hover { color: var(--berry); text-decoration: underline; }
.col-meta { margin: 0 0 8px; color: var(--leaf); font-size: 0.9rem; font-weight: 500; }
.col-blurb { margin: 0 0 18px; color: #3d4b40; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { border-top: 1px solid var(--line); }
.mini-list a {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
  padding-block: 12px; color: var(--moss); text-decoration: none;
}
.mini-list img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.mini-title { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 560; line-height: 1.25; }
.mini-price { display: block; margin-top: 2px; color: var(--leaf); font-size: 0.88rem; }
.mini-list a:hover .mini-title { color: var(--berry); text-decoration: underline; }
.see-all { display: inline-block; margin-top: 10px; font-weight: 600; }

/* 3. Banner */
.banner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px;
  padding: clamp(22px, 4vw, 36px) clamp(22px, 4vw, 44px);
  background: var(--moss); color: #fff; border-radius: 20px; text-decoration: none;
}
.banner:hover { color: #fff; }
.banner-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.banner-kicker { color: var(--butter); font-weight: 600; font-size: 0.9rem; }
.banner-title { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.15; max-width: 24ch; }
.banner-cta { margin-top: 8px; padding: 10px 20px; background: var(--berry); border-radius: 999px; font-weight: 600; }
.banner:hover .banner-cta { background: var(--berry-dark); }
.banner-thumbs { display: flex; gap: 12px; }
.banner-thumbs img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 14px; }
.banner-thumbs img:nth-child(2) { transform: translateY(-10px) rotate(3deg); }
@media (max-width: 760px) {
  .banner { grid-template-columns: 1fr; }
  .banner-thumbs img { width: 84px; height: 84px; }
}

/* 4. Latest finds + sidebar */
.lower {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px;
  padding-block: clamp(40px, 6vw, 64px);
}
@media (max-width: 900px) { .lower { grid-template-columns: 1fr; } }
.row-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.row-card:last-child { border-bottom: 0; }
.row-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.row-card .label { margin-top: 0; }
.row-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.row-card p { margin: 0 0 10px; max-width: 60ch; }
@media (max-width: 560px) { .row-card { grid-template-columns: 120px 1fr; gap: 16px; } .row-card h3 { font-size: 1.15rem; } }

.ranked { counter-reset: rank; }
.ranked a { grid-template-columns: 26px 76px 1fr; }
.ranked a::before {
  counter-increment: rank; content: counter(rank);
  font-family: var(--display); font-weight: 650; font-size: 1.3rem; color: var(--berry);
}
.follow-box { margin-top: 36px; padding: 22px; background: var(--sage); border-radius: 16px; }
.follow-box .rule-head::after { background: var(--line); }
.follow-box p { margin: 0 0 14px; }

/* Buttons */
.buy {
  display: inline-block; margin-top: 4px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--berry); color: #fff;
  font-weight: 600; text-decoration: none;
}
.buy:hover { background: var(--berry-dark); color: #fff; }
.buy.small { padding: 9px 18px; font-size: 0.95rem; }

/* Guide pages */
.lede { font-size: 1.2rem; max-width: 56ch; color: var(--leaf); margin: 0; }
.guide-head { padding-block: clamp(28px, 6vw, 64px) 8px; }
.guide-head h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 18ch; }
.crumb { margin: 0 0 12px; font-weight: 500; }
.disclosure-note {
  max-width: 62ch; margin: 20px 0 0; padding: 12px 16px;
  background: var(--sage); border-radius: 12px; font-size: 0.95rem;
}

.picks {
  display: grid; grid-template-columns: 1fr; gap: 48px 40px;
  padding-block: 40px 56px;
}
@media (min-width: 760px) { .picks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .picks { grid-template-columns: 1fr 1fr 1fr; } }

.pick-photo {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; margin-bottom: 18px;
}
.pick-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* The price as a paper gift tag */
.price-tag {
  position: absolute; top: 18px; left: 14px;
  padding: 7px 16px 7px 30px;
  background:
    radial-gradient(circle at 15px 50%, #fff 0 4px, var(--moss) 4.5px 5.5px, transparent 6px),
    var(--butter);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  color: var(--moss);
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-weight: 650; font-size: 1.15rem; line-height: 1.2;
  transform: rotate(-5deg); transform-origin: left center;
  filter: drop-shadow(0 2px 0 rgba(35, 49, 39, 0.18));
}

.pick-text h2 { font-size: 1.45rem; margin-bottom: 6px; }
.good-for { margin: 0 0 10px; color: var(--leaf); font-weight: 600; font-size: 0.95rem; }
.pick-text > p { max-width: 60ch; }
.checked { margin: 10px 0 0; font-size: 0.85rem; color: var(--leaf); }

.more { padding-bottom: 64px; }
.more h2 { font-size: 1.4rem; }
.more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more a {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--moss);
  text-decoration: none; font-weight: 500;
}
.more a:hover { border-color: var(--berry); color: var(--berry); }

/* Text pages */
.prose { max-width: 680px; padding-block: clamp(32px, 6vw, 64px); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--sage); padding-block: 28px; font-size: 0.92rem; }
.site-footer p { max-width: 70ch; margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
