@charset "UTF-8";
:root {
  --bg: #f4ecd8;
  --bg-deep: #ead7b3;
  --ink: #2c2418;
  --ink-muted: #6b5a3f;
  --ink-heading: #4a3520;
  --gold: #b58a3f;
  --gold-bright: #d4a44a;
  --rouge: #8b3a3a;
  --rouge-bright: #a44a4a;
  --rule: #b58a3f;
  --shadow: rgba(40, 28, 16, 0.15);
  --noise-opacity: 0.04;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1410;
    --bg-deep: #261c14;
    --ink: #d8c8a8;
    --ink-muted: #8a7860;
    --ink-heading: #d4a44a;
    --gold: #c9a227;
    --gold-bright: #f1c40f;
    --rouge: #c47a4a;
    --rouge-bright: #d68a5a;
    --rule: #6b5a3f;
    --shadow: rgba(0, 0, 0, 0.5);
    --noise-opacity: 0.06;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>") var(--bg);
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: "IM Fell English", Garamond, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.75;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: inherit;
  opacity: var(--noise-opacity);
  z-index: -1;
}

main {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

article.page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink-heading);
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  line-height: 1.2;
  font-weight: normal;
  margin: 0;
}

main > h1,
article.page > h1 {
  font-size: 3.25rem;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.75rem;
  position: relative;
}
main > h1::after,
article.page > h1::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem auto 0;
  animation: drawLine 1400ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

.page-eyebrow {
  text-align: center;
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

main > article,
main {
  counter-reset: section;
}

main > h2,
article.page > h2 {
  font-size: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  counter-increment: section;
}
main > h2::before,
article.page > h2::before {
  content: counter(section, upper-roman) " ·";
  color: var(--gold);
  font-size: 0.65em;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 3ch;
}

main > h3,
article.page > h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  color: var(--ink-heading);
}
main > h3::before,
article.page > h3::before {
  content: "·  ";
  color: var(--gold);
}

main > h4,
article.page > h4 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-style: italic;
  color: var(--ink-muted);
}

p {
  margin: 0 0 1.25rem;
  hyphens: auto;
}

main > p > strong,
article.page > p > strong {
  color: var(--ink-heading);
  font-weight: 600;
}

.lede {
  font-size: 1.05em;
  color: var(--ink);
}

.lede::first-letter {
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 4.4em;
  line-height: 0.85;
  float: left;
  margin: 0.1em 0.1em 0 -0.05em;
  padding: 0.05em 0.08em 0 0;
  color: var(--ink-heading);
  font-weight: normal;
  text-shadow: 0 1px 0 var(--gold);
  animation: inkSettle 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

em, i {
  color: var(--ink);
  font-style: italic;
}

blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.25rem 0;
  color: var(--ink-muted);
  font-style: italic;
}

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2rem auto;
  width: 50%;
  opacity: 0.5;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

.rule {
  text-align: center;
  margin: 2rem 0;
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  opacity: 0.5;
}

.rule--flourish::before {
  background: linear-gradient(to right, transparent, var(--rule) 60%);
}

.rule--flourish::after {
  background: linear-gradient(to right, var(--rule) 40%, transparent);
}

.caption {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

figure.cover {
  margin: 0;
  width: 100%;
  position: relative;
}
figure.cover > a,
figure.cover > img {
  display: block;
  width: 100%;
  margin: 0;
  border: 2px solid var(--ink-heading);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 8px 24px var(--shadow);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") top left no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") top right no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") bottom left no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") bottom right no-repeat, var(--bg-deep);
  padding: 6px;
  background-color: var(--bg-deep);
  border-radius: 0;
  overflow: hidden;
  transition: filter 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: sepia(0.15);
}
figure.cover > a:hover,
figure.cover > img:hover {
  filter: sepia(0);
  transform: translateY(-2px);
}
figure.cover > a {
  background-image: none !important;
  padding-bottom: 6px;
}
figure.cover > a > img {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  filter: none;
  padding: 0;
  background: none;
}
figure.cover > figcaption {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.site-title {
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: var(--ink-heading);
  text-decoration: none;
  background: none !important;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.site-title:hover {
  color: var(--rouge);
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-heading);
  cursor: pointer;
  border-radius: 4px;
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger:hover {
  background: rgba(181, 138, 63, 0.1);
}
.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hamburger-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 18px;
}
.hamburger-icon > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), top 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger-icon > span:nth-child(1) {
  top: 0;
}
.hamburger-icon > span:nth-child(2) {
  top: 8px;
}
.hamburger-icon > span:nth-child(3) {
  top: 16px;
}
.hamburger-icon.is-open > span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.hamburger-icon.is-open > span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.is-open > span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

