:root {
  --bg: #f4efe6;
  --bg-2: #ebe3d6;
  --ink: #1c2422;
  --muted: #5c6864;
  --teal: #0b4f54;
  --teal-2: #147a80;
  --coral: #e07a5f;
  --card: #fffaf3;
  --line: rgba(28, 36, 34, 0.12);
  --shadow: 0 18px 50px rgba(28, 36, 34, 0.08);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 2rem));
  --display: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(20, 122, 128, 0.16), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(224, 122, 95, 0.14), transparent 55%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 40%, #efe7da 100%);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 0.75rem; z-index: 20; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); font-weight: 700; margin-bottom: 0.35rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.7rem 1.15rem; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; font: inherit;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(244, 239, 230, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0 0.45rem;
}
.brand { flex: 0 0 auto; }
.brand img { height: 36px; width: auto; display: block; }
.header-search {
  display: flex; gap: 0.35rem;
  margin-left: auto;
  flex: 0 1 280px;
  max-width: 280px;
}
.header-search input { flex: 1; min-width: 0; width: 100%; }
.nav-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 1.05rem;
  padding: 0.15rem 0 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-primary::-webkit-scrollbar { display: none; }
.nav-primary a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  white-space: nowrap; padding: 0.2rem 0;
}
.nav-primary a:hover { color: var(--teal); }
.header-search input, .tool-form select, .tool-form input, .contact-form input, .contact-form textarea, .stack-label input, .inline-add input, .search-page-form input {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.65rem 0.8rem; font: inherit; background: #fff;
}
.header-search button, .nav-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0.65rem 0.8rem; font: inherit; cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle { display: none; }
.mobile-nav { display: none; flex-direction: column; gap: 0.5rem; padding-bottom: 1rem; }
.mobile-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4rem 0; }

