/* Երազանքի տունը ակումբ — editorial landing */

:root {
  --bg: #F5EFE6;
  --paper: #FAF6EE;
  --ink: #2A2520;
  --muted: #6E6557;
  --accent: #B5613E;
  --accentSoft: #E4C7B3;
  --rule: #D9CFBE;
  --sage: #8A9A7B;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --armenian: "Noto Serif Armenian", Georgia, serif;
  --armenian-sans: "Noto Sans Armenian", system-ui, sans-serif;
  --heading-weight: 400;
  --heading-tracking: -0.01em;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--armenian-sans), var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ── Type tokens ──────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--armenian-sans), var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.display {
  font-family: var(--armenian), var(--serif);
  font-weight: var(--heading-weight);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: var(--heading-tracking);
  margin: 16px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: inherit;
}
.display-light { color: #FAF6EE; }
.display-light em { color: var(--accentSoft); }

.section-title {
  font-family: var(--armenian), var(--serif);
  font-weight: var(--heading-weight);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: var(--heading-tracking);
  margin: 14px 0 0;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: inherit;
}
.section-title.centered { text-align: center; }

.lede {
  font-family: var(--armenian-sans), var(--sans);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 38ch;
  text-wrap: pretty;
}
.lede-light { color: rgba(255, 255, 255, 0.92); max-width: 30ch; }

.section-sub {
  font-family: var(--armenian-sans), var(--sans);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 48ch;
  text-wrap: pretty;
}
.section-sub.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 22px var(--gutter);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FAF6EE;
  mix-blend-mode: difference;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.brand-name {
  font-family: var(--armenian), var(--serif);
  font-size: 18px;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 4px 0;
}
.nav a:hover { opacity: 0.7; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
}

.hero-overlay {
  height: 100vh;
  min-height: 640px;
  max-height: 880px;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.45) 100%
  );
}
.hero-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.hero-overlay.hero-bottom .hero-overlay-text {
  justify-content: flex-end;
  padding-bottom: clamp(48px, 8vh, 110px);
}

/* Card hero */
.hero-card {
  padding: 110px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}
.hero-card-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.hero-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card-text {
  padding-right: 12px;
}
.hero-card-text .display { font-size: clamp(40px, 5.5vw, 80px); }
.hero-card-text .lede { color: var(--muted); }

@media (max-width: 800px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }
}

/* ── Hero CTA ─────────────────────────────────────────────────────────── */

