/* PlannerNest — warm sage / cream / terracotta editorial */
:root {
  --sage: #5d8071;
  --sage-dark: #3f5c4f;
  --sage-light: #c0d5c8;
  --sage-mist: #e6efe9;
  --cream: #fbf6ec;
  --cream-2: #f3ead6;
  --cream-3: #ece1c6;
  --terracotta: #c46a48;
  --terracotta-dark: #a55538;
  --terracotta-soft: #f0d2c3;
  --rose: #d29489;
  --walnut: #3a2d22;
  --walnut-2: #574436;
  --ink: #2a2218;
  --muted: #6b6258;
  --line: #e2d6bd;
  --line-soft: #ece2cc;
  --shadow-sm: 0 1px 2px rgba(58,45,34,.05);
  --shadow: 0 1px 2px rgba(58,45,34,.06), 0 8px 24px rgba(58,45,34,.08);
  --shadow-lg: 0 4px 12px rgba(58,45,34,.08), 0 20px 48px rgba(58,45,34,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font-serif: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--walnut);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--walnut); color: var(--cream); padding: 10px 14px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ------- Header ------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(251,246,236,.92);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem;
  color: var(--walnut); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--walnut); text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  display: grid; place-items: center; color: var(--cream);
  font-weight: 700; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.2);
}
.brand-mark span { font-family: var(--font-serif); font-size: 1rem; letter-spacing: -.02em; }
.brand-word { font-feature-settings: "ss01"; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .92rem;
  padding: 6px 12px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--terracotta-dark); background: var(--cream-2); text-decoration: none; }
.search-form { display: flex; gap: 0; }
.search-form input {
  border: 1px solid var(--line); padding: 9px 14px;
  border-radius: 999px 0 0 999px; background: white; color: var(--ink);
  min-width: 200px; outline: none; font: inherit;
}
.search-form input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-mist); }
.search-form button {
  border: 1px solid var(--sage); background: var(--sage); color: var(--cream);
  padding: 9px 18px; border-radius: 0 999px 999px 0;
  cursor: pointer; font: inherit; font-weight: 500;
  transition: background .15s;
}
.search-form button:hover { background: var(--sage-dark); }

/* ------- Hero ------- */
.hero {
  background:
    radial-gradient(circle at 12% 20%, var(--terracotta-soft) 0%, transparent 35%),
    radial-gradient(circle at 95% 80%, var(--sage-mist) 0%, transparent 40%),
    linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: .35em; }
.hero-copy h1 .accent {
  font-family: var(--font-script); color: var(--terracotta);
  font-weight: 700; font-size: 1.15em; padding: 0 .04em;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-bottom: 1.6em; }
.hero .pill {
  display: inline-block; background: var(--sage-light); color: var(--sage-dark);
  padding: 5px 14px; border-radius: 999px; font-size: .78rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.hero-stats strong { color: var(--walnut); font-weight: 600; }
.btn {
  display: inline-block; background: var(--terracotta); color: var(--cream);
  padding: 13px 24px; border-radius: 999px; font-weight: 600;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  box-shadow: var(--shadow); transition: transform .15s ease, background .15s;
  letter-spacing: -.005em;
}
.btn:hover { background: var(--terracotta-dark); color: var(--cream); transform: translateY(-1px); text-decoration: none; }
.btn.secondary {
  background: transparent; color: var(--walnut);
  border: 1.5px solid var(--walnut); box-shadow: none;
}
.btn.secondary:hover { background: var(--walnut); color: var(--cream); }

.hero-art {
  position: relative; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform: rotate(-1.2deg);
}
.hero-art img { width: 100%; height: auto; display: block; }
.hero-caption {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(58,45,34,.84); color: var(--cream);
  padding: 6px 12px; border-radius: 999px; font-size: .75rem;
  letter-spacing: .04em; backdrop-filter: blur(6px);
}

/* ------- Breadcrumbs ------- */
.crumbs { background: transparent; padding: 16px 0 0; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--terracotta-dark); }
.crumbs .sep { color: var(--cream-3); }
.crumbs li[aria-current] span { color: var(--walnut); font-weight: 500; }

/* ------- Sections ------- */
.section { padding: 56px 0; }
.section.section-tight { padding: 28px 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 20px; flex-wrap: wrap; }
.section-head .eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-dark); font-weight: 700; margin: 0 0 8px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 64ch; }

