/* Archive Discovery Lab — implemented from Archive Discovery Lab.dc.html */

:root {
  --bg: #F5F0E6;
  --bg-alt: #EFE8D6;
  --paper: #FDFBF2;
  --paper-soft: #FBF8EE;
  --border: #DDD2BA;
  --border-strong: #C9BC9C;
  --border-card: #CFC3A6;
  --ink: #29251C;
  --ink-2: #322D23;
  --text-2: #443D2F;
  --text-3: #4B4436;
  --text-muted: #5B5443;
  --text-soft: #6B6350;
  --faded: #8A8272;
  --gold: #8A6A24;
  --gold-soft: #C8B577;
  --rust: #7A4034;
  --rust-dark: #54281F;
  --rust-pale: #C9A99A;
  --green: #55654A;
  --green-dark: #41503A;
  --olive-border: #9B9078;
  --source-blue: #5C7186;
  --footer-bg: #2E2A21;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rust);
  text-decoration-color: var(--rust-pale);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rust-dark);
  text-decoration-color: var(--rust-dark);
}

::selection {
  background: #E4D9BE;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-dark {
  color: var(--gold-soft);
}

h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.14;
  color: var(--ink);
  text-wrap: pretty;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  border: 1px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--olive-border);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
  color: var(--ink);
}

.btn-compact {
  padding: 12px 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
}

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

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--green);
  background: var(--bg-alt);
  position: relative;
}

.brand-mark span {
  position: absolute;
  inset: 5px;
  border-top: 1.5px solid var(--rust);
  border-bottom: 1.5px solid var(--rust);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-3);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--rust);
}

.site-nav .nav-cta {
  color: var(--bg);
  background: var(--green);
  padding: 8px 16px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.site-nav .nav-cta:hover {
  background: var(--green-dark);
  color: var(--bg);
}

/* ---------- Sections ---------- */

.section {
  border-bottom: 1px solid var(--border);
}

.section > .container {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.section-compact > .container {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--green-dark);
  color: #EFEADB;
  border-bottom: none;
}

.section-dark h2 {
  color: #F7F3E8;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.section-intro {
  max-width: 66ch;
  margin-bottom: 44px;
}

.section-intro h2 {
  margin-bottom: 18px;
}

.section-intro p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.section-intro-text {
  color: var(--text-3);
}

.section-dark .section-intro {
  margin-bottom: 40px;
}

.section-dark .section-intro-text {
  color: #D9D3BE;
}

.section-intro-tight {
  margin-bottom: 36px;
}

.prose {
  max-width: 62ch;
}

.prose p {
  margin: 0 0 18px;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-note {
  color: var(--text-muted);
}

.prose-note em {
  font-family: var(--serif);
}

.pull-quote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 18px 0;
}

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(60, 50, 30, 0.05);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-lede {
  margin: 0 0 18px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 56ch;
}

.hero-sub {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero diagram */

.hero-diagram {
  display: grid;
  gap: 0;
  justify-items: stretch;
}

.diagram-question {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: 0 1px 0 rgba(60, 50, 30, 0.05);
}

.diagram-label {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faded);
}

.diagram-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.diagram-connector {
  display: flex;
  justify-content: center;
}

.diagram-connector span {
  display: block;
  width: 1px;
  height: 30px;
  background: #B4A888;
}

.diagram-results {
  display: grid;
  gap: 14px;
}

.diagram-result {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 0 rgba(60, 50, 30, 0.05);
}

.diagram-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faded);
  text-align: center;
}

.diagram-thumb-photo {
  background: repeating-linear-gradient(45deg, #EFE8D6 0px, #EFE8D6 6px, #E4DBC4 6px, #E4DBC4 12px);
}

.diagram-thumb-typescript {
  background: repeating-linear-gradient(0deg, #F7F3E8 0px, #F7F3E8 7px, #E4DBC4 7px, #E4DBC4 8px);
}

.diagram-result-body {
  display: block;
  min-width: 0;
}

.diagram-result-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.diagram-result-meta {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

.diagram-result-source {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--source-blue);
  margin-top: 8px;
}

.diagram-caption {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--faded);
  text-align: center;
}

/* ---------- Origin ---------- */

.origin-title {
  margin-bottom: 22px;
}

.research-note {
  background: var(--paper);
  border: 1px solid #D5C9AC;
  padding: 20px 22px;
  max-width: 40ch;
}

.research-note .diagram-label {
  margin-bottom: 8px;
}

.research-note-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: #3E382B;
}

