/* Easy Home, Easier Life — shared styles */
:root, [data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --color-bg: #faf6ef;          /* cream */
  --color-surface: #fffdf8;
  --color-surface-2: #f3ece0;   /* soft beige */
  --color-surface-3: #e9dfcf;
  --color-border: #e2d7c5;
  --color-text: #2e2a24;
  --color-text-muted: #6b6358;
  --color-sage: #7d9277;
  --color-sage-soft: #e3e9dc;
  --color-sage-deep: #4f6349;
  --color-accent: #b4532f;      /* terracotta — buttons only */
  --color-accent-hover: #963f20;
  --color-on-accent: #fffaf3;
  --shadow-sm: 0 1px 2px rgb(60 45 25 / .06), 0 2px 8px rgb(60 45 25 / .05);
  --shadow-md: 0 4px 24px rgb(60 45 25 / .10);
  --radius-sm: .5rem; --radius-md: .875rem; --radius-lg: 1.5rem; --radius-full: 999px;
  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;
  --content: 72rem; --prose: 42rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --color-bg: #1d1b17;
  --color-surface: #25221d;
  --color-surface-2: #2d2923;
  --color-surface-3: #38332b;
  --color-border: #3f3930;
  --color-text: #f1ebe0;
  --color-text-muted: #b3a998;
  --color-sage: #9fb598;
  --color-sage-soft: #2f3a2c;
  --color-sage-deep: #bcd0b5;
  --color-accent: #d9774f;
  --color-accent-hover: #e8906b;
  --color-on-accent: #1d1b17;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-md: 0 4px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--color-surface); padding: var(--space-2) var(--space-4); z-index: 100; }
.wrap { width: min(100% - 2 * var(--space-5), var(--content)); margin-inline: auto; }
.prose-wrap { width: min(100% - 2 * var(--space-5), var(--prose)); margin-inline: auto; }
.eyebrow { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--color-sage-deep); }
.muted { color: var(--color-text-muted); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); margin-bottom: var(--space-8); flex-wrap: wrap; }
.section-head h2 { font-size: var(--text-xl); }
.section-head a { font-size: var(--text-sm); font-weight: 600; color: var(--color-sage-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-full); border: 0; font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-accent:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-sage); }
.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--color-border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); }
.brand svg { width: 34px; height: 34px; color: var(--color-sage-deep); flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.05; font-weight: 500; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 500; }
.nav { display: none; gap: var(--space-5); }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-text); }
.header-tools { display: flex; align-items: center; gap: var(--space-1); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-full); border: 0; background: transparent; color: var(--color-text); cursor: pointer; }
.icon-btn:hover { background: var(--color-surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--color-border); padding-block: var(--space-4) var(--space-6); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: var(--space-3) 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--color-border); }
.search-panel { display: none; padding-block: var(--space-3) var(--space-4); }
.search-panel.open { display: block; }
.search-form { display: flex; gap: var(--space-2); }
.search-form input { flex: 1; }
@media (min-width: 960px) { .nav { display: flex; } .menu-toggle { display: none; } }

/* Inputs */
input[type="email"], input[type="text"], input[type="search"], textarea, select { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font: var(--text-sm) var(--font-body); }
textarea { border-radius: var(--radius-md); min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--color-sage); box-shadow: 0 0 0 3px var(--color-sage-soft); }
label { font-size: var(--text-sm); font-weight: 600; display: block; margin-bottom: var(--space-2); }

/* Hero */
.hero { padding-block: var(--space-6) var(--space-12); }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
.hero h1 { font-size: var(--text-2xl); margin-block: var(--space-3) var(--space-4); }
.hero h1 em { font-style: italic; color: var(--color-sage-deep); }
.hero-lead { font-size: var(--text-base); color: var(--color-text-muted); max-width: 34rem; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-12); } .hero { padding-block: var(--space-12) var(--space-20); } }

