:root {
  --bg: #100b0d;
  --pit: #1b1014;
  --card: #281519;
  --lift: #35191f;
  --accent: #f5223d;
  --accent2: #ff334f;
  --text: #ffffff;
  --muted: #8e7379;
  --line: #51262e;
  --spine-w: 11.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

body {
  margin: 0;
  line-height: 1.55;
  background: radial-gradient(ellipse 120% 80% at 80% 0%, #35191f 0%, var(--bg) 55%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.layout-spine {
  display: grid;
  grid-template-columns: var(--spine-w) 1fr;
  min-height: 100vh;
}

.spine-nav {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--pit) 0%, var(--bg) 100%);
}

.spine-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent2);
  margin-bottom: 2rem;
}

.spine-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spine-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  transition: color 0.15s, border-color 0.15s;
}

.spine-links a:hover,
.spine-links a:focus-visible {
  color: var(--accent2);
  border-color: var(--accent);
}

.spine-note {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.page-shell {
  max-width: 56rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero-copy h1 span {
  color: var(--accent2);
}

.hero-tagline {
  font-size: 1.1rem;
  color: #c9b3b8;
  margin: 0 0 0.75rem;
}

.hero-lede {
  color: var(--muted);
  max-width: 28rem;
  margin: 0;
}

.hero-visual {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section {
  margin-bottom: 3.5rem;
}

.section-intro.intro-right {
  text-align: right;
  max-width: 32rem;
  margin-left: auto;
  margin-bottom: 1.75rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
}

.cork-board {
  position: relative;
  min-height: 22rem;
  padding: 2rem;
  background:
    repeating-linear-gradient(
      45deg,
      #3d2818 0,
      #3d2818 2px,
      #4a3220 2px,
      #4a3220 8px
    );
  border-radius: 1rem;
  border: 3px solid #5c3d28;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.note {
  position: relative;
  width: min(100%, 17rem);
  padding: 1.1rem 1.15rem 1.25rem;
  background: #f4ecd8;
  color: #2a1810;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
}

.note::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.note h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #5a1020;
}

.note p {
  margin: 0;
  line-height: 1.45;
}

.note-a {
  transform: rotate(-2.5deg);
  margin-left: 0.5rem;
}

.note-b {
  transform: rotate(1.8deg);
  margin: -1rem auto 0;
  width: min(100%, 18rem);
}

.note-c {
  transform: rotate(-1deg);
  margin: 1.25rem 0 0 auto;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.mosaic-large {
  grid-row: span 2;
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.mosaic-small {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--pit);
}

.mosaic img {
  display: block;
  width: 100%;
  height: auto;
}

.mosaic figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legal-tabs .tab-list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.legal-tabs button {
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--pit);
  color: var(--text);
}

.legal-tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent2);
  color: #fff;
}

.tab-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  color: #e8dde0;
}

.tab-panel h3 {
  margin: 1.25rem 0 0.5rem;
  color: var(--accent2);
}

.tab-panel h3:first-child {
  margin-top: 0;
}

.tab-panel p,
.tab-panel li {
  color: #c9b3b8;
}

.tab-panel a {
  color: var(--accent2);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent2);
}

@media (max-width: 900px) {
  .layout-spine {
    grid-template-columns: 1fr;
  }

  .spine-nav {
    position: relative;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }

  .spine-brand {
    margin-bottom: 0;
  }

  .spine-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .spine-note {
    margin-top: 0;
    flex: 1 1 100%;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .section-intro.intro-right {
    text-align: left;
    margin-left: 0;
  }

  .note-b {
    margin: 1rem 0 0;
  }

  .note-c {
    margin: 1rem 0 0;
  }

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

  .mosaic-large {
    grid-row: auto;
  }
}
