:root {
  --night: #071522;
  --night-2: #0d2b3b;
  --ink: #122c21;
  --ink-muted: rgba(18, 44, 33, 0.72);
  --paper: #fef8ea;
  --paper-cool: #f8f8e8;
  --gold: #c57a0b;
  --gold-light: #e4b34a;
  --forest: #36553f;
  --teal: #4b8990;
  --line: rgba(18, 44, 33, 0.18);
  --light-line: rgba(254, 248, 234, 0.2);
  --shadow: 0 1.5rem 4rem rgba(7, 21, 34, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(228, 179, 74, 0.08), transparent 18rem),
    radial-gradient(circle at 88% 52%, rgba(75, 137, 144, 0.08), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(rgba(18, 44, 33, 0.045) 0.55px, transparent 0.55px),
    radial-gradient(rgba(197, 122, 11, 0.035) 0.45px, transparent 0.45px);
  background-position: 0 0, 12px 13px;
  background-size: 22px 22px, 26px 26px;
  content: "";
  pointer-events: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--night);
  padding: 0.8rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.psalm-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem max(1.25rem, calc((100vw - 1440px) / 2));
  background: rgba(7, 21, 34, 0.97);
  border-bottom: 1px solid rgba(228, 179, 74, 0.46);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

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

.psalm-brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(228, 179, 74, 0.7);
  border-radius: 999px;
  object-fit: cover;
}

.psalm-brand span {
  display: grid;
  line-height: 1.05;
}

.psalm-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.psalm-brand small {
  margin-top: 0.25rem;
  color: rgba(254, 248, 234, 0.64);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.psalm-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.psalm-nav a {
  color: rgba(254, 248, 234, 0.76);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.psalm-nav a:hover,
.psalm-nav a:focus-visible {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  grid-area: 1 / 1;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

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

.button--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0.8rem 2rem rgba(197, 122, 11, 0.22);
}

.button--gold:hover {
  background: #a96408;
}

.button--line {
  border-color: rgba(18, 44, 33, 0.42);
  background: rgba(254, 248, 234, 0.68);
  color: var(--ink);
}

.section-label {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
}

.section-intro h2,
.source-note h2,
.adult-guidance h2,
.first-clearing h2,
.materials h2,
.forest-overview h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-intro > p:last-child,
.source-note > p,
.forest-overview .section-intro > p,
.adult-guidance p {
  color: var(--ink-muted);
}

.prototype-note {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Psalm 8 detail */

.psalm-hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100svh - 76px));
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.psalm-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 760px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.3rem, 6vw, 6rem);
}

.psalm-hero-copy::before,
.psalm-hero-copy::after {
  position: absolute;
  color: var(--gold-light);
  content: "✦";
  font-size: 1.2rem;
}

.psalm-hero-copy::before {
  top: 13%;
  left: 36%;
}

.psalm-hero-copy::after {
  right: 8%;
  bottom: 20%;
  font-size: 0.72rem;
}

.psalm-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 6.5vw, 7.3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-subtitle {
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 650;
}

