:root {
  color-scheme: light;
  --paper: #f8f6ed;
  --canvas: #fffdf7;
  --ink: #242a20;
  --muted: #606558;
  --line: #dad9ca;
  --moss: #313e2b;
  --lime: #e5edbe;
  --warm: #efe9d9;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
:focus-visible { outline: 3px solid #6c842f; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.header { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font: 700 26px/1 var(--display); letter-spacing: -.045em; }
.brand-mark { display: inline-grid; place-items: center; position: relative; width: 36px; height: 36px; border-radius: 11px; background: var(--moss); color: var(--lime); }
.brand-mark::before { content: ""; width: 16px; height: 10px; border: 1.5px solid currentColor; border-radius: 1px 1px 4px 4px; transform: translateY(3px); }
.brand-mark::after { content: ""; position: absolute; top: 8px; left: 13px; width: 10px; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.header nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.head-action { justify-self: end; }
.button { border: 1px solid transparent; display: inline-flex; gap: 15px; align-items: center; justify-content: center; min-height: 47px; padding: 10px 17px; border-radius: 9px; font-weight: 650; line-height: 1.25; }
.button:hover { text-decoration: none; }
.primary { background: var(--moss); color: #fffef3; }
.primary:hover { background: #46563a; }
.outline { border-color: var(--line); background: transparent; color: var(--ink); }
.outline:hover { background: var(--warm); }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; gap: 48px; align-items: center; padding-block: 45px 62px; }
.hero-copy { padding-block: 22px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; font-weight: 720; color: #4b5940; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #83924a; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(49px, 5.42vw, 80px); line-height: .99; margin-block: 18px 22px; }
h1 em { font-weight: inherit; color: #586744; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.07; }
.intro { font-size: 17px; color: var(--muted); max-width: 420px; margin-bottom: 26px; }
.hero-visual { position: relative; min-height: 365px; aspect-ratio: 1.31; border-radius: 18px; background: #e9dfb1; overflow: hidden; isolation: isolate; }
.hero-visual img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 63% 50%; }
.mini-plan { position: absolute; left: 21px; bottom: 20px; width: min(257px, calc(100% - 42px)); border-radius: 12px; background: #fffdf5; box-shadow: 0 12px 32px #33280e25; padding: 13px 14px 11px; }
.mini-top, .mini-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; font-size: 12px; }
.mini-top > :first-child { font-weight: 700; }
.mini-dot { background: var(--lime); font-weight: 630; padding: 3px 7px; border-radius: 5px; }
.mini-total { display: flex; gap: 9px; align-items: baseline; padding-block: 9px 8px; }
.mini-total strong { font: 600 37px/.95 var(--display); white-space: nowrap; }
.mini-total span, .mini-bottom { color: var(--muted); font-size: 12px; }
.mini-bottom { padding-top: 8px; border-top: 1px solid var(--line); }
.start-section { background: #eceee1; border-block: 1px solid #e1e4d4; padding-block: 42px 46px; scroll-margin-top: 16px; }
.start-heading { display: grid; grid-template-columns: 1fr minmax(240px, 290px); align-items: end; gap: 25px; margin-bottom: 24px; }
.start-heading h2, .section-summary h2 { margin-top: 9px; }
.start-heading > p, .how-grid p, .journal article p:not(.eyebrow), .subhead, .muted { color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.entry { display: grid; grid-template-columns: 52px 1fr auto; gap: 15px; align-items: center; text-align: left; min-height: 98px; border: 1px solid #daddce; border-radius: 12px; padding: 16px; background: var(--canvas); color: var(--ink); }
.entry:hover { border-color: #788a5d; background: #fffef9; }
.entry[aria-pressed="true"] { border-color: #788a5d; box-shadow: inset 0 0 0 1px #788a5d; }
.entry strong, .entry small { display: block; }
.entry strong { font-size: 17px; }
.entry small { color: var(--muted); font-size: 13px; }
.entry-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9px; font-size: 24px; line-height: 1; color: #3d4b31; background: #e9edd7; }
.store-icon { color: #625736; background: #f3e9ce; }
.arrow { font-size: 22px; font-weight: 500; color: #556745; }
.how { padding-block: 60px; display: grid; grid-template-columns: .78fr 1.5fr; gap: 36px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid > div { border-top: 1px solid var(--line); padding-top: 12px; }
.step { color: #516143; font-size: 12px; font-weight: 650; }
.how-grid h3 { font-size: 16px; margin-block: 6px; }
.how-grid p { font-size: 14px; }
.journal { background: var(--warm); padding-block: 42px; }
.journal-layout { display: grid; grid-template-columns: .78fr 1.5fr; gap: 36px; }
.journal-list { display: grid; gap: 16px; }
.journal article { padding: 22px; background: var(--canvas); border: 1px solid var(--line); border-radius: 13px; }
.journal article h3 { font-family: var(--display); font-size: 28px; line-height: 1.15; margin-block: 8px; font-weight: 550; }
.journal article h3 a { text-decoration: none; color: inherit; }
.journal article h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-button { padding: 0; border: 0; background: transparent; color: #3b5131; font-weight: 700; margin-top: 12px; }
.journal .text-button { display: inline-block; text-decoration: none; }
.footer { display: flex; gap: 15px 25px; padding-block: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer p, .footer > a:last-child { color: var(--muted); font-size: 13px; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); color: var(--ink); width: min(640px, calc(100% - 28px)); padding: clamp(16px, 4vw, 30px); max-height: calc(100dvh - 28px); }
dialog::backdrop { background: #20271dbb; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.close { border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; font: 25px/1 var(--sans); background: transparent; color: var(--ink); }
dialog h2 { font-size: clamp(27px, 4vw, 42px); margin-block: 12px; }
dialog p { margin-block: 12px; }
table { text-align: left; width: 100%; border-collapse: collapse; font-size: 14px; }
table th, table td { padding: 8px 5px; border-bottom: 1px solid var(--line); }
.workspace { margin-top: 16px; padding: clamp(15px, 3vw, 26px); border: 1px solid #daddce; border-radius: 14px; background: var(--canvas); }
.workspace h3 { font-size: clamp(22px, 3vw, 34px); line-height: 1.12; font-family: var(--display); font-weight: 550; margin-block: 8px; }
.workspace h4 { margin-block: 18px 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 16px; }
.figure { border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: #f5f4eb; }
.figure strong { display: block; font: 650 clamp(19px, 3.5vw, 34px)/1.15 var(--display); white-space: nowrap; }
.figure span { display: block; color: var(--muted); font-size: 12px; }
.figure.good { background: var(--lime); }
.callout { border-radius: 8px; background: #f3eddd; padding: 11px 13px; margin-block: 12px; }
.settings { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 13px; }
.settings label { display: flex; align-items: center; gap: 8px; }
.settings input[type="number"] { color: var(--ink); width: 110px; min-height: 37px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.settings input[type="checkbox"], .items input { accent-color: var(--moss); }
.items { margin: 12px 0; padding: 0; list-style: none; }
.items li { display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: center; min-height: 45px; padding-block: 7px; border-top: 1px solid var(--line); }
.items label { display: flex; align-items: center; gap: 3px; font-size: 13px; }
.plan-card { margin-block: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.plan-card strong { color: var(--moss); }
.plan-card ul { padding-left: 20px; margin-block: 8px; }
.plan-total { font-size: 18px; font-weight: 700; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 24px; padding-block: 30px 36px; }
  .hero-visual { min-height: 330px; }
  .how { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 30px); }
  .header { height: 61px; grid-template-columns: 1fr auto; }
  .header nav { display: none; }
  .brand { font-size: 22px; gap: 8px; }
  .head-action { min-height: 37px; padding: 7px 10px; gap: 6px; font-size: 12px; }
  .hero, .start-heading, .entry-grid, .journal-layout { grid-template-columns: 1fr; }
  .hero { gap: 16px; padding-block: 18px 25px; }
  .hero-copy { padding-block: 10px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.25; }
  h1 { font-size: clamp(42px, 11vw, 62px); }
  .intro { font-size: 16px; margin-bottom: 19px; }
  .start-section, .how, .journal { padding-block: 28px; }
  .start-heading { gap: 9px; margin-bottom: 15px; }
  .entry-grid { gap: 8px; }
  .entry { min-height: 77px; padding: 10px; gap: 8px; grid-template-columns: 47px 1fr auto; }
  .entry-icon { width: 42px; height: 42px; }
  .how-grid { grid-template-columns: 1fr; gap: 12px; }
  .journal-layout { gap: 12px; }
  .items li { grid-template-columns: 1fr 1fr; gap: 2px; }
  .items li > span { grid-column: 1 / -1; }
  .figure { padding: 7px; }
  .figures { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
