:root {
  --bg: #f7f0e5;
  --bg-strong: #efe1cf;
  --panel: rgba(255, 250, 245, 0.88);
  --panel-strong: rgba(255, 244, 232, 0.96);
  --text: #1f1714;
  --muted: #5d4f47;
  --accent: #8e2b22;
  --accent-2: #bb6d33;
  --line: rgba(31, 23, 20, 0.12);
  --shadow: 0 20px 60px rgba(78, 42, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(187, 109, 51, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(142, 43, 34, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 50%, #f3e8db 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(142, 43, 34, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff6f0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.site-home .shell {
  padding-top: 64px;
}

.home-hero,
.hero-panel,
.card,
.stat-card,
.panel-card,
.work-card,
.download-card,
.video-placeholder,
.contact-strip {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-hero,
.hero-panel,
.contact-strip {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-hero {
  padding: 48px;
}

.home-hero h1,
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.lede {
  max-width: 60ch;
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow,
.card-label,
.aside-label,
.panel-label,
.download-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--text);
  color: #fff6f0;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
}

.home-grid,
.stats-grid,
.two-column-panel,
.downloads-grid,
.workstream-grid,
.experiment-grid,
.evidence-grid {
  display: grid;
  gap: 18px;
}

.home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.card,
.stat-card,
.panel-card,
.work-card,
.download-card,
.video-placeholder {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2,
.section-heading h2,
.contact-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.top-link:hover {
  color: var(--accent);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

.top-link {
  text-decoration: none;
  font-weight: 700;
}

.top-current {
  font-weight: 600;
}

.top-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(31, 23, 20, 0.3);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 24px;
}

.hero-copy,
.hero-aside {
  border-radius: 22px;
  padding: 20px;
}

.hero-aside {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.9), rgba(248, 235, 220, 0.82));
  border: 1px solid rgba(31, 23, 20, 0.08);
}

.pull-quote {
  margin: 0 0 18px;
  font-size: 1.22rem;
  line-height: 1.45;
}

.aside-quote {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 23, 20, 0.1);
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
}

.meta-list,
.clean-list {
  margin: 0;
  padding-left: 18px;
}

.meta-list li,
.clean-list li {
  margin-bottom: 10px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}

.stat-card {
  background: var(--panel-strong);
}

.stat-value {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-copy {
  margin: 0;
  color: var(--muted);
}

.source-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
  gap: 22px;
  margin: 26px 0;
  align-items: start;
}

.section-body p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.two-column-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.panel-card-highlight {
  background: linear-gradient(180deg, rgba(255, 241, 226, 0.98), rgba(247, 228, 212, 0.92));
}

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

.experiment-grid {
  grid-template-columns: 1fr;
}

.evidence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.device-shot {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.device-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.device-shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.work-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.work-card p,
.experiment-card p,
.evidence-card p {
  margin: 0;
  color: var(--muted);
}

.experiment-card {
  border-left: 4px solid rgba(142, 43, 34, 0.75);
  padding: 2px 0 2px 18px;
}

.experiment-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
  padding: 22px;
}

.evidence-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

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

.download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.download-card strong {
  font-size: 1.08rem;
}

.download-card span:last-child {
  color: var(--muted);
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: 28px;
}

.site-footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .hero-panel,
  .section-grid,
  .contact-strip,
  .two-column-panel,
  .stats-grid,
  .downloads-grid,
  .workstream-grid,
  .evidence-grid,
  .device-grid,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    align-items: flex-start;
  }

  .home-hero,
  .hero-panel {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .home-hero h1,
  .hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }
}