.hero {
  position: relative; min-height: min(78vh, 720px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media {
  background-size: cover; background-position: center;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(11, 79, 84, 0.18) 0%, rgba(15, 28, 28, 0.72) 70%, rgba(15, 28, 28, 0.88) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4.5rem 0 3rem; max-width: 760px; margin-left: max(1rem, calc((100% - var(--shell)) / 2)); width: var(--shell); }
.hero-brand {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.55rem;
  color: rgba(255,255,255,0.78);
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 700;
  letter-spacing: -0.02em; max-width: 12ch; margin: 0 0 0.65rem;
  animation: fadeUp 0.9s ease 0.08s both;
}
.hero-lead { color: rgba(255,255,255,0.9); max-width: 36rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); animation: fadeUp 1s ease 0.14s both; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; animation: fadeUp 1s ease 0.2s both; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }

.section { padding: 2.75rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.25rem; }
.section-head p { margin: 0; color: var(--muted); }

.idea-day-card, .tool-panel, .sidebar-panel, .article-card, .tool-card, .cat-card, .plan-result, .idea-result {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.idea-day-card {
  display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: 1.4rem 1.5rem;
}
.idea-day-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.idea-day-link { margin: 0.5rem 0 0; }
.idea-day-link a { font-weight: 600; }

.cat-grid, .article-grid, .tool-grid { display: grid; gap: 1rem; }
.cat-grid { grid-template-columns: repeat(3, 1fr); }
.cat-card {
  overflow: hidden; text-decoration: none; color: inherit; display: grid; grid-template-rows: 180px auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(28,36,34,0.12); }
.cat-card img { width: 100%; height: 180px; object-fit: cover; }
.cat-card > div { padding: 1rem 1.1rem 1.2rem; border-top: 4px solid var(--cat, var(--teal)); }
.cat-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.tool-grid { grid-template-columns: repeat(3, 1fr); }
.tool-card { padding: 1.3rem; text-decoration: none; color: inherit; }
.tool-card:hover { border-color: var(--teal); }
.article-grid { grid-template-columns: repeat(3, 1fr); }
.article-card { position: relative; overflow: hidden; }
.article-card > a { color: inherit; text-decoration: none; display: block; }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card-body { padding: 1rem 1.1rem 2.4rem; }
.save-btn {
  position: absolute; right: 0.7rem; bottom: 0.7rem;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.35rem 0.75rem;
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.save-btn.is-saved { background: var(--teal); color: #fff; border-color: var(--teal); }

.why-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.25rem; align-items: start; }
.sidebar-panel { padding: 1.2rem; display: grid; gap: 0.55rem; }
.sidebar-panel a { font-weight: 600; }

.page-hero { padding: 2.5rem 0 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.article-layout { padding-bottom: 3rem; }
.article-hero { padding: 2rem 0 1rem; max-width: 760px; }
.article-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 0.5rem 0 1.5rem; }
.article-grid-main { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 1.5rem; }
.article-body, .article-aside { min-width: 0; }
.article-body { font-size: 1.06rem; }
.article-body p { margin-bottom: 1.15rem; }
.guide-section { margin: 0 0 1.85rem; }
.guide-section h2 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.guide-section h3 { font-family: var(--sans); font-size: 1.05rem; margin: 0 0 0.35rem; }
.guide-section ul { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.guide-section li { margin: 0.4rem 0; }
.guide-dl { display: grid; gap: 0.85rem; margin: 0; }
.guide-dl > div { background: rgba(255,255,255,0.65); border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 1rem; }
.guide-dl dt { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.25rem; }
.guide-dl dd { margin: 0; }
.guide-steps { margin: 0; padding-left: 1.2rem; }
.guide-steps > li { margin-bottom: 1rem; }
.guide-variations { display: grid; gap: 0.75rem; }
.guide-variation { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; background: rgba(255,255,255,0.7); }
.guide-variation p { margin: 0; }
.inline-checklist { background: var(--bg-2); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.5rem; }
.inline-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.inline-checklist-head h2 { margin: 0; }
.inline-checklist ul { list-style: none; padding: 0; margin: 0; }
.inline-checklist li { margin: 0.45rem 0; }
.article-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
@media print {
  .site-header, .site-footer, .article-aside, .article-actions, .ks-ad-slot, .ad-wrap,
  .no-print, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; }
  .article-grid-main { grid-template-columns: 1fr; }
  .article-body { font-size: 12pt; }
  .article-image { max-height: 220px; }
  .printable, .inline-checklist, .plan-result, .occasion-result, [data-checklist-tool] {
    break-inside: avoid;
  }
  .inline-checklist, .plan-result, .occasion-result, [data-checklist-tool] {
    border: 1px solid #333; background: #fff; border-radius: 0; padding: 0.5rem 0;
  }
  body[data-print-mode="checklist"] .article-hero,
  body[data-print-mode="checklist"] .article-image,
  body[data-print-mode="checklist"] .guide-section,
  body[data-print-mode="checklist"] .article-aside,
  body[data-print-mode="checklist"] .section,
  body[data-print-mode="checklist"] .page-hero,
  body[data-print-mode="checklist"] .tool-form,
  body[data-print-mode="checklist"] .inline-add,
  body[data-print-mode="checklist"] .idea-day-actions,
  body[data-print-mode="plan"] .page-hero,
  body[data-print-mode="plan"] .tool-form,
  body[data-print-mode="plan"] .idea-day-actions,
  body[data-print-mode="plan"] .ad-wrap,
  body[data-print-mode="plan"] .tool-explainer,
  body[data-print-mode="occasion"] .page-hero,
  body[data-print-mode="occasion"] .tool-form,
  body[data-print-mode="occasion"] .idea-day-actions,
  body[data-print-mode="occasion"] .ad-wrap,
  body[data-print-mode="occasion"] .tool-explainer,
  body[data-print-mode="occasion"] .occasion-related {
    display: none !important;
  }
  body[data-print-mode="checklist"] .inline-checklist,
  body[data-print-mode="checklist"] [data-checklist-tool],
  body[data-print-mode="plan"] .plan-result,
  body[data-print-mode="occasion"] .occasion-result {
    display: block !important;
    position: relative;
    width: 100%;
  }
}
.category-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; border-bottom: 5px solid var(--cat, var(--teal)); }
.category-banner img { width: 100%; max-height: 320px; object-fit: cover; }
.category-intro { max-width: 62rem; font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; }

.breadcrumb-nav { padding: 0.85rem 0 0; font-size: 0.85rem; }
.breadcrumb-nav ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumb-nav li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb-nav li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--line); }
.breadcrumb-nav a { color: var(--muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--teal); }
.breadcrumb-nav span[aria-current] { color: var(--ink); font-weight: 600; }

.flagship-badge {
  display: inline-flex; align-items: center; background: var(--coral); color: #fff;
  border-radius: 999px; padding: 0.15rem 0.6rem; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.flagship-layout .article-image { max-height: 520px; }

.guide-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; max-width: 34rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
.guide-toc li { margin: 0.3rem 0; }
.guide-toc a { font-weight: 600; }

.guide-callout { background: rgba(20, 122, 128, 0.08); border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0; padding: 1rem 1.2rem; }
.guide-callout h2 { color: var(--teal); font-size: 1.25rem; }

.guide-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border-radius: 12px; border: 1px solid var(--line); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
.guide-table th, .guide-table td { padding: 0.6rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--bg-2); font-weight: 700; }
.guide-table tr:last-child td { border-bottom: none; }

.guide-sources ul { padding-left: 1.2rem; }
.guide-sources a { font-weight: 600; }