.menu-desktop {
  display: none;
}

.hamburger {
  display: flex;
}

@media (min-width: 1100px) {
  .menu-desktop {
    display: block;
    flex: 1;
  }

  .hamburger {
    display: none;
  }

  .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-end;
    font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  }
  .menu > li {
    position: relative;
    display: flex;
    align-items: center;
  }
  .menu > li + li::before {
    content: "·";
    color: var(--gold);
    opacity: 0.5;
    margin-right: 1.25rem;
    margin-left: calc(-1 * 1.25rem / 2);
  }
  .menu > li > a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    padding: 0.4rem 0.75rem;
    color: var(--ink-heading);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: none !important;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .menu > li > a:hover, .menu > li > a:focus-visible {
    color: var(--rouge);
    outline: none;
  }
  .menu > li > a:focus-visible {
    outline: 1px dashed var(--gold);
    outline-offset: 4px;
  }

  .menu-glyph {
    font-family: "IM Fell English", Garamond, Georgia, serif;
    color: var(--gold);
    font-size: 1.1em;
    line-height: 1;
  }

  .submenu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--bg-deep);
    border: 1px solid var(--gold);
    border-top: 2px solid var(--gold);
    padding: 0.75rem 0;
    list-style: none;
    margin: 0.4rem 0 0;
    display: none;
    z-index: 30;
    box-shadow: 0 12px 32px var(--shadow);
    font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  }
  .submenu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--gold);
  }
  .submenu > li > a {
    display: block;
    padding: 0.4rem 1.25rem;
    color: var(--ink);
    text-decoration: none;
    background: none !important;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .submenu > li > a:hover, .submenu > li > a:focus-visible {
    background: var(--bg);
    color: var(--rouge);
    outline: none;
  }
  .submenu > li > a[aria-current=page] {
    color: var(--rouge);
    font-style: italic;
  }

  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.submenu-open > .submenu {
    display: block;
  }
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg-deep);
  border-left: 1px solid var(--gold);
  box-shadow: -12px 0 40px var(--shadow);
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.drawer-title {
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.drawer-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-heading);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-close:hover {
  background: rgba(181, 138, 63, 0.1);
  color: var(--rouge);
}
.drawer-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}
.drawer-menu > li {
  border-bottom: 1px solid var(--rule);
}
.drawer-menu > li:last-child {
  border-bottom: 0;
}

.drawer-link,
.drawer-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 1.25rem;
  border: 0;
  background: transparent;
  color: var(--ink-heading);
  text-decoration: none;
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-link:hover, .drawer-link:focus-visible,
.drawer-toggle:hover,
.drawer-toggle:focus-visible {
  background: var(--bg);
  color: var(--rouge);
  outline: none;
}
.drawer-link:focus-visible,
.drawer-toggle:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: -4px;
}
.drawer-link[aria-current=page],
.drawer-toggle[aria-current=page] {
  color: var(--rouge);
  font-style: italic;
}
.drawer-link .menu-glyph,
.drawer-toggle .menu-glyph {
  color: var(--gold);
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
  width: 1.5em;
  text-align: center;
}
.drawer-link .menu-label,
.drawer-toggle .menu-label {
  flex: 1;
}

.drawer-chevron {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-chevron.is-flipped {
  transform: rotate(90deg);
}

.drawer-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-items.is-expanded {
  max-height: 80vh;
}
.drawer-items > li > a {
  display: block;
  padding: 0.75rem 1.25rem 0.75rem calc(1.25rem + 2em);
  color: var(--ink);
  text-decoration: none;
  background: none !important;
  font-family: "IM Fell English", Garamond, Georgia, serif;
  font-size: 1rem;
  border-bottom: 1px solid rgba(181, 138, 63, 0.15);
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}
.drawer-items > li > a:hover, .drawer-items > li > a:focus-visible {
  background: var(--bg);
  color: var(--rouge);
  outline: none;
}
.drawer-items > li > a:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: -4px;
}
.drawer-items > li > a[aria-current=page] {
  color: var(--rouge);
  font-style: italic;
}
.drawer-items > li:last-child > a {
  border-bottom: 0;
}

