@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --timeline-thinking: #dfa88f;
  --timeline-grep: #9fc9a2;
  --timeline-read: #9fbbe0;
  --timeline-edit: #c0a8dd;
  --timeline-done: #c08532;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOP NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); background: var(--canvas-soft); }

/* HERO */
.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}
.hero-band .badge-pill {
  display: inline-block;
  margin-bottom: 20px;
}
.hero-band h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}
.hero-band .hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* BADGE PILLS */
.badge-pill {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 4px 10px;
}

/* SECTION HEADERS */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

/* CARDS */
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  color: var(--ink);
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
}

/* ARTICLE CARD */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-strong);
}
.article-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.article-card-body { padding: 24px; }
.article-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-card-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
}
.article-card-meta {
  font-size: 12px;
  color: var(--muted);
}
.article-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 12px;
}
.article-link:hover { color: var(--primary-active); }

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ARTICLE PAGE */
.article-header {
  padding: 60px 0 40px;
}
.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.84px;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 800px;
}
.article-header .article-desc {
  font-size: 18px;
  color: var(--body);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.article-content {
  padding: 40px 0 80px;
  max-width: 780px;
}
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--primary); }
.article-content a:hover { color: var(--primary-active); text-decoration: underline; }
.article-content blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: 16px 20px;
  margin: 28px 0;
  background: var(--canvas-soft);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  color: var(--body-strong);
  font-style: italic;
}
.article-content .code-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  overflow-x: auto;
  margin: 20px 0;
}
.article-img {
  width: 100%;
  border-radius: 12px;
  margin: 28px 0;
  border: 1px solid var(--hairline);
}
.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: 28px;
  text-align: center;
}

/* ARTICLE SIDEBAR */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-sidebar { padding-top: 40px; }
.sidebar-section { margin-bottom: 32px; }
.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-link {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.sidebar-link:hover { color: var(--primary); }
.sidebar-link:last-child { border-bottom: none; }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }

/* FORM */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }
.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}
.form-message.success {
  display: block;
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b8ddd3;
}
.form-loading { display: none; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--muted-soft); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 560px;
  width: calc(100% - 48px);
  z-index: 999;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
.cookie-banner.hidden { display: none; }
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas);
  flex: 1;
}
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-direction: column;
}
.cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept:hover { background: var(--primary-active); }
.cookie-reject:hover { border-color: rgba(255,255,255,0.5); }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-brand-name span { color: var(--primary); }
.footer-brand-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  max-width: 240px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-link {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-link:hover { color: var(--ink); }

/* PAGE HEADER */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}
.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.84px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-header .page-sub {
  font-size: 17px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.5;
}

/* CONTENT PAGE */
.content-page {
  padding: 48px 0 80px;
}
.content-page h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 36px 0 12px;
}
.content-page h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.content-page p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 16px;
}
.content-page ul, .content-page ol {
  margin: 0 0 16px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: 6px; }
.content-page a { color: var(--primary); }
.content-page a:hover { text-decoration: underline; }

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  padding: 60px 0;
}
.about-main h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 32px 0 12px;
}
.about-main p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 18px;
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
}
.stat-number {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.highlight-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.highlight-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

/* TIMELINE PILLS */
.timeline-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 4px 10px;
  color: var(--ink);
}
.tp-thinking { background: var(--timeline-thinking); }
.tp-grep { background: var(--timeline-grep); }
.tp-read { background: var(--timeline-read); }
.tp-edit { background: var(--timeline-edit); }
.tp-done { background: var(--timeline-done); color: #fff; }

/* DISCLAIMER */
.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 24px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-band h1 { font-size: 44px; letter-spacing: -1px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-band { padding: 48px 0; }
  .hero-band h1 { font-size: 34px; letter-spacing: -0.6px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; gap: 16px; }
  .cookie-actions { flex-direction: row; }
  .article-header h1 { font-size: 30px; }
  .page-header h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-band h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
