:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #fffdf8;
  --surface-alt: #ece7dd;
  --ink: #17202a;
  --muted: #64707c;
  --line: #d6d0c5;
  --accent: #0f766e;
  --accent-2: #b45309;
  --dark: #0d1715;
  --dark-line: #21423c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(214, 208, 197, 0.82);
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.language-toggle,
.button,
.text-link {
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.74);
}

.language-toggle {
  min-width: 64px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 72vh;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px) 52px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 880px;
}

.eyebrow,
.date {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.lead {
  max-width: 760px;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.signal-board {
  display: grid;
  gap: 12px;
}

.signal-board div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.signal-board span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-board strong {
  font-size: 1rem;
  line-height: 1.35;
}

.section {
  padding: 72px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 88px);
}

.section-body {
  max-width: 780px;
}

.section-body p {
  font-size: 1.05rem;
}

.section-heading {
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.project-visual {
  min-height: 310px;
  padding: 22px;
}

.console-preview {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(rgba(13, 23, 21, 0.92), rgba(13, 23, 21, 0.96)),
    repeating-linear-gradient(90deg, transparent 0, transparent 92px, rgba(52, 211, 153, 0.11) 94px),
    repeating-linear-gradient(0deg, transparent 0, transparent 64px, rgba(52, 211, 153, 0.08) 66px);
  color: #e6f4ee;
}

.console-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #50e3c2;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.console-topline b {
  padding: 6px 8px;
  border: 1px solid #2fb982;
  border-radius: 8px;
  color: #80f2b1;
}

.console-title {
  max-width: 420px;
  font-size: clamp(2.3rem, 5.8vw, 4.4rem);
  font-weight: 950;
  line-height: 0.92;
}

.mini-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--dark-line);
}

.mini-table span,
.mini-table strong {
  padding: 10px;
  border-bottom: 1px solid var(--dark-line);
}

.mini-table span:nth-last-child(-n + 2),
.mini-table strong:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mini-table strong {
  border-left: 1px solid var(--dark-line);
  color: #f3d375;
}

.comparison-preview {
  display: grid;
  align-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #fffaf1, #e9f5f1);
}

.prompt-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.comparison-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comparison-cols div {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.comparison-cols span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-cols strong {
  font-size: 1.8rem;
}

.metric-strip {
  padding: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.project-copy {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
}

.text-link {
  width: fit-content;
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article,
.compact-list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline article:first-child,
.compact-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.education-skills {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.project-page {
  padding: 64px clamp(20px, 5vw, 72px);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 68vh;
  padding-bottom: 56px;
}

.project-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-meta div,
.detail-block,
.workflow-step,
.demo-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-meta div {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 16px;
}

.project-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-block {
  padding: 24px;
}

.detail-block ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  min-height: 150px;
  padding: 18px;
}

.workflow-step span {
  color: var(--accent);
  font-weight: 900;
}

.demo-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  overflow: hidden;
}

.demo-panel {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.demo-panel:last-child {
  border-right: 0;
}

.demo-input,
.demo-output {
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9f7f1;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  line-height: 1.55;
  white-space: pre-wrap;
}

.life-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  min-height: 70vh;
  padding: 72px clamp(20px, 5vw, 72px);
}

.life-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .split,
  .project-grid,
  .education-skills,
  .project-hero,
  .detail-grid,
  .demo-shell,
  .life-layout {
    grid-template-columns: 1fr;
  }

  .workflow,
  .project-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .demo-panel:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .nav-links a {
    padding-inline: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .workflow,
  .project-meta,
  .comparison-cols {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }
}
