:root {
  --ink: #10251f;
  --ink-soft: #36534a;
  --paper: #f3f0e7;
  --paper-deep: #e9e4d8;
  --green: #47d58b;
  --green-bright: #9df4c2;
  --yellow: #f1cb58;
  --purple: #8f82ff;
  --line: rgba(16, 37, 31, 0.16);
  --shadow: 0 18px 60px rgba(26, 54, 45, 0.13);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 15%, rgba(71, 213, 139, .15), transparent 25%), radial-gradient(circle at 88% 12%, rgba(143, 130, 255, .11), transparent 22%);
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

a { color: inherit; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-mark svg { width: 100%; fill: var(--ink); }
.brand-mark .ghost-smile { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; }
.brand strong { display: block; font-size: 15px; letter-spacing: .12em; }
.brand small { display: block; font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; color: var(--ink-soft); }
nav { display: flex; gap: 30px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 700; }
nav a:hover { color: #16794d; }
.status-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .1em; }
.status-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(71, 213, 139, .18); }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 50px;
  padding: 65px 0 90px;
}
.eyebrow { margin: 0 0 14px; font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; color: #237c55; }
h1 { margin: 0; max-width: 720px; font-size: clamp(52px, 6.4vw, 82px); line-height: .98; letter-spacing: -.055em; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 2px var(--ink); }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: var(--ink-soft); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 30px; padding: 14px 20px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 13px; }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: #235245; }
.button.ghost:hover { background: rgba(255,255,255,.4); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 450px; }
.ghost-card { position: relative; width: min(390px, 100%); aspect-ratio: 1; display: grid; place-items: center; background: var(--ink); border-radius: 42% 58% 62% 38% / 45% 39% 61% 55%; box-shadow: var(--shadow); transform: rotate(3deg); }
.ghost-card svg { width: 77%; filter: drop-shadow(0 22px 22px rgba(0,0,0,.22)); transform: rotate(-3deg); }
.terminal-chip { position: absolute; right: -18px; bottom: 45px; padding: 13px 16px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 13px; box-shadow: 5px 5px 0 var(--ink); font: 800 12px/1 ui-monospace, monospace; transform: rotate(-2deg); }
.terminal-chip span { margin-right: 8px; }
.orbit { position: absolute; border: 1px solid rgba(16,37,31,.2); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); }
.orbit-one { width: 440px; height: 440px; animation: spin 22s linear infinite; }
.orbit-one::after { top: 18%; left: 3%; }
.orbit-two { width: 330px; height: 500px; transform: rotate(50deg); animation: spinBack 28s linear infinite; }
.orbit-two::after { right: -5px; bottom: 30%; background: var(--yellow); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinBack { from { transform: rotate(50deg); } to { transform: rotate(-310deg); } }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.today-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading time, .section-note { margin: 0; color: var(--ink-soft); font: 700 12px/1.4 ui-monospace, monospace; letter-spacing: .06em; }
.today-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.focus-card, .metric-card, .project-card { border: 1px solid var(--line); border-radius: var(--radius); }
.focus-card { padding: 38px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.card-kicker { font: 800 10px/1 ui-monospace, monospace; letter-spacing: .16em; color: var(--green-bright); }
.card-kicker span { margin-right: 7px; }
.focus-card h3 { margin: 24px 0 12px; max-width: 720px; font-size: clamp(27px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; }
.focus-card p { margin: 0; max-width: 710px; color: #b9cbc5; }
.progress-label { display: flex; justify-content: space-between; margin-top: 30px; font-size: 12px; }
.progress-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .8s ease; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.tag { padding: 6px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font: 700 10px/1 ui-monospace, monospace; color: #d6e6e0; }
.metrics { display: grid; gap: 18px; }
.metric-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 22px; background: rgba(255,255,255,.45); }
.metric-card span { color: var(--ink-soft); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.metric-card strong { font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.timeline { position: relative; margin: 50px 0 0 14px; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 64px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 52px 20px 1fr; gap: 16px; align-items: start; padding: 0 0 30px; }
.timeline time { color: var(--ink-soft); font: 700 11px/1.5 ui-monospace, monospace; }
.timeline-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin: 3px 0 0 5px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); box-shadow: 0 0 0 5px var(--paper); }
.timeline li.done .timeline-dot { background: var(--green); }
.timeline h3 { margin: -3px 0 3px; font-size: 17px; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.projects-section { width: 100%; max-width: none; padding-left: max(20px, calc((100% - 1180px) / 2)); padding-right: max(20px, calc((100% - 1180px) / 2)); background: var(--paper-deep); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { min-height: 310px; padding: 28px; background: var(--paper); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); transition: .2s ease; }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--ink); color: var(--green-bright); font: 800 17px/1 ui-monospace, monospace; }
.project-state { padding: 6px 9px; border-radius: 999px; background: rgba(71,213,139,.16); color: #176d47; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.project-card h3 { margin: 38px 0 9px; font-size: 23px; letter-spacing: -.025em; }
.project-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.project-meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font: 700 10px/1 ui-monospace, monospace; }
.mini-progress { height: 4px; margin-top: 12px; overflow: hidden; background: rgba(16,37,31,.1); border-radius: 99px; }
.mini-progress span { display: block; height: 100%; background: var(--green); }

.archive-list { border-top: 1px solid var(--line); }
.archive-item { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px; padding: 25px 4px; border-bottom: 1px solid var(--line); }
.archive-item time { font: 700 11px/1 ui-monospace, monospace; color: var(--ink-soft); }
.archive-item h3 { margin: 0; font-size: 18px; }
.archive-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.archive-item a { text-decoration: none; font-size: 20px; }
.archive-item a:hover { color: #16794d; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 45px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 30px; }
footer strong, footer span { display: block; }
footer strong { font-size: 13px; letter-spacing: .16em; }
footer span, footer p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }

@media (max-width: 850px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { min-height: 390px; }
  .ghost-card { width: 330px; }
  .orbit-one { width: 370px; height: 370px; }
  .today-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric-card { min-height: 110px; }
  .metric-card strong { font-size: 29px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 570px) {
  .site-header, .hero, .section, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 72px; }
  .status-pill { display: none; }
  h1 { font-size: 51px; }
  .hero { gap: 20px; min-height: auto; padding-bottom: 70px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: space-between; }
  .hero-visual { min-height: 330px; }
  .ghost-card { width: 275px; }
  .orbit-one { width: 310px; height: 310px; }
  .orbit-two { width: 245px; height: 360px; }
  .terminal-chip { right: 1px; bottom: 22px; }
  .section { padding-top: 75px; padding-bottom: 75px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading time { margin-top: -20px; }
  .focus-card { padding: 27px 23px; }
  .metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 100px; }
  .timeline { margin-left: 0; }
  .timeline::before { left: 60px; }
  .timeline li { grid-template-columns: 48px 16px 1fr; gap: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 82px 1fr; gap: 10px; }
  .archive-item a { display: none; }
  footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
