/*
Theme Name: Coffee Pod Central
Description: Lightweight editorial affiliate theme for CoffeePodCentral.com.
Version: 1.0.7
Requires PHP: 8.1
Text Domain: cpc
*/

:root {
	--roast: #3A2317;
	--ink: #2A1B13;
	--muted: #6A5649;
	--copper: #B8692C;
	--copper-soft: #E7B27A;
	--cream: #FBF7F1;
	--latte: #F3E8DA;
	--foam: #FFFFFF;
	--line: #E6D8C6;
	--cta: #F2A541;
	--cta-hover: #E3922A;
	--ok: #2F6B4F;
	--bad: #A2432E;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(58, 35, 23, .06), 0 6px 18px rgba(58, 35, 23, .07);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1180px;
	--text: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--roast); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--roast); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--text { width: min(100% - 32px, var(--text)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--roast); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin: 0 0 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--roast); color: #fff; font: 600 .95rem/1 var(--sans); padding: 12px 20px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #24150d; color: #fff; }
.btn--buy { background: var(--cta); color: var(--ink); }
.btn--buy:hover { background: var(--cta-hover); color: var(--ink); }
.btn--alt { background: var(--foam); color: var(--roast); box-shadow: inset 0 0 0 1.5px var(--line); padding: 9px 14px; font-size: .85rem; }
.btn--alt:hover { background: var(--latte); color: var(--roast); }
.also { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 10px; }
.also__label { font-size: .8rem; color: var(--muted); }
.pick .also { margin: 6px 0 0; }
.btn--ghost { background: transparent; color: var(--roast); box-shadow: inset 0 0 0 2px var(--roast); }
.btn--ghost:hover { background: var(--roast); color: #fff; }

/* Header */
.site-header { background: var(--foam); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__name { font: 700 1.35rem/1 var(--serif); color: var(--roast); white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--copper); }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; white-space: nowrap; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav__list a:hover, .site-nav__list .current-menu-item a { background: var(--latte); color: var(--roast); }
.site-search { display: flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding-left: 14px; }
.site-search input { border: 0; background: transparent; font: inherit; font-size: .9rem; width: 130px; padding: 8px 0; color: var(--ink); }
.site-search input:focus { outline: none; }
.site-search:focus-within { outline: 3px solid var(--copper); outline-offset: 1px; }
.site-search button { border: 0; background: transparent; padding: 8px 12px; color: var(--muted); cursor: pointer; display: flex; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: var(--roast); padding: 8px; cursor: pointer; }

@media (max-width: 1080px) {
	.nav-toggle { display: flex; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--foam); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 12px; }
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; }
	.site-search input { width: 100%; }
}
@media (max-width: 420px) { .brand__name { font-size: 1.15rem; } .brand__mark { width: 38px; height: 38px; } }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% 0%, #F6E3CB 0%, transparent 60%), var(--latte); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin-bottom: 18px; }
.hero__lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.hero__search { display: flex; align-items: center; gap: 10px; background: var(--foam); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); max-width: 560px; color: var(--muted); }
.hero__search input { flex: 1; min-width: 0; border: 0; font: inherit; background: transparent; color: var(--ink); padding: 10px 0; }
.hero__search input:focus { outline: none; }
.hero__search:focus-within { outline: 3px solid var(--copper); outline-offset: 2px; }
.hero__art { display: flex; justify-content: center; }
.hero__art img { width: min(260px, 100%); filter: drop-shadow(0 18px 30px rgba(58, 35, 23, .25)); transform: rotate(-6deg); }
@media (max-width: 760px) {
	.hero__inner { grid-template-columns: 1fr; padding: 40px 0 48px; }
	.hero__art { display: none; }
}

