:root {
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --paper: #faf8f4;
  --paper-alt: #f1ede4;
  --line: #ddd6c8;
  --accent: #6b4f2a;
  --accent-soft: #9a7b4f;
  --link: #5a4a8a;
  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  max-width: 1100px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}
.brand-text {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3.5rem;
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.hero-top h1 { grid-column: 1; grid-row: 1; }
.hero-top .hero-sub { grid-column: 1; grid-row: 2; }
.hero-figure {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  position: relative;
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 26, 23, 0.16);
  filter: sepia(0.12);
}
.hero-figure figcaption {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink-soft);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.6rem;
}
.hero-figure .credit {
  display: block;
  color: var(--accent-soft);
  margin-top: 0.15rem;
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.hero-sub {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  max-width: 40ch;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.hero-meta .label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.25rem;
}
.hero-meta .value {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}
.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3f8a4f;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Sections */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--paper-alt); }
.section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.6rem;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: var(--accent);
}
.section p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.section p strong { color: var(--ink); }
.lead {
  font-size: 1.18rem;
  color: var(--ink) !important;
  line-height: 1.65;
}
a { color: var(--link); }

/* Callout */
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0 0;
}
.section-alt .callout { background: var(--paper); }
.callout-accent { border-left-color: var(--accent-soft); }
.callout h3 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.callout p { margin-bottom: 0.8rem; }
.callout p:last-child { margin-bottom: 0; }
.apps { margin: 0; padding-left: 1.3rem; }
.apps li { margin-bottom: 0.6rem; color: var(--ink-soft); }
.apps li strong { color: var(--ink); }
.note {
  font-size: 0.95rem;
  font-style: italic;
}

/* Full-width plate figure */
.plate {
  margin: 2rem 0 0;
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 26, 23, 0.16);
  filter: sepia(0.1);
}
.plate figcaption {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}
.plate .credit {
  color: var(--accent-soft);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.6rem 1.4rem;
  position: relative;
}
.section-alt .step { background: var(--paper-alt); }
.step-num {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
}
.step h3 {
  font-size: 1.25rem;
  margin: 0.3rem 0 0.7rem;
  font-weight: 600;
}
.step p { margin: 0; font-size: 0.98rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
}
.section-alt table { background: var(--paper-alt); }
caption {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-align: left;
  margin-bottom: 0.7rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--accent-soft);
}
tbody td { color: var(--ink-soft); }

/* Gantt */
.gantt { font-size: 0.85rem; table-layout: fixed; }
.gantt th.phase-col { width: 28%; }
.gantt thead th:not(.phase-col), .gantt tbody td { width: 6%; }
.gantt thead th { text-align: center; padding: 0.5rem 0.3rem; }
.gantt tbody th {
  font-family: "Spectral", serif;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.gantt td {
  padding: 0.4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.gantt td.on {
  background: var(--accent);
  position: relative;
}
.gantt tbody th { border-left: none; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.4rem;
}
.card h3 { margin: 0 0 0.2rem; font-size: 1.15rem; font-weight: 600; }
.card .role {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-soft);
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  min-height: 2.72rem;
}
.card p:last-child { font-size: 0.95rem; margin: 0; }

/* Bibliography */
.biblio {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
}
.biblio li {
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  padding-left: 0.3rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0;
}
.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  white-space: nowrap;
}
.footer-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #c9c2b4;
  margin: 0 0 0.8rem;
}
.footer-note {
  font-size: 0.85rem;
  font-style: italic;
  color: #9a9384;
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-figure { order: -1; }
  .hero-figure figcaption { position: static; }
  .footer-title { white-space: normal; }
}
