:root {
  --paper: #f7f1e4;
  --paper-2: #efe6d4;
  --ink: #2a2622;
  --muted: #5e564c;
  --rule: #cbb99a;
  --slate: #3a3f4a;
  --slate-2: #2c313a;
  --brass: #9a7b3c;
  --sand: #d7c4a0;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --col: 58rem;
  --display: "Spectral", "Iowan Old Style", Georgia, serif;
  --body: "Spectral", Georgia, serif;
  --ui: "Red Hat Text", "Avenir Next", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(154, 123, 60, 0.08), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  caret-color: transparent;
}
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}
::selection { background: #e4d3ae; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 0.18em; }
a:hover { color: var(--brass); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin-left: auto;
  margin-right: auto;
}

.hours {
  text-align: center;
  padding: 0.5rem var(--pad);
  background: var(--slate-2);
  color: var(--sand);
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
}

.mast {
  text-align: center;
  padding: 2rem var(--pad) 1.5rem;
}
.word {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}
.word strong {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  font-style: italic;
  line-height: 0.92;
}
.word small {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.2rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 2px double var(--brass);
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mast nav a { color: var(--ink); text-decoration: none; }
.mast nav a[aria-current="page"],
.mast nav a:hover { color: var(--brass); }

.hero-frame {
  width: min(52rem, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 0.7rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 4px var(--paper);
}
.hero-frame img {
  width: 100%;
  height: min(52vh, 28rem);
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}
.hero-copy {
  text-align: center;
  padding: 1.8rem var(--pad) 0.4rem;
  max-width: 40rem;
  margin: 0 auto;
}
.kicker {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.5rem;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-style: italic;
  margin-bottom: 0.7rem;
}
.lede { color: var(--muted); font-size: 1.05rem; }
.more {
  display: inline-flex;
  margin-top: 1rem;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.14rem;
  width: max-content;
}
.more:hover { color: var(--brass); }

.folio { padding: 2.1rem 0 1.4rem; }
.folio h2 {
  text-align: center;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.folio .sub {
  text-align: center;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.hymn {
  display: grid;
  grid-template-columns: 3.2rem 1fr 8.6rem;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.hymn .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brass);
}
.hymn h3 { font-size: 1.32rem; font-weight: 600; margin: 0.1rem 0 0.25rem; }
.hymn p { color: var(--muted); font-size: 0.95rem; }
.hymn img {
  width: 100%;
  height: 5.6rem;
  object-fit: cover;
}

.essay { padding: 2.5rem 0 2.8rem; }
.essay h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-style: italic;
  margin: 0.2rem 0 1rem;
}
.essay .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.3rem; }
.essay img.wide {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  margin: 0 0 1.5rem;
  border: 1px solid var(--rule);
}
.essay .copy { max-width: 38rem; margin: 0 auto; }
.essay .copy p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 0.8;
  padding: 0.18rem 0.4rem 0 0;
  color: var(--brass);
  font-style: italic;
}
.essay.wrap > .kicker,
.essay.wrap > h1,
.essay.wrap > .lead { text-align: center; }

.also { padding: 0 0 2.6rem; }
.also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.also a {
  display: block;
  padding: 0.95rem 1rem;
  background: var(--paper-2);
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--brass);
}
.also strong { display: block; font-family: var(--display); font-style: italic; font-weight: 600; margin-top: 0.2rem; }

.site-foot {
  padding: 1.5rem 0 5.6rem;
  border-top: 2px double var(--brass);
  font-family: var(--ui);
  font-size: 0.74rem;
  text-align: center;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-bottom: 0.65rem;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brass); }
.site-foot p { color: var(--muted); }

.cookie {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.95rem var(--pad) 1.15rem;
  background: var(--slate-2);
  color: var(--paper);
}
.cookie.is-on { display: block; }
.cookie-inner {
  width: min(var(--col), 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie p { margin: 0; max-width: 42rem; font-size: 0.88rem; }
.cookie a { color: var(--sand); }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie button {
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  background: var(--brass);
  color: #fff;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 700;
}
.cookie button[data-cookie="essential"] {
  background: transparent;
  border-color: #8a7a6c;
  color: var(--paper);
}

.js [data-rise] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-rise].is-in,
[data-rise] { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .hours { letter-spacing: 0.1em; font-size: 0.62rem; }
  .hymn { grid-template-columns: 2.4rem 1fr; }
  .hymn img { grid-column: 1 / -1; height: 11rem; }
  .also-grid { grid-template-columns: 1fr; }
  .hero-frame img { height: 18rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
}
