/* ============================================================
   WARMLYCURATED — shared stylesheet
   Travel / Home Decor / Motivation — curated affiliate finds
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* --- base tokens (site shell) --- */
  --paper: #FBF8F3;
  --paper-alt: #F3EEE3;
  --ink: #23201B;
  --ink-soft: #625C50;
  --line: #E4DBC8;
  --white: #FFFFFF;

  /* --- Travel: dusk ocean / lantern warmth --- */
  --travel: #1F6F73;
  --travel-deep: #123B3F;
  --travel-soft: #DCEEEC;
  --travel-bg: #0F2C30;
  --travel-accent: #F2A65A;

  /* --- Home Decor: warm amber / lived-in glow --- */
  --decor: #B9702E;
  --decor-deep: #5C3417;
  --decor-soft: #F5E6D3;
  --decor-bg: #2A1D14;
  --decor-accent: #E7B25C;

  /* --- Motivation: bold monochrome + electric gold --- */
  --quotes: #D8A63C;
  --quotes-deep: #17140F;
  --quotes-soft: #EDE7DA;
  --quotes-bg: #121212;
  --quotes-accent: #D8A63C;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(35,32,27,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------------- header ---------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo img.logo-mark {
  height: 34px;
  width: auto;
  display: block;
}
.logo .logo-text {
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo .logo-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 2px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------------- home hero / shelf signature ---------------- */
.hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  max-width: 15ch;
  margin-top: 10px;
}
.hero p.lede {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.shelves { padding: 20px 0 72px; }
.shelf { margin-bottom: 60px; }
.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.shelf-head h2 { font-size: 1.7rem; }
.shelf-head a.see-all {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.shelf-head a.see-all:after { content: " →"; }

.shelf-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.shelf-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 6px;
  border-radius: 3px;
  background: var(--shelf-color, var(--ink));
  opacity: 0.9;
}
.shelf[data-niche="travel"] { --shelf-color: var(--travel); }
.shelf[data-niche="decor"] { --shelf-color: var(--decor); }
.shelf[data-niche="quotes"] { --shelf-color: var(--quotes); }

@media (max-width: 1000px) {
  .shelf-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .shelf-row { grid-template-columns: 1fr; }
}

/* card leaning on the shelf */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.18s ease;
}
.card:hover { transform: rotate(0deg) translateY(-4px); }
.shelf-row .card:nth-child(4n+1) { --tilt: -0.6deg; }
.shelf-row .card:nth-child(4n+2) { --tilt: 0.4deg; }
.shelf-row .card:nth-child(4n+3) { --tilt: -0.3deg; }
.shelf-row .card:nth-child(4n+4) { --tilt: 0.5deg; }

.card .thumb {
  aspect-ratio: 2 / 3;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 15px 17px 19px; }
.card .tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shelf-color, var(--ink-soft));
}
.card h3 { font-size: 1.03rem; margin: 7px 0 0; font-weight: 600; }

/* ---------------- niche hub pages (each with its own mood) ---------------- */
.niche-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  color: var(--niche-hero-fg, var(--ink));
  background: var(--niche-hero-bg, var(--paper));
}
.niche-hero .eyebrow { color: var(--accent, var(--ink-soft)); }
.niche-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: inherit; }
.niche-hero p.lede { max-width: 60ch; margin-top: 14px; color: var(--niche-hero-fg-soft, var(--ink-soft)); }