.flagship-strip { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.flagship-card {
  display: grid; grid-template-rows: 150px auto; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flagship-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(28,36,34,0.12); }
.flagship-card img { width: 100%; height: 150px; object-fit: cover; }
.flagship-card > div { padding: 1rem 1.1rem 1.2rem; }
.flagship-card p { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.92rem; }

.category-flagship-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem; margin-bottom: 1.5rem;
}
.category-flagship-cta p { margin: 0.2rem 0 0; color: var(--muted); }

.methodology-band { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.methodology-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.methodology-card h3 { font-size: 1.05rem; }

.tool-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0.8rem; padding: 1.2rem; align-items: end; }
.tool-form label, .stack-label, .contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.idea-result, .plan-result { margin: 1rem; padding: 1.2rem; }
.tool-explainer { color: var(--muted); max-width: 68ch; margin: 0 1.2rem 1rem; }
.tool-panel > .tool-explainer:first-child { margin-top: 1.2rem; }

.occasion-form { grid-template-columns: repeat(3, 1fr); }
.occasion-form button { grid-column: span 1; }
@media (max-width: 720px) { .occasion-form { grid-template-columns: 1fr; } }

.guide-match-card { display: block; margin: 1rem 0 0; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; color: inherit; }
.guide-match-card:hover { border-color: var(--teal); }
.guide-match-title { font-weight: 700; margin: 0.15rem 0 0.2rem; color: var(--teal); }
.guide-match-excerpt { margin: 0; color: var(--muted); }

.plan-guide-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 0.75rem 0; background: #fff; }
.plan-guide-card h3 { margin: 0.1rem 0 0.3rem; font-size: 1.1rem; }
.plan-guide-meta { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0; }
.plan-guide-cost { font-weight: 600; margin: 0.2rem 0 0.5rem; }
.plan-budget-note { color: var(--muted); }

.occasion-result { margin: 1rem; padding: 1.2rem; }
.occasion-who, .occasion-people-note { color: var(--muted); }
.occasion-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 1rem 0; }
.occasion-block { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1rem; background: #fff; }
.occasion-block h3 { margin-top: 0; font-size: 1rem; color: var(--teal); }
.occasion-related h3 { font-size: 1.15rem; }
@media (max-width: 720px) { .occasion-grid { grid-template-columns: 1fr; } }
.builder-list { list-style: none; padding: 0 1.2rem; margin: 0; }
.builder-list li { display: flex; gap: 0.6rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.inline-add { display: flex; gap: 0.5rem; padding: 1rem 1.2rem; }
.contact-form { display: grid; gap: 0.8rem; max-width: 560px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.45rem 0.85rem; font: inherit; cursor: pointer; }
.chip.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.search-page-form { display: flex; gap: 0.5rem; max-width: 640px; }
.search-page-form input { flex: 1; }
.saved-block { margin-bottom: 1.5rem; }
.saved-block ul { padding-left: 1.1rem; }
.notice-ok { background: #e5f5ea; border: 1px solid #9dcea9; padding: 0.8rem 1rem; border-radius: 12px; }
.prose { max-width: 720px; }
.about-image { border-radius: var(--radius); margin-bottom: 1.25rem; }

.ks-ad-slot { margin: 1rem 0; display: grid; gap: 0.75rem; }
.ks-ad {
  display: grid; gap: 0.25rem; padding: 0.9rem 1rem; border-radius: 14px;
  border: 1px dashed rgba(11, 79, 84, 0.35); background: rgba(255,255,255,0.7);
  text-decoration: none; color: inherit; position: relative;
}
.ks-ad--banner img { width: 100%; border-radius: 10px; max-height: 120px; object-fit: cover; }
.ks-ad-title { color: var(--teal); }
.ks-ad-label { position: absolute; top: 0.45rem; right: 0.6rem; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ad-wrap { padding: 0.25rem 0 0.5rem; }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); background: #1c2a29; color: #e8efe9; }
.site-footer a { color: #d7ebe8; text-decoration: none; display: block; margin: 0.25rem 0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.25rem; padding: 2rem 0 1rem; }
.footer-logo { filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 0.6rem; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.12); padding: 0.9rem 0 1.4rem; color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-copy a { display: inline; color: #e8c97a; text-decoration: none; }
.footer-copy a:hover { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 0.6rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 960px) {
  .nav-primary, .header-search { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-bar { padding-bottom: 0.7rem; }
  .mobile-nav.is-open { display: flex; }
  .cat-grid, .article-grid, .tool-grid, .footer-grid, .why-grid, .article-grid-main,
  .flagship-strip, .methodology-band { grid-template-columns: 1fr; }
  .planner-form { grid-template-columns: 1fr; }
  .tool-form { grid-template-columns: 1fr; }
  .idea-day-card { flex-direction: column; align-items: flex-start; }
  .hero-content { margin-left: auto; }
}
