:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --fg: #1b1a18;
  --muted: #6c6a66;
  --line: #ebe6df;
  --accent: #e8613c;
  --accent-weak: rgba(232,97,60,.12);
  --shadow: 0 1px 2px rgba(20,18,15,.04), 0 8px 24px rgba(20,18,15,.06);
  --shadow-hover: 0 2px 4px rgba(20,18,15,.05), 0 16px 40px rgba(20,18,15,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  letter-spacing: -.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
a { color: inherit; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand svg { width: 19px; height: 19px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.nav a:hover, .nav a.active { color: var(--fg); }

/* hero */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
  max-width: 16ch;
}
.hero p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
}

/* project grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 8px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #ddd6cc;
}
.thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #f0ece6; }
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.035); }
.card .body { padding: 18px 20px 22px; }
.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card h3 .arrow { color: var(--muted); transition: transform .18s ease, color .18s ease; }
.card:hover h3 .arrow { transform: translate(2px,-2px); color: var(--accent); }
.card .desc { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.card .meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 999px;
  font-weight: 500;
  margin-left: auto;
  color: #9a958c;
  background: rgba(20,18,15,.05);
  transition: color .25s ease, background .25s ease;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.checking .dot { animation: pulse 1.1s ease-in-out infinite; }
.tag.up   { color: #15803d; background: rgba(34,197,94,.13); }
.tag.up   .dot { background: #22c55e; }
.tag.down { color: #b91c1c; background: rgba(220,38,38,.12); }
.tag.down .dot { background: #ef4444; }
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* about / prose */
main { flex: 1; }
.prose { padding: 8px 0 48px; max-width: 60ch; }
.prose h1 { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.prose p { margin-top: 18px; font-size: 17px; color: #38352f; }
.prose p.lead { font-size: 19px; color: var(--fg); }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-weak); }
.prose a:hover { border-bottom-color: var(--accent); }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 26px 0 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--accent); }
.site-footer .spacer { flex: 1; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
}
