/* Lathmar simple GitHub Pages website
   Structure:
   - Fullscreen landing screen with title image
   - Two-column follow-up section
   - Static HTML/CSS only, suitable for GitHub Pages
*/

:root {
  --bg: #080706;
  --panel: rgba(20, 17, 14, 0.40); /* adjusted transparency from 0.92 to 0.40 for glassy effect */
  --panel-border: rgba(196, 163, 95, 0.35);
  --text: #e8dcc5;
  --muted: #b8a98d;
  --gold: #c9a35a;
  --gold-bright: #efce7b;
  --shadow: rgba(0, 0, 0, 0.78);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(88, 60, 32, 0.25), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Diphylleia", Georgia, "Times New Roman", serif;
  line-height: 1.55;
  /* background brick pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23e8dcc5' fill-opacity='0.05'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-menu {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 0.7rem;
  pointer-events: none;
}

.menu-toggle {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  gap: 0.34rem;
  padding: 0.78rem;
  border: 1px solid rgba(239, 206, 123, 0.9);
  background:
    linear-gradient(180deg, rgba(66, 42, 17, 0.92), rgba(8, 7, 6, 0.9));
  box-shadow:
    0 0.9rem 1.8rem rgba(0, 0, 0, 0.55),
    0 0 1rem rgba(223, 170, 78, 0.18);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(3px);
}

.menu-toggle span:not(.visually-hidden) {
  width: 2rem;
  height: 0.18rem;
  display: block;
  background: #fff1c6;
  box-shadow: 0 0 0.35rem rgba(239, 206, 123, 0.45);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu.is-open .menu-toggle span:nth-child(2) {
  transform: translateY(0.52rem) rotate(45deg);
}

.site-menu.is-open .menu-toggle span:nth-child(3) {
  opacity: 0;
}

.site-menu.is-open .menu-toggle span:nth-child(4) {
  transform: translateY(-0.52rem) rotate(-45deg);
}

.menu-panel {
  min-width: 15rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid rgba(201, 163, 90, 0.5);
  background: rgba(9, 8, 7, 0.92);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(4px);
}

.site-menu.is-open .menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel a {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(201, 163, 90, 0.25);
  color: #f6e7c4;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  border-color: rgba(239, 206, 123, 0.8);
  background: rgba(63, 44, 22, 0.72);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 163, 90, 0.24);
  background: #000;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  filter: brightness(1.08) contrast(1.03) saturate(1.05);
  z-index: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(92vw, var(--max-width));
  padding: 3rem 1.5rem;
  text-align: center;
  text-shadow:
    0 3px 5px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.85);
}

.hero__title-logo {
  width: min(92vw, 980px);
  height: auto;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.9))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7));
  /* parallax effect on Lathmar logo */
  position: sticky;
  transform: translateY(var(--scroll-offset, 0));
  will-change: transform;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1 {
  margin: 0;
  color: #f1dfb7;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.tagline {
  margin: 1.1rem auto 0;
  max-width: 680px;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(10, 8, 7, 0.45);
  backdrop-filter: blur(2px);
  color: #f2e6c9;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.45);
}

.hero__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__nav a,
.button {
  display: inline-block;
  min-width: 9rem;
  padding: 0.78rem 1.12rem;
  border: 1px solid rgba(239, 206, 123, 0.78);
  background: rgba(10, 8, 7, 0.84);
  color: #f6e7c4;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.62);
  box-shadow:
    0 0.7rem 1.45rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(111, 79, 37, 0.3) inset;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
  backdrop-filter: blur(1px); /* matching glassy look in header */
}

.hero__nav a:hover,
.button:hover {
  background: rgba(63, 44, 22, 0.9);
  border-color: rgba(255, 220, 140, 0.96);
  box-shadow:
    0 0.95rem 1.85rem rgba(0, 0, 0, 0.54),
    0 0 14px rgba(223, 170, 78, 0.26);
  transform: translateY(-1px);
  text-decoration: none;
}

.hero__nav a:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(255, 226, 152, 0.95);
  outline-offset: 2px;
}

.page {
  /* required height for whole section scrolling */
  min-height: 100vh;
  min-height: 100svh;
  width: min(92vw, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.panel {
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px); /* glassy look */
}

.panel h2 {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-size: 1.75rem;
  line-height: 1.15;
}

.description p:first-of-type {
  font-size: 1.08rem;
}

.feature-list {
  margin: 1.3rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 0.35rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 163, 90, 0.36);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  text-align: center;
}

.button--primary {
  background: rgba(101, 63, 28, 0.9);
  border-color: rgba(239, 206, 123, 0.8);
}

.codex-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 163, 90, 0.18);
}

