/* ==========================================================================
   Club Polis — site styles
   Palette and type are drawn from the crest: black, gold, crimson, silver,
   oak green, on warm paper.
   ========================================================================== */

:root {
  /* Ink & paper */
  --paper:        #f7f4ee;
  --paper-2:      #f0ebe1;
  --paper-3:      #e7e0d2;
  --ink:          #14161a;
  --ink-soft:     #3d424b;
  --ink-mute:     #6f6b62;
  --line:         #ded5c5;
  --line-soft:    #e9e2d5;

  /* Night bands */
  --night:        #101216;
  --night-2:      #191c22;
  --night-3:      #24272f;
  --night-line:   #33363f;

  /* Heraldic accents */
  --gold:         #b8912f;
  --gold-bright:  #d8b455;
  --gold-pale:    #efe0b8;
  --crimson:      #8e1f26;
  --crimson-deep: #6d161c;
  --forest:       #2f5d3a;

  /* Type */
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1180px;
  --wrap-narrow: 740px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 3px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .06), 0 4px 12px rgba(20, 22, 26, .05);
  --shadow-md: 0 2px 6px rgba(20, 22, 26, .08), 0 18px 44px rgba(20, 22, 26, .10);
}

/* --------------------------------------------------------------- Reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.35rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 1.25em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-deep); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--night); color: #fff; padding: .75rem 1.25rem;
  font-size: .9rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------ Utilities -- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow--onDark { color: var(--gold-bright); }

.lede {
  font-size: clamp(1.09rem, 1.7vw, 1.28rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.center { text-align: center; }
.center .eyebrow { margin-inline: auto; }

/* Gold hairline flourish under section headings */
.flourish {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1.6rem;
}
.flourish::before, .flourish::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.flourish span {
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold); flex: none;
}
.flourish--left::before { display: none; }
.flourish--left { max-width: 200px; }

/* ------------------------------------------------------------- Buttons -- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--body);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.btn--primary:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); color: #fff; }

.btn--gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--night); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.btn--ghostLight { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.btn--ghostLight:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .3rem;
  transition: gap .18s ease, color .18s ease;
}
.arrow-link:hover { gap: .85rem; color: var(--crimson); }
.arrow-link--onDark { color: var(--gold-bright); border-color: rgba(216,180,85,.5); }
.arrow-link--onDark:hover { color: #fff; }

/* -------------------------------------------------------------- Header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  flex: none;
}
.brand img { width: 38px; height: auto; }
.brand__text {
  font-family: var(--display);
  font-size: 1.12rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: block; padding: .95rem .25rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: .88rem;
  }
  .nav__link[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--crimson); }
  .nav .btn { margin-top: 1.1rem; justify-content: center; }
}

/* ---------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold) 50%, var(--crimson));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero__copy {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem)
           clamp(3.5rem, 8vw, 6.5rem) max(1.25rem, calc((100vw - var(--wrap)) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero__copy h1 { color: #fff; margin-bottom: .45em; }
.hero__copy .lede { color: rgba(255,255,255,.76); max-width: 34em; }

.hero__crest {
  width: 74px; margin-bottom: 1.75rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.4));
}

.hero__verse {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--night-line);
  font-family: var(--display);
  font-size: 1.02rem; font-style: italic;
  color: rgba(255,255,255,.62);
  max-width: 32em;
}
.hero__verse cite {
  display: block; margin-top: .5rem;
  font-family: var(--body); font-style: normal;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-bright);
}

.hero__btns { margin-top: 2.25rem; }

.hero__media { position: relative; min-height: 340px; background: var(--night-2); }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* Portrait source in a landscape frame — bias the crop up toward the
     teaching end of the table rather than the foreground. */
  object-position: 50% 38%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--night) 0%, rgba(16,18,22,.55) 32%, rgba(16,18,22,.12) 100%);
}
@media (max-width: 899px) {
  .hero__media { min-height: 58vw; max-height: 460px; }
  .hero__media::after {
    background: linear-gradient(180deg, var(--night) 0%, rgba(16,18,22,.35) 30%, rgba(16,18,22,.15) 100%);
  }
}

