:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #efede7;
  --text: #1f1f1c;
  --muted: #6f6d66;
  --line: #dedbd3;
  --accent: #1f1f1c;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(25, 25, 20, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.public-nav { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 14px; }
.public-nav a:hover { color: var(--text); }
.private-entry { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: rgba(255,255,255,.65); }

.public-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto 100px; }
.hero { padding: 110px 0 130px; max-width: 820px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: .98; letter-spacing: -0.06em; margin: 0; max-width: 900px; }
.hero-copy { margin: 28px 0 0; max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.public-section { padding: 70px 0; border-top: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 32px; letter-spacing: -0.035em; }
.feature-card { margin-top: 32px; border-radius: 28px; padding: 34px; min-height: 280px; display: flex; justify-content: space-between; align-items: flex-end; background: var(--surface); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 38px; margin: 8px 0 10px; letter-spacing: -0.04em; }
.feature-card p { max-width: 560px; color: var(--muted); line-height: 1.65; }
.card-kicker { margin: 0; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.text-link { font-size: 13px; color: var(--muted); }
.thought-list { display: grid; gap: 12px; margin-top: 28px; }
.thought-list article { background: var(--surface); padding: 22px 24px; border-radius: 18px; font-size: 19px; line-height: 1.45; }
.taste-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.taste-card { min-height: 220px; padding: 24px; background: var(--surface); border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.taste-card span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.taste-card p { margin: 0; max-width: 240px; font-size: 18px; line-height: 1.45; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split-section > p { margin: 0; font-size: 20px; color: var(--muted); line-height: 1.7; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(246,244,239,.94); backdrop-filter: blur(16px); }
.app-nav { display: grid; gap: 5px; margin-top: 34px; }
.app-nav a { padding: 10px 12px; color: var(--muted); border-radius: 11px; font-size: 14px; }
.app-nav a:hover, .app-nav a.active { background: var(--surface); color: var(--text); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.ghost-button { width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; color: var(--muted); border-radius: 9px; font-size: 13px; }
.ghost-button:hover { background: var(--surface-soft); color: var(--text); }

.workspace { width: min(980px, calc(100% - 56px)); margin: 0 auto; padding: 48px 0 90px; }
.workspace-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.workspace-header h1 { margin: 0; font-size: 52px; letter-spacing: -0.05em; }
.date-chip, .status-pill { font-size: 11px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); border-radius: 999px; padding: 8px 10px; }
.status-pill.muted { background: var(--surface-soft); }

.ai-composer { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.ai-composer textarea { width: 100%; resize: vertical; min-height: 78px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 18px; line-height: 1.5; }
.ai-composer textarea::placeholder { color: #9a978f; }
.composer-actions { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.attachment-actions { display: flex; gap: 8px; }
.mini-button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.primary-button { border: 0; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 11px; font-size: 13px; }
.composer-status { margin: 10px 0 0; min-height: 18px; color: var(--muted); font-size: 12px; }

.workspace-section { margin-top: 34px; }
.section-heading.compact h2 { font-size: 24px; }
.focus-card, .project-card, .panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.focus-card { margin-top: 16px; padding: 24px; }
.focus-main, .project-topline { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.focus-main h3, .project-topline h3 { margin: 5px 0 0; font-size: 26px; letter-spacing: -0.03em; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.focus-grid div { background: var(--surface-soft); padding: 16px; border-radius: 14px; }
.focus-grid span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.focus-grid strong { font-size: 14px; line-height: 1.5; }
.project-card { margin-top: 16px; padding: 24px; }
.project-topline p { color: var(--muted); line-height: 1.55; max-width: 620px; }
.stage-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.stage-track span { border-top: 2px solid var(--line); padding-top: 10px; font-size: 12px; color: #9a978f; }
.stage-track .done { border-color: #77746d; color: var(--muted); }
.stage-track .current { border-color: var(--text); color: var(--text); font-weight: 700; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 22px; }
.continue-item, .simple-list-item { margin-top: 18px; }
.continue-item h3, .simple-list-item h3 { margin: 0 0 8px; font-size: 18px; }
.continue-item p, .simple-list-item p, .quiet-state p { color: var(--muted); line-height: 1.6; }
.text-button { border: 0; background: transparent; padding: 0; color: var(--text); font-weight: 700; font-size: 13px; }
.quiet-state { margin-top: 18px; border: 1px dashed var(--line); border-radius: 14px; padding: 18px; }
.recent-list { margin-top: 16px; display: grid; }
.recent-list article { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.recent-list span { color: var(--muted); font-size: 13px; }
.placeholder-section { margin-top: 18px; padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); }
.placeholder-section span { color: var(--text); font-weight: 700; }
.placeholder-section p { margin: 0; }

.project-link-card { display: block; transition: transform .16s ease, box-shadow .16s ease; }
.project-link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card-action { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.project-workspace { width: min(1040px, calc(100% - 56px)); }
.project-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.project-breadcrumb strong { color: var(--text); }
.project-hero { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.project-hero h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.055em; }
.project-purpose { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.project-current-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.project-current-grid article { min-height: 128px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.project-current-grid span, .context-line span, .recent-completed > span { color: var(--muted); font-size: 11px; }
.project-current-grid strong { max-width: 380px; font-size: 15px; line-height: 1.5; }
.project-composer { margin-top: 22px; }
.context-line { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 11px; }
.project-top-grid { margin-top: 34px; }
.open-loop-list { display: grid; margin-top: 14px; }
.open-loop-list article { display: grid; gap: 5px; padding: 13px 0; border-top: 1px solid var(--line); }
.open-loop-list article:first-child { border-top: 0; }
.open-loop-list strong { font-size: 14px; }
.open-loop-list span { color: var(--muted); font-size: 11px; }
.stage-track-five { grid-template-columns: repeat(5, 1fr); }
.expanded-progress { margin-top: 16px; }
.recent-completed { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.recent-completed div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.recent-completed strong { padding: 8px 10px; border-radius: 999px; background: var(--surface-soft); font-size: 11px; font-weight: 600; }
.project-note-list { display: grid; gap: 14px; margin-top: 18px; }
.project-note-list article { padding-top: 14px; border-top: 1px solid var(--line); }
.project-note-list article:first-child { border-top: 0; padding-top: 0; }
.project-note-list strong { font-size: 15px; }
.project-note-list p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.decision-list { display: grid; margin-top: 14px; }
.decision-list article { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.decision-list article:first-child { border-top: 0; }
.decision-list span { color: var(--muted); font-size: 11px; }
.decision-list strong { font-size: 13px; line-height: 1.45; }
.bordered-item { padding-top: 16px; border-top: 1px solid var(--line); }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.resource-grid article { min-height: 92px; padding: 14px; border-radius: 14px; background: var(--surface-soft); display: flex; flex-direction: column; justify-content: space-between; }
.resource-grid span { color: var(--muted); font-size: 11px; }
.resource-grid strong { font-size: 14px; }
.growth-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.growth-flow article { min-height: 132px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.45); display: flex; flex-direction: column; justify-content: space-between; }
.growth-flow article.current { background: var(--surface); box-shadow: var(--shadow); }
.growth-flow span { color: var(--muted); font-size: 11px; }
.growth-flow strong { font-size: 14px; line-height: 1.4; }

@media (max-width: 800px) {
  .public-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { padding: 70px 0 90px; }
  .taste-grid, .split-section, .workspace-grid, .focus-grid, .project-current-grid { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .app-nav { display: flex; overflow-x: auto; margin-top: 16px; }
  .sidebar-foot { display: none; }
  .workspace, .project-workspace { width: min(100% - 32px, 1040px); padding-top: 28px; }
  .workspace-header h1 { font-size: 42px; }
  .date-chip { display: none; }
  .composer-actions, .focus-main, .project-topline, .recent-list article, .project-hero, .recent-completed { align-items: stretch; flex-direction: column; }
  .stage-track, .stage-track-five { grid-template-columns: 1fr 1fr; }
  .recent-completed div { justify-content: flex-start; }
  .growth-flow { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .growth-flow, .resource-grid { grid-template-columns: 1fr; }
  .project-current-grid article { min-height: 104px; }
}
