:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --paper: #ffffff;
  --ink: #172019;
  --muted: #637066;
  --line: #dfe5df;
  --soft: #edf2ec;
  --soft-2: #f0f4ef;
  --accent: #376449;
  --accent-dark: #264a34;
  --accent-ink: #ffffff;
  --danger: #8b3f3f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
button, textarea, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(55, 100, 73, .22);
  outline-offset: 2px;
}

.topbar, main, footer { width: min(920px, calc(100% - 32px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 8px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.quiet-link { color: var(--muted); font-size: .9rem; text-decoration: none; }

.hero { padding: 64px 0 48px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-size: .75rem; font-weight: 800; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2.65rem, 9vw, 5.7rem); line-height: .92; letter-spacing: -.065em; }
h2 { letter-spacing: -.035em; line-height: 1.05; }
.lede { max-width: 680px; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.section-copy { margin: 10px 0 0; max-width: 600px; color: var(--muted); line-height: 1.5; }

.capture-card { margin-top: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 12px 34px rgba(31,44,34,.06); }
.capture-card label { display: block; margin-bottom: 10px; font-weight: 750; }
textarea { width: 100%; min-height: 110px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font-size: 1.2rem; line-height: 1.45; }
textarea::placeholder, input::placeholder { color: #a5aea7; }
.capture-actions { display: flex; align-items: end; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.capture-actions > div { display: grid; gap: 4px; }
.capture-actions small, .save-status { color: var(--muted); font-size: .82rem; }
.save-status { min-height: 1.2em; }
button { border: 0; border-radius: 999px; padding: 11px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(.97); }
.secondary-button { border: 1px solid var(--line); background: var(--paper); color: var(--accent-dark); }

.focus-shelf { margin: 8px 0 42px; padding: 24px; border: 1px solid #c7d6ca; border-radius: 24px; background: linear-gradient(135deg, #eef4ee, #f9fbf8); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: center; }
.focus-shelf h2 { margin-bottom: 0; font-size: clamp(1.65rem, 4vw, 2.4rem); }
.focus-card { min-width: 0; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(55,100,73,.12); }
.focus-card strong { display: block; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.focus-card p { margin: 8px 0 14px; color: var(--muted); line-height: 1.45; }

.garden-section, .path-section { padding: 46px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.text-button { padding: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: .9rem; }
.text-button:hover { color: var(--ink); filter: none; }

.garden-toolbar { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .86rem; }
.filter-button.active { background: var(--accent); color: white; border-color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .84rem; }
.search-box input { width: min(220px, 42vw); border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; }

.empty-state { margin-top: 22px; padding: 28px; border: 1px dashed #c9d0ca; border-radius: 18px; color: var(--muted); display: grid; gap: 5px; }
.idea-list { display: grid; gap: 14px; margin-top: 22px; }
.idea-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 15px; }
.idea-card[data-stage="project"] { border-color: #a9c2b0; box-shadow: inset 4px 0 0 var(--accent); }
.idea-card[data-stage="done"] { opacity: .68; }
.idea-card[data-focused="true"] { box-shadow: 0 12px 34px rgba(55,100,73,.11); border-color: #a9c2b0; }
.idea-card-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.idea-copy { min-width: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.42; overflow-wrap: anywhere; }
.focus-button { flex: 0 0 auto; padding: 7px 11px; background: var(--soft); color: var(--muted); font-size: .8rem; }
.focus-button.active { background: var(--accent); color: white; }
.stage-nudge { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--soft-2); color: var(--muted); line-height: 1.45; font-size: .92rem; }

.nurture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nurture-field { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
.nurture-field span { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.nurture-field textarea { min-height: 72px; font-size: .95rem; line-height: 1.4; resize: vertical; }

.idea-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.idea-tool-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border-radius: 999px; background: var(--accent); color: white; text-decoration: none; font-weight: 750; font-size: .88rem; }
.idea-meta { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.idea-meta small { color: var(--muted); }
.idea-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select { max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--ink); background: var(--soft); }
.delete-button { background: transparent; color: var(--danger); padding: 8px 10px; font-size: .82rem; }
.garden-footer-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.path-section > h2 { max-width: 640px; font-size: clamp(2rem, 5vw, 3.4rem); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { min-width: 0; min-height: 195px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--paper); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #b9c6bc; }
.tool-card span { color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.tool-card strong { margin: auto 0 10px; font-size: 1.2rem; }
.tool-card p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }

.philosophy { margin: 42px 0 80px; padding: clamp(28px, 6vw, 54px); border-radius: 28px; background: #1d2a20; color: white; }
.philosophy p { color: #aebcaf; }
.philosophy h2 { margin-bottom: 0; max-width: 760px; font-size: clamp(2rem, 5vw, 3.7rem); }
footer { display: flex; gap: 20px; padding: 0 0 34px; color: var(--muted); font-size: .9rem; }

@media (max-width: 720px) {
  .topbar, main, footer { width: min(100% - 24px, 920px); }
  .topbar { padding-top: 18px; }
  .topbar-actions .quiet-link { display: none; }
  .hero { padding: 44px 0 38px; }
  .capture-card { border-radius: 20px; padding: 15px; }
  .capture-actions { align-items: stretch; flex-direction: column; }
  .capture-actions button { width: 100%; min-height: 46px; }
  .focus-shelf { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .section-heading { align-items: start; flex-direction: column; }
  .garden-toolbar { align-items: stretch; }
  .filter-row { width: 100%; }
  .search-box { width: 100%; border-radius: 14px; }
  .search-box input { width: 100%; }
  .idea-card { padding: 15px; }
  .idea-card-header { gap: 10px; }
  .nurture-grid { grid-template-columns: 1fr; }
  .idea-actions { align-items: stretch; }
  .idea-tool-link { width: 100%; }
  .idea-meta { align-items: stretch; }
  .idea-controls { width: 100%; justify-content: space-between; }
  select { flex: 1 1 170px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 150px; }
  footer { flex-wrap: wrap; }
}