/* ---------- Research questions ---------- */

.question-card {
  padding: 22px 24px 24px;
}

.question-number {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
  border-bottom: 1px solid var(--rust-pale);
  padding-bottom: 8px;
}

.question-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Prototype ---------- */

.prototype-intro {
  margin-bottom: 48px;
}

.workflow-card {
  border: 1px solid var(--border);
  background: var(--paper-soft);
  padding: 24px;
}

.workflow-label {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.workflow-card p:last-child {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-3);
}

.prototype-example {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 52px;
}

.prototype-example-copy {
  max-width: 52ch;
}

.prototype-example-copy h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.prototype-example-copy p {
  margin: 0 0 24px;
  line-height: 1.7;
  color: var(--text-3);
}

.video-embed {
  position: relative;
  padding-bottom: 64.62829736211032%;
  height: 0;
  border: 1px solid var(--border-card);
  background: var(--bg-alt);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- What this is not ---------- */

.not-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px 40px;
}

.not-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid rgba(239, 234, 219, 0.25);
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.6;
}

.not-mark {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold-soft);
}

/* ---------- Pilot study ---------- */

.pilot-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-bottom: 40px;
}

.pilot-card {
  padding: 26px;
}

.pilot-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.pilot-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-3);
}

.pilot-card li {
  display: flex;
  gap: 10px;
}

.pilot-card li span:first-child {
  flex: none;
  color: var(--gold);
}

/* ---------- Responsible use ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}

.principle {
  border-top: 1px solid var(--border-strong);
  padding: 20px 0 26px;
  display: grid;
  grid-template-columns: minmax(150px, 180px) 1fr;
  gap: 16px;
}

.principle h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.principle p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-3);
}

/* ---------- Field context ---------- */

.context-links {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 15px;
}

.context-disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faded);
  max-width: 70ch;
}

/* ---------- About ---------- */

.about-title {
  margin-bottom: 18px;
}

.about-lead {
  margin: 0 0 18px;
  line-height: 1.7;
}

.about-sub {
  margin: 0;
  line-height: 1.7;
  color: var(--text-3);
}

.people {
  display: grid;
  gap: 18px;
  align-content: start;
}

.person-card {
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.person-initials {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--olive-border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
}

.person-initials-wj {
  color: var(--green);
}

.person-initials-ek {
  color: var(--rust);
}

.person-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-3);
}

.person-card strong {
  color: var(--ink);
}

.people-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ---------- Contact ---------- */

.section-contact {
  background: var(--bg);
}

.contact-inner {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 72px);
}

.contact-inner h2 {
  margin-bottom: 18px;
}

.contact-lead {
  margin: 0 0 16px;
  line-height: 1.7;
}

.contact-sub {
  margin: 0 0 28px;
  line-height: 1.7;
  color: var(--text-3);
}

.email-card {
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 20px 22px;
  display: inline-block;
}

.email-card-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faded);
}

.email-card-address {
  font-family: var(--mono);
  font-size: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--faded);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #CFC8B4;
}

.site-footer .container {
  padding-top: 52px;
  padding-bottom: 44px;
  display: grid;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 46ch;
}

.footer-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: #F1EDDF;
}

.footer-brand p:last-child {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.footer-label {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9C9480;
}

.footer-email {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #D9C89A;
  text-decoration-color: var(--faded);
}

.footer-bottom {
  border-top: 1px solid rgba(207, 200, 180, 0.25);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  font-size: 13px;
  line-height: 1.6;
  color: #9C9480;
}

.footer-bottom p {
  margin: 0;
}

.footer-disclaimer {
  max-width: 72ch;
}
