:root {
  --ivory: #f4efe6;
  --ivory-light: #fbf8f1;
  --ivory-deep: #e9dfd0;
  --navy: #173752;
  --navy-soft: #2c4b64;
  --ink: #34322f;
  --muted: #82796d;
  --hairline: rgba(23, 55, 82, 0.18);
  --shadow: rgba(45, 38, 29, 0.14);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--ivory);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.80), transparent 36%),
    radial-gradient(circle at 90% 88%, rgba(255,255,255,.48), transparent 34%),
    linear-gradient(145deg, var(--ivory-light), var(--ivory-deep));
}

button, audio { font: inherit; }

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    18px
    max(24px, env(safe-area-inset-bottom));
}

.card {
  position: relative;
  width: min(100%, 460px);
  min-height: min(780px, calc(100svh - 48px));
  padding: clamp(28px, 7vw, 52px) clamp(24px, 7vw, 46px) 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.12)),
    var(--ivory);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 30px;
  box-shadow:
    0 28px 70px var(--shadow),
    inset 0 0 0 1px rgba(23,55,82,.055);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 13px;
  pointer-events: none;
  border: 1px solid rgba(23,55,82,.10);
  border-radius: 22px;
}

.brand {
  position: relative;
  z-index: 1;
}

.brand__logo {
  display: block;
  width: clamp(112px, 34vw, 158px);
  height: clamp(112px, 34vw, 158px);
  margin: 0 auto 18px;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.brand__overline {
  margin: 0 0 7px;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
}

.brand__title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.today {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: reveal .7s cubic-bezier(.2,.7,.2,1) both;
}

.panel[hidden] { display: none; }

.lead {
  max-width: 340px;
  margin: 34px auto 31px;
  color: var(--ink);
  font-size: clamp(21px, 5.4vw, 28px);
  line-height: 1.43;
}

.primary-button,
.secondary-button {
  appearance: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 350px);
  min-height: 57px;
  padding: 16px 25px;
  color: var(--ivory-light);
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(23,55,82,.15);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .095em;
  line-height: 1.25;
  text-transform: uppercase;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  background: var(--navy-soft);
  outline: none;
  box-shadow: 0 15px 34px rgba(23,55,82,.20);
}

.primary-button:active { transform: translateY(0); }

.primary-button__icon {
  font-size: 10px;
  transform: translateY(-.5px);
}

.duration {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.listening-mark {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.listening-mark span {
  width: 2px;
  height: 34px;
  background: var(--navy);
  border-radius: 999px;
  animation: sound 1.55s ease-in-out infinite;
}

.listening-mark span:nth-child(2) {
  height: 53px;
  animation-delay: .16s;
}

.listening-mark span:nth-child(3) {
  animation-delay: .32s;
}

.listening-title {
  margin: 25px 0 30px;
  color: var(--navy);
  font-size: clamp(22px, 5.8vw, 30px);
}

.progress {
  width: min(100%, 285px);
  height: 2px;
  margin-bottom: 30px;
  overflow: hidden;
  background: rgba(23,55,82,.12);
}

.progress__bar {
  width: 0;
  height: 100%;
  background: var(--navy);
  transition: width .25s linear;
}

.secondary-button {
  min-width: 122px;
  padding: 12px 20px;
  color: var(--navy);
  background: rgba(255,255,255,.16);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--ivory-light);
  background: var(--navy);
  outline: none;
}

.ending__thanks {
  margin: 28px 0 28px;
  color: var(--navy);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.10;
}

.ending__text {
  max-width: 350px;
  margin: 0 auto 18px;
  font-size: clamp(18px, 4.8vw, 23px);
  line-height: 1.49;
}

.ending__text--strong {
  margin-top: 7px;
  color: var(--navy);
}

#replay { margin-top: 20px; }

.footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  padding: 12px;
  text-align: center;
  color: white;
  background: var(--navy);
  border-radius: 10px;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sound {
  0%,100% { transform: scaleY(.58); opacity: .45; }
  50% { transform: scaleY(1.05); opacity: 1; }
}

@media (max-height: 740px) {
  .card {
    min-height: calc(100svh - 28px);
    padding-top: 24px;
  }

  .brand__logo {
    width: 105px;
    height: 105px;
    margin-bottom: 11px;
  }

  .brand__title { font-size: 36px; }
  .today { margin-top: 15px; }
  .lead { margin: 24px auto 23px; font-size: 20px; }
  .footer { margin-top: 18px; }
}

@media (min-width: 760px) {
  .card { min-height: 790px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
