@font-face {
  font-family: "Site Serif";
  src: url("../fonts/noto-serif-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Site Serif";
  src: url("../fonts/noto-serif-sc-700.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Site Serif";
  src: url("../fonts/noto-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0106-0107, U+0141-0142, U+0160-0161;
}

@font-face {
  font-family: "Site Serif";
  src: url("../fonts/noto-serif-latin-700.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0106-0107, U+0141-0142, U+0160-0161;
}

@font-face {
  font-family: "Site Sans";
  src: url("../fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Site Sans";
  src: url("../fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Site Sans";
  src: url("../fonts/noto-sans-sc-700.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Site Sans";
  src: url("../fonts/noto-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0106-0107, U+0141-0142, U+0160-0161;
}

@font-face {
  font-family: "Site Sans";
  src: url("../fonts/noto-sans-latin-400.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0106-0107, U+0141-0142, U+0160-0161;
}

@font-face {
  font-family: "Site Sans";
  src: url("../fonts/noto-sans-latin-700.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0106-0107, U+0141-0142, U+0160-0161;
}

@font-face {
  font-family: "Site Latin";
  src: url("../fonts/noto-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Site Latin";
  src: url("../fonts/noto-serif-latin-700.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6efe0;
  --bg-raised: #fbf7f0;
  --ink: #2f343b;
  --muted: #5c564e;
  --line: rgba(47, 52, 59, 0.12);
  --gold: #7a5a28;
  --veil: #1a140f;
  --cream: #f6efe0;
  --measure: 680px;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Site Sans", "Site Latin", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
}

section,
.sheet,
h1,
h2 {
  scroll-margin-top: 112px;
}

.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6,
h1,
h2,
h3 {
  font-family: "Site Serif", "Site Latin", "Noto Serif CJK SC", "Noto Serif SC", serif;
  font-weight: 600;
  text-wrap: balance;
  color: var(--ink);
}

.heading-1,
h1.heading-1 {
  margin: 0;
  font-size: 60px;
  line-height: 60px;
}

h1 {
  margin: 0 0 var(--s-200);
  font-size: 36px;
  line-height: 40px;
}

h1::after {
  content: "";
  display: block;
  width: var(--s-400);
  height: 1px;
  margin-top: var(--s-200);
  background: var(--gold);
}

.hero h1::after,
.tagline h2::after {
  content: none;
}

h2,
.heading-4 {
  margin: var(--s-700) 0 var(--s-200);
  font-size: 30px;
  line-height: 36px;
}

.caption-3 + h2,
.kicker + h1 {
  margin-top: var(--s-75);
}

h3,
.heading-5 {
  margin: 0 0 var(--s-100);
  font-size: 24px;
  line-height: 32px;
}

.heading-3 {
  margin: 0;
  font-size: 36px;
  line-height: 40px;
}

.title-1 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.title-3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.body-3,
p {
  margin: 0 0 var(--s-200);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.body-7,
.lede {
  margin: 0 0 var(--s-200);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.caption-2 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.caption-3 {
  margin: 0 0 var(--s-75);
  color: var(--gold);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.caption-5 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.button-md,
.button-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  min-height: 44px;
  padding: var(--s-75) var(--s-100);
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--cream);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button-md {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.button-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(246, 239, 224, 0.7);
}

.button-md:hover,
.button-sm:hover {
  transform: translateY(-2px);
}

.button-md:active,
.button-sm:active {
  transform: scale(0.98);
}

a {
  color: #1c4338;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #102820;
}

.hero a.button-md,
.hero a.button-md:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 32px, var(--measure));
  margin-inline: auto;
}

.wrap.chapter,
.wrap.stage {
  width: min(100% - 32px, 1080px);
}

.skip {
  position: fixed;
  left: var(--s-200);
  top: var(--s-200);
  transform: translateY(-160%);
  z-index: 40;
  background: var(--bg-raised);
  color: var(--ink);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-md);
}

.skip:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: var(--s-200);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--s-100);
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: var(--s-75) var(--s-100);
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(246, 239, 224, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  pointer-events: none;
}

.site-header.is-open::after {
  opacity: 0;
}

.site-nav {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--s-75);
  color: inherit;
  text-decoration: none;
  padding: var(--s-50) var(--s-50);
}

.brand-latin {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.brand-title {
  font-family: "Site Serif", "Noto Serif CJK SC", serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.brand,
.nav-toggle {
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 500ms var(--curve), opacity 300ms var(--curve);
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  transform: translateY(-5px);
}

.nav-toggle-icon::after {
  transform: translateY(5px);
}

.site-header.is-open .nav-toggle-icon {
  background: transparent;
}

.site-header.is-open .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-50);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-75) var(--s-50);
  color: var(--ink);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold);
}

@media (max-width: 47.99rem) {
  .site-nav {
    position: fixed;
    inset: 0;
    display: none;
    padding: var(--s-900) var(--s-300) var(--s-500);
    background: rgba(246, 239, 224, 0.94);
    backdrop-filter: blur(20px);
  }

  .site-header.is-open .site-nav {
    display: block;
    z-index: 1;
  }

  .site-nav ul {
    align-items: flex-start;
  }

  .site-header.is-open .site-nav a {
    animation: menu-rise 500ms var(--curve) both;
  }

  .site-header.is-open .site-nav li:nth-child(1) a { animation-delay: 0ms; }
  .site-header.is-open .site-nav li:nth-child(2) a { animation-delay: 60ms; }
  .site-header.is-open .site-nav li:nth-child(3) a { animation-delay: 120ms; }
  .site-header.is-open .site-nav li:nth-child(4) a { animation-delay: 180ms; }
  .site-header.is-open .site-nav li:nth-child(5) a { animation-delay: 240ms; }
  .site-header.is-open .site-nav li:nth-child(6) a { animation-delay: 300ms; }
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 0;
  }

  .site-nav a {
    min-height: 44px;
    padding: var(--s-50) var(--s-75);
    font-size: 14px;
    line-height: 20px;
  }
}

@keyframes menu-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main {
  padding-bottom: var(--s-800);
}

body:not(.home) main {
  padding-top: var(--s-900);
}

.kicker {
  margin: 0 0 var(--s-75);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.kicker a {
  color: inherit;
}

.notice {
  margin: 0 0 var(--s-300);
  padding: var(--s-200);
  background: #efe6d4;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  color: var(--cream);
}

.hero-media,
.motion-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img,
.motion-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: center 42%;
  transform: scale(1.08);
  animation: chapel 32s cubic-bezier(0.2, 0.7, 0.3, 1) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  opacity: 0.58;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: var(--s-900) 0 var(--s-500);
}

.hero-kicker,
.hero .caption-3,
.hero-sub,
.hero-note,
.hero-caption {
  color: var(--cream);
}

.nav-scrim {
  display: none;
}

body:not(.home) .nav-scrim,
.home .site-header.is-scrolled .nav-scrim {
  display: block;
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 88px;
  background: var(--bg);
  pointer-events: none;
}

body:not(.home) .site-header::after,
.home .site-header.is-scrolled::after {
  background: var(--bg);
  backdrop-filter: none;
}

.hero-title {
  max-width: 680px;
  margin: var(--s-100) 0 var(--s-200);
  background-image: linear-gradient(90deg, #ffffff, #9b9b9b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin-bottom: var(--s-300);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-100);
  margin-bottom: var(--s-200);
}

.hero-note a,
.hero-caption a {
  color: var(--cream);
}

.hero-caption {
  margin-top: var(--s-300);
}

.sheet {
  padding: var(--s-700) 0 var(--s-400);
}

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

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  text-decoration: none;
}

.tagline {
  padding: var(--s-800) 0;
}

.tagline .heading-3 {
  max-width: 680px;
}

.tagline .heading-3 + .heading-3 {
  margin-top: var(--s-100);
}

.tag-word {
  display: inline;
}

.js .tag-word {
  color: rgba(47, 52, 59, 0.32);
  transition: color 500ms var(--curve);
}

.js .tag-word.is-on,
.js .tagline.is-in .tag-word {
  color: var(--ink);
}

.js .tagline.is-in .word-2 { transition-delay: 220ms; }
.js .tagline.is-in .word-3 { transition-delay: 440ms; }
.js .tagline.is-in .word-4 { transition-delay: 660ms; }

.chapter {
  display: grid;
  gap: var(--s-300);
  padding: var(--s-500) 0;
}

.frame {
  margin: 0;
  padding: var(--s-75);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.frame img {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
}

.frame figcaption {
  padding: var(--s-100) var(--s-50) var(--s-50);
  color: var(--muted);
}

.frame-tall img {
  height: auto;
  object-fit: contain;
}

.motion-clip {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: var(--r-md);
}

.motion-clip img {
  height: 100%;
  transform: scale(1.06);
  animation: vault 44s cubic-bezier(0.2, 0.7, 0.3, 1) infinite alternate;
  object-position: center 46%;
}

@keyframes chapel {
  from { transform: scale(1.06) translate3d(0, 4%, 0); }
  to { transform: scale(1.22) translate3d(0, -6%, 0); }
}

@keyframes vault {
  from { transform: scale(1.04) translate3d(0, 2%, 0); }
  to { transform: scale(1.16) translate3d(0, -4%, 0); }
}

html[data-motion="off"] .hero-media img,
html[data-motion="off"] .motion-clip img {
  animation-play-state: paused;
}

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--curve), transform 700ms var(--curve);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.quiet-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-50) var(--s-200);
  margin: var(--s-100) 0 0;
  padding: 0;
  list-style: none;
}

.quiet-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.plain-list,
.timeline {
  margin: 0 0 var(--s-200);
  padding-left: var(--s-300);
}

.plain-list li,
.timeline li {
  margin: var(--s-75) 0;
}

.timeline time {
  font-weight: 600;
}

.source-list,
.credit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li,
.credit-list > li {
  margin: 0 0 var(--s-300);
  padding: var(--s-200);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.url {
  display: block;
  margin-top: var(--s-50);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-50) var(--s-200);
  margin: 0 0 var(--s-300);
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.entry {
  margin: 0 0 var(--s-200);
  padding: 0;
}

.entry h3 {
  font-size: 20px;
  line-height: 28px;
}

.flag,
.gloss {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.name-list {
  margin: var(--s-75) 0;
  padding-left: var(--s-300);
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-50) var(--s-200);
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.place {
  padding-top: var(--s-300);
}

.prayer {
  margin: 0 0 var(--s-300);
  padding: var(--s-200) 0;
  border-radius: var(--r-lg);
}

.atlas article {
  padding: var(--s-300) 0 0;
}

.site-footer {
  padding: var(--s-500) 0 var(--s-700);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer p {
  font-size: 14px;
  line-height: 20px;
}

.credit-thumb {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--s-100);
}

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

::selection {
  background: #e6d3b8;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .motion-clip img,
  .reveal,
  .site-header.is-open .site-nav a,
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .button-md,
  .button-sm {
    animation: none;
    transition: none;
  }

  .hero-media img {
    transform: none;
    object-position: center 36%;
  }

  .motion-clip img {
    transform: none;
  }

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

  .tag-word,
  .js .tag-word {
    color: var(--ink);
    transition: none;
  }
}

@media (min-width: 48rem) {
  .chapter {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: var(--s-400);
  }

  .chapter-copy {
    padding-top: var(--s-100);
  }
}
