:root {
  --abc-ink: #07182d;
  --abc-navy: #0c2444;
  --abc-plum: #4e244f;
  --abc-rose: #e77e9c;
  --abc-blush: #fff4f7;
  --abc-ivory: #fffaf1;
  --abc-gold: #d7ad58;
}

.alphabet-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  color: white;
  background: var(--abc-ink);
}

.alphabet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 17, 34, .12) 0%, rgba(5, 17, 34, .42) 48%, rgba(5, 17, 34, .96) 78%);
}

.alphabet-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alphabet-hero-copy {
  width: min(620px, 90%);
  margin-left: auto;
  margin-right: max(5vw, calc((100vw - 1180px) / 2));
  padding: 90px 0 70px;
}

.alphabet-hero .breadcrumb {
  margin: 0 0 24px;
  font-size: 14.4px;
}

.alphabet-hero .breadcrumb a { color: #fff; }
.alphabet-hero .breadcrumb a:last-of-type { color: #f2bdcd; }

.alphabet-hero .eyebrow,
.alphabet-intro .eyebrow,
.alphabet-share .eyebrow {
  color: #efc571;
  text-transform: uppercase;
  letter-spacing: 2.88px;
  font-size: 12.5px;
  font-weight: 700;
}

.alphabet-hero h1 {
  margin: 12px 0 20px;
  max-width: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 70.4px;
  line-height: .98;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.alphabet-hero h1 em {
  display: block;
  color: #f39ab5;
  font-weight: 500;
}

.alphabet-hero-copy > p:last-child {
  max-width: 54ch;
  margin: 0;
  color: #f6edf1;
  font-size: 17.6px;
  line-height: 1.75;
}

.alphabet-main {
  padding: 70px 20px 90px;
  background:
    radial-gradient(circle at 10% 18%, rgba(231,126,156,.18), transparent 448px),
    radial-gradient(circle at 90% 48%, rgba(78,36,79,.08), transparent 512px),
    linear-gradient(180deg, #fff1f6 0%, #f8e8ef 48%, #f1eaf5 100%);
}

.alphabet-shell { width: min(1160px, 100%); margin: auto; }

.alphabet-intro {
  width: min(820px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.alphabet-intro h2 {
  margin: 8px 0 12px;
  color: var(--abc-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 43.2px;
  text-wrap: balance;
}

.alphabet-intro p:last-child { color: #4f5260; line-height: 1.8; }

.letter-jump {
  position: sticky;
  top: 74px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(13, minmax(32px, 1fr));
  gap: 6px;
  margin: 0 0 34px;
  padding: 13px;
  border: 1px solid rgba(215,173,88,.45);
  border-radius: 20px;
  background: rgba(255,250,241,.94);
  box-shadow: 0 14px 40px rgba(19,28,52,.12);
  backdrop-filter: blur(14px);
}

.letter-jump a {
  min-width: 0;
  padding: 8px 3px;
  border-radius: 10px;
  color: var(--abc-navy);
  text-align: center;
  font-weight: 800;
  text-decoration: none;
}

.letter-jump a:hover,
.letter-jump a:focus-visible {
  color: #fff;
  outline: none;
  background: linear-gradient(135deg, var(--abc-plum), var(--abc-rose));
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.letter-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(78,36,79,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(25,24,50,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.letter-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,173,88,.7);
  box-shadow: 0 20px 46px rgba(25,24,50,.14);
}

.letter-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px 22px 22px 6px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 39.2px;
  background: linear-gradient(145deg, var(--abc-navy), var(--abc-plum));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 9px 24px rgba(12,36,68,.2);
}

.letter-copy { min-width: 0; }
.letter-copy p { margin: 0; color: #444653; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.letter-copy strong { color: #b44970; font-family: "Playfair Display", Georgia, serif; font-size: 18.72px; }

.copy-letter {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(78,36,79,.16);
  border-radius: 50%;
  color: var(--abc-plum);
  background: var(--abc-blush);
  cursor: pointer;
  font-size: 16.8px;
}

.copy-letter:hover,
.copy-letter:focus-visible { color: #fff; outline: 3px solid rgba(231,126,156,.25); background: var(--abc-plum); }

.alphabet-share {
  margin-top: 50px;
  padding: 43px;
  border-radius: 30px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, #0b203d, #351b45 70%, #572445);
  box-shadow: 0 24px 60px rgba(11,32,61,.22);
}

.alphabet-share h2 {
  margin: 8px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 41.6px;
  text-wrap: balance;
}

.alphabet-share > p:not(.eyebrow):not(.share-status) { width: min(620px, 100%); margin: 0 auto 24px; color: #eadfe9; line-height: 1.7; }
.alphabet-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.alphabet-actions button,
.alphabet-actions a {
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.alphabet-actions .primary { color: #1d1830; border-color: var(--abc-gold); background: linear-gradient(135deg, #f3d899, var(--abc-gold)); }
.alphabet-actions button:hover,
.alphabet-actions a:hover { transform: translateY(-2px); }
.share-status { min-height: 24px; margin: 16px 0 0; color: #f3d899; }

.discover-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.discover-more a {
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
  color: var(--abc-navy);
  background: #fff;
  box-shadow: 0 10px 28px rgba(25,24,50,.08);
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.discover-more a:hover { color: #a43966; }

@media (max-width: 900px) {
  .alphabet-grid { grid-template-columns: 1fr; }
  .letter-jump { grid-template-columns: repeat(9, 1fr); }
}

@media (max-width: 760px) {
  .alphabet-hero { min-height: 610px; align-items: end; }
  .alphabet-hero::after { background: linear-gradient(180deg, rgba(5,17,34,.1), rgba(5,17,34,.92) 62%, #07182d); }
  .alphabet-hero img { object-position: 38% center; }
  .alphabet-hero-copy { width: 100%; margin: 0; padding: 290px 22px 46px; }
  .alphabet-hero h1 { font-size: 53.6px; }
  .alphabet-main { padding: 50px 14px 70px; }
  .letter-jump { top: 66px; grid-template-columns: repeat(7, 1fr); border-radius: 16px; }
  .letter-card { grid-template-columns: 58px minmax(0, 1fr) 40px; gap: 12px; padding: 17px 14px; border-radius: 19px; }
  .letter-mark { width: 58px; height: 58px; border-radius: 17px 17px 17px 5px; font-size: 32px; }
  .discover-more { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .letter-card, .alphabet-actions button, .alphabet-actions a { transition: none; }
}