.hero-intro {
  max-width: 650px;
  margin: 1.1rem 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

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

.psalm-hero-copy .prototype-note {
  margin: 1rem 0 0;
}

.psalm-hero-art {
  position: relative;
  min-height: 700px;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(197, 122, 11, 0.75);
  border-bottom-left-radius: 18% 8%;
  border-top-left-radius: 46% 38%;
  box-shadow: -1rem 1rem 4rem rgba(7, 21, 34, 0.12);
}

.psalm-hero-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.psalm-hero-art figcaption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(7, 21, 34, 0.86);
  border: 1px solid rgba(228, 179, 74, 0.75);
  border-radius: 1rem;
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.psalm-hero-art figcaption img {
  width: 54px;
  height: 54px;
}

.psalm-hero-art figcaption span {
  display: grid;
  font-size: 0.82rem;
}

.psalm-hero-art figcaption strong {
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.psalm-discovery {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.discovery-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.discovery-heading h2 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.3vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.discovery-image {
  height: 380px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(197, 122, 11, 0.62);
  border-radius: 48% 1.5rem 1.5rem 7rem / 60% 1.5rem 1.5rem 25%;
  box-shadow: var(--shadow);
}

.discovery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.discovery-copy {
  display: grid;
  max-width: 920px;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  margin: 3rem 0 0;
  color: var(--ink-muted);
}

.discovery-copy p {
  margin: 0;
}

.transparency-note {
  grid-column: 1 / -1;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 750;
}

.psalm-traces {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.psalm-traces h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
}

.psalm-traces ol {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: trace;
  list-style: none;
  border-top: 1px solid var(--line);
}

.psalm-traces li {
  display: grid;
  grid-template-columns: 9rem minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.psalm-traces li > span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.psalm-traces h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.psalm-traces li p {
  margin: 0;
  color: var(--ink-muted);
}

.verse-note,
.small-note {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.path-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, var(--paper-cool), var(--paper));
  border-block: 1px solid rgba(197, 122, 11, 0.2);
}

.path-section .section-intro {
  margin: 0 auto;
  text-align: center;
}

.path-tablist {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.path-tablist::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 10%;
  left: 10%;
  border-top: 4px dotted rgba(197, 122, 11, 0.66);
  content: "";
}

.path-tablist button {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 180px);
  aspect-ratio: 1;
  align-content: center;
  place-items: center;
  justify-self: center;
  gap: 0.45rem;
  border: 1.5px solid rgba(54, 85, 63, 0.58);
  border-radius: 999px;
  background: rgba(254, 248, 234, 0.97);
  color: #17436b;
  padding: 1.4rem;
  cursor: pointer;
  box-shadow: 0 1rem 2.5rem rgba(7, 21, 34, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.path-tablist button:hover {
  transform: translateY(-4px);
}

.path-tablist button[aria-selected="true"] {
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle at 50% 42%, rgba(228, 179, 74, 0.3), transparent 45%),
    var(--paper);
  color: var(--gold);
  box-shadow: 0 1.2rem 3rem rgba(197, 122, 11, 0.18);
}

.path-tablist img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.path-tablist span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.path-panels {
  width: min(100%, 900px);
  min-height: 26rem;
  margin: 3.5rem auto 0;
}

.path-panels > section {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: rgba(254, 248, 234, 0.92);
  border: 1px solid rgba(197, 122, 11, 0.28);
  border-radius: 1.3rem 5rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
}

.path-panels h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

.path-panels p {
  max-width: 720px;
  color: var(--ink-muted);
}

.wonder-steps {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.4rem;
  color: var(--ink-muted);
}

.timer-control {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.timer-control output {
  min-width: 16rem;
  color: var(--forest);
  font-weight: 750;
}

.song-and-guidance {
  display: grid;
  width: min(100% - 2rem, var(--max));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.song-details,
.design-lab details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.song-details summary,
.design-lab summary {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.song-details summary::-webkit-details-marker,
.design-lab summary::-webkit-details-marker {
  display: none;
}

.song-details summary::after,
.design-lab summary::after {
  content: "+";
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.song-details[open] summary::after,
.design-lab details[open] summary::after {
  content: "−";
}

.song-details summary span,
.design-lab summary span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.song-details summary small,
.design-lab summary small {
  margin-left: auto;
  color: var(--ink-muted);
}

.song-copy {
  padding: 1rem 0 2rem;
}

.song-copy--visible {
  border-block: 1px solid var(--line);
  padding-top: 0;
}

.song-copy--visible > h2 {
  margin: 0;
  padding: 1.55rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 500;
}

.song-and-guidance--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.generic-empty {
  display: grid;
  width: min(100% - 2rem, 820px);
  min-height: 68vh;
  align-content: center;
  justify-items: start;
  gap: 1.25rem;
  margin: 0 auto;
  padding-block: 6rem;
}

.generic-empty h1 {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
}

.generic-empty p:not(.section-label) {
  max-width: 46rem;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.generic-psalm-art {
  display: grid;
  min-height: 520px;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 3rem;
  background: linear-gradient(145deg, #102f32, #081927 62%, #1f4b40);
  border: 0.65rem solid #d0a446;
  border-radius: 42% 0.7rem 38% 0.7rem / 16% 0.7rem 20% 0.7rem;
  box-shadow: 0.65rem 0.8rem 0 #c8cfaa;
  color: #f7dfaa;
  text-align: center;
}

.generic-psalm-art img {
  width: min(58%, 256px);
  filter: drop-shadow(0.4rem 0.55rem 0 rgba(0, 0, 0, 0.25));
}

.generic-psalm-art figcaption {
  display: grid;
  gap: 0.3rem;
  font-size: 1rem;
}

.generic-psalm-art figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.song-copy h3 {
  margin: 2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.song-copy h4 {
  margin: 1.6rem 0 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.song-copy p {
  color: var(--ink-muted);
}

.song-text-plain {
  margin-top: 1.6rem;
  color: var(--ink-muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.adult-guidance {
  padding: 2rem;
  background: var(--paper-cool);
  border: 1px solid rgba(54, 85, 63, 0.2);
  border-radius: 1.3rem 4rem 1.3rem 1.3rem;
}

.adult-guidance h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.map-teaser {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.05), rgba(7, 21, 34, 0.92)),
    var(--tnaan-psalm8-hero-image, url("../psalm-8/assets/concepts/psalm-8-direction-b-papierschnitt-nacht.png")) center 38% / cover;
  color: var(--paper);
}

.map-teaser::after {
  position: absolute;
  inset: 25% 0 0;
  background:
    repeating-linear-gradient(122deg, transparent 0 64px, rgba(7, 21, 34, 0.28) 66px 74px),
    linear-gradient(0deg, var(--night), transparent);
  content: "";
  pointer-events: none;
}

.map-teaser-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100% - 2rem, var(--max));
  min-height: 670px;
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.map-teaser h2 {
  margin: 0 0 2rem;
  color: #f7dfaa;
  background: rgba(8, 25, 39, 0.88);
  border: 1px solid rgba(247, 223, 170, 0.46);
  border-radius: 0.35rem 1.7rem 0.45rem 1rem;
  box-shadow: 0.3rem 0.4rem 0 rgba(8, 25, 39, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 500;
  line-height: 0.98;
  max-width: min(100%, 980px);
  padding: 0.22em 0.42em 0.28em;
}

.clearing-path {
  position: relative;
  display: flex;
  width: min(760px, 86vw);
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 2rem;
}

.clearing-path::before {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 4px dotted rgba(228, 179, 74, 0.85);
  content: "";
}

.clearing-path span {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--gold-light);
  border-radius: 999px;
  background: var(--night-2);
}

.clearing-path span.is-active {
  width: 2rem;
  height: 2rem;
  background: var(--gold-light);
  box-shadow: 0 0 2rem rgba(228, 179, 74, 0.8);
}

.active-clearing {
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.active-clearing img {
  display: block;
  width: 104px;
  height: auto;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.2));
}

.active-clearing strong {
  margin-top: 0.7rem;
  color: var(--gold-light);
  font-size: 1rem;
}

.active-clearing p {
  margin: 0.25rem 0 0;
  color: rgba(254, 248, 234, 0.74);
}

.materials {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.material-rail {
  display: grid;
  grid-auto-columns: clamp(260px, 29vw, 340px);
  grid-auto-flow: column;
  gap: 1rem;
  margin-top: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.5rem 0 1rem;
  scrollbar-color: rgba(197, 122, 11, 0.58) transparent;
  scrollbar-width: thin;
  scroll-snap-type: inline mandatory;
}

.material-rail::-webkit-scrollbar {
  height: 0.55rem;
}

.material-rail::-webkit-scrollbar-track {
  background: transparent;
}

.material-rail::-webkit-scrollbar-thumb {
  background: rgba(197, 122, 11, 0.58);
  border: 0.15rem solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.material-rail-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
}

.material-rail-toolbar p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  color: var(--ink-muted);
}

.material-rail-toolbar strong {
  color: var(--ink);
}

.material-rail-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.material-rail-actions button {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  padding: 0;
  background: var(--paper-cool);
  border: 1px solid rgba(197, 122, 11, 0.4);
  border-radius: 50%;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.material-rail-actions button:hover:not(:disabled) {
  background: rgba(228, 179, 74, 0.2);
}

.material-rail-actions button:disabled {
  cursor: default;
  opacity: 0.38;
}

.material-card {
  display: grid;
  grid-template-rows: auto minmax(5.25rem, auto);
  align-self: start;
  overflow: hidden;
  background: rgba(254, 248, 234, 0.94);
  border: 1px solid rgba(197, 122, 11, 0.25);
  border-radius: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: 0 0.9rem 2rem rgba(7, 21, 34, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.3rem 3rem rgba(7, 21, 34, 0.13);
}

.material-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--paper-cool);
  object-fit: contain;
}

.material-card > span {
  display: grid;
  padding: 1rem;
}

.material-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.material-card small {
  margin-top: 0.25rem;
  color: var(--ink-muted);
}

.direct-link-box {
  display: grid;
  max-width: 940px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--paper-cool);
  border: 1px solid var(--line);
  border-radius: 1.2rem 4rem 1.2rem 1.2rem;
}

.direct-link-box > img {
  width: 220px;
  background: #fff;
  border: 0.7rem solid #fff;
}

.direct-link-box h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
}

.direct-link-box p {
  color: var(--ink-muted);
}

.direct-link-box code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--forest);
  font-weight: 760;
}

.text-button {
  min-height: 44px;
  margin-top: 0.6rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-weight: 800;
  cursor: pointer;
}

.design-lab {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.design-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 2rem;
  padding: 1rem 0 2.5rem;
}

.design-preview {
  margin: 0;
}

.design-preview img {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.design-preview figcaption {
  margin-top: 0.7rem;
  color: var(--ink-muted);
}

.style-options {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.style-options button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: transparent;
  color: var(--ink-muted);
  padding: 0.7rem 0.9rem;
  text-align: left;
  cursor: pointer;
}

.style-options button.is-selected {
  border-color: var(--gold);
  background: rgba(197, 122, 11, 0.08);
  color: var(--ink);
  font-weight: 780;
}

.source-note {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.source-note h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.source-note .button {
  margin-top: 0.45rem;
}

.psalm-footer {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem max(1rem, calc((100% - var(--max)) / 2));
  background: linear-gradient(90deg, var(--night), var(--night-2));
  color: var(--paper);
}

.psalm-footer p {
  margin: 0.25rem 0 0;
  color: rgba(254, 248, 234, 0.65);
  font-size: 0.82rem;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark img {
  display: block;
  width: 76px;
  height: auto;
}

.footer-mark span {
  display: grid;
}

.footer-mark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.footer-mark small {
  color: var(--gold-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.3rem;
}

.psalm-footer a {
  color: var(--paper);
  text-decoration-color: rgba(228, 179, 74, 0.7);
  text-underline-offset: 0.32rem;
}

.psalm-footer a:hover {
  color: var(--gold-light);
}

/* Psalmwald overview */

.map-page {
  background: var(--night);
  color: var(--paper);
}

.map-page::before {
  background-image: radial-gradient(rgba(254, 248, 234, 0.055) 0.5px, transparent 0.5px);
}

.map-hero {
  display: grid;
  min-height: min(760px, calc(100svh - 76px));
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 7rem) max(1rem, calc((100% - 1320px) / 2));
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 179, 74, 0.12), transparent 25rem),
    linear-gradient(180deg, var(--night), #0b2835);
}

.map-hero-copy h1 {
  margin: 0;
  color: #f8e3b6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.map-hero-copy > p:not(.prototype-note) {
  max-width: 600px;
  color: rgba(254, 248, 234, 0.72);
  font-size: 1.06rem;
}

.map-hero-copy .button {
  margin-top: 1rem;
}

.map-hero-image {
  margin: 0;
}

.map-hero-image img {
  width: 100%;
  border: 1px solid rgba(228, 179, 74, 0.65);
  border-radius: 48% 48% 1.5rem 1.5rem / 36% 36% 1.5rem 1.5rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.map-hero-image figcaption {
  margin-top: 0.75rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.forest-overview {
  padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100% - 1320px) / 2));
  background:
    radial-gradient(circle at 50% 40%, rgba(75, 137, 144, 0.16), transparent 34rem),
    linear-gradient(180deg, #0b2835, var(--night));
}

.section-intro--light h2 {
  color: #f8e3b6;
}

.section-intro--light p {
  color: rgba(254, 248, 234, 0.66) !important;
}

.forest-groves {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.forest-grove {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem;
  border-top: 1px solid var(--light-line);
}

.forest-grove h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.psalm-nodes {
  display: grid;
  grid-template-columns: repeat(15, minmax(34px, 1fr));
  gap: 0.55rem;
}

.psalm-node {
  display: grid;
  min-width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(254, 248, 234, 0.22);
  border-radius: 48% 52% 46% 54%;
  background: rgba(54, 85, 63, 0.32);
  color: rgba(254, 248, 234, 0.54);
  font-size: 0.7rem;
  text-decoration: none;
  cursor: pointer;
}

.psalm-node:hover {
  border-color: var(--gold-light);
  color: var(--paper);
}

.psalm-node.is-active {
  border-color: var(--gold-light);
  background: var(--gold);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 0 1.5rem rgba(228, 179, 74, 0.5);
}

.forest-status {
  min-height: 1.7rem;
  margin: 2rem 0 0;
  color: rgba(254, 248, 234, 0.76);
  text-align: center;
}

.forest-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1rem;
  color: rgba(254, 248, 234, 0.62);
  font-size: 0.78rem;
}

.forest-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid rgba(254, 248, 234, 0.4);
  border-radius: 999px;
  background: rgba(54, 85, 63, 0.5);
}

.legend-dot--active {
  border-color: var(--gold-light);
  background: var(--gold);
}

.first-clearing {
  display: grid;
  min-height: 400px;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - var(--max)) / 2));
  background: var(--paper);
  color: var(--ink);
}

.first-clearing h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.first-clearing p {
  max-width: 720px;
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
}

.clearing-mark {
  width: 120px;
}

.clearing-mark--scene {
  box-sizing: border-box;
  height: 120px;
  object-fit: cover;
  background: var(--night);
  border: 3px solid var(--gold);
  border-radius: 50%;
}

@media (max-width: 1100px) {
  .psalm-hero {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.85fr);
  }

  .psalm-hero-copy {
    padding-inline: 2.5rem;
  }

  .psalm-traces li {
    grid-template-columns: 8rem minmax(160px, 0.42fr) minmax(0, 1fr);
  }

  .psalm-nodes {
    grid-template-columns: repeat(10, minmax(34px, 1fr));
  }
}

@media (max-width: 860px) {
  .psalm-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 1rem 1rem;
    background: rgba(7, 21, 34, 0.98);
    border-bottom: 1px solid rgba(228, 179, 74, 0.4);
  }

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

  .psalm-nav a {
    min-height: 48px;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--light-line);
  }

  .nav-toggle {
    display: grid;
  }

  .psalm-hero,
  .map-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .psalm-hero-copy {
    width: min(100%, 760px);
    padding: 5rem 1.25rem 3rem;
  }

  .psalm-hero-art {
    min-height: 72svh;
    border-left: 0;
    border-top: 1px solid rgba(197, 122, 11, 0.6);
    border-radius: 20% 0 0 0 / 10% 0 0 0;
  }

  .discovery-heading,
  .song-and-guidance,
  .design-lab-grid,
  .map-hero {
    grid-template-columns: 1fr;
  }

  .discovery-image {
    height: 320px;
  }

  .discovery-copy {
    grid-template-columns: 1fr;
  }

  .psalm-traces li {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .psalm-traces li p {
    grid-column: 2;
  }

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

  .path-tablist::before {
    top: 24%;
    bottom: 24%;
    left: 50%;
    border-top: 0;
    border-left: 4px dotted rgba(197, 122, 11, 0.56);
  }

  .song-and-guidance {
    gap: 3rem;
  }

  .direct-link-box {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .map-hero {
    padding-inline: 1.25rem;
  }

  .map-hero-image {
    max-width: 680px;
    justify-self: center;
  }

  .forest-grove {
    grid-template-columns: 1fr;
  }

  .psalm-nodes {
    grid-template-columns: repeat(10, minmax(34px, 1fr));
  }

  .first-clearing {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .first-clearing .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .psalm-header {
    min-height: 68px;
  }

  .psalm-brand img {
    width: 40px;
    height: 40px;
  }

  .psalm-brand small {
    display: none;
  }

  .psalm-hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .psalm-hero-art {
    min-height: 64svh;
  }

  .psalm-hero-art figcaption {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .psalm-discovery,
  .materials,
  .song-and-guidance,
  .design-lab,
  .source-note {
    width: min(100% - 1.5rem, var(--max));
  }

  .discovery-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

  .discovery-image {
    height: 260px;
  }

  .psalm-traces li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .psalm-traces li p {
    grid-column: 1;
  }

  .path-section {
    padding-inline: 0.75rem;
  }

  .path-tablist {
    gap: 0.75rem;
  }

  .path-tablist button {
    width: min(100%, 145px);
    padding: 0.8rem;
  }

  .path-tablist img {
    width: 70px;
    height: 70px;
  }

  .path-panels {
    min-height: 32rem;
    margin-top: 2rem;
  }

  .song-details summary,
  .design-lab summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .song-details summary small,
  .design-lab summary small {
    margin-left: 0;
  }

  .song-details summary::after,
  .design-lab summary::after {
    position: absolute;
    right: 0;
  }

  .map-teaser,
  .map-teaser-inner {
    min-height: 610px;
  }

  .material-rail {
    grid-auto-columns: 82%;
  }

  .material-rail-toolbar {
    align-items: flex-start;
  }

  .material-rail-toolbar p span {
    max-width: 18rem;
  }

  .direct-link-box {
    grid-template-columns: 1fr;
  }

  .direct-link-box > img {
    width: 180px;
  }

  .design-lab-grid {
    gap: 1rem;
  }

  .psalm-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-hero {
    padding-top: 4rem;
  }

  .map-hero-copy h1 {
    font-size: clamp(3.2rem, 17vw, 5.5rem);
  }

  .forest-overview {
    padding-inline: 0.75rem;
  }

  .forest-grove {
    padding-inline: 0;
  }

  .psalm-nodes {
    grid-template-columns: repeat(6, minmax(34px, 1fr));
  }

  .first-clearing {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .clearing-mark {
    justify-self: center;
  }

  .first-clearing .button {
    grid-column: 1;
    justify-self: center;
  }
}

/* Psalmwald Papercut system
   The tactile paper language is the binding project direction. */

:root {
  --night: #081927;
  --night-2: #123544;
  --ink: #17372b;
  --ink-muted: rgba(23, 55, 43, 0.72);
  --paper: #fff7e5;
  --paper-cool: #f1edcf;
  --gold: #c77b12;
  --gold-light: #efb83f;
  --forest: #425c39;
  --teal: #427d79;
  --line: rgba(23, 55, 43, 0.18);
  --paper-edge: rgba(73, 55, 28, 0.18);
  --paper-shadow: 0.3rem 0.45rem 0 rgba(42, 54, 37, 0.12), 0 1.3rem 3rem rgba(8, 25, 39, 0.13);
  --paper-shadow-dark: 0.35rem 0.5rem 0 rgba(0, 0, 0, 0.22), 0 1.5rem 3.5rem rgba(0, 0, 0, 0.25);
}

.papercut-project {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(239, 184, 63, 0.12), transparent 25rem),
    radial-gradient(circle at 86% 44%, rgba(66, 125, 121, 0.1), transparent 29rem),
    repeating-linear-gradient(8deg, rgba(82, 63, 33, 0.018) 0 1px, transparent 1px 7px);
}

.papercut-project::before {
  z-index: 0;
  background-image:
    radial-gradient(rgba(35, 54, 40, 0.07) 0.55px, transparent 0.7px),
    radial-gradient(rgba(199, 123, 18, 0.055) 0.45px, transparent 0.6px);
  background-position: 0 0, 11px 14px;
  background-size: 23px 23px, 29px 29px;
  opacity: 0.55;
}

.papercut-project > :not(.skip-link) {
  position: relative;
  z-index: 1;
}

.papercut-project .psalm-header {
  z-index: 50;
  background: rgba(8, 25, 39, 0.98);
  border-bottom: 0;
  box-shadow: 0 0.35rem 0 #24473f, 0 0.55rem 0 rgba(239, 184, 63, 0.78), 0 1rem 2.4rem rgba(8, 25, 39, 0.22);
}

.papercut-project .psalm-brand img {
  background: var(--paper);
  border: 2px solid var(--gold-light);
  box-shadow: 0.16rem 0.22rem 0 rgba(0, 0, 0, 0.25);
}

.papercut-project .button {
  border-radius: 0.35rem 1rem 0.45rem 0.78rem;
  box-shadow: 0.25rem 0.35rem 0 rgba(42, 54, 37, 0.16), 0 0.9rem 1.8rem rgba(8, 25, 39, 0.09);
}

.papercut-project .button--gold {
  background: #d28a18;
  border-color: #a45f09;
  color: #fffdf4;
  box-shadow: 0.3rem 0.42rem 0 #8b530a, 0 1rem 2.1rem rgba(138, 82, 8, 0.19);
}

.papercut-project .button--gold:hover {
  background: #bc7010;
}

.papercut-project .button--line {
  background: #fffaf0;
  border: 1px solid rgba(23, 55, 43, 0.46);
}

.papercut-project .psalm-hero {
  isolation: isolate;
  background:
    linear-gradient(122deg, #fff7e5 0 48%, #e9e7c7 48.2% 49.1%, #f4eacb 49.3% 100%);
  border-bottom: 0.55rem solid #304d3a;
}

.papercut-project .psalm-hero::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: -10rem;
  width: 40rem;
  height: 30rem;
  background: #edf0d5;
  border-radius: 46% 54% 42% 58%;
  box-shadow: 0.55rem 0.75rem 0 rgba(66, 92, 57, 0.15);
  clip-path: polygon(3% 16%, 74% 0, 100% 24%, 90% 82%, 43% 100%, 0 74%);
  content: "";
}

.papercut-project .psalm-hero-copy::before,
.papercut-project .psalm-hero-copy::after {
  color: var(--gold);
  filter: drop-shadow(0.11rem 0.14rem 0 rgba(97, 61, 11, 0.2));
}

.papercut-project .psalm-hero-art {
  min-height: 680px;
  margin: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem) 0;
  overflow: visible;
  padding: clamp(0.8rem, 1.6vw, 1.35rem);
  background: #1b3a3c;
  border: 0;
  border-radius: 48% 48% 2.4rem 2.4rem / 25% 25% 2.4rem 2.4rem;
  box-shadow:
    0 0 0 0.65rem #36523e,
    0 0 0 1.15rem #d5aa4c,
    var(--paper-shadow-dark);
}

.papercut-project .psalm-hero-art > img {
  border-radius: 48% 48% 1.55rem 1.55rem / 24% 24% 1.55rem 1.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.papercut-project .psalm-hero-art figcaption {
  right: 1.8rem;
  bottom: 1.8rem;
  background: #fff7e7;
  border: 1px solid #c58a27;
  border-radius: 0.35rem 1.2rem 0.45rem 0.9rem;
  color: var(--ink);
  box-shadow: 0.22rem 0.3rem 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
}

.papercut-project .psalm-hero-art figcaption strong {
  color: var(--gold);
}

.papercut-project .discovery-image {
  height: 410px;
  padding: 0.75rem;
  background: #24463f;
  border: 0;
  border-radius: 1.4rem 5.5rem 1.6rem 4rem;
  box-shadow: 0 0 0 0.55rem #d7ad55, var(--paper-shadow);
}

.papercut-project .discovery-image img {
  border-radius: 0.9rem 4.8rem 1rem 3.5rem;
  object-position: center 30%;
}

.papercut-project .psalm-traces ol {
  border-top: 0;
  gap: 0.7rem;
}

.papercut-project .psalm-traces li {
  padding: 1.5rem 1.25rem;
  background: rgba(255, 250, 239, 0.94);
  border: 1px solid rgba(66, 92, 57, 0.2);
  border-radius: 0.3rem 1.6rem 0.45rem 1rem;
  box-shadow: 0.18rem 0.25rem 0 rgba(66, 92, 57, 0.1);
}

.papercut-project .path-section {
  isolation: isolate;
  background: #f0edcf;
  border-block: 0;
}

.papercut-project .path-section::before,
.papercut-project .path-section::after {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -1px;
  left: -4%;
  height: 26%;
  content: "";
  pointer-events: none;
}

.papercut-project .path-section::before {
  bottom: 2.2rem;
  background: #d6d9b4;
  clip-path: polygon(0 74%, 8% 48%, 17% 66%, 28% 34%, 40% 64%, 53% 42%, 65% 68%, 78% 29%, 90% 60%, 100% 40%, 100% 100%, 0 100%);
  filter: drop-shadow(0.35rem 0.45rem 0 rgba(66, 92, 57, 0.12));
}

.papercut-project .path-section::after {
  background: #bdc69e;
  clip-path: polygon(0 72%, 10% 53%, 23% 80%, 35% 52%, 49% 76%, 64% 48%, 76% 73%, 88% 50%, 100% 70%, 100% 100%, 0 100%);
}

.papercut-project .path-tablist::before {
  top: calc(50% - 0.2rem);
  height: 0.55rem;
  border: 0;
  background: repeating-linear-gradient(90deg, #d5a13d 0 1rem, transparent 1rem 1.55rem);
  filter: drop-shadow(0.12rem 0.15rem 0 rgba(112, 76, 15, 0.18));
}

.papercut-project .path-tablist button {
  border: 0;
  background: #fff8e8;
  box-shadow:
    0 0 0 0.45rem #d6d9b4,
    0.42rem 0.55rem 0 rgba(49, 68, 45, 0.18),
    0 1.3rem 2.6rem rgba(8, 25, 39, 0.12);
}

.papercut-project .path-tablist button[aria-selected="true"] {
  border: 0;
  background: #fff5d8;
  box-shadow:
    0 0 0 0.48rem #dfa13a,
    0.45rem 0.6rem 0 #a86513,
    0 1.4rem 2.8rem rgba(138, 82, 8, 0.18);
}

.papercut-project .path-tablist img {
  border: 1px solid rgba(104, 77, 35, 0.16);
  box-shadow: 0.16rem 0.22rem 0 rgba(88, 65, 31, 0.13);
}

.papercut-project .path-panels > section {
  position: relative;
  isolation: isolate;
  background: #fff9ec;
  border: 1px solid rgba(112, 76, 15, 0.25);
  border-radius: 0.45rem 3.4rem 0.6rem 1.5rem;
  box-shadow: 0.45rem 0.6rem 0 #d2d5ad, var(--paper-shadow);
}

.papercut-project .adult-guidance,
.papercut-project .direct-link-box {
  background: #f3efd2;
  border: 1px solid rgba(66, 92, 57, 0.24);
  border-radius: 0.45rem 3rem 0.6rem 1.45rem;
  box-shadow: 0.38rem 0.5rem 0 #c8cfaa, 0 1.4rem 3rem rgba(8, 25, 39, 0.08);
}

.papercut-project .map-teaser {
  min-height: 720px;
  background:
    linear-gradient(180deg, rgba(8, 25, 39, 0.02) 0 34%, rgba(8, 25, 39, 0.8) 86%, #081927 100%),
    var(--tnaan-psalm8-hero-image, url("../psalm-8/assets/concepts/psalm-8-direction-b-papierschnitt-nacht.png")) center 42% / cover;
  border-block: 0.65rem solid #d0a446;
}

.papercut-project.psalm-100-page .map-teaser {
  background:
    linear-gradient(180deg, rgba(8, 25, 39, 0.02) 0 34%, rgba(8, 25, 39, 0.74) 86%, #081927 100%),
    var(--tnaan-psalm100-hero-image, url("../psalm-100/assets/psalm-100-freudenlichtung-hero.png")) center 52% / cover;
}

.psalm-100-page .psalm-hero-art > img,
.psalm-100-page .discovery-image img {
  object-position: center 48%;
}

.papercut-project .map-teaser::after {
  inset: auto -3% 0;
  height: 22%;
  background: #081927;
  clip-path: polygon(0 58%, 9% 33%, 20% 64%, 31% 37%, 44% 70%, 57% 38%, 69% 63%, 82% 29%, 92% 58%, 100% 36%, 100% 100%, 0 100%);
  filter: drop-shadow(0 -0.45rem 0 rgba(32, 74, 66, 0.8));
}

.papercut-project .map-teaser-inner {
  min-height: 720px;
}

.papercut-project .active-clearing img,
.papercut-project .footer-mark img,
.papercut-project .clearing-mark {
  filter: drop-shadow(0.25rem 0.35rem 0 rgba(0, 0, 0, 0.23));
}

.papercut-project .material-card {
  overflow: visible;
  background: #fff8e8;
  border: 1px solid rgba(112, 76, 15, 0.24);
  border-radius: 0.35rem 1.7rem 0.48rem 1.1rem;
  box-shadow: 0.35rem 0.48rem 0 #d6d9b4, 0 1rem 2.2rem rgba(8, 25, 39, 0.1);
}

.papercut-project .material-card > img {
  border-radius: 0.25rem 1.55rem 0 0;
}

.papercut-project .material-rail-actions button {
  background: #fff8e8;
  border: 0;
  box-shadow: 0 0 0 0.22rem #d6d9b4, 0.18rem 0.25rem 0 rgba(49, 68, 45, 0.22);
}

.papercut-project .direct-link-box > img {
  border: 0.7rem solid #fffdf7;
  box-shadow: 0.28rem 0.36rem 0 rgba(50, 68, 45, 0.18);
}

.papercut-project .source-note {
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 0.48rem solid #d8dcb8;
}

.papercut-project .psalm-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #081927;
}

.papercut-project .psalm-footer::before,
.papercut-project .psalm-footer::after {
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: 0;
  left: -5%;
  height: 55%;
  content: "";
}

.papercut-project .psalm-footer::before {
  bottom: -12%;
  background: #173b3f;
  clip-path: polygon(0 54%, 13% 25%, 26% 61%, 41% 27%, 54% 62%, 70% 20%, 84% 55%, 100% 24%, 100% 100%, 0 100%);
}

.papercut-project .psalm-footer::after {
  bottom: -28%;
  background: #36513c;
  clip-path: polygon(0 47%, 18% 22%, 34% 58%, 51% 21%, 68% 56%, 84% 18%, 100% 50%, 100% 100%, 0 100%);
  filter: drop-shadow(0 -0.4rem 0 rgba(0, 0, 0, 0.22));
}

/* Papercut forest overview */

.papercut-project.map-page {
  background: #081927;
}

.papercut-project .map-hero {
  background:
    radial-gradient(circle at 14% 10%, rgba(239, 184, 63, 0.14), transparent 25rem),
    linear-gradient(155deg, #081927 0 50%, #123544 50.3% 72%, #274b43 72.3% 100%);
  border-bottom: 0.65rem solid #d0a446;
}

.papercut-project .map-hero-image {
  padding: 0.85rem;
  background: #294d43;
  border-radius: 48% 48% 1.5rem 1.5rem / 30% 30% 1.5rem 1.5rem;
  box-shadow: 0 0 0 0.55rem #d0a446, var(--paper-shadow-dark);
}

.papercut-project .map-hero-image img {
  height: auto;
  border: 0;
  border-radius: 48% 48% 0.9rem 0.9rem / 29% 29% 0.9rem 0.9rem;
  box-shadow: none;
}

.papercut-project .forest-overview {
  position: relative;
  isolation: isolate;
  background: #0d2c38;
}

.papercut-project .forest-overview::before {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  background: #163d3d;
  clip-path: polygon(0 65%, 9% 32%, 20% 63%, 31% 28%, 43% 67%, 56% 34%, 70% 66%, 82% 27%, 91% 61%, 100% 38%, 100% 100%, 0 100%);
  content: "";
}

.papercut-project .forest-grove {
  background: rgba(8, 25, 39, 0.36);
  border: 1px solid rgba(239, 184, 63, 0.16);
  border-radius: 0.35rem 1.6rem 0.45rem 1rem;
  box-shadow: 0.28rem 0.38rem 0 rgba(0, 0, 0, 0.16);
}

.papercut-project .psalm-node {
  border: 0;
  background: #315044;
  color: rgba(255, 247, 229, 0.72);
  box-shadow: 0.12rem 0.16rem 0 rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.papercut-project .psalm-node.is-active {
  background: #d28a18;
  box-shadow: 0.18rem 0.24rem 0 #8b530a, 0 0 1.6rem rgba(239, 184, 63, 0.56);
}

.papercut-project .first-clearing {
  position: relative;
  isolation: isolate;
  background: #fff7e5;
  border-top: 0.65rem solid #d2d5ad;
}

.papercut-project .first-clearing::before {
  position: absolute;
  z-index: -1;
  inset: 12% 3% 10% 35%;
  background: #eef0d5;
  border-radius: 42% 58% 38% 62%;
  box-shadow: 0.45rem 0.6rem 0 rgba(66, 92, 57, 0.12);
  clip-path: polygon(4% 18%, 88% 0, 100% 74%, 76% 100%, 0 82%);
  content: "";
}

.papercut-project .joy-clearing {
  background: #f3efd2;
  border-top-color: #d0a446;
}

.papercut-project .joy-clearing::before {
  background: #f5df9b;
  opacity: 0.46;
}

@media (max-width: 860px) {
  .papercut-project .psalm-hero {
    background: linear-gradient(174deg, #fff7e5 0 54%, #e9e7c7 54.3% 55.2%, #f4eacb 55.5% 100%);
  }

  .papercut-project .psalm-hero-art {
    min-height: auto;
    aspect-ratio: 1;
    margin: 1.4rem 1.2rem 2.8rem;
    padding: 0.8rem;
    border-radius: 48% 48% 1.7rem 1.7rem / 22% 22% 1.7rem 1.7rem;
  }

  .papercut-project .psalm-hero-art > img {
    border-radius: 48% 48% 1rem 1rem / 21% 21% 1rem 1rem;
  }

  .papercut-project .path-tablist::before {
    top: 12%;
    bottom: 12%;
    left: calc(50% - 0.27rem);
    width: 0.55rem;
    height: auto;
    background: repeating-linear-gradient(180deg, #d5a13d 0 1rem, transparent 1rem 1.55rem);
  }

  .papercut-project .map-hero-image {
    margin: 1rem;
  }
}

@media (max-width: 620px) {
  .papercut-project .psalm-hero-copy {
    padding-top: 4rem;
  }

  .papercut-project .psalm-hero-art {
    margin-inline: 0.85rem;
  }

  .papercut-project .psalm-hero-art figcaption {
    right: 1rem;
    bottom: 1rem;
  }

  .papercut-project .discovery-image {
    height: 300px;
  }

  .papercut-project .path-tablist button {
    box-shadow: 0 0 0 0.3rem #d6d9b4, 0.3rem 0.4rem 0 rgba(49, 68, 45, 0.18);
  }

  .papercut-project .path-tablist button[aria-selected="true"] {
    box-shadow: 0 0 0 0.33rem #dfa13a, 0.32rem 0.43rem 0 #a86513;
  }

  .papercut-project .map-teaser,
  .papercut-project .map-teaser-inner {
    min-height: 650px;
  }

  .papercut-project .material-card {
    box-shadow: 0.25rem 0.34rem 0 #d6d9b4, 0 0.8rem 1.8rem rgba(8, 25, 39, 0.1);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .psalm-header,
  .design-lab,
  .map-teaser,
  .psalm-footer,
  .hero-actions,
  .timer-control,
  .material-rail {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