/* Compact page hero for interior pages */
.page-hero {
  background: var(--night);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold) 50%, var(--crimson));
}
.page-hero__bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .2;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero .lede { color: rgba(255,255,255,.74); max-width: 40em; }

/* --------------------------------------------------------- Verse bands -- */

.verse-band {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.verse-band blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  line-height: 1.36;
  font-style: italic;
  color: var(--ink);
  text-wrap: balance;
}
.verse-band cite {
  display: block; margin-top: 1.4rem;
  font-family: var(--body); font-style: normal;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------- Pillars -- */

/* Capped at three so a five-item run breaks 3+2 instead of stranding one. */
.grid-3 {
  display: grid; gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 100%;
}
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.pillar {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.pillar__num {
  font-family: var(--display);
  font-size: .95rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: .12em;
  display: block; margin-bottom: .7rem;
}
.pillar h3 { margin-bottom: .5em; }
.pillar p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* -------------------------------------------------------------- Themes -- */

/* Six themes: explicit columns so the grid always fills complete rows
   (3x2, then 2x3, then stacked) rather than leaving orphans. */
.themes {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 620px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.theme {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: transparent;
  transition: background-color .2s ease;
}
.theme:hover { background: var(--paper-2); }
.theme__idx {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; color: var(--gold);
  display: block; margin-bottom: .9rem;
}
.theme h3 { font-size: 1.32rem; margin-bottom: .45em; }
.theme p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.theme__tag {
  display: inline-block; margin-top: 1rem;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--forest);
  border: 1px solid rgba(47,93,58,.3);
  border-radius: 100px;
  padding: .28rem .7rem;
}
.theme__tag--soon { color: var(--ink-mute); border-color: var(--line); }

/* --------------------------------------------------------- Study cards -- */

.studies {
  display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
/* The full library holds four guides — two rows of two, not three-and-one. */
@media (min-width: 820px) {
  .studies--pair { grid-template-columns: repeat(2, 1fr); }
}

.study {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.study:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line);
}
.study__spine {
  height: 5px;
  background: linear-gradient(90deg, var(--crimson) 0 38%, var(--gold) 38% 62%, var(--crimson) 62%);
}
.study__body { padding: clamp(1.5rem, 3vw, 2rem); flex: 1; display: flex; flex-direction: column; }
.study__meta {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.1rem;
}
.study__meta .is-theme { color: var(--crimson); }
.study h3 { font-size: 1.5rem; margin-bottom: .3em; }
.study__sub {
  font-family: var(--display);
  font-style: italic; font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.study p { font-size: .97rem; color: var(--ink-soft); }
.study__foot {
  margin-top: auto; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.study__dl {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--crimson); text-decoration: none;
}
.study__dl:hover { text-decoration: underline; text-underline-offset: 4px; }
.study__dl svg { width: 15px; height: 15px; flex: none; }
.study__size { font-size: .74rem; color: var(--ink-mute); letter-spacing: .06em; }

/* ------------------------------------------------------------- Gallery -- */

/* Nine photos: 3x3 on desktop so no tile is stranded on its own row. */
.gallery {
  display: grid; gap: clamp(.6rem, 1.4vw, 1rem);
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  position: relative; display: block;
  margin: 0; padding: 0; border: 0; background: var(--paper-3);
  aspect-ratio: 3 / 4;
  overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .4s ease;
}
.gallery__item:hover img { transform: scale(1.045); filter: brightness(1.04); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20,22,26,.08);
  border-radius: var(--radius);
  pointer-events: none;
}

/* Homepage strip: five tiles in one line, wrapping down to two. */
.gallery--strip { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
@media (min-width: 540px) { .gallery--strip { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); } }
@media (min-width: 900px) { .gallery--strip { grid-template-columns: repeat(5, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(10, 11, 14, .93);
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 84vh;
  width: auto; object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lightbox__caption {
  margin-top: 1.1rem; text-align: center;
  color: rgba(255,255,255,.7);
  font-size: .8rem; letter-spacing: .11em; text-transform: uppercase;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------ Info card -- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.card--night {
  background: var(--night-2);
  border-color: var(--night-line);
  color: rgba(255,255,255,.82);
}
.card--night h2, .card--night h3 { color: #fff; }

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .5rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.detail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list li:first-child { padding-top: 0; }
.detail-list dt, .detail-list .dt {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mute);
}
.detail-list dd, .detail-list .dd { margin: 0; font-size: 1.02rem; }
.card--night .detail-list li { border-color: var(--night-line); }
.card--night .detail-list dt, .card--night .detail-list .dt { color: rgba(255,255,255,.5); }

@media (max-width: 560px) {
  .detail-list li { grid-template-columns: 1fr; gap: .2rem; }
}

/* Placeholder marker — content the ministry still needs to supply */
.tbd {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson);
  background: rgba(142,31,38,.07);
  border: 1px dashed rgba(142,31,38,.4);
  border-radius: 100px;
  padding: .2rem .65rem;
  vertical-align: middle;
}
.card--night .tbd {
  color: var(--gold-bright);
  background: rgba(216,180,85,.1);
  border-color: rgba(216,180,85,.4);
}

/* ---------------------------------------------------------------- Prose -- */

.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.5em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--gold); }

.pullquote {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: 0 0 0 clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.42; font-style: italic;
  color: var(--ink);
}

/* ---------------------------------------------------------------- Form -- */

.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.field .req { color: var(--crimson); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem;
  color: var(--ink);
  padding: .8rem .95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  transition: border-color .16s ease, background-color .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(184,145,47,.14);
}
.field textarea { min-height: 148px; resize: vertical; }
.field__hint { font-size: .85rem; color: var(--ink-mute); }

.form__row { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__note {
  font-size: .88rem; color: var(--ink-mute);
  padding-top: .25rem;
}
.form-status {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .95rem;
  border: 1px solid;
}
.form-status[hidden] { display: none; }
.form-status.is-ok { background: rgba(47,93,58,.08); border-color: rgba(47,93,58,.35); color: var(--forest); }
.form-status.is-err { background: rgba(142,31,38,.07); border-color: rgba(142,31,38,.35); color: var(--crimson); }

/* ------------------------------------------------------------- Socials -- */

.socials { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.social {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  text-decoration: none; color: var(--ink);
  font-size: .85rem; font-weight: 600;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.social:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.social svg { width: 17px; height: 17px; flex: none; }
.card--night .social { border-color: var(--night-line); color: rgba(255,255,255,.85); }
.card--night .social:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(255,255,255,.04); }

/* ------------------------------------------------------------ CTA band -- */

.cta-band {
  background: var(--night);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold) 50%, var(--crimson));
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 46em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2.1rem; }
.cta-band__crest { width: 58px; margin: 0 auto 1.6rem; opacity: .95; }

/* -------------------------------------------------------------- Footer -- */

.site-footer {
  background: var(--night-2);
  color: rgba(255,255,255,.62);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .93rem;
}
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

.footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.footer__brand img { width: 42px; }
.footer__brand span {
  font-family: var(--display); color: #fff;
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.footer__blurb { max-width: 32ch; }

.footer__head {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer__verse { font-family: var(--display); font-style: italic; }

/* ------------------------------------------------------- Scroll reveal -- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ 404 page -- */

.error-page {
  min-height: 62vh;
  display: grid; place-items: center; text-align: center;
  padding-block: var(--section-y);
}
.error-page img { width: 92px; margin: 0 auto 2rem; }