.codex-layout {
  position: relative;
  z-index: 1;
  width: min(92vw, var(--max-width));
  height: clamp(620px, 68svh, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  align-items: stretch;
}

.codex-intro {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(239, 206, 123, 0.5);
  background:
    linear-gradient(90deg, rgba(239, 206, 123, 0.1), transparent 72%),
    rgba(9, 8, 7, 0.34);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(2px);
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: #98d8c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.codex-intro h2 {
  margin: 0;
  color: #f3d88f;
  font-size: clamp(2rem, 2.5rem, 2.5rem);
  line-height: 1.04;
  text-shadow: 0 0.35rem 1.4rem rgba(0, 0, 0, 0.72);
}

.codex-intro h2 span {
  display: block;
}

.codex-intro h2 span:last-child {
  margin-top: 1.2rem;
  font-size: 0.78em;
  white-space: nowrap;
}

.codex-intro p:last-child {
  margin: 1.2rem 0 0;
  color: #d8c9ac;
  font-size: 1.04rem;
}

.codex-console {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid rgba(201, 163, 90, 0.36);
  background:
    linear-gradient(135deg, rgba(15, 12, 10, 0.86), rgba(7, 7, 7, 0.7)),
    rgba(8, 7, 6, 0.64);
  box-shadow:
    0 1.4rem 3rem rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(239, 206, 123, 0.08) inset;
  backdrop-filter: blur(3px);
}

.codex-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.codex-tab,
.codex-choice {
  font: inherit;
  color: #f0dfbf;
  cursor: pointer;
}

.codex-tab {
  flex: 1;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(201, 163, 90, 0.36);
  background: rgba(14, 12, 10, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.codex-tab.is-active {
  border-color: rgba(239, 206, 123, 0.9);
  color: #fff1c6;
  background:
    linear-gradient(180deg, rgba(105, 72, 29, 0.76), rgba(30, 22, 13, 0.86));
  box-shadow: 0 0 1rem rgba(223, 170, 78, 0.16);
}

.codex-tab:not(.is-active):hover,
.codex-tab:not(.is-active):focus-visible {
  border-color: rgba(239, 206, 123, 0.68);
  color: #fff1c6;
  background: linear-gradient(180deg, rgba(77, 53, 24, 0.78), rgba(21, 16, 11, 0.9));
  box-shadow: 0 0 0.8rem rgba(223, 170, 78, 0.12);
}

.codex-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  min-height: 0;
}

.codex-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding-right: 0.25rem;
  scrollbar-color: rgba(239, 206, 123, 0.66) rgba(7, 7, 7, 0.6);
  scrollbar-width: thin;
  transition: opacity 120ms ease, transform 120ms ease;
}

.codex-list.is-changing {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.codex-list::-webkit-scrollbar {
  width: 0.65rem;
}

.codex-list::-webkit-scrollbar-track {
  border: 1px solid rgba(201, 163, 90, 0.18);
  background: rgba(7, 7, 7, 0.6);
}

.codex-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 7, 7, 0.6);
  border-radius: 999px;
  background: linear-gradient(180deg, #f0ce79, #80551f);
}

.codex-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff1c6, #a46d2a);
}

.codex-choice {
  position: relative;
  width: 100%;
  min-height: 5.5rem;
  display: grid;
  align-content: end;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(184, 169, 141, 0.2);
  background: rgba(7, 7, 7, 0.52);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.32) inset;
  animation: codex-choice-enter 180ms ease both;
  animation-delay: calc(var(--codex-card-index, 0) * 22ms);
}

@keyframes codex-choice-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.codex-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 105% 78% at 5% 80%, rgba(7, 6, 5, 0.9) 0%, rgba(7, 6, 5, 0.54) 40%, transparent 74%);
  transition: background 160ms ease;
}

.codex-choice img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--codex-card-position, 50% 35%);
  filter: saturate(0.7) brightness(0.7) contrast(1.1);
  opacity: 0.78;
  transform-origin: var(--codex-card-position, 50% 35%);
  transform: scale(var(--codex-card-scale, 1));
  transition: filter 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.codex-choice span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: -0.25rem;
  color: #8fcaba;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0.12rem 0.35rem rgba(0, 0, 0, 1), 0 0 0.6rem rgba(0, 0, 0, 0.9);
}

.codex-choice strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0.12rem 0.35rem rgba(0, 0, 0, 1), 0 0 0.7rem rgba(0, 0, 0, 0.9);
}

.codex-choice:hover,
.codex-choice:focus-visible,
.codex-choice.is-active {
  border-color: rgba(239, 206, 123, 0.78);
  color: #fff1c6;
  text-decoration: none;
}

.codex-choice:hover img,
.codex-choice:focus-visible img,
.codex-choice.is-active img {
  filter: grayscale(0) saturate(1);
  transform: scale(calc(var(--codex-card-scale, 1) + 0.06));
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .codex-list,
  .codex-choice {
    animation: none;
    transition: none;
  }
}