/* Travel hub mood: deep dusk teal */
body.niche-travel .niche-hero {
  --niche-hero-bg: linear-gradient(160deg, var(--travel-bg), var(--travel-deep));
  --niche-hero-fg: #F4EFE3;
  --niche-hero-fg-soft: #C9DAD8;
  border-bottom-color: var(--travel-deep);
}
/* Home Decor hub mood: warm amber dusk */
body.niche-decor .niche-hero {
  --niche-hero-bg: linear-gradient(160deg, var(--decor-bg), var(--decor-deep));
  --niche-hero-fg: #F7EEE0;
  --niche-hero-fg-soft: #E3C7A3;
  border-bottom-color: var(--decor-deep);
}
/* Motivation hub mood: near-black with gold */
body.niche-quotes .niche-hero {
  --niche-hero-bg: var(--quotes-bg);
  --niche-hero-fg: #F3EFE3;
  --niche-hero-fg-soft: #B9B4A6;
  border-bottom-color: #000;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 48px 0 72px;
}
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------------- post / roundup page ---------------- */
.post-header {
  padding: 52px 0 30px;
  border-bottom: 1px solid var(--line);
  color: var(--niche-hero-fg, var(--ink));
  background: var(--niche-hero-bg, var(--paper));
}
body.niche-travel .post-header { --niche-hero-bg: linear-gradient(160deg, var(--travel-bg), var(--travel-deep)); --niche-hero-fg: #F4EFE3; }
body.niche-decor .post-header { --niche-hero-bg: linear-gradient(160deg, var(--decor-bg), var(--decor-deep)); --niche-hero-fg: #F7EEE0; }
body.niche-quotes .post-header { --niche-hero-bg: var(--quotes-bg); --niche-hero-fg: #F3EFE3; }

.post-header .eyebrow { color: var(--accent); }
.post-header h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 20ch; color: inherit; }
.post-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.74rem;
  opacity: 0.75;
}

.disclosure-banner {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  margin: 24px 0 0;
  color: inherit;
  opacity: 0.9;
}
.disclosure-banner a { text-decoration: underline; color: inherit; }

.post-body { padding: 36px 0 20px; max-width: 760px; }
.post-body p { margin: 0 0 20px; }
.post-body h2 { font-size: 1.5rem; margin-top: 44px; }
.post-body img.inline-figure {
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0 8px;
  background: var(--paper-alt);
}
.figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* affiliate product block */
.pick {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  align-items: start;
}
.pick:last-of-type { border-bottom: 1px solid var(--line); }
.pick .pick-thumb {
  aspect-ratio: 2/3;
  background: var(--paper-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px;
  overflow: hidden;
}
.pick .pick-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.pick .pick-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent, var(--ink-soft));
  letter-spacing: 0.08em;
}
.pick h3 { margin: 6px 0 10px; font-size: 1.25rem; }
.pick p { margin: 0 0 14px; color: var(--ink-soft); }
.btn-shop {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 500;
}
.btn-shop:hover { background: var(--accent, var(--ink-soft)); }
.pick-price-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 10px;
  display: block;
}

@media (max-width: 600px) {
  .pick { grid-template-columns: 1fr; }
  .pick .pick-thumb { max-width: 200px; }
}

/* ---------------- generic content pages ---------------- */
.page-header { padding: 56px 0 20px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-body { max-width: 760px; padding: 36px 0 72px; }
.page-body h2 { font-size: 1.4rem; margin-top: 38px; }
.page-body p { margin: 0 0 18px; }
.page-body ul { margin: 0 0 18px; padding-left: 22px; }
.page-body li { margin-bottom: 8px; }

/* contact form */
form.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
form.contact-form label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
form.contact-form input,
form.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
form.contact-form button {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  cursor: pointer;
}
form.contact-form button:hover { background: var(--travel); }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
  margin-top: 40px;
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 404 */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 0;
}

/* ---------------- cookie consent banner ---------------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 24px;
  display: none;
}
#cookie-banner.visible { display: block; }
#cookie-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0;
  max-width: 1180px;
}
#cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 62ch;
  color: var(--paper);
}
#cookie-banner a { color: var(--quotes-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--paper);
}
.cookie-actions button.accept {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
@media (max-width: 700px) {
  #cookie-banner .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------------- planners / digital products ---------------- */
body.niche-quotes .page-header.planner-header {
  background: linear-gradient(160deg, #1a1a1a, #2a2416);
  color: #F3EFE3;
  border-bottom-color: #000;
}
.planner-header .eyebrow { color: var(--quotes-accent); }
.planner-header h1 { color: inherit; max-width: 22ch; }
.planner-header p.lede { color: #C7C0B0; max-width: 60ch; margin-top: 14px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 44px 0 24px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.product .product-thumb {
  aspect-ratio: 3/4;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.product .product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .product-info { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .product-info .kicker {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--decor);
}
.product .product-info h3 { font-size: 1.15rem; margin: 0; }
.product .product-info p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; flex: 1; }
.product .product-info .price { font-family: var(--mono); font-weight: 600; font-size: 0.95rem; }
.product .btn-shop { align-self: flex-start; margin-top: 4px; }

.setup-steps { counter-reset: step; padding-left: 0; list-style: none; }
.setup-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
  margin: 0;
}
.setup-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
}
.setup-steps li strong { display: block; margin-bottom: 2px; }
