/* ============================================================
   Pray Land — base stylesheet
   Palette + typography lifted from the invitation.
   Mobile-first. All breakpoints scale up from 360px.
   ============================================================ */

:root {
  /* palette */
  --bg:        #f7f5ef;   /* sandy cream — page background */
  --paper:     #fbf9f3;   /* lighter card surface */
  --paper-2:   #ffffff;   /* pure white — sparingly */
  --ink:       #1a1814;   /* near-black, warmed */
  --ink-soft:  #2a2a2a;
  --muted:     #6b6256;   /* warm grey */
  --muted-2:   #a39786;
  --rule:      #d9cfbe;   /* hairline rule colour */
  --gold:      #c9a24b;   /* olive-gold accent */
  --gold-soft: #b89441;
  --olive:     #6f7a4a;   /* leaf green */
  --olive-dark:#4f5733;
  --earth:     #8b6f4e;
  --shadow:    0 1px 6px rgba(43, 30, 14, 0.08);

  /* type */
  --font-serif:   'Cardo', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* scale (clamp-based, mobile-first) */
  --fs-body:   clamp(15px, 1rem + 0.1vw, 17px);
  --fs-small:  clamp(12px, 0.78rem + 0.1vw, 13px);
  --fs-h3:     clamp(18px, 1.05rem + 0.6vw, 22px);
  --fs-h2:     clamp(22px, 1.2rem + 1.2vw, 30px);
  --fs-h1:     clamp(34px, 2rem + 3vw, 64px);
  --fs-display:clamp(44px, 2.4rem + 5vw, 96px);

  /* spacing */
  --gutter:    clamp(20px, 4vw, 40px);
  --col-max:   720px;
  --col-wide:  1080px;
}

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

/* Native scroll only — smooth-scroll was fighting mobile inertia. */

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 180ms ease, color 180ms ease;
}
a:hover { border-color: var(--gold); color: var(--gold-soft); }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: 0.04em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9em;
}

p {
  margin: 0 0 0.85em 0;
}

p.beat {
  margin: 0 0 1.3em 0;
}

p.center {
  text-align: center;
  font-style: italic;
}

.lede {
  font-size: calc(var(--fs-body) * 1.08);
  color: var(--ink-soft);
}

blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--ink-soft);
}

.rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.8em auto;
}

.rule.wide { width: 100%; background: var(--rule); }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.wide {
  max-width: var(--col-wide);
}

.section {
  padding: clamp(48px, 8vh, 96px) 0;
}

.section.tight { padding: clamp(28px, 5vh, 56px) 0; }

.stack > * + * { margin-top: 1em; }
.stack-lg > * + * { margin-top: 1.6em; }

/* ---------- navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--gutter);
  max-width: var(--col-wide);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  border: none;
}

.brand:hover { color: var(--gold-soft); border: none; }

.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle svg { width: 22px; height: 22px; }

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: none;
  padding: 6px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 200ms ease, left 200ms ease;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

.nav-list a[aria-current="page"] { color: var(--ink); }

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--bg);
  padding: 32px var(--gutter);
  transform: translateY(-100%);
  transition: transform 280ms ease;
  z-index: 25;
  visibility: hidden;
}

.nav-drawer[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
}

.nav-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: none;
  display: inline-block;
  padding: 6px 0;
}

.nav-drawer a[aria-current="page"] { color: var(--gold-soft); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; }
  .nav-drawer { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 96px;
  padding: 48px var(--gutter) 64px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.site-footer .inner {
  max-width: var(--col-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.site-footer .mark {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--ink);
}

.site-footer .meta {
  font-size: var(--fs-small);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer ul a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
}

.site-footer ul a:hover { color: var(--gold-soft); }

@media (min-width: 760px) {
  .site-footer .inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--paper-2);
}

.btn.gold {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn.gold:hover {
  background: var(--gold);
  color: var(--paper-2);
}

.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- ornaments ---------- */
.olive-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  color: var(--olive);
}

.studio-mark {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---------- accessibility ---------- */
.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;
}

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

/* ---------- subtle motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeIn 900ms ease-out forwards;
  }
  .fade-in.delay-1 { animation-delay: 120ms; }
  .fade-in.delay-2 { animation-delay: 260ms; }
  .fade-in.delay-3 { animation-delay: 420ms; }

  @keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
  }
}
