:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --ink: #18181b;
  --muted: #5b5b63;
  --line: #ebe3d6;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --green: #14532d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 10px 30px rgba(24, 24, 27, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1860px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.small { font-size: .85rem; color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1em; }
.eyebrow.light { color: #fed7aa; }

/* header */
.topbar { background: var(--ink); color: #e4e4e7; font-size: .78rem; text-align: center; padding: 7px 16px; }
.topbar a { color: #fdba74; }
.site-header { background: rgba(251, 247, 241, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; font: 700 1.5rem/1 Fraunces, Georgia, serif; letter-spacing: -.02em; }
.logo-text small { font: 600 .58rem/1 Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.site-footer .logo-text small { color: #a1a1aa; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.header-search { flex: 1; max-width: 560px; margin-left: auto; display: flex; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.header-search:focus-within { border-color: var(--accent); }
.header-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 18px; font: inherit; font-size: .95rem; outline: none; color: var(--ink); }
.header-search button { border: 0; background: var(--accent); color: #fff; width: 46px; font-size: 1.2rem; cursor: pointer; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.2rem; padding: 4px 12px; cursor: pointer; color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border: 0;
  padding: 13px 22px; border-radius: 999px; transition: background .15s, transform .15s; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.light { background: rgba(255, 255, 255, .95); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .12); }
.hero-search { display: flex; gap: 8px; max-width: 620px; margin-top: 26px; background: #fff; border-radius: 999px; padding: 6px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 10px 16px; font: inherit; font-size: 1.02rem; border-radius: 999px; color: var(--ink); }
.more-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* dynamic category tiles (built from product categories) */
.shop-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.shop-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; background: var(--paper); border-radius: var(--radius); padding: 18px 14px; box-shadow: var(--shadow); transition: transform .2s; }
.shop-cat:hover { transform: translateY(-3px); }
.shop-cat-img { width: 110px; height: 110px; border-radius: 50%; background: var(--bg); overflow: hidden; display: grid; place-items: center; margin-bottom: 8px; }
.shop-cat-img img { width: 80%; height: 80%; object-fit: contain; }
.shop-cat-name { font-weight: 700; }
.shop-cat-count { font-size: .82rem; color: var(--muted); }

/* shop page */
.shop-head { background: linear-gradient(180deg, #fde7d4, var(--bg)); padding: 36px 0 28px; }
.shop-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .2em; }
.crumbs.dark, .crumbs.dark a { color: var(--muted); }
.shop-search { display: flex; gap: 8px; width: min(520px, 100%); background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 10px 16px; font: inherit; border-radius: 999px; color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.shop-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.shop-side h2 { font: 700 .78rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.shop-side a { text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.shop-side a:hover { background: var(--paper); }
.shop-side a.active { background: var(--ink); color: #fff; }
.shop-subs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-subs a { text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 500; }
.shop-subs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.shop-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.empty { color: var(--muted); padding: 40px 0; }
.small-btn { padding: 9px 16px; font-size: .9rem; }

/* home hero */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 9, .82) 0%, rgba(12, 10, 9, .55) 45%, rgba(12, 10, 9, .1) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 64px; width: 100%; }
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: italic; color: #fdba74; }
.lead { font-size: 1.15rem; max-width: 32em; color: #f4f4f5; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.chips { display: flex; gap: 10px; overflow-x: auto; padding-top: 22px; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: .9rem; font-weight: 500; }
.chips a:hover { border-color: var(--ink); }

/* sections + cards */
.section { padding-top: 48px; padding-bottom: 16px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* home: featured guide + smaller guides, always fills complete rows (6 guides = 3x3 cells) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bento .feature { grid-column: span 2; grid-row: span 2; position: relative; color: #fff; }
.bento .feature .guide-img { aspect-ratio: auto; position: absolute; inset: 0; }
.bento .feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 10, 9, .85) 0%, rgba(12, 10, 9, .1) 60%); }
.bento .feature { justify-content: flex-end; }
.bento .feature .guide-text { position: relative; z-index: 1; flex: none; padding: 32px; }
.bento .feature .guide-tag { color: #fed7aa; }
.bento .feature .guide-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); max-width: 14em; }
.bento .feature .guide-meta { color: #e4e4e7; }
.bento .feature { min-height: 460px; }

/* home: categories as square photo tiles in one row */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.cat-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #eee; margin-bottom: 8px; box-shadow: var(--shadow); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover .cat-img img { transform: scale(1.06); }
.cat-name { font: 600 1.08rem/1.25 Fraunces, Georgia, serif; }
.cat-meta { font-size: .85rem; font-weight: 600; color: var(--c); }
.guide-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.guide-card:hover { transform: translateY(-4px); }
.guide-img { aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.guide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guide-card:hover .guide-img img { transform: scale(1.05); }
.guide-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.guide-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.guide-title { font: 600 1.18rem/1.25 Fraunces, Georgia, serif; }
.guide-meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-weight: 600; font-size: .88rem; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 56px; }
.promise > div { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.promise span { font-size: 1.6rem; }
.promise h3 { margin-top: 10px; }
.promise p { color: var(--muted); margin: 0; }

/* products (added via /admin/) */
.products-block { padding-top: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (min-width: 1700px) { .products-home .product-grid { grid-template-columns: repeat(6, 1fr); } }
.product-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.product-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.product-link:hover { transform: translateY(-3px); }
.product-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-img img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.product-noimg { font-size: 3rem; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font: 600 1rem/1.35 Inter, sans-serif; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.guide-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.guide-main .products-block { padding-top: 8px; margin-bottom: 40px; }

/* guide pages */
.page-hero { position: relative; color: #fff; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 10, 9, .85) 0%, rgba(12, 10, 9, .35) 60%, rgba(12, 10, 9, .15) 100%); }
.page-hero-inner { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 40px; width: 100%; }
.page-hero .eyebrow { color: #fed7aa; margin-bottom: .6em; }
.page-hero h1 { max-width: 16em; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.crumbs { font-size: .85rem; color: #e4e4e7; margin-bottom: 1.2em; }
.crumbs a { color: #e4e4e7; }
.updated { color: #d4d4d8; font-size: .9rem; margin: 0; }

.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 32px; }
.toc { position: sticky; top: 90px; }
.toc h2 { font: 700 .78rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { padding-left: 1.3em; margin: 0 0 1.2em; font-size: .92rem; }
.toc li { margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--accent); }
.intro { font-size: 1.12rem; max-width: 42em; margin-bottom: 32px; }
.ideas-head { margin-bottom: 18px; }

.picks { display: grid; gap: 14px; }
.pick { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.pick-num { font: 700 1.6rem Fraunces, Georgia, serif; color: var(--accent); }
.pick h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .3em; }
.pick-icon { font-size: 1.2rem; }
.pick p { color: var(--muted); margin-bottom: .5em; }
.pick .tip { font-size: .92rem; margin: 0; }
.pick .tip strong { color: var(--ink); }

.how-we-pick { margin-top: 32px; border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; }
.how-we-pick h2 { font-size: 1.2rem; }
.how-we-pick p { color: var(--muted); margin: 0; }
.more { padding-bottom: 56px; }

.text-hero { padding: 56px 0 8px; }
.prose { max-width: 720px; padding-bottom: 72px; font-size: 1.05rem; }

/* footer */
.site-footer { background: var(--ink); color: #d4d4d8; padding: 56px 0 24px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer h3 { color: #fff; font: 600 .95rem Inter, sans-serif; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; font-size: .92rem; }
.site-footer a { color: #d4d4d8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .small { color: #a1a1aa; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.copyright { border-top: 1px solid #3f3f46; margin-top: 36px; padding-top: 20px; }

@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .nav a:nth-child(n+3) { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .guide-grid, .bento { grid-template-columns: 1fr 1fr; }
  .bento .feature { grid-row: span 1; min-height: 380px; }
  .nav { display: none; position: absolute; left: -16px; right: -16px; top: 100%; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; border-top: 1px solid var(--line); }
  .guide-layout, .promise, .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .shop-side h2 { display: none; }
  .shop-side a { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: .9rem; }
  .nav a:nth-child(n+3) { display: block; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 12px; }
  .header-inner { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
  .guide-layout { gap: 28px; }
}
@media (max-width: 600px) {
  .guide-grid, .bento { grid-template-columns: 1fr; }
  .bento .feature { grid-column: auto; min-height: 340px; }
  .bento .feature .guide-text { padding: 22px; }
  .cat-grid { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cat-tile { flex: 0 0 42%; scroll-snap-align: start; }
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(0deg, rgba(12, 10, 9, .88) 15%, rgba(12, 10, 9, .35) 100%); }
  .hero-ctas .btn { flex: 1 1 100%; text-align: center; }
  .page-hero { min-height: 320px; }
  .pick { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .pick-num { font-size: 1.1rem; }
  .pick .btn { justify-self: start; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid, .guide-main .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; }
  .product-body p { display: none; }
}
@media (min-width: 1400px) {
  .picks { grid-template-columns: 1fr 1fr; }
  .pick { grid-template-columns: 48px 1fr; align-content: start; }
  .pick .btn { grid-column: 2; justify-self: start; }
}

/* video review button + popup */
.product { position: relative; }
.product-video { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(24, 24, 27, .86); color: #fff; font: 600 .78rem Inter, sans-serif; cursor: pointer; }
.product-video:hover { background: #dc2626; }
.video-modal { position: fixed; inset: 0; z-index: 100; background: rgba(12, 10, 9, .82); display: none; place-items: center; padding: 16px; }
.video-modal.open { display: grid; }
.video-inner { position: relative; width: min(960px, 100%); }
.video-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: -44px; right: 0; border: 0; background: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
