:root {
  --coal: #181614;
  --coal-soft: #2b2723;
  --paper: #f2eadc;
  --paper-deep: #e4d5bf;
  --paper-light: #fffaf1;
  --ember: #b65a2a;
  --ember-dark: #823e1f;
  --copper: #8d5b38;
  --ash: #77726b;
  --green: #496648;
  --gold: #a16d24;
  --line: rgba(24, 22, 20, 0.17);
  --line-dark: rgba(242, 234, 220, 0.18);
  --max: 1180px;
  --reading: 830px;
  --shadow: 0 16px 40px rgba(24, 22, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--coal);
  background:
    linear-gradient(rgba(242, 234, 220, 0.965), rgba(242, 234, 220, 0.965)),
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(24, 22, 20, 0.025) 8px
    );
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.62;
}

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; }
p { margin-top: 0; }

code {
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  background: rgba(24, 22, 20, 0.07);
  font-size: 0.9em;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coal);
  color: var(--paper);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-copy strong,
.brand-copy small { display: block; }

.brand-copy strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--ash);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ember); }

.nav-toggle {
  display: none;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--coal);
  background: transparent;
  color: var(--coal);
  font: inherit;
  font-weight: 800;
}

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

.hero {
  max-width: 980px;
  padding: 7rem 0 5rem;
}

.eyebrow,
.code,
.kicker {
  margin-bottom: 0.65rem;
  color: var(--ember);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.045em;
}

h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.2rem; }

.lead {
  max-width: 760px;
  color: #4c4842;
  font-size: 1.22rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.82rem 1.05rem;
  border: 1px solid var(--coal);
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--coal);
  color: var(--paper);
}

.button:hover { transform: translateY(-1px); }

.page { padding-top: 5rem; }
.page.narrow { max-width: var(--reading); }

.page-header {
  max-width: 900px;
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--coal);
}

.page-header h1 { font-size: clamp(3.1rem, 7vw, 5.6rem); }

.page-header p:last-child {
  max-width: 720px;
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  min-height: 205px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.58);
}

.card h2 {
  margin-top: 0.7rem;
  font-size: 1.85rem;
}

.card-link {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: var(--ember);
  box-shadow: var(--shadow);
}

.section { padding-top: 5rem; }

.section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--coal);
}

.section-heading a {
  margin-bottom: 1rem;
  font-weight: 800;
}

.status {
  display: inline-block;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.active { background: #efc58e; color: #4c2f0c; }
.status.completed { background: #c6dfbf; color: #244020; }
.status.planned { background: #ddd5c8; color: #514a41; }
.status.draft { background: #d7d2cc; color: #4f4a45; }

.experiment-feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--coal);
  color: var(--paper);
}

.experiment-feature a {
  color: inherit;
  text-decoration: none;
}

.experiment-feature dl { margin: 0; }

.experiment-feature dl div {
  padding: 0.68rem 0;
  border-top: 1px solid var(--line-dark);
}

.experiment-feature dt {
  color: #aca59b;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.experiment-feature dd {
  margin: 0;
  font-weight: 850;
}

.experiment-list {
  display: grid;
  gap: 0;
}

.experiment-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 230px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.experiment-row h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.7rem;
}

.experiment-row a { text-decoration: none; }
.experiment-row a:hover h2 { color: var(--ember); }

.meta {
  color: var(--ash);
  font-size: 0.9rem;
}

/* Experiment page */
.record-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 3rem;
  align-items: start;
}

.record-main { min-width: 0; }

.record-nav {
  position: sticky;
  top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
}

.record-nav strong {
  display: block;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.record-nav a {
  display: block;
  padding: 0.3rem 0;
  color: #514b44;
  text-decoration: none;
  font-size: 0.88rem;
}

.record-nav a:hover { color: var(--ember); }

.record-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--coal);
}

.record-header h1 {
  font-size: clamp(3rem, 6.4vw, 5.2rem);
}

.record-subtitle {
  max-width: 780px;
  color: #4e4943;
  font-size: 1.12rem;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0;
  border: 1px solid var(--line);
}