.codex-choice:hover::after,
.codex-choice:focus-visible::after,
.codex-choice.is-active::after {
  background: radial-gradient(ellipse 105% 78% at 5% 80%, rgba(24, 16, 8, 0.92) 0%, rgba(71, 45, 18, 0.58) 40%, transparent 74%);
}

.codex-detail {
  min-height: 100%;
  position: relative;
  border: 1px solid rgba(239, 206, 123, 0.26);
  overflow: hidden;
}

.codex-depth-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-out;
}

.codex-depth-stage.is-ready {
  opacity: 1;
}

.codex-depth-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.codex-detail__card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background:
    radial-gradient(ellipse 105% 78% at 30% 100%, rgba(8, 7, 6, 0.9) 0%, rgba(8, 7, 6, 0.56) 67%, transparent 82%),
    var(--codex-art);
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease-in-out;
}

.codex-detail__card.is-visible {
  opacity: 1;
}

.codex-detail__card > :not(.codex-depth-stage) {
  position: relative;
  z-index: 2;
}

.codex-detail__type {
  margin: 0 0 -0.25rem;
  color: #98d8c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.9);
}

.codex-detail h3 {
  margin: 0;
  color: #f5d987;
  font-size: 2.15rem;
  line-height: 1.05;
  text-shadow: 0 0.25rem 0.9rem rgba(0, 0, 0, 0.92);
}

.codex-detail p:not(.codex-detail__type) {
  margin: 1rem 0 0;
  color: #e8dcc5;
  font-size: 1.12rem;
  text-shadow: 0 0.15rem 0.65rem rgba(0, 0, 0, 0.96);
}

.codex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.codex-tags span {
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(152, 216, 200, 0.34);
  background: rgba(11, 35, 31, 0.58);
  color: #d7fff3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.95);
}

.small-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  width: 100%; /* covers the brick patterns */
  margin: 0 auto;
  padding: 2rem calc((100vw - min(92vw, var(--max-width))) / 2) 3rem; /* contents still honor the --max-width position */
  color: rgba(232, 220, 197, 0.62);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid rgba(201, 163, 90, 0.18);
  box-shadow: 0 -1rem 2.4rem rgba(0, 0, 0, 0.42);
  background-color: var(--bg); /* covers the brick patterns */
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
  padding: 6rem 0 4rem;
}

.legal-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(201, 163, 90, 0.36);
  background: rgba(20, 17, 14, 0.58);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(2px);
}

.legal-panel h1,
.legal-panel h2,
.legal-panel h3 {
  color: var(--gold-bright);
  line-height: 1.15;
}

.legal-panel h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-panel h2 {
  margin: 0 0 0.9rem;
}

.legal-panel h3 {
  margin: 1.5rem 0 0.55rem;
  color: #f3d88f;
}

.legal-panel article + article,
.supporters-panel {
  margin-top: 1.5rem;
}

.legal-grid,
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.legal-grid article,
.supporters-panel,
.legal-panel article:not(.supporters-panel) {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid rgba(201, 163, 90, 0.26);
  background: rgba(8, 7, 6, 0.36);
}

.legal-grid article + article {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: #e8dcc5;
}

.legal-panel ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.legal-panel li + li {
  margin-top: 0.45rem;
}

@media (min-width: 821px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  .page,
  .codex-section {
    scroll-snap-align: start;
  }
}

@media (max-width: 820px) {
  .site-menu {
    top: 0.75rem;
    right: 0.75rem;
  }

  .menu-toggle {
    width: 3.35rem;
    height: 3.35rem;
  }

  .menu-toggle span:not(.visually-hidden) {
    width: 1.65rem;
  }

  .menu-panel {
    min-width: min(17rem, calc(100vw - 1.5rem));
  }

  .hero {
    min-height: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .hero__image {
    transform: scale(1.08);
  }

  .hero__title-logo {
    width: min(94vw, 760px);
  }

  .hero__nav a,
  .button {
    width: 100%;
    max-width: 22rem;
  }

  /* reposition hero content on smaller screens to avoid clipping */
  .hero__content {
    padding: 18% 0;
  }

  .codex-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .codex-layout {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1.5rem;
  }

  .codex-intro,
  .codex-console {
    padding: 1.1rem;
  }

  .codex-intro h2 {
    font-size: 2rem;
  }

  .codex-body {
    grid-template-areas:
      "detail"
      "list";
    grid-template-columns: 1fr;
  }

  .codex-list {
    grid-area: list;
    max-height: none;
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .codex-choice {
    min-height: 5.5rem;
  }

  .codex-detail {
    grid-area: detail;
    min-height: 28rem;
  }

  .codex-detail h3 {
    font-size: 1.85rem;
  }

  .legal-shell {
    padding-top: 5rem;
  }

  .legal-grid,
  .supporters-grid {
    grid-template-columns: 1fr;
  }
}