/* ------- Topic grid ------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.topic-grid.compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.topic-card {
  display: flex; gap: 16px; padding: 18px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
  color: var(--ink);
}
.topic-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: var(--sage-light); text-decoration: none;
}
.topic-thumb {
  flex-shrink: 0; width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sage-mist) 0%, var(--sage-light) 100%);
  display: grid; place-items: center; color: var(--sage-dark);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem;
  border: 1px solid var(--sage-light);
}
.topic-card:nth-child(2n) .topic-thumb { background: linear-gradient(135deg, var(--terracotta-soft) 0%, var(--rose) 100%); color: var(--terracotta-dark); border-color: var(--rose); }
.topic-card:nth-child(3n) .topic-thumb { background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream-3) 100%); color: var(--walnut); border-color: var(--cream-3); }
.topic-card:nth-child(5n) .topic-thumb { background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 100%); color: var(--cream); border-color: var(--sage); }
.topic-body h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--walnut); }
.topic-body p { margin: 0 0 6px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.topic-body .topic-meta { font-size: .78rem; color: var(--sage-dark); font-weight: 500; letter-spacing: .02em; }

/* ------- Layout grid with sidebar ------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 32px 0 48px; }
.layout.full { grid-template-columns: 1fr; }
.content-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.side-card h3 {
  margin: 0 0 12px; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-dark); font-family: var(--font-sans); font-weight: 700;
}
.side-card .link-list, .side-card .recommend-list { list-style: none; padding: 0; margin: 0; }
.side-card .link-list li { padding: 8px 0; border-top: 1px dashed var(--line-soft); font-size: .92rem; }
.side-card .link-list li:first-child { border-top: 0; padding-top: 0; }
.side-card .link-list.compact li { padding: 5px 0; font-size: .88rem; }
.side-card .link-list a { color: var(--ink); }
.side-card .link-list a:hover { color: var(--terracotta-dark); }
.side-card .count { color: var(--muted); font-size: .82rem; }
.recommend-card {
  background: linear-gradient(180deg, var(--cream-2) 0%, white 80%);
  border-color: var(--cream-3);
}
.recommend-card h3 { color: var(--terracotta-dark); }
.recommend-list li { padding: 9px 0; border-top: 1px solid var(--cream-3); font-size: .92rem; line-height: 1.4; }
.recommend-list li:first-child { border-top: 0; padding-top: 0; }
.recommend-list a { color: var(--walnut); font-weight: 500; }
.recommend-list a:hover { color: var(--terracotta-dark); }

/* ------- Cards grid ------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--sage-light); text-decoration: none;
}
.card .preview {
  aspect-ratio: 4/5; background: var(--cream-2);
  display: grid; place-items: center; color: var(--sage-dark);
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 80%, var(--cream-3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--sage-mist) 0%, transparent 50%),
    var(--cream-2);
}
.card:nth-child(2n) .preview { background-image: radial-gradient(circle at 30% 70%, var(--terracotta-soft) 0%, transparent 55%), radial-gradient(circle at 75% 25%, var(--cream-2) 0%, transparent 50%), var(--cream-2); }
.card:nth-child(3n) .preview { background-image: radial-gradient(circle at 25% 30%, var(--sage-mist) 0%, transparent 55%), var(--cream-2); }
.card .preview .sheet {
  width: 70%; height: 85%; background: white;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 12px; display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 6px 14px rgba(0,0,0,.04);
  position: relative;
}
.card .preview .sheet::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 2px;
  background: var(--sage-light); border-radius: 0 0 4px 4px;
}
.card .preview .sheet .head {
  font-family: var(--font-serif); color: var(--walnut);
  font-size: .68rem; line-height: 1.15; margin-bottom: 4px;
  word-break: break-word; font-weight: 600;
}
.card .preview .sheet .row { height: 4px; border-radius: 2px; background: var(--cream-3); }
.card .preview .sheet .row.short { width: 55%; }
.card .preview .sheet .row.dark { background: var(--sage); width: 38%; }
.card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terracotta-dark); font-weight: 700;
}
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.card .desc { color: var(--muted); font-size: .9rem; flex: 1; line-height: 1.5; }
.card .meta { display: flex; gap: 10px; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line-soft); padding-top: 10px; }

/* ------- Category chips ------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: white; color: var(--walnut); font-size: .9rem; font-weight: 500;
  border: 1px solid var(--line); transition: all .15s;
}
.chip:hover { background: var(--sage); color: var(--cream); border-color: var(--sage); text-decoration: none; }
.chip-count { background: var(--cream-2); color: var(--muted); padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.chip:hover .chip-count { background: var(--sage-dark); color: var(--cream); }

/* ------- Article (printable detail) ------- */
.article {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-sm);
}
.article-eyebrow {
  margin: 0 0 12px; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
}
.article-eyebrow a { color: var(--terracotta-dark); }
.article header h1 { margin: 0 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.article-lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 22px; max-width: 64ch; line-height: 1.55; font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.article .meta-row { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; }
.article .meta-row strong { color: var(--walnut); font-weight: 600; }
.article .preview-large {
  aspect-ratio: 8.5/11; max-width: 380px;
  background:
    radial-gradient(circle at 30% 70%, var(--cream-3) 0%, transparent 50%),
    var(--cream-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; margin: 0 auto 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.article .preview-large::before {
  content: ""; position: absolute; top: -1px; left: 8%; right: 8%; height: 4px;
  background: var(--sage); border-radius: 0 0 6px 6px;
}
.article .preview-large .head { font-family: var(--font-serif); color: var(--walnut); font-size: 1.1rem; margin-bottom: 8px; text-align: center; font-weight: 600; }
.article .preview-large .row { height: 8px; border-radius: 4px; background: white; border: 1px solid var(--line); }
.article .preview-large .row.dark { background: var(--sage-light); border-color: var(--sage-light); }
.article .preview-large .row.short { width: 60%; }
.article .body h2 { margin-top: 1.6em; margin-bottom: .5em; font-size: 1.5rem; }
.article .body p { font-size: 1.02rem; color: var(--ink); }
.article .body ul { padding-left: 1.4em; }
.article .body li { margin-bottom: .5em; }
.article .download-row { display: flex; gap: 12px; margin: 8px 0 28px; flex-wrap: wrap; }
.tags { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.tags-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }
.tags .tag {
  display: inline-block; background: var(--cream-2); padding: 4px 12px;
  border-radius: 999px; font-size: .82rem; margin: 0 6px 6px 0;
  color: var(--muted); border: 1px solid var(--line-soft);
  transition: all .15s;
}
.tags .tag:hover { background: var(--sage); color: var(--cream); border-color: var(--sage); text-decoration: none; }

.inline-recommend {
  margin: 14px 0 22px; padding: 14px 18px;
  background: var(--cream-2); border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: .94rem;
}
.inline-recommend a { color: var(--terracotta-dark); font-weight: 500; }

.related-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.related-section h2 { margin-bottom: 18px; }

.source-note { color: var(--muted); font-size: .82rem; margin-top: -8px; }

/* ------- Adsense placeholder ------- */
.ad {
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0px, var(--cream-2) 10px, var(--cream-3) 10px, var(--cream-3) 20px);
  border: 1px dashed #c9bda0; color: #8a7e60;
  text-align: center; padding: 18px; border-radius: 10px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin: 24px 0; line-height: 1.4;
}
.ad.tall { min-height: 250px; display: grid; place-items: center; }

/* ------- Footer ------- */
.site-footer {
  background: var(--walnut); color: var(--cream-2);
  padding: 56px 0 24px; margin-top: 48px;
}
.site-footer h4 {
  color: var(--cream); font-family: var(--font-sans);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px; font-weight: 700;
}
.site-footer a { color: var(--cream-2); }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: .92rem; }
.footer-tag { color: #c5b69b; max-width: 36ch; margin-top: 14px; line-height: 1.55; font-size: .9rem; }
.footer-recommend {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 18px 24px;
  margin-bottom: 32px;
}
.footer-recommend .eyebrow {
  color: var(--terracotta-soft); font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: 700;
}
.footer-recommend .recommend-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
  list-style: none; padding: 0; margin: 0;
}
.footer-recommend .recommend-list li { font-size: .9rem; color: var(--cream-2); padding: 4px 0; }
.footer-recommend .recommend-list a { color: var(--cream-2); }
.footer-recommend .recommend-list a:hover { color: var(--terracotta-soft); }
.legal { border-top: 1px solid #5e4d3e; padding-top: 20px; font-size: .85rem; color: #b8aa92; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------- Pagination ------- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: white; color: var(--walnut); font-size: .9rem; font-weight: 500;
  min-width: 40px; text-align: center;
}
.pagination .current { background: var(--sage); color: var(--cream); border-color: var(--sage); }
.pagination a:hover { background: var(--cream-2); border-color: var(--cream-3); text-decoration: none; }

/* ------- Static page (prose) ------- */
.prose {
  background: white; padding: 36px 40px;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto;
}
.prose h1 { margin-bottom: 18px; }
.prose h2 { margin-top: 1.7em; margin-bottom: .5em; font-size: 1.45rem; }
.prose p { font-size: 1.01rem; line-height: 1.7; }
.prose ul { padding-left: 1.4em; }
.prose ul li { margin-bottom: .5em; line-height: 1.6; }

/* ------- Responsive ------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { transform: rotate(0); max-width: 600px; margin: 0 auto; }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sidebar .ad.tall { grid-column: 1 / -1; min-height: 100px; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-recommend .recommend-list { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .article { padding: 26px 20px; }
  .prose { padding: 26px 22px; }
  .search-form input { min-width: 140px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
