@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #17221F;
  --paper: #F1EEE6;
  --surface: #FFFFFF;
  --border: #E1DCCB;
  --muted: #6E756F;
  --accent: #D65B2E;

  --mignahl-navy: #1E2A52;
  --mignahl-gold: #C9973B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.brand,
.brand:link,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand .name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand .name .dev { font-family: 'IBM Plex Mono', monospace; font-weight: 500; }

.brand .legal-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

nav.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav.site-nav a,
nav.site-nav a:link,
nav.site-nav a:visited {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  border-bottom-color: var(--accent);
}

/* Hero */

.hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.hero .lede {
  font-size: 18px;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 28px;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.btn.primary:hover { background: #223129; }

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.secondary:hover { background: rgba(23, 34, 31, 0.06); }

/* Sections */

section.section {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section .section-lede {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}

/* Project cards */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card .project-image {
  width: calc(100% + 52px);
  max-width: none;
  margin: -26px -26px 0;
  border-radius: 14px 14px 0 0;
  display: block;
}

.card .status {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mignahl-gold);
}

.card p.desc {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.card .chips span {
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.card.placeholder {
  align-items: flex-start;
  justify-content: center;
  color: var(--muted);
  border-style: dashed;
}
.card.placeholder h3 { color: var(--muted); }

/* Contact */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-box a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.contact-box a:hover { text-decoration: underline; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  color: var(--ink);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* Legal page */

.legal {
  padding: clamp(40px, 6vw, 64px) 0;
  max-width: 720px;
}
.legal h1 { font-size: 30px; margin: 0 0 24px; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; }
.legal p { margin: 0 0 8px; color: var(--ink); }
.legal .placeholder { color: var(--accent); }

@media (max-width: 560px) {
  nav.site-nav { gap: 14px; }
  .card .card-top { align-items: flex-start; }
}