/* Signup box */
.signup { background: var(--color-sage-soft); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
.signup h2, .signup h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.signup p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.signup-form { display: grid; gap: var(--space-2); }
.signup-form .row { display: grid; gap: var(--space-2); }
@media (min-width: 560px) { .signup-form .row { grid-template-columns: 1fr 1fr; } .signup-form .row .btn { grid-column: 1 / -1; } }
.form-note { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-success { display: none; font-weight: 600; color: var(--color-sage-deep); }
form.done .row, form.done .form-note { display: none; }
form.done .form-success { display: block; }
.signup-wide { display: grid; gap: var(--space-6); align-items: center; padding: clamp(var(--space-6), 4vw, var(--space-12)); }
.signup-wide img { border-radius: var(--radius-md); aspect-ratio: 3/4; object-fit: cover; max-height: 320px; width: 100%; }
@media (min-width: 760px) { .signup-wide { grid-template-columns: 220px 1fr; } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.tile { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; text-decoration: none; color: #fffaf3; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 24 16 / .72), rgb(30 24 16 / 0) 60%); z-index: -1; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.1; }
.tile small { display: block; font-family: var(--font-body); font-size: var(--text-xs); opacity: .85; margin-top: var(--space-1); }

/* Post cards */
.cards { display: grid; gap: var(--space-8); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; }
.card-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 2/3; background: var(--color-surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.2; }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.meta { font-size: var(--text-xs); color: var(--color-text-muted); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.tag { font-size: var(--text-xs); font-weight: 600; color: var(--color-sage-deep); text-transform: uppercase; letter-spacing: .1em; }
.empty { padding: var(--space-12); text-align: center; background: var(--color-surface-2); border-radius: var(--radius-lg); }

/* Page header */
.page-head { padding-block: var(--space-10) var(--space-8); }
.page-head h1 { font-size: var(--text-2xl); margin-block: var(--space-2) var(--space-3); }
.page-head p { color: var(--color-text-muted); max-width: 40rem; }
.crumbs { font-size: var(--text-xs); color: var(--color-text-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Post */
.post-head { padding-block: var(--space-8) var(--space-6); }
.post-head h1 { font-size: var(--text-2xl); margin-block: var(--space-3); }
.disclosure { font-size: var(--text-xs); background: var(--color-surface-2); border-left: 3px solid var(--color-sage); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin-block: var(--space-4); }
.disclosure a { color: var(--color-sage-deep); }
.pin-figure { position: relative; margin: var(--space-6) auto; max-width: 30rem; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 2/3; background: var(--color-surface-2); }
.pin-figure img { width: 100%; height: 100%; object-fit: cover; }
.pin-btn { position: absolute; top: var(--space-3); left: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); background: #c8232c; color: #fff; text-decoration: none; border: 0; font: 600 var(--text-xs)/1 var(--font-body); padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); cursor: pointer; box-shadow: var(--shadow-sm); min-height: 36px; }
.pin-btn svg { width: 14px; height: 14px; }
.pin-btn:hover { background: #a91b23; }
.post-body { font-size: var(--text-base); }
.post-body h2 { font-size: var(--text-xl); margin-block: var(--space-12) var(--space-4); }
.post-body h3 { margin-block: var(--space-8) var(--space-3); }
.post-body ul, .post-body ol { padding-left: var(--space-6); margin-block: 0 var(--space-4); }
.post-body li { margin-bottom: var(--space-2); }

.quick-picks { border: 1.5px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-5); margin-block: var(--space-6); }
.quick-picks h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 var(--space-4); color: var(--color-sage-deep); }
.qp-list { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.qp-item { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: center; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.qp-item:last-child { border-bottom: 0; padding-bottom: 0; }
.qp-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.qp-item .label { font-size: var(--text-xs); font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: .08em; }
.qp-item strong { display: block; font-size: var(--text-sm); line-height: 1.3; }
.qp-item .btn { grid-column: 1 / -1; }
@media (min-width: 560px) { .qp-item { grid-template-columns: 72px 1fr auto; } .qp-item img { width: 72px; height: 72px; } .qp-item .btn { grid-column: auto; } }

.product { display: grid; gap: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); margin-block: var(--space-6); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }
.product h3 { margin: 0 0 var(--space-2); }
.product p { font-size: var(--text-sm); color: var(--color-text-muted); }
.product ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); font-size: var(--text-sm); }
.product li { padding-left: var(--space-6); position: relative; margin-bottom: var(--space-1); }
.product li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--color-sage); border-bottom: 2px solid var(--color-sage); transform: rotate(-45deg); }
.product .price-note { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (min-width: 640px) { .product { grid-template-columns: 200px 1fr; align-items: start; } }

.table-wrap { overflow-x: auto; margin-block: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 520px; }
th, td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
thead th { background: var(--color-surface-2); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
td a.btn { white-space: nowrap; }

.schedule { display: grid; gap: var(--space-3); margin-block: var(--space-6); }
@media (min-width: 640px) { .schedule { grid-template-columns: repeat(2, 1fr); } }
.day { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.day strong { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); display: block; margin-bottom: var(--space-1); }
.day span { font-size: var(--text-sm); color: var(--color-text-muted); }

.related { border-top: 1px solid var(--color-border); }

/* Store */
.store { background: var(--color-surface-2); }
.store-grid { display: grid; gap: var(--space-8); align-items: center; }
.store-grid img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.store h2 { font-size: var(--text-xl); margin-block: var(--space-2) var(--space-4); }
@media (min-width: 860px) { .store-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-16); } }

/* Landing */
.lm-grid { display: grid; gap: var(--space-10); align-items: center; }
.lm-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 3/4; object-fit: cover; width: 100%; max-width: 440px; margin-inline: auto; }
.benefits { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-3); }
.benefits li { padding-left: var(--space-8); position: relative; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--color-sage-soft); border: 2px solid var(--color-sage); }
@media (min-width: 900px) { .lm-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }

/* Content pages */
.page-body h2 { font-size: var(--text-xl); margin-block: var(--space-10) var(--space-4); }
.about-img { border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; max-width: 28rem; margin: var(--space-6) auto; }
.pull { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; border-left: 3px solid var(--color-sage); padding-left: var(--space-5); margin-block: var(--space-8); }
.contact-form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }

/* Footer */
.site-footer { background: var(--color-surface-2); padding-block: var(--space-16) var(--space-8); margin-top: var(--space-16); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: var(--space-3); color: var(--color-text-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.socials { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.socials a { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-full); background: var(--color-surface); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--color-border); margin-top: var(--space-10); padding-top: var(--space-6); font-size: var(--text-xs); color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }

/* Exit popup */
.popup { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgb(25 20 12 / .5); padding: var(--space-4); }
.popup.open { display: grid; animation: fade .3s var(--ease); }
.popup-card { position: relative; width: min(100%, 28rem); background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6); box-shadow: var(--shadow-md); animation: rise .4s var(--ease); }
.popup-card h2 { font-size: var(--text-xl); margin-block: var(--space-2) var(--space-3); }
.popup-close { position: absolute; top: var(--space-2); right: var(--space-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
