:root {
  --ink: #142435;
  --fjord: #163b55;
  --fjord-deep: #081522;
  --ember: #a83e2d;
  --gold: #e9b95d;
  --paper: #fff8ec;
  --mist: #e8eef0;
}

* { box-sizing: border-box; }
html { background: var(--fjord-deep); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.62 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #7f2b22; text-underline-offset: .18em; }
a:hover, a:focus { color: #b14631; }
.skip { position: absolute; left: -9999px; }
.skip:focus {
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: #fff;
  background: #000;
}
.preview-bar {
  padding: .35rem 1rem;
  color: #fff2dc;
  background: #7e2e26;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}
.play-nav {
  position: relative;
  z-index: 10;
  padding: .75rem max(1rem, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(233,185,93,.38);
  background: var(--fjord-deep);
}
.play-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.play-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d8e0e5;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.play-nav a:hover, .play-nav a:focus, .play-nav [aria-current="page"] {
  color: var(--gold);
}
.universe-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .55rem 1rem;
  color: #dce5e9;
  background: #102537;
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.universe-mark strong { color: var(--gold); }

.berk-detail-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  color: #fff;
  background: #36546a var(--hero-wide) center / cover no-repeat;
}
.berk-detail-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,18,28,.88) 0%, rgba(6,18,28,.66) 36%, rgba(6,18,28,.08) 72%);
  content: "";
}
.berk-detail-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4rem;
}
.berk-detail-kicker {
  margin: 0 0 .45rem;
  color: #f4d394;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.berk-detail-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: .95;
  text-wrap: balance;
}
.berk-detail-hero__lede {
  max-width: 660px;
  margin: 1.1rem 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}
