:root {
  --cream: #faf8ec;
  --paper: #fffefa;
  --ink: #2d2d2d;
  --muted: #666;
  --indigo: #6b6dd6;
  --indigo-dark: #5658bd;
  --mint: #c8e6de;
  --mint-pale: #eef8f4;
  --peach: #fbe0d8;
  --butter: #f7edbd;
  --line: #e5dfc8;
  --shadow: 0 20px 60px rgba(77, 69, 45, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(200, 230, 222, .48), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(247, 237, 189, .5), transparent 26rem),
    var(--cream);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(229, 223, 200, .8);
  background: rgba(255, 254, 250, .88);
  backdrop-filter: blur(16px);
}
.nav-wrap, .page-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.nav-wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--indigo); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--indigo);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(107, 109, 214, .2);
  transition: transform .18s ease, background .18s ease;
}
.button:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.button.secondary { color: var(--indigo); background: white; border: 1px solid var(--line); box-shadow: none; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(107, 109, 214, .3);
  outline-offset: 3px;
}

.eyebrow { margin: 0 0 10px; color: var(--indigo); font-size: 12px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.hero { padding: 72px 0 42px; text-align: center; }
.hero h1 { max-width: 900px; margin: 0 auto 18px; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.hero .lede { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-art { overflow: hidden; margin: 34px auto 0; border: 8px solid white; border-radius: 28px; box-shadow: var(--shadow); }
.hero-art img { width: 100%; aspect-ratio: 16 / 8.3; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 22px; color: var(--muted); font-size: 14px; }

.tool-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 28px; align-items: start; padding: 18px 0 70px; }
.panel { border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 254, 250, .95); box-shadow: var(--shadow); }
.form-panel { padding: clamp(22px, 4vw, 34px); }
.form-panel h2, .result-panel h2 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.2; }
.form-panel > p, .result-panel > p { margin-top: 0; color: var(--muted); }
.field { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #d7d0b8;
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--ink);
  background: white;
}
textarea { min-height: 82px; resize: vertical; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.result-panel { position: sticky; top: 94px; min-height: 390px; overflow: hidden; }
.result-head { padding: 28px 30px 22px; background: linear-gradient(135deg, var(--mint-pale), #f2efff); border-bottom: 1px solid var(--line); }
.result-body { padding: 28px 30px 32px; }
.result-empty { color: var(--muted); }
.result-kicker { color: var(--indigo); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.result-big { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.result-copy { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.stat { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: white; }
.stat strong { display: block; font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.stat span { color: var(--muted); font-size: 11px; }
.punch-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.punch {
  width: 24px;
  height: 24px;
  border: 2px solid var(--indigo);
  border-radius: 50%;
  background: transparent;
  transition: transform .2s ease, background .2s ease;
}
.punch.filled { background: var(--indigo); box-shadow: inset 0 0 0 4px #dadbfd; transform: rotate(-8deg); }
.plan-box { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.plan-box p { margin: 0; }
.plan-box ul { margin-bottom: 0; padding-left: 20px; }
.date-grid, .challenge-grid { display: grid; gap: 8px; margin-top: 18px; }
.date-grid { grid-template-columns: repeat(3, 1fr); }
.challenge-grid { grid-template-columns: repeat(6, 1fr); }
.date-chip { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: white; text-align: center; }
.date-chip strong { display: block; color: var(--indigo); }
.date-chip span { display: block; color: var(--muted); font-size: 11px; }
.day-check {
  aspect-ratio: 1;
  border: 1.5px solid #d7d0b8;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-weight: 800;
  cursor: pointer;
}
.day-check.done { border-color: var(--indigo); background: var(--indigo); color: white; }
.disclaimer { margin-top: 18px; color: var(--muted); font-size: 12px; }

.content-section { padding: 66px 0; }
.content-section.tint { background: rgba(238, 248, 244, .7); border-block: 1px solid rgba(229, 223, 200, .7); }
.content-narrow { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.content-narrow h2 { margin: 36px 0 12px; font-size: clamp(1.55rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.025em; }
.content-narrow h3 { margin: 28px 0 8px; font-size: 1.2rem; }
.content-narrow p, .content-narrow li { color: #555; }
.content-narrow strong { color: var(--ink); }
.content-narrow a { color: var(--indigo-dark); font-weight: 700; }
.inline-cta { margin: 42px 0 0; padding: 26px; border-radius: 22px; color: white; background: var(--indigo); }
.inline-cta h2, .inline-cta h3 { margin-top: 0; color: white; }
.inline-cta p { color: rgba(255, 255, 255, .8); }
.inline-cta .button { color: var(--indigo); background: white; }
.callout { margin: 28px 0; border-left: 5px solid var(--indigo); border-radius: 0 18px 18px 0; padding: 18px 22px; background: var(--mint-pale); }
.callout p { margin: 0; }

.article-shell { padding: 56px 0 80px; }
.breadcrumb { margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.article-header h1 { max-width: 880px; margin: 0; font-size: clamp(2.45rem, 7vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; }
.article-header .lede { max-width: 740px; margin: 20px 0 0; color: var(--muted); font-size: 1.2rem; }
.article-header .meta { justify-content: flex-start; }
.article-hero { overflow: hidden; margin: 36px 0 42px; border-radius: 26px; background: var(--mint-pale); box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.article-body { width: min(740px, 100%); }
.article-body > p:first-child { color: #454545; font-size: 1.15rem; }
.article-body h2 { margin: 42px 0 14px; font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: 1.18; letter-spacing: -.025em; }
.article-body h3 { margin: 28px 0 8px; }
.article-body p, .article-body li { color: #555; }
.article-body a { color: var(--indigo-dark); font-weight: 700; }
.article-body li + li { margin-top: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.related-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: white; text-decoration: none; }
.related-card:hover { border-color: var(--indigo); }

.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 74px; }
.hub-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 12px 36px rgba(77, 69, 45, .07); }
.hub-card img { width: 100%; height: 220px; object-fit: cover; }
.hub-card-body { padding: 26px; }
.hub-card h2, .hub-card h3 { margin: 6px 0 10px; line-height: 1.18; }
.hub-card p { color: var(--muted); }
.hub-card a { color: var(--indigo-dark); font-weight: 800; text-decoration: none; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 760px) {
  .nav-links a:not(.button) { display: none; }
  .hero { padding-top: 52px; }
  .tool-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: 0; }
  .field-row, .stats, .date-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: repeat(5, 1fr); }
  .hub-grid, .related-grid { grid-template-columns: 1fr; }
  .article-shell { padding-top: 38px; }
  .article-hero { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .hero .button, .form-panel, .content-section, .print-hide { display: none !important; }
  body { background: white; }
  .tool-layout { display: block; padding: 0; }
  .result-panel { position: static; border: 0; box-shadow: none; }
  .page-wrap { width: 100%; }
}
