:root {
  --paper: #f3efe6;
  --ink: #1c1916;
  --mute: #6f675e;
  --line: #ddd4c6;
  --stamp: #9d341f;
  --stamp-ink: #f8f1ea;
  --well: #141210;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 40rem);
  gap: 3rem;
  width: min(60rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.6rem 0 4rem;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 1.1rem;
  padding-top: 0.2rem;
}

.mark {
  font-family: "Bodoni Moda", "Iowan Old Style", serif;
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

#nav {
  display: grid;
  gap: 0.35rem;
}

#nav a {
  text-decoration: none;
  color: var(--mute);
}

#nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.find input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.35rem 0;
}

.text-btn {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--mute);
}

h1,
h2 {
  margin: 0;
  font-family: "Bodoni Moda", "Iowan Old Style", serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

h2 a {
  text-decoration: none;
}

.post {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid var(--line);
}

.meta {
  margin: 0.7rem 0 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.meta a {
  color: var(--stamp);
}

.still,
video {
  display: block;
  width: 100%;
  margin: 1rem 0 0;
  background: var(--well);
}

.still {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

video {
  max-height: 70vh;
}

.body p,
.lede {
  margin: 0.9rem 0 0;
  max-width: 62ch;
}

.continue {
  margin: 0.9rem 0 0;
  font-weight: 600;
}

.continue a,
.more a {
  color: var(--stamp);
}

.watch {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--stamp);
  color: var(--stamp-ink);
  text-decoration: none;
  border: 0;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.more-label {
  margin: 2.2rem 0 0.4rem;
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.more {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.more span {
  color: var(--mute);
  white-space: nowrap;
}

.note {
  margin-top: 0.8rem;
  color: var(--mute);
  max-width: 42ch;
}

.pages {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.pages a {
  color: var(--stamp);
  font-weight: 600;
}

.gate {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
  margin-top: 1.4rem;
}

label {
  display: grid;
  gap: 0.25rem;
}

.gate input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.4rem 0;
}

.door h1 {
  max-width: 10ch;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .rail {
    position: static;
  }

  #nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
