:root {
  --ink: #141311;
  --paper: #f4f1ea;
  --paper-2: #e8e2d6;
  --mute: #5e574c;
  --line: #d5cdc0;
  --accent: #c4512c;
  --cream: #f4f1ea;
  --max: 72rem;
  --read: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 5;
  padding: 0.4rem 0.7rem;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.sans {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.top {
  background: var(--ink);
  color: var(--cream);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
  text-decoration: none;
}

.brand svg {
  width: 6.6rem;
  height: auto;
  display: block;
}

.brand span {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.35rem;
}

.nav a {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d9d2c6;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cream);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--accent);
}

.nav {
  align-items: center;
}

.nav-drop {
  position: relative;
}

.nav-drop summary {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9d2c6;
  cursor: pointer;
  list-style: none;
}

.nav-drop summary::-webkit-details-marker {
  display: none;
}

.nav-drop summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.45rem;
  border: 0.28em solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  vertical-align: 0.15em;
}

.nav-drop summary:hover,
.nav-drop[open] summary,
.nav-drop.here summary {
  color: var(--cream);
}

.nav-drop.here summary {
  box-shadow: inset 0 -1px 0 var(--accent);
}

.nav-menu {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 0.7rem);
  min-width: 13.5rem;
  margin: 0;
  padding: 0.35rem 0;
  background: #1c1a17;
  border: 1px solid #3a342c;
}

.nav-menu a {
  display: block;
  padding: 0.55rem 0.95rem;
  letter-spacing: 0.08em;
}

.nav-menu a[aria-current="page"] {
  box-shadow: none;
  color: var(--cream);
}

.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 4.2rem 0 4.6rem;
}

.frame {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

.read {
  width: min(100%, var(--read));
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .kicker {
  color: #e07a52;
}

h1 {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.hero h1 {
  max-width: 16ch;
  color: var(--cream);
}

.deck {
  max-width: 38rem;
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #e6e0d4;
}

.deck strong {
  color: var(--cream);
  font-weight: 560;
}

.rule-line {
  width: 3.5rem;
  height: 1px;
  margin: 1.6rem 0 1rem;
  background: var(--accent);
  border: 0;
}

.earn {
  margin: 0;
  max-width: 28rem;
  font-size: 1.15rem;
  font-style: italic;
}

.section {
  padding: 3.4rem 0;
}

.section + .section {
  padding-top: 0;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fields {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.fields a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 11rem;
  padding: 1.25rem 1.2rem 1.4rem 0;
  margin-right: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.fields li + li a {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.fields span {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.fields strong {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fields em {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--mute);
}

.fields a:hover strong {
  color: var(--accent);
}

.entry {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.entry:last-child {
  border-bottom: 1px solid var(--line);
}

.entry .meta,
.meta {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.entry h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.entry p {
  margin: 0;
}

.entry:hover h3 {
  color: var(--accent);
}

.more {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.12rem;
}

.more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps b {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 560;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.crumbs {
  margin: 0 0 1.1rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.crumbs a {
  color: var(--mute);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.page {
  padding: 3rem 0 4rem;
}

.sentence {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.35;
}

.note p {
  margin: 0 0 0.95rem;
}

.note h2 {
  margin-top: 1.8rem;
}

.note h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.figure {
  margin: 1.4rem 0 0.3rem;
}

.figure img {
  display: block;
  width: 100%;
  background: #fff;
}

.figure figcaption,
.notes {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--mute);
}

.read a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.16em;
}

.read a:hover {
  color: var(--accent);
}

.read ul,
.read ol {
  margin: 0.15rem 0 1rem;
  padding-left: 1.2rem;
}

.read li + li {
  margin-top: 0.45rem;
}

.note .methods {
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}

.note .methods h2 {
  margin-top: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.3rem 0 1.1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.48rem 0.6rem 0.48rem 0;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
  padding-right: 1rem;
  white-space: normal;
}

th {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-color: var(--ink);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2rem;
}

.foot .frame {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.foot p {
  margin: 0;
  max-width: 36rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.foot a {
  color: var(--ink);
}

body.stage {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

.stage-intro {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 0.15rem 0 0.9rem;
}

.stage-intro h1 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--cream);
}

.stage-intro p {
  margin: 0.4rem 0 0;
  max-width: 40rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #d9d2c6;
}

.stage-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #141311;
}

@media (max-width: 800px) {
  .bar,
  .stage-intro {
    align-items: flex-start;
    width: min(calc(100% - 2rem), var(--max));
  }

  .bar {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-menu {
    right: auto;
    left: 0;
  }

  .frame {
    width: min(calc(100% - 2rem), var(--max));
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .fields a,
  .fields li + li a {
    margin-right: 0;
    padding-left: 0;
    border-left: 0;
    min-height: 0;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .foot .frame {
    flex-direction: column;
  }
}
