/* ==========================================================================
   Moriah Store — landing page
   Design tokens
   ========================================================================== */

:root {
  --paper: #F1ECDF;      /* warm parchment ground */
  --paper-deep: #E7E0CE; /* recessed panels / card ground */
  --ink: #201C16;        /* primary text, warm near-black */
  --ink-soft: #5B5548;   /* secondary text */
  --gold: #B08D57;       /* brand bronze (from logo) */
  --gold-deep: #8C6A34;  /* brand bronze, shadow tone */
  --gold-bright: #D7B37B;/* bronze, lifted tone for dark grounds */
  --line: #D9CFB8;       /* hairline rule on paper */
  --line-dark: #453F33;  /* hairline rule on ink */

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--light { color: var(--gold-bright); }

/* focus visibility everywhere */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(241,236,223,0.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-bright) 70%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark svg { flex: none; }
.nav__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav__cta:hover { color: var(--gold-deep); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 2px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn--on-dark { color: var(--paper); border-color: var(--line-dark); }
.btn--on-dark:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 168px 0 96px;
  position: relative;
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero__kicker { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero__note {
  font-size: 13px;
  color: var(--ink-soft);
}

/* interactive frame — the signature moment */
.frame {
  position: relative;
  border-radius: 3px;
  cursor: pointer;
  isolation: isolate;
}
.frame__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(32,28,22,.45), 0 2px 0 rgba(32,28,22,.06);
}
.frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.42);
  transform-origin: 50% 30%;
  transition: transform 1.1s var(--ease);
}
.frame.is-zoomed .frame__img { transform: scale(3.1); transform-origin: 50% 34%; }
@media (hover:hover) {
  .frame:hover .frame__img { transform: scale(3.1); transform-origin: 50% 34%; }
}

.frame__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(32,28,22,.82);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(3px);
  transition: opacity .3s var(--ease);
}
.frame.is-zoomed .frame__tag,
.frame:hover .frame__tag { opacity: 0; }

.frame__caption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.frame__caption b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}
.section-head p {
  max-width: 44ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
}

/* Default: fully visible. JS opts elements into the hidden pre-state
   right before it starts observing them, so a slow/failed script never
   leaves content invisible. */
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.will-reveal.in-view { opacity: 1; transform: none; }

/* ==========================================================================
   Collection grid
   ========================================================================== */

.collection { padding: 120px 0; }

.gospels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gospel-card {
  background: var(--paper);
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-decoration: none;
  color: inherit;
}

.gospel-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
}
.gospel-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(2.3);
  transition: transform .9s var(--ease);
}
.gospel-card.is-zoomed .gospel-card__media img { transform: scale(4.2); }
@media (hover:hover) {
  .gospel-card:hover .gospel-card__media img { transform: scale(4.2); }
}

.gospel-card__num {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 600;
}
.gospel-card__title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  margin: 2px 0 0;
}
.gospel-card__desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.gospel-card__view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.gospel-card:hover .gospel-card__view { color: var(--gold-deep); gap: 12px; }

/* ==========================================================================
   Craft strip
   ========================================================================== */

.craft {
  background: var(--paper-deep);
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.craft__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 48px;
}
.craft__lede {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  max-width: 20ch;
}
.craft__facts { display: grid; gap: 26px; }
.fact b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.fact span { font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   Story
   ========================================================================== */

.story { padding: 120px 0; }
.story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
}
.story__mark {
  max-width: 320px;
  mix-blend-mode: multiply;
}
.story h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  margin: 14px 0 22px;
  max-width: 16ch;
}
.story p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 0 16px;
}
.story p:last-child { margin-bottom: 0; }
.story cite {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-size: 15px;
  color: var(--gold-deep);
  margin-top: 24px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 0;
  text-align: center;
}
.cta-band .eyebrow { color: var(--gold-bright); }
.cta-band h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  margin: 16px auto 14px;
  max-width: 18ch;
}
.cta-band p {
  color: #C8C1B2;
  max-width: 44ch;
  margin: 0 auto 40px;
  font-size: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 40px;
  border-top: 1px solid var(--line-dark);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .wordmark { font-size: 19px; }
.footer__meta {
  font-size: 12.5px;
  color: #8B8478;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--gold-bright); }
.footer__tagline {
  margin: 18px 0 0;
  font-size: 13px;
  color: #8B8478;
  max-width: 50ch;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 920px) {
  .hero { padding: 128px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .frame { order: -1; max-width: 420px; margin: 0 auto 8px; }
  .hero p.lede { max-width: none; }

  .gospels { grid-template-columns: 1fr; }

  .craft__grid { grid-template-columns: 1fr; gap: 36px; }
  .craft__facts { grid-template-columns: repeat(3,1fr); }
  .craft__lede { max-width: none; }

  .story__grid { grid-template-columns: 1fr; }
  .story__mark { max-width: 220px; margin: 0 auto; }
  .story { text-align: left; }
}

@media (max-width: 560px) {
  .nav__cta span { display: none; }
  .craft__facts { grid-template-columns: 1fr 1fr; }
  .gospel-card { padding: 28px 24px 26px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