@media (max-width: 600px) {
  .drawer {
    width: 100vw;
    border-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drawer,
.drawer-overlay,
.drawer-items,
.hamburger-icon > span {
    transition: none !important;
  }
}
main a,
article.page a {
  color: var(--rouge);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 95%;
  transition: background-size 400ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms;
  padding-bottom: 1px;
}
main a:hover, main a:focus-visible,
article.page a:hover,
article.page a:focus-visible {
  color: var(--rouge-bright);
  background-size: 100% 1px;
  outline: none;
}
main a:focus-visible,
article.page a:focus-visible {
  outline: 1px dashed var(--gold);
  outline-offset: 3px;
}
main a[href^=http]::after,
article.page a[href^=http]::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.7;
}

main a:has(> img),
article.page a:has(> img) {
  background-image: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border: 2px solid var(--ink-heading);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 8px 24px var(--shadow);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") top left no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") top right no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") bottom left no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 1 L9 7 L15 8 L9 9 L8 15 L7 9 L1 8 L7 7 Z' fill='%23b58a3f'/></svg>") bottom right no-repeat, var(--bg-deep);
  padding: 6px;
  background-color: var(--bg-deep);
  border-radius: 0;
  transition: filter 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: sepia(0.15);
}
img:hover {
  filter: sepia(0);
  transform: translateY(-2px);
}

img.left, a.left {
  max-width: 45%;
  float: left;
  margin: 0.4rem 2rem 1.25rem 0;
  shape-outside: margin-box;
}

img.right, a.right {
  max-width: 45%;
  float: right;
  margin: 0.4rem 0 1.25rem 2rem;
  shape-outside: margin-box;
}

br.clear {
  clear: both;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3.5rem 0;
}
.gallery a {
  display: block;
  overflow: visible;
  background-image: none;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery a:hover {
  transform: rotate(0deg) translateY(-4px);
  filter: brightness(1.05);
}
.gallery a:nth-child(3n+1) {
  --tilt: -0.8deg;
}
.gallery a:nth-child(3n+2) {
  --tilt: 0.6deg;
}
.gallery a:nth-child(3n+3) {
  --tilt: -0.3deg;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin: 0;
  transition: filter 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.glightbox-container .gdesc-inner {
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
}

code {
  font-family: "IM Fell DW Pica", Courier, monospace;
  background: var(--bg-deep);
  padding: 0 0.3em;
  border-radius: 2px;
  color: var(--ink-heading);
  font-size: 0.92em;
}

main ul,
article.page ul {
  padding-left: 2rem;
  margin: 0 0 1.25rem;
}

main ul li::marker,
article.page ul li::marker {
  color: var(--gold);
  content: "✦  ";
  font-size: 0.85em;
}

.atlas-toc {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0;
  counter-reset: toc;
  border-top: 1px solid var(--rule);
}

.atlas-toc > li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 4ch 1fr;
  column-gap: 2rem;
  align-items: baseline;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.atlas-toc > li::before {
  content: counter(toc, upper-roman) ".";
  grid-column: 1;
  grid-row: 1/span 2;
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: right;
  align-self: baseline;
}
.atlas-toc > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.atlas-toc > li:hover {
  background: rgba(181, 138, 63, 0.06);
}
.atlas-toc > li:hover::after {
  transform: scaleX(1);
}
.atlas-toc > li a {
  grid-column: 2;
  font-family: "IM Fell English SC", "IM Fell English", Garamond, Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--ink-heading);
  text-decoration: none;
  background: none !important;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.atlas-toc > li a:hover {
  color: var(--rouge);
}
.atlas-toc > li p {
  grid-column: 2;
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 8rem;
  }
}
@keyframes inkSettle {
  0% {
    opacity: 0;
    filter: blur(2px);
    text-shadow: 0 0 8px var(--gold);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    text-shadow: 0 1px 0 var(--gold);
  }
}
main > h1,
article.page > h1 {
  animation: fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

main > .lede,
article.page > .lede {
  animation: fadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 200ms;
}

main > h2,
main > p,
main > .gallery,
main > .atlas-toc,
article.page > h2,
article.page > p,
article.page > .gallery {
  animation: fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

article.page > *:nth-child(1) {
  animation-delay: 0ms;
}

article.page > *:nth-child(2) {
  animation-delay: 100ms;
}

article.page > *:nth-child(3) {
  animation-delay: 200ms;
}

article.page > *:nth-child(4) {
  animation-delay: 300ms;
}

article.page > *:nth-child(5) {
  animation-delay: 400ms;
}

article.page > *:nth-child(6) {
  animation-delay: 500ms;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  main > h1::after,
article.page > h1::after {
    width: 8rem;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
