@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ivory: #FAF6EF;
  --ivory-deep: #F1EADC;
  --ink: #2B2420;
  --wine: #6B1E23;
  --wine-deep: #4E1519;
  --gold: #B8863B;
  --slate: #746C61;
  --line: #DCD2BF;
  --radius: 2px;
}

/* Subtle woven texture — stands in for photography, evokes handwork and permanence */
.woven {
  background-image:
    repeating-linear-gradient(45deg, rgba(107,30,35,0.05) 0px, rgba(107,30,35,0.05) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, rgba(184,134,59,0.05) 0px, rgba(184,134,59,0.05) 1px, transparent 1px, transparent 10px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Header ---- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 960px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.brand-addr {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

nav.site-nav {
  display: flex;
  gap: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  border-bottom-color: var(--wine);
  color: var(--wine);
}

nav.site-nav a:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.legacy-mark {
  position: absolute;
  top: 60px;
  right: 28px;
  width: 96px;
  height: 96px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--wine-deep);
}
.legacy-mark .num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}
.legacy-mark .lbl {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  max-width: 60px;
}

@media (max-width: 640px) {
  .legacy-mark { position: static; margin-top: 24px; }
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 20px;
  max-width: 11ch;
}

.hero p.lede {
  font-size: 1.18rem;
  color: #4a423a;
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--wine);
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.hero-cta:hover { background: var(--wine-deep); }

/* ---- Hymn board (signature element) ---- */
.board-section {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}

.board-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.board-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 32px;
}

.board {
  background: var(--wine-deep);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: 0 18px 40px -20px rgba(43,36,32,0.45);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3px;
  background: rgba(0,0,0,0.15);
}

.board-slot {
  background: var(--wine);
  padding: 26px 24px;
  color: var(--ivory);
}

.board-slot .slot-time {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  display: block;
  color: #FFFFFF;
}

.board-slot .slot-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
  display: block;
  color: #FFFFFF;
}

.board-slot .slot-detail {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #FBEAEA;
  margin-top: 8px;
  display: block;
}

/* ---- Prose sections ---- */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section .kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 20px;
  max-width: 20ch;
}

.section p {
  max-width: 60ch;
  color: #443c34;
  margin: 0 0 16px;
}

.verse {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  max-width: 22ch;
  color: var(--wine-deep);
  margin: 0 0 14px;
}

.verse-ref {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

.contact-line {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin: 6px 0;
}
.contact-line a { text-decoration: none; color: var(--wine); font-weight: 600; }
.contact-line .code {
  color: var(--slate);
  font-size: 0.82rem;
}

/* ---- Footer ---- */
footer.site {
  padding: 40px 0 60px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
footer.site .brand-name {
  font-size: 1.05rem;
}
footer .fine {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: var(--slate);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
