:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5f6f68;
  --line: #d8e0dc;
  --paper: #f7f4ec;
  --panel: #ffffff;
  --accent: #0f8b6c;
  --accent2: #c4512f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.topbar {
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: baseline; gap: 12px; font-weight: 700; }
.mark { padding: 6px 8px; color: white; background: var(--ink); border-radius: 4px; }
.name { font-size: 18px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--ink); }

.hero {
  min-height: calc(100vh - 160px);
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,480px);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

h1 { margin: 0; max-width: 780px; font-size: 54px; line-height: 1.02; }
.lead { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 20px; line-height: 1.5; }

.console {
  border: 1px solid #26312d;
  background: #111a17;
  color: #d8fff0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(23,33,29,0.18);
}
.consoleHead { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #26312d; }
.consoleHead span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); }
.consoleHead span:nth-child(2) { background: #e3b448; }
.consoleHead span:nth-child(3) { background: var(--accent); }
pre { margin: 0; padding: 22px; overflow: auto; font: 15px/1.65 "Courier New", monospace; white-space: pre-wrap; }

.introBand {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}
.introBand p { max-width: 900px; margin: 0 auto; padding: 34px 32px; color: var(--muted); font-size: 18px; line-height: 1.6; }

.projectSection { max-width: 1180px; margin: 0 auto; padding: 72px 32px 20px; }
.projectSection.archived { padding-bottom: 72px; }
.sectionHead { margin-bottom: 26px; }
.sectionHead h2 { margin: 0; font-size: 38px; }

.projectGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.projectGrid.twoCols { grid-template-columns: repeat(2,minmax(0,1fr)); }
.projectCard {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.projectCard.featured { border-top: 4px solid var(--accent); }
.projectMeta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent2); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.projectCard h3 { margin: 22px 0 12px; font-size: 25px; }
.projectCard p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.projectCard a { margin-top: auto; color: var(--accent); text-decoration: none; font-weight: 700; }
.projectCard a:hover { text-decoration: underline; }

.footer { border-top: 1px solid var(--line); padding: 26px 32px; color: var(--muted); background: rgba(255,255,255,0.55); }
.footer p { max-width: 1180px; margin: 0 auto; }

@media (max-width: 820px) {
  .topbar { padding: 18px; align-items: flex-start; gap: 14px; flex-direction: column; position: static; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .hero { min-height: auto; padding: 46px 18px 32px; grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: 36px; }
  .lead { font-size: 17px; }
  .introBand p, .projectSection { padding-left: 18px; padding-right: 18px; }
  .projectGrid, .projectGrid.twoCols { grid-template-columns: 1fr; }
  .sectionHead h2 { font-size: 30px; }
}
