@font-face {
  font-family: "LocalSerifFallback";
  src: local("Georgia");
}

:root {
  --navy: #071b48;
  --navy-soft: #102653;
  --border: #0a214c;
  --gold: #b09759;
  --paper: #f5eddc;
  --paper-deep: #e4d2ad;
  --shadow: 0 24px 70px rgba(27, 24, 17, .12);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: #efe1c5;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 48px);
  background:
    linear-gradient(90deg, rgba(245,237,220,.15), rgba(255,252,244,.82) 28%, rgba(255,252,244,.82) 72%, rgba(245,237,220,.15)),
    url("/american-sephardi/assets/hero-background.svg") center / cover no-repeat;
}

.audio-landing {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 28px);
  padding: clamp(28px, 5vw, 62px) clamp(18px, 4vw, 72px);
  position: relative;
  isolation: isolate;
  padding-top: 0;
}

.audio-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255,253,247,.76), rgba(255,250,238,.42) 45%, rgba(255,248,231,.06) 78%);
  pointer-events: none;
}

.title-group {
  text-align: center;
}

.eyebrow {
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(7, 27, 72, .55);
}

h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: .98;
  letter-spacing: .035em;
  font-size: clamp(2.5rem, 6.1vw, 5.05rem);
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(255,255,255,.6);
}

.divider {
  margin: clamp(13px, 1.8vw, 22px) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
}

.divider span {
  width: min(158px, 17vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider i {
  font-style: normal;
  font-size: 1.45rem;
  opacity: .9;
}

.sound-orb {
  width: clamp(86px, 9vw, 118px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(176,151,89,.62);
  border-radius: 999px;
  background: rgba(255,249,236,.62);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(55, 45, 28, .12), inset 0 0 0 10px rgba(255,255,255,.24);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sound-orb:hover,
.sound-orb:focus-visible {
  transform: translateY(-2px) scale(1.015);
  background: rgba(255,252,242,.9);
  box-shadow: 0 18px 46px rgba(55, 45, 28, .17), inset 0 0 0 10px rgba(255,255,255,.34);
  outline: none;
}

.sound-orb svg {
  width: 54%;
  height: 54%;
}

.sound-orb path {
  fill: currentColor;
}

.sound-orb path:nth-child(n+2) {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.instructions {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.95rem);
  font-weight: 600;
  letter-spacing: .02em;
}

.language-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.language-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 252, 243, .53);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(12, 31, 69, 0);
  backdrop-filter: blur(1px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.language-card:hover,
.language-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 252, 243, .86);
  box-shadow: 0 14px 28px rgba(12, 31, 69, .14);
  outline: none;
}

.language-card.is-active {
  background: rgba(255, 252, 243, .95);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(176,151,89,.18), 0 16px 32px rgba(12, 31, 69, .13);
}

.englishbot{
	grid-column: 2 / 3;
    justify-self: center;
    width: 100%;
}

.language-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 1.9vw, 2.15rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: .92;
}

.language-name.stacked {
  line-height: .85;
}

.language-name small {
  font-size: .62em;
  font-weight: 600;
}

.language-name.hebrew {
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
}

.flag {
  width: 74px;
  height: 50px;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.08);
  background: #ddd;
}

.flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.player-panel {
  width: min(1120px, 100%);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px 15px 22px;
  border: 1px solid rgba(10,33,76,.2);
  border-radius: 16px;
  background: rgba(255,252,243,.72);
  box-shadow: var(--shadow);
}

.player-panel.is-visible {
  display: flex;
}

.player-panel strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.player-panel span {
  display: block;
  margin-top: 4px;
  font-size: .92rem;
  color: rgba(7,27,72,.68);
}

audio {
  width: min(420px, 50%);
  min-width: 270px;
}





@media (max-width: 1080px) {
  .language-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .language-card {
    grid-template-columns: 76px 1fr;
    padding: 16px 20px;
  }

  .flag {
    width: 72px;
    height: 48px;
  }
}

@media (max-width: 760px) {
  .language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
    .englishbot{
		grid-column: 1 / 3;
		justify-self: center;
		width: 100%;
	}
}

@media (max-width: 620px) {
  .page-shell {
    padding: 10px;
    place-items: start center;
  }

  .audio-landing {
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
  }

  .language-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .language-card {
    min-height: 88px;
    grid-template-columns: 70px 1fr;
  }
	
	.englishbot {
		grid-column: 1 / 1;
		justify-self: center;
		width: 100%;
	}

  .flag {
    width: 68px;
    height: 45px;
  }

  .player-panel {
    align-items: stretch;
    flex-direction: column;
  }

  audio {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

