:root {
  --ink: #20332d;
  --ink-soft: #52665e;
  --paper: #f6f5f0;
  --surface: #fffef9;
  --surface-alt: #edf1eb;
  --line: #dbe1da;
  --moss: #3f6758;
  --moss-dark: #2f5145;
  --moss-soft: #dce9e1;
  --gold: #c79855;
  --danger: #9d493d;
  --shadow: 0 12px 38px rgba(42, 58, 51, 0.08);
}

* { box-sizing: border-box; }

html { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 88% -10%, rgba(199, 152, 85, 0.09), transparent 26rem), var(--paper); }
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header { border-bottom: 1px solid rgba(32, 51, 45, 0.1); background: rgba(246, 245, 240, 0.88); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.nav-shell { max-width: 1180px; min-height: 68px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark, .empty-loop { display: inline-block; width: 28px; height: 18px; border: 2px solid var(--moss); border-radius: 50%; position: relative; transform: rotate(-8deg); }
.brand-mark::after, .empty-loop::after { content: ""; position: absolute; inset: -2px 7px -2px 7px; border: 2px solid var(--moss); border-radius: 50%; transform: rotate(16deg); }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.primary-nav a { padding: 10px 13px; border-radius: 9px; color: var(--ink-soft); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a.active { color: var(--ink); background: rgba(63, 103, 88, 0.09); }
.nav-shell form { margin-left: auto; }

.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1, .project-hero h1, .auth-card h1 { margin: 5px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.page-heading h1 { font-size: clamp(2.25rem, 4vw, 3.45rem); }
.eyebrow { margin: 0 0 6px; color: var(--moss); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.lede { margin: 0; max-width: 680px; color: var(--ink-soft); font-size: 1.07rem; line-height: 1.65; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.count-note { margin: 0 0 9px; color: var(--ink-soft); white-space: nowrap; }
.count-note strong { color: var(--ink); font-size: 1.45rem; }

.flash { margin: -24px 0 28px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.flash.notice { border-left: 4px solid var(--moss); }
.flash.alert { border-left: 4px solid var(--danger); }

.capture-panel { padding: 26px; border: 1px solid #d5ded6; border-radius: 17px; background: linear-gradient(135deg, #eaf0e9, #f2f2ec); }
.capture-panel h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.capture-form { display: flex; gap: 10px; }
.capture-form input[type="text"] { flex: 1; min-width: 0; padding: 15px 16px; border: 1px solid #cdd7cf; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 0 rgba(32, 51, 45, 0.02); }
.capture-form input[type="text"]:focus, .field input:focus, .field textarea:focus { outline: 3px solid rgba(63, 103, 88, 0.16); border-color: var(--moss); }
.form-hint { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; }

.primary-button, .secondary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary-button { padding: 13px 19px; border: 1px solid var(--moss); background: var(--moss); color: white; box-shadow: 0 3px 9px rgba(47, 81, 69, 0.18); }
.primary-button:hover { background: var(--moss-dark); }
.secondary-button { padding: 10px 15px; border: 1px solid #cbd4cd; background: var(--surface); color: var(--ink); }
.secondary-button:hover { border-color: var(--moss); }
.quiet-button { padding: 8px 10px; border: 0; background: transparent; color: var(--ink-soft); font-size: 0.85rem; }
.quiet-button:hover { color: var(--ink); background: rgba(63, 103, 88, 0.08); }
.full-width { width: 100%; }

.section-block { margin-top: 46px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.section-heading span { color: var(--ink-soft); font-size: 0.78rem; }
.item-list { border-bottom: 1px solid var(--line); }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 4px; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row h3 { margin: 0 0 5px; font-size: 1rem; }
.item-row p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }
.item-list.compact .item-row { justify-content: flex-start; }
.action-icon { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-dark); font-size: 0.77rem; font-weight: 800; }

.empty-state { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; border: 1px dashed #cad3cb; border-radius: 16px; background: rgba(255, 254, 249, 0.45); }
.empty-state .empty-loop { width: 45px; height: 28px; margin-bottom: 18px; opacity: 0.7; }
.empty-state h3, .inline-empty h3 { margin: 0 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.empty-state p, .inline-empty p { margin: 0 0 20px; color: var(--ink-soft); }

.narrow-page { max-width: 720px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--ink-soft); font-size: 0.86rem; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.capture-quote { margin: 20px 0 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(255, 254, 249, 0.7); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; line-height: 1.5; }
.stack-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label, .choice-set legend { color: var(--ink); font-size: 0.87rem; font-weight: 750; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd4cd; border-radius: 9px; background: var(--surface); color: var(--ink); resize: vertical; }
.choice-set { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; }
.choice-set legend { grid-column: 1 / -1; margin-bottom: 2px; }
.choice-card { display: flex; align-items: flex-start; gap: 11px; padding: 17px; border: 1px solid #ccd5ce; border-radius: 12px; background: var(--surface); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); background: #f7fbf7; }
.choice-card input { margin-top: 3px; accent-color: var(--moss); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 4px; color: var(--ink-soft); line-height: 1.45; }
.form-actions { display: flex; align-items: center; gap: 18px; }
.subtle-link { color: var(--ink-soft); font-size: 0.88rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: block; min-height: 235px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-decoration: none; box-shadow: 0 2px 0 rgba(32, 51, 45, 0.02); transition: transform 150ms ease, box-shadow 150ms ease; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card-top, .status-line { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8f9b94; }
.status-dot.active, .status-dot.started { background: var(--moss); box-shadow: 0 0 0 4px var(--moss-soft); }
.status-dot.blocked { background: var(--danger); }
.project-card h2 { margin: 23px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.project-card > p { min-height: 52px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.project-card-foot { display: flex; justify-content: space-between; margin-top: 24px; color: var(--ink-soft); font-size: 0.82rem; }
.project-card-foot strong { color: var(--moss); }

.project-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 38px; margin-bottom: 48px; }
.project-hero-copy { max-width: 700px; }
.project-hero h1 { margin-top: 14px; }
.trust-note { max-width: 305px; padding: 17px 18px; border: 1px solid #d3dbd4; border-radius: 12px; background: var(--surface-alt); }
.trust-note strong, .trust-note span { display: block; }
.trust-note strong { margin-bottom: 5px; font-size: 0.84rem; }
.trust-note span { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); gap: 48px; }
.project-layout .section-block { margin-top: 0; }
.planning-panel { margin-top: 38px; }
.inline-empty { padding: 32px 4px 18px; }
.history-panel { padding-left: 24px; border-left: 1px solid var(--line); }
.timeline { margin: 8px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 12px; padding: 16px 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 29px; bottom: -8px; width: 1px; background: var(--line); }
.timeline-mark { width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--moss); border-radius: 50%; background: var(--paper); z-index: 1; }
.timeline strong { font-size: 0.85rem; }
.timeline p { margin: 3px 0; color: var(--ink-soft); font-size: 0.8rem; }
.timeline time { color: #75847e; font-size: 0.72rem; }
.muted-copy { color: var(--ink-soft); font-size: 0.85rem; }

.auth-shell { min-height: calc(100vh - 200px); display: grid; place-items: center; }
.auth-card { width: min(100%, 460px); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.5rem; }
.auth-card .lede { margin-bottom: 28px; font-size: 0.98rem; }
.auth-card .subtle-link { display: block; margin-top: 20px; text-align: center; }

@media (max-width: 760px) {
  .nav-shell { min-height: 62px; padding: 0 16px; gap: 10px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 23px; height: 15px; }
  .primary-nav { margin-left: auto; }
  .primary-nav a { padding: 8px 9px; font-size: 0.82rem; }
  .nav-shell form { margin-left: 0; }
  .quiet-button { font-size: 0; width: 34px; height: 34px; }
  .quiet-button::after { content: "↗"; font-size: 1rem; }
  .page-shell { width: min(100% - 28px, 1120px); padding-top: 36px; }
  .split-heading, .project-hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .capture-form { flex-direction: column; }
  .capture-form .primary-button { width: 100%; }
  .choice-set, .project-grid, .project-layout { grid-template-columns: minmax(0, 1fr); }
  .project-layout > *, .history-panel, .capture-panel { min-width: 0; }
  .project-layout { gap: 44px; }
  .history-panel { padding-left: 0; border-left: 0; }
  .trust-note { max-width: none; width: 100%; }
  .project-card { min-height: 0; }
  .item-row { align-items: flex-start; }
  .auth-card { padding: 28px 22px; }
}
