:root {
  color-scheme: light;
  --ink: #12211d;
  --muted: #5f706a;
  --paper: #f5f3ec;
  --card: #fffdf8;
  --line: #d9ddd6;
  --green: #173d34;
  --green-light: #dce9e2;
  --gold: #d79b43;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(215, 155, 67, 0.15), transparent 26rem),
    var(--paper);
}
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-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: 12px; font-weight: 750; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  letter-spacing: 0.08em;
}

nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--ink); }
.store-link { padding: 10px 16px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); }

main, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.eyebrow, .section-label, .card-kicker {
  color: #8a5a19;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 { margin: 18px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7vw, 86px); line-height: 0.98; letter-spacing: -0.045em; }
.hero-text, .section-copy { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 12px; font-weight: 750; text-decoration: none; }
.button.primary { color: white; background: var(--green); }
.button.secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }

.terminal { overflow: hidden; border: 1px solid #29443d; border-radius: 20px; color: #dfe9e4; background: #11231f; box-shadow: 0 28px 70px rgba(17, 35, 31, 0.2); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 15px 18px; border-bottom: 1px solid #29443d; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d79b43; }
.terminal-bar span:nth-child(2) { opacity: 0.65; }
.terminal-bar span:nth-child(3) { opacity: 0.35; }
.terminal-bar p { margin: 0 0 0 10px; color: #8fa39b; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-body { padding: 28px; font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-body p { display: grid; grid-template-columns: 110px 1fr; margin: 0; }
.terminal-body p:first-child { display: block; margin-bottom: 12px; }
.prompt { color: #f2c879; }
.muted { color: #7f948c; }
.healthy { color: #8be0a8; }

.section { padding: 90px 0; border-top: 1px solid var(--line); }
h2 { max-width: 760px; margin: 12px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.035em; }
.project-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 18px; margin-top: 32px; }
.project-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.project-card.featured { color: #fff; border-color: var(--green); background: var(--green); }
.project-card.featured .card-kicker { color: #f2c879; }
.project-card h3 { margin: 10px 0 14px; font-size: 25px; }
.project-card p:not(.card-kicker) { color: var(--muted); line-height: 1.65; }
.project-card.featured p:not(.card-kicker) { color: #bfd0c9; }
.project-card a { font-weight: 750; text-decoration: none; }

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { font-weight: 700; text-decoration: none; }
.error-page { display: grid; min-height: 100vh; place-items: center; }
.error-page main { text-align: center; }
.error-page .hero-text { margin: 0 auto 28px; }

@media (max-width: 850px) {
  nav a:not(.store-link) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 45px; padding: 80px 0; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  h1 { font-size: 50px; }
  .terminal-body { padding: 20px; font-size: 12px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}