.berk-detail-status {
  display: inline-block;
  margin: .2rem 0 0;
  padding: .7rem .9rem;
  border-left: 4px solid var(--gold);
  color: #fff;
  background: rgba(4,14,23,.78);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.berk-detail-body {
  width: min(960px, calc(100% - 2rem));
  margin: -2rem auto 0;
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}
.berk-detail-section {
  margin: 0 0 1.2rem;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid #d9d1c5;
  border-radius: 3px;
  background: rgba(255,252,246,.98);
  box-shadow: 0 10px 35px rgba(32,42,52,.09);
}
.berk-detail-section h2 {
  margin: 0 0 .65rem;
  color: var(--fjord);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.12;
}
.berk-detail-section h3 { margin: 1.3rem 0 .35rem; color: #6f2a22; }
.berk-detail-section p { margin: .7rem 0; }
.berk-detail-section p a, .berk-detail-section li a { display: inline-flex; align-items: center; min-height: 44px; }
.berk-detail-section li + li { margin-top: .55rem; }
.berk-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #d0c5b7;
  list-style: none;
}
.berk-detail-facts li { margin: 0; padding: 1rem; background: #f5ede0; }
.berk-detail-facts strong { display: block; margin-bottom: .25rem; color: #8c3328; text-transform: uppercase; }
.berk-detail-steps { counter-reset: steps; padding-left: 0; list-style: none; }
.berk-detail-steps > li { position: relative; padding: .4rem 0 1rem 3.35rem; }
.berk-detail-steps > li::before {
  position: absolute;
  top: .4rem;
  left: 0;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  color: #fff;
  background: var(--ember);
  content: counter(steps);
  counter-increment: steps;
  font-weight: 850;
  line-height: 2.45rem;
  text-align: center;
}
.berk-detail-note { padding: .8rem 1rem; border-left: 4px solid var(--gold); background: #fff1cc; }
.berk-detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem !important; }
.berk-detail-actions a, .preview-form a, .berk-practice-download a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--ember);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.berk-number-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  padding: 0;
  list-style: none;
}
.berk-number-grid li { margin: 0; padding: .9rem; border-left: 3px solid var(--gold); background: #f3ede4; }
.berk-detail-credit {
  padding: 1.5rem;
  color: #cbd7de;
  background: var(--fjord-deep);
  font-size: .8rem;
  text-align: center;
}
.berk-detail-credit p { margin: .45rem auto; max-width: 800px; }
.preview-form { padding: 1.4rem; border: 1px dashed #8d7966; background: #f4ecdf; text-align: center; }
.preview-form strong { display: block; margin-bottom: .35rem; font-family: Georgia, serif; font-size: 1.5rem; }
.preview-only { margin: .5rem 0 1rem; color: #735d4a; font-size: .82rem; font-weight: 700; }
.berk-practice-player select, .berk-practice-player audio { width: 100%; min-height: 44px; max-width: 100%; }
.berk-practice-player button {
  min-height: 44px;
  margin: .2rem;
  padding: .55rem .8rem;
  border: 0;
  color: #fff;
  background: var(--fjord);
  font-weight: 750;
}
.berk-practice-player button:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.45); }
.berk-role-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.berk-role-options label { padding: .4rem; background: #f0e9de; }
.berk-role-player summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .45rem .25rem; cursor: pointer; }
.site-foot { padding: 1.4rem; color: #b9c7d0; background: #06111c; font-size: .76rem; text-align: center; }

.v4-index { color: #fff; background: #112b3c; }
.v4-show-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #c38f70 url("art/v4-show-wide.jpg") center bottom / cover no-repeat;
}
.v4-show-hero::after { position:absolute; inset:0; background:rgba(12,25,34,.12); content:""; }
.v4-show-copy { position:relative; z-index:1; width:min(680px,88vw); margin-top:-10rem; text-align:center; text-shadow:0 2px 10px rgba(255,248,235,.72); }
.v4-show-copy img { display:block; width:100%; height:auto; filter:drop-shadow(0 3px 4px rgba(48,24,20,.38)); }
.v4-show-copy p { margin:.65rem 0; color:#172a38; font-size:clamp(1rem,2.2vw,1.55rem); font-weight:850; }
.v4-grid { width:min(1120px,calc(100% - 2rem)); margin:0 auto; padding:3rem 0 4rem; }
.v4-grid h1 { margin:.2rem 0; font-family:Georgia,serif; font-size:clamp(2.4rem,5vw,4.5rem); }
.v4-grid-intro { max-width:760px; color:#d2dde2; }
.v4-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; margin-top:2rem; }
.v4-card { min-height:330px; display:flex; align-items:flex-end; overflow:hidden; border:1px solid rgba(233,185,93,.45); background-position:center; background-size:cover; text-decoration:none; }
.v4-card div { width:100%; padding:1.35rem; color:#fff; background:linear-gradient(transparent,rgba(3,13,21,.93) 38%); }
.v4-card h2 { margin:2.5rem 0 .2rem; font-family:Georgia,serif; font-size:2rem; }
.v4-card p { margin:0; color:#dce5e9; }
.v4-card:last-child { grid-column:1/-1; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .play-nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .35rem; }
  .play-nav a { justify-content: center; font-size: .65rem; text-align: center; }
  .universe-mark { flex-direction: column; gap: .1rem; }
  .berk-detail-hero { min-height: 560px; background-image: var(--hero-mobile); background-position: center bottom; }
  .berk-detail-hero::after { background: linear-gradient(180deg, rgba(6,18,28,.83), rgba(6,18,28,.45) 58%, rgba(6,18,28,.12)); }
  .berk-detail-hero__inner { padding: 4rem 0 3rem; text-align: center; }
  .berk-detail-status { max-width: 92%; }
  .berk-detail-body { margin-top: -1.25rem; }
  .berk-detail-facts, .berk-number-grid, .berk-role-options { grid-template-columns: 1fr; }
  .berk-detail-steps > li { padding-left: 0; padding-top: 3.3rem; }
  .v4-show-hero { min-height:760px; background-image:url("art/v4-show-mobile.jpg"); }
  .v4-show-copy { margin-top:-13rem; }
  .v4-cards { grid-template-columns:1fr; }
  .v4-card:last-child { grid-column:auto; }
}

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