.record-grid div {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.record-grid div:last-child { border-right: 0; }

.record-grid dt {
  color: var(--ash);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.record-grid dd {
  margin: 0.25rem 0 0;
  font-weight: 900;
}

.record-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.record-section h2 {
  margin-bottom: 1.2rem;
  font-size: 2.2rem;
}

.record-section h3 {
  margin-top: 1.5rem;
  font-size: 1.35rem;
}

.callout {
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-left: 5px solid var(--ember);
  background: rgba(255, 250, 241, 0.65);
}

.callout.warning { border-color: var(--gold); }
.callout.success { border-color: var(--green); }

.data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
}

.data-list div {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.data-list div:nth-last-child(-n+2) { border-bottom: 0; }

.data-list dt {
  color: var(--ash);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-list dd {
  margin: 0.18rem 0 0;
  font-weight: 750;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 250, 241, 0.45);
}

th,
td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--coal);
  color: var(--paper);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }

.pending {
  color: var(--ash);
  font-style: italic;
}

.method-steps {
  counter-reset: steps;
  padding: 0;
  list-style: none;
}

.method-steps li {
  position: relative;
  min-height: 3rem;
  padding: 0.1rem 0 1rem 3.2rem;
  border-left: 1px solid var(--line);
}

.method-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: -1.05rem;
  top: -0.2rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coal);
  color: var(--paper);
  font-weight: 900;
}

.gallery-placeholder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.photo-slot {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--copper);
  background: rgba(255, 250, 241, 0.42);
  color: var(--ash);
  text-align: center;
}

.prose {
  max-width: var(--reading);
  font-size: 1.06rem;
}

.prose h2 { margin-top: 2.8rem; }

blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 5px solid var(--ember);
  background: rgba(255, 250, 241, 0.55);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.site-footer p { margin-bottom: 0; }
.footer-motto { color: var(--ash); }

@media (max-width: 920px) {
  .record-shell { grid-template-columns: 1fr; }
  .record-nav { position: static; }
  .record-nav a { display: inline-block; margin-right: 0.75rem; }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open { display: flex; }

  .grid.two,
  .grid.three,
  .experiment-feature,
  .gallery-placeholder {
    grid-template-columns: 1fr;
  }

  .experiment-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .record-grid,
  .data-list {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .record-grid,
  .data-list {
    grid-template-columns: 1fr;
  }

  .record-grid div,
  .data-list div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 { font-size: 3.1rem; }
}
/* Smoke Lab — protocol status and signed footer */
.status.reconstructed {
  background: #d9c7a7;
  color: #4b351d;
}

.site-credit {
  margin-top: 0.35rem;
  color: var(--ash);
  font-size: 0.82rem;
}

.site-credit a {
  color: inherit;
}

.protocol-definition {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.55);
}

@media (max-width: 560px) {
  .site-footer {
    align-items: flex-start;
  }

  .record-section {
    overflow-wrap: anywhere;
  }

  .record-section ol,
  .record-section ul {
    padding-left: 1.25rem;
  }

  .table-wrap {
    border-left: 0;
    border-right: 0;
  }

  th,
  td {
    min-width: 135px;
  }
}

/* EXP-001 final record */
.hero-photo {
  margin: 2rem 0;
  border: 1px solid var(--line);
  background: var(--coal);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.hero-photo figcaption {
  padding: 0.8rem 1rem;
  color: var(--paper);
  font-size: 0.9rem;
}

.metric-grid,
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.metric-card,
.score-card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.62);
}

.metric-card small,
.score-card small {
  display: block;
  color: var(--ash);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong,
.score-value {
  display: block;
  margin-top: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.score-value {
  color: var(--ember-dark);
  font-size: 2.3rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.55);
}

.photo-card a {
  display: block;
  text-decoration: none;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--coal-soft);
}

.photo-card figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: #4f4942;
  font-size: 0.88rem;
}

.photo-card strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--coal);
}

.verdict {
  padding: 1.4rem;
  margin: 1.5rem 0;
  border: 2px solid var(--green);
  background: rgba(198, 223, 191, 0.28);
}

.verdict strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.field-note {
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--copper);
  background: rgba(141, 91, 56, 0.08);
}

.timeline-table td:first-child,
.timeline-table td:nth-child(2),
.timeline-table td:nth-child(3),
.timeline-table td:nth-child(4) {
  white-space: nowrap;
}

.reference-list li {
  margin-bottom: 0.65rem;
}

.reference-list a {
  font-weight: 750;
}

.small-note {
  color: var(--ash);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .metric-grid,
  .score-grid,
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .metric-grid,
  .score-grid,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    max-height: none;
  }

  .photo-card img {
    aspect-ratio: auto;
  }
}

@media print {
  .site-header,
  .record-nav,
  .button,
  .site-footer,
  .nav-toggle {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .record-shell {
    display: block;
  }

  .record-section {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }
}