/* Section tiles */
.sections { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: -32px; position: relative; }
.section-tile { display: flex; flex-direction: column; gap: 6px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.section-tile:hover { transform: translateY(-3px); border-color: var(--copper-soft); color: var(--ink); }
.section-tile__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--latte); color: var(--copper); margin-bottom: 4px; }
.section-tile__label { font: 700 1.02rem/1.25 var(--serif); color: var(--roast); }
.section-tile__blurb { font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 1080px) { .sections { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sections { grid-template-columns: repeat(2, 1fr); gap: 10px; } .section-tile__blurb { display: none; } }

/* Rails and cards */
.rail { margin-top: 64px; }
.rail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.rail__head h2 { margin: 0 0 4px; }
.rail__head p { margin: 0; color: var(--muted); }
.rail__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--archive { margin: 32px 0 48px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } .rail__head { flex-direction: column; align-items: flex-start; } }
.card { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--latte); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--copper); background: linear-gradient(135deg, #F3E8DA, #EAD7C0); }
.card__placeholder--nespresso { background: linear-gradient(135deg, #EEE5DC, #D9C5B2); color: var(--roast); }
.card__placeholder--how-to { background: linear-gradient(135deg, #E7ECE6, #CFDCD2); color: var(--ok); }
.card__placeholder--recipes { background: linear-gradient(135deg, #F6E6D6, #F0CFAE); }
.card__placeholder--best-of { background: linear-gradient(135deg, #F7E7CC, #EFCB93); color: var(--roast); }
.card__body { padding: 18px 20px 22px; }
.card__cat { font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.card__title { font-size: 1.18rem; margin: 10px 0 8px; }
.card__title a { color: var(--roast); text-decoration: none; }
.card__title a:hover { color: var(--copper); }
.card__excerpt { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }

/* Promise */
.promise { margin-top: 72px; }
.promise__inner { background: var(--roast); color: #F3E8DA; border-radius: 20px; padding: 44px clamp(24px, 5vw, 64px); }
.promise h2 { color: #fff; }
.promise p { max-width: 46em; margin: 0 0 24px; }
.promise .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px var(--copper-soft); }
.promise .btn--ghost:hover { background: var(--copper-soft); color: var(--roast); }

/* Page heads, breadcrumbs */
.page-head { background: var(--latte); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.page-head h1 { margin: 6px 0 8px; }
.page-head__desc { color: var(--muted); max-width: 44em; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); color: #BFA58C; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper); }

/* Entries */
.entry__head { padding: 36px 0 12px; }
.entry__dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 14px; }
.entry__meta { font-size: .9rem; color: var(--muted); margin: 0; }
.entry__hero { margin: 20px auto 0; }
.entry__hero img { border-radius: var(--radius); width: 100%; }
.entry__content { padding-bottom: 32px; }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content h2 { margin-top: 1.8em; }
.entry__content h3 { margin-top: 1.4em; }
.entry__content p, .entry__content li { font-size: 1.06rem; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li + li { margin-top: .35em; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--foam); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.entry__content th, .entry__content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry__content th { background: var(--latte); font-weight: 600; color: var(--roast); }
.entry__content tr:last-child td { border-bottom: 0; }
.entry__content .table-scroll { overflow-x: auto; }
.entry__content blockquote { margin-inline: 0; border-left: 4px solid var(--copper-soft); padding: 4px 0 4px 18px; color: var(--muted); }
.entry--page .entry__content { padding-bottom: 64px; }

.disclosure { display: flex; gap: 10px; align-items: flex-start; background: var(--latte); border-radius: 10px; padding: 12px 14px; font-size: .85rem; color: var(--muted); }
.disclosure p { margin: 0; font-size: .85rem !important; }
.disclosure svg { flex: none; margin-top: 3px; color: var(--ok); }

.note { background: #FFF6E8; border: 1px solid #F1D6AC; border-radius: 12px; padding: 14px 16px; }
.note--warn { background: #FBEDEA; border-color: #EBC2B8; }
.note p { display: inline; margin: 0; }

/* Picks + products */
.picks { background: var(--foam); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 28px !important; }
.picks__title { margin: 0 0 14px !important; font-size: 1.3rem; }
.picks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pick { display: flex; flex-direction: column; gap: 6px; background: var(--cream); border-radius: 12px; padding: 16px; margin: 0 !important; }
.pick__label { font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.pick__name { font-size: 1.02rem !important; margin: 2px 0 0 !important; }
.pick__name a { color: var(--roast); text-decoration: none; }
.pick__why { font-size: .9rem !important; color: var(--muted); margin: 0 0 8px !important; flex: 1; }
.pick .btn { padding: 9px 14px; font-size: .85rem; align-self: flex-start; }

.product { background: var(--foam); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 28px !important; scroll-margin-top: 90px; }
.product__label { display: inline-block; background: var(--roast); color: #fff; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.product__name { font-size: 1.4rem; margin: 12px 0 4px !important; }
.product__meta { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.product__body > * + * { margin-top: .9em; }
.product__pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.product__pc h4 { font: 600 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.product__pc ul { list-style: none; padding: 0; margin: 0; }
.product__pc li { display: flex; gap: 8px; font-size: .95rem !important; }
.product__pc .pros svg { color: var(--ok); flex: none; margin-top: 4px; }
.product__pc .cons svg { color: var(--bad); flex: none; margin-top: 4px; }
.product__foot { margin-top: 20px; }
@media (max-width: 560px) { .product__pc { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 2.2em !important; }
.faq__item { background: var(--foam); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-top: 10px; }
.faq__item summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--roast); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--copper); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding-bottom: 12px; color: var(--ink); }

/* Recipe */
.recipe { background: var(--foam); border: 2px solid var(--copper-soft); border-radius: 18px; padding: 24px; }
.recipe__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.recipe__head h2 { margin: 0 !important; font-size: 1.5rem; }
.recipe__stats { display: flex; gap: 18px; margin: 0; }
.recipe__stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.recipe__stats dd { margin: 0; font-weight: 600; }
.recipe__cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin-top: 18px; }
.recipe__cols h3 { margin-top: 0 !important; }
@media (max-width: 640px) { .recipe__cols { grid-template-columns: 1fr; } }

/* Empty/404 and forms */
.empty { text-align: center; padding: 72px 0 96px; max-width: 640px; margin-inline: auto; }
.empty p { color: var(--muted); }
.search-form { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.search-form input { font: inherit; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; min-width: 0; flex: 1; max-width: 360px; background: var(--foam); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; }
.chips a { display: block; padding: 8px 14px; background: var(--latte); border-radius: 999px; text-decoration: none; color: var(--roast); font-weight: 500; }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--foam); border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--roast); color: #fff; }

/* Footer */
.site-footer { background: #24160F; color: #D9C8B6; margin-top: 88px; padding: 56px 0 28px; font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name em { color: var(--copper-soft); }
.site-footer__brand p { max-width: 30em; margin-top: 14px; }
.site-footer h2 { color: #fff; font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 8px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #D9C8B6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #A8927E; }
.site-footer__legal p { margin: 0 0 6px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
