/* Guide pages (pronunciation, common words). Same tokens as the landing page:
   an altar missal by candlelight. Lock: Website Builder/output/design-system-thelatinmass.md */
:root {
  --ink: #2A2520; --ink-soft: #4D4238; --cream: #F7F2EA; --cream-soft: #FBF8F2; --rule: #E2D9CB;
  --gold: #C8A871; --burgundy: #5E2A2A; --cta: #6B3535; --rubric: #7A2A2A; --text-muted: #6E5A4E; --paper: #fff;
}
:root[data-theme="dark"] {
  --ink: #EAD9BC; --ink-soft: #EAD9BC; --cream: #211814; --cream-soft: #1A130F; --rule: #3D2F25;
  --gold: #D4B57E; --burgundy: #6B3535; --cta: #6B3535; --rubric: #D4B57E; --text-muted: #D9C2A4; --paper: #1A130F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', system-ui, sans-serif; font-weight: 400; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--cream-soft); -webkit-font-smoothing: antialiased; }
a { color: var(--rubric); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--rule); background: var(--cream); }
.top .brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.top .brand em { font-style: italic; color: var(--rubric); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; background: var(--cta); color: #F7F2EA; border: 1px solid var(--cta); font-family: 'Cinzel', serif; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #8B4747; border-color: #8B4747; color: #fff; }

main { max-width: 820px; margin: 0 auto; padding: 56px 22px 72px; }
.crumbs { font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 26px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--rubric); }
.eyebrow { display: block; font-family: 'Cinzel', serif; font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--rubric); margin-bottom: 10px; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.55rem, 4vw, 2rem); margin: 52px 0 12px; }
h2::before { content: ""; display: block; width: 46px; height: 2px; background: var(--gold); margin-bottom: 18px; }
p { margin-bottom: 16px; color: var(--ink-soft); }
.lead { font-size: 1.16rem; color: var(--ink); }
.lead::first-letter { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3.6em; line-height: .82; float: left; padding: .06em .1em 0 0; color: var(--rubric); }
.note { font-size: .92rem; color: var(--text-muted); }
[lang="la"] { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.18em; color: var(--ink); }

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px -22px 0; padding: 0 22px 6px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); font-size: 1rem; }
caption { text-align: left; font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); padding: 0 0 10px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #F7F2EA; background: var(--burgundy); border-bottom: 0; white-space: nowrap; }
tbody th { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.22rem; font-weight: 600; color: var(--rubric); white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.said { font-family: 'Lato', sans-serif; font-style: normal; font-size: .93rem; letter-spacing: .02em; color: var(--text-muted); white-space: nowrap; }

.words { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.words li { background: var(--paper); border: 1px solid var(--rule); }
.play { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; min-height: 64px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.play::before { content: ""; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); background: var(--cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F7F2EA' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.play:hover::before, .play.is-playing::before { background-color: #8B4747; }
.play .w { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.32rem; line-height: 1.15; }
.play .m { grid-column: 2; font-size: .88rem; color: var(--text-muted); line-height: 1.3; }
td .play { display: inline-grid; min-height: 44px; padding: 4px 0; }

.cta-band { margin-top: 56px; padding: 34px 26px; text-align: center; background: var(--cream); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.cta-band p { max-width: 52ch; margin: 0 auto 20px; }
footer { background: #2A2520; color: rgba(247, 242, 234, .62); text-align: center; padding: 30px 22px 38px; font-size: .9rem; }
footer a { color: rgba(247, 242, 234, .82); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-bottom: 14px; }
footer nav a { padding: 8px 2px; }
@media (max-width: 560px) {
  .top { padding: 12px 16px; }
  .top .btn { padding: 8px 14px; font-size: .66rem; letter-spacing: .12em; }
  th, td { padding: 10px 10px; }
  main { padding-top: 40px; }
  .said, tbody th { white-space: normal; }
  table { font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
