:root {
  color-scheme: dark;
  --bg: #1C1C1A;
  --surface: #242422;
  --text: #EAE6DF;
  --muted: #A4A194;
  --line: #3A3A36;
  --olive: #505650;
  --serif: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand img { display: block; }
.brand-muted { color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 14px; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: clamp(72px, 12vw, 128px) 0 88px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 13ch; margin-bottom: 22px; font-size: clamp(48px, 8vw, 84px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
.lead { max-width: 58ch; margin-bottom: 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--text); font-size: 14px; font-weight: 700; }
.button-primary { background: var(--text); color: var(--bg); }
.button-secondary { color: var(--text); }
.button:hover { text-decoration: none; }
.button-primary:hover { background: var(--muted); border-color: var(--muted); }

.section { padding: 66px 0; border-top: 1px solid var(--line); }
.manifesto { max-width: 42ch; margin-bottom: 18px; font-size: clamp(25px, 4vw, 38px); font-weight: 300; letter-spacing: -.04em; line-height: 1.34; }
.manifesto strong { font-weight: 800; }
.section-note { max-width: 60ch; margin: 0; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2, #principios h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.04em; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; min-height: 330px; flex-direction: column; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.project-mark { margin-bottom: 24px; }
.project-status { margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.04em; }
.project-card > p:not(.project-status) { max-width: 45ch; margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.project-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: auto; }
.text-link { font-size: 14px; font-weight: 700; }
.source-link { color: var(--muted); font-size: 13px; }

.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.principle { min-height: 170px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.principle > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.principle h3 { margin: 20px 0 7px; font-size: 17px; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; }

.about { padding: 54px 30px; border: 1px solid var(--line); background: var(--surface); }
.about h2 { max-width: 19ch; margin-bottom: 14px; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.045em; line-height: 1.12; }
.about > p:not(.eyebrow) { max-width: 72ch; margin-bottom: 20px; color: var(--muted); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px 0 42px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--text); font-size: 15px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

@media (max-width: 700px) {
  .shell { padding: 0 20px; }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .site-header nav { gap: 12px 18px; }
  .hero { padding: 72px 0; }
  .section { padding: 48px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .project-grid, .principle-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 280px; }
  .about { padding: 28px 22px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
