/* Ntug exhibit wall. Six colors, all defined on :root. System type with a rounded display face. */

:root {
  --paper: #fcf4fa;
  --plate: #f0e0ec;
  --ink: #2e1a29;
  --ink-soft: #603c57;
  --accent: #8e1b71;
  --accent-tint: #d696c6;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.8rem, 1.35rem + 1.9vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.45em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

#main:focus {
  outline: none;
}

svg {
  max-width: 100%;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

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

/* Wall: a centered column with generous margins */

.wall {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .wall {
    padding-inline: clamp(24px, 6vw, 96px);
  }
}

/* Header and navigation */

.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--accent-tint);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  color: var(--ink);
  font-weight: 500;
  padding-block: 4px;
  text-decoration: underline;
  text-decoration-color: var(--accent-tint);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-list a:hover {
  text-decoration-color: var(--accent);
}

.nav-list a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
  text-decoration-color: var(--accent);
}

/* Numbered exhibit labels */

.label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.label-no {
  display: inline-block;
  min-width: 2.6em;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--paper);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Hero */

.hero {
  padding-block: clamp(56px, 10vw, 140px) clamp(48px, 7vw, 96px);
}

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5.5rem);
  max-width: 13ch;
  margin-bottom: 28px;
}

.lede {
  max-width: 36em;
  margin-bottom: 36px;
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem);
  line-height: 1.55;
}

.note-line {
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button-quiet {
  background-color: var(--paper);
  color: var(--accent);
}

.button-quiet:hover {
  background-color: var(--plate);
  border-color: var(--accent);
  color: var(--accent);
}

/* Exhibit sections */

.exhibit {
  padding-block: clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--accent-tint);
}

.intro {
  max-width: 40em;
  margin-bottom: 48px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.split {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

.exhibit-items {
  display: grid;
  gap: 36px;
}

.exhibit-item {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.item-no {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.exhibit-item h3 {
  margin-bottom: 8px;
}

.steps {
  padding-left: 1.6em;
}

.steps li {
  margin-bottom: 1em;
  padding-left: 0.4em;
}

.steps li::marker {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.standards {
  display: grid;
  gap: 14px;
  list-style: none;
  max-width: 60ch;
  margin: 0;
  padding: 0;
}

.standards li {
  margin: 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background-color: var(--plate);
}

/* Framed plates */

.plate {
  margin: 0;
}

.plate-frame {
  padding: clamp(8px, 1.6vw, 14px);
  border-radius: 6px;
  background-color: var(--accent-tint);
}

.plate-mat {
  padding: clamp(14px, 3vw, 32px);
  border: 1px solid var(--accent);
  background-color: var(--paper);
}

.plate svg {
  display: block;
  width: 100%;
  height: auto;
}

.plate.wide {
  max-width: 900px;
}

.plate figcaption {
  max-width: 60ch;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.plate figcaption strong {
  font-family: var(--font-display);
  color: var(--ink);
}

.svg-window {
  fill: var(--paper);
  stroke: var(--ink-soft);
  stroke-width: 2.5;
}

.svg-paper {
  fill: var(--paper);
}

.svg-plate {
  fill: var(--plate);
}

.svg-tint {
  fill: var(--accent-tint);
}

.svg-accent {
  fill: var(--accent);
}

.svg-ink {
  fill: var(--ink);
}

.svg-soft {
  fill: var(--ink-soft);
}

.svg-badge {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 3;
}

.svg-badge-num,
.svg-node-num {
  font-family: var(--font-display);
  font-weight: 800;
  fill: var(--accent);
  text-anchor: middle;
}

.svg-badge-num {
  font-size: 22px;
}

.svg-node-num {
  font-size: 34px;
}

.svg-label {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}

.svg-node {
  fill: var(--plate);
  stroke: var(--accent);
  stroke-width: 3;
}

.svg-flow {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 3;
}

.svg-arrowhead {
  fill: var(--ink-soft);
}

.svg-rule {
  fill: none;
  stroke: var(--accent-tint);
  stroke-width: 2;
}

.svg-frame {
  fill: var(--plate);
  stroke: var(--accent);
  stroke-width: 3;
}

.svg-line-ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.svg-node-hollow {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 3;
}

.svg-square {
  fill: var(--accent-tint);
  stroke: var(--ink);
  stroke-width: 2;
}

.svg-square-accent {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 2;
}

/* Field guide paths */

.path {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--accent-tint);
  scroll-margin-top: 24px;
}

.path-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}

@media (min-width: 900px) {
  .path-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

.note-block {
  padding: 22px 24px;
  border-radius: 14px;
  background-color: var(--plate);
}

.note-block h3 {
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 36px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 6px;
}

.glossary {
  display: grid;
  gap: 24px;
  margin: 0;
}

.glossary dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.glossary dd {
  margin: 4px 0 0;
}

@media (min-width: 760px) {
  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
  }
}

/* Contact */

.contact-address {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-address a {
  text-decoration-thickness: 2px;
}

/* Decision room: wizard, result, and the static fallback */

.wizard,
.wizard-figure {
  display: none;
}

.static-tree {
  display: block;
}

.js .wizard,
.js .wizard-figure {
  display: block;
}

.js .static-tree {
  display: none;
}

.wizard-status {
  min-height: 1.6em;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.step-title {
  max-width: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wizard-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard-form legend {
  max-width: 24ch;
  margin-bottom: 12px;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.step-help {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 18px;
  border: 2px solid var(--ink-soft);
  border-radius: 16px;
  background-color: var(--paper);
  cursor: pointer;
}

.option:hover {
  border-color: var(--accent);
}

.option:has(input:checked) {
  border-color: var(--accent);
}

.option:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.option input[type="radio"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.option input[type="radio"]:focus {
  outline: none;
}

.option-text {
  font-weight: 500;
}

.option input:checked ~ .option-text {
  color: var(--accent);
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trail-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--accent-tint);
}

.trail-block h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.trail {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

.trail li {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.trail-question {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.trail-answer {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.muted {
  color: var(--ink-soft);
}

.result h2 {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  color: var(--accent);
}

.result h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.result-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--accent-tint);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tree > li {
  margin-bottom: 24px;
}

.tree ul,
.tree ol {
  margin-top: 10px;
}

/* Footer */

.site-footer {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--accent-tint);
  background-color: var(--plate);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.footer-wordmark {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Motion: animated versions only when the reader has not asked for reduced motion */

@media (prefers-reduced-motion: no-preference) {
  .button,
  .option {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

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

  .question-enter {
    animation: panel-in 260ms ease-out both;
  }

  .result-enter {
    animation: result-in 380ms ease-out both;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .button,
  .option,
  .question-enter,
  .result-enter {
    transition: none;
    animation: none;
  }

  .button:active {
    transform: none;
  }
}