button.hero-cta,
.hero-overlay-text button.hero-cta,
.hero-card-text button.hero-cta {
  display: inline-block;
  margin-top: clamp(28px, 4vh, 40px);
  padding: 18px 36px;
  background: #b5613e !important;
  color: #ffffff !important;
  font-family: var(--armenian-sans), var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
button.hero-cta:hover {
  background: color-mix(in oklab, #b5613e 85%, black) !important;
  transform: translateY(-1px);
}
button.hero-cta.hero-cta-white {
  background: #ffffff !important;
  color: #b5613e !important;
}
button.hero-cta.hero-cta-white:hover {
  background: #f5efe6 !important;
}

/* ── Intro ────────────────────────────────────────────────────────────── */

.intro {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.intro-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.intro-body {
  font-family: var(--armenian), var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 28px 0 0;
  text-wrap: balance;
  font-weight: 400;
}
.intro-body em {
  font-style: italic;
  color: var(--accent);
}

/* ── How it works (full-width band) ───────────────────────────────────── */

.how-band {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.how-band-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.how-band-inner > .eyebrow {
  display: block;
}
.how-band .section-title {
  margin-top: 14px;
}

.how-cards {
  list-style: none;
  margin: clamp(48px, 8vh, 80px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  max-width: 960px;
}
@media (max-width: 800px) {
  .how-cards { grid-template-columns: 1fr; max-width: 480px; }
}

.how-card {
  background: transparent;
  padding: clamp(24px, 3vh, 32px) clamp(8px, 1.5vw, 16px) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.how-card-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
}
.how-card h4 {
  font-family: var(--armenian), var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: var(--heading-tracking);
  margin: 4px 0 0;
  color: var(--ink);
}
.how-card p {
  font-family: var(--armenian-sans), var(--sans);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 28ch;
}

.how-cards.how-cards-single {
  grid-template-columns: 1fr;
  max-width: 500px;
}
.how-cards.how-cards-single .how-card p {
  max-width: 500px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}
.how-band + .how-band .how-cards.how-cards-single,
.how-band:has(.section-title em:only-child) .how-cards.how-cards-single {
  max-width: 720px;
}
.how-band + .how-band .how-cards.how-cards-single .how-card,
.how-band:has(.section-title em:only-child) .how-cards.how-cards-single .how-card {
  padding-top: 18px;
}
.how-band + .how-band .how-cards.how-cards-single .how-card + .how-card,
.how-band:has(.section-title em:only-child) .how-cards.how-cards-single .how-card + .how-card {
  border-top: 1px solid var(--rule);
}
.how-cards.how-cards-single .how-card h4 { font-size: clamp(22px, 2.2vw, 28px); }
.how-cards.how-cards-single .how-card p { font-size: clamp(16px, 1.3vw, 18px); max-width: 52ch; }

/* ── Section heads ────────────────────────────────────────────────────── */

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

/* ── Club ─────────────────────────────────────────────────────────────── */

.club {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--paper);
}
.benefits {
  list-style: none;
  margin: clamp(48px, 8vh, 80px) auto 0;
  padding: 0 var(--gutter);
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0;
}
.benefit {
  display: flex;
  gap: 18px;
  padding: 36px 28px 36px 16px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 200px;
}
.benefit:nth-last-child(-n+3) { /* may or may not be last row depending on cols */ }
@media (min-width: 960px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefit {
    padding: 36px 32px 36px 16px;
  }
  .benefit:nth-child(3n) { border-right: none; }
  .benefit:nth-last-child(-n+3):nth-child(3n+1),
  .benefit:nth-last-child(-n+3):nth-child(3n+1) ~ .benefit { border-bottom: none; }
}
@media (max-width: 959px) and (min-width: 600px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(2n) { border-right: none; }
}
@media (max-width: 599px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit { border-right: none; padding-right: 0; }
}

.benefit-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  padding-top: 4px;
  letter-spacing: -0.02em;
}
.benefit-text h3 {
  font-family: var(--armenian), var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.benefit-text p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ── About ────────────────────────────────────────────────────────────── */

.about {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  background: #ffffff !important;
}
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.photo-frame {
  aspect-ratio: 3 / 4;
  background: #ffffff;
  overflow: hidden;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: repeating-linear-gradient(
    45deg,
    var(--accentSoft) 0px,
    var(--accentSoft) 14px,
    color-mix(in oklab, var(--accentSoft) 80%, white) 14px,
    color-mix(in oklab, var(--accentSoft) 80%, white) 28px
  );
  color: var(--ink);
  opacity: 0.7;
}
.photo-placeholder span {
  font-family: var(--armenian), var(--serif);
  font-style: italic;
  font-size: 22px;
}
.photo-placeholder small {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.about-text { padding-right: 12px; }
.about-body {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 50ch;
  text-wrap: pretty;
}
.signature {
  font-family: var(--armenian), var(--serif);
  font-style: italic;
  font-size: 20px;
  margin: 28px 0 0;
  color: var(--ink);
}

/* ── Signup ───────────────────────────────────────────────────────────── */

.signup {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.signup-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.signup-form {
  display: flex;
  gap: 0;
  margin: clamp(32px, 5vh, 48px) auto 0;
  max-width: 480px;
  border-bottom: 1px solid var(--ink);
  align-items: stretch;
}
.signup-form input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--armenian-sans), var(--sans);
  font-size: 16px;
  padding: 14px 0;
  color: var(--ink);
  outline: none;
}
.signup-form input::placeholder { color: var(--muted); opacity: 0.6; }
.signup-form button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--armenian-sans), var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 0 0 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.signup-form button:hover { color: var(--accent); }

.signup-thanks {
  margin: 40px auto 0;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  max-width: 480px;
}
.signup-thanks p {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.signup-thanks strong { color: var(--accent); font-weight: 500; }

.signup-fineprint {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.signup-error {
  margin: 16px 0 0;
  font-size: 14px;
  color: #b5613e;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding: 48px var(--gutter);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-brand .brand-name {
  font-family: var(--armenian), var(--serif);
  font-size: 20px;
}
.footer-brand p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 36ch;
}
.footer-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: flex;
  gap: 12px;
}
.footer-meta a:hover { color: var(--accent); }

/* ── Global mobile safety ─────────────────────────────────────────────── */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  /* Force any inline-width hacks to behave */
  .how-cards-single,
  .how-cards-single .how-card,
  .how-cards-single .how-card p {
    width: auto !important;
    max-width: 100% !important;
  }

  /* Buttons can't overflow their container */
  button.hero-cta,
  a.hero-cta {
    padding: 20px 28px !important;
    font-size: 15px !important;
    width: auto;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Hero overlay text reads better with side padding */
  .hero-overlay-text {
    padding: 0 24px;
  }

  /* Footer stacks cleanly */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  button.hero-cta,
  a.hero-cta {
    padding: 18px 22px !important;
    font-size: 14px !important;
  }
}

/* ── Responsive header on light hero variants ─────────────────────────── */
.hero-card ~ * .site-header,
body:has(.hero-card) .site-header {
  /* nothing — header handles itself via mix-blend-mode */
}
body:has(.hero-card) .header-inner {
  color: var(--ink);
  mix-blend-mode: normal;
}
