@font-face {
  font-display: swap;
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  src: url("./fonts/EBGaramond-VariableFont_wght.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --day-page-background: linear-gradient(
    180deg,
    #edf6fd 0,
    #ffffff 32%,
    #f8f6ef 100%
  );
  --night-page-background: linear-gradient(
    180deg,
    #121d2a 0,
    #080b0f 38%,
    #050505 100%
  );
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.4);
  --page-background: var(--day-page-background);
  --page-top: #edf6fd;
  --red: #ad1f17;
  --sky: #edf6fd;
  --warm: #f8f6ef;
  --ambient-background: rgb(237, 246, 253);
  --ambient-upper: 71, 143, 219;
  --ambient-lower: 173, 194, 209;
  --ambient-accent-opacity: 0.15;
  --ambient-night-opacity: 0;
  --serif: "EB Garamond", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root.is-night-office {
  color-scheme: dark;
  --ink: #f7f5ef;
  --muted: rgba(247, 245, 239, 0.4);
  --page-background: var(--night-page-background);
  --page-top: #121d2a;
  --red: #d44a40;
  --warm: #060708;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--page-top);
  scroll-behavior: smooth;
}

body {
  background: var(--page-background);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  transition: color 800ms ease-in-out;
}

html.splash-page {
  --splash-outer-height: 100lvh;
  --splash-bottom-extension: max(
    env(safe-area-inset-bottom, 0px),
    calc(var(--splash-outer-height) - 100lvh)
  );
}

html.splash-page,
html.splash-page body {
  height: 100%;
  height: calc(100lvh + var(--splash-bottom-extension));
  overflow: hidden;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration-color: rgba(173, 31, 23, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--red);
}

.hero {
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.splash-page .hero-copy,
.splash-page .wheel-instructions,
.splash-page .hour-wheel-stage {
  opacity: 1;
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.splash-page .hero-copy {
  transition-delay: 140ms;
}

.splash-page .wheel-instructions {
  transition-delay: 260ms;
}

.splash-page .hour-wheel-stage {
  transition-delay: 360ms;
}

.splash-loading .hero-copy,
.splash-loading .wheel-instructions,
.splash-loading .hour-wheel-stage {
  opacity: 0;
  pointer-events: none;
}

.ambient-sky {
  background: var(--ambient-background);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.ambient-sky::before,
.ambient-sky::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.ambient-sky::before {
  background: rgb(9, 14, 33);
  opacity: var(--ambient-night-opacity);
}

.ambient-sky::after {
  background:
    linear-gradient(
      180deg,
      rgba(var(--ambient-upper), var(--ambient-accent-opacity)) 0,
      rgba(var(--ambient-lower), calc(var(--ambient-accent-opacity) * 0.72)) 34%,
      rgba(var(--ambient-lower), calc(var(--ambient-accent-opacity) * 0.18)) 70%,
      rgba(var(--ambient-lower), 0) 100%
    );
}

.hero-copy {
  left: 50%;
  position: absolute;
  text-align: center;
  top: max(calc(env(safe-area-inset-top) + 24px), 8vh);
  transform: translateX(-50%);
  width: min(60vw, 600px);
  z-index: 4;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 4.5vw, 5.2rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.hero-copy p {
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 520;
  margin: 10px auto 0;
  opacity: 0.47;
  transition: opacity 800ms ease-in-out;
}

.is-night-office .hero-copy p {
  opacity: 0.52;
}

.hero-actions,
.about-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.app-store-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  margin: 0;
  width: max-content;
}

.app-store-badge {
  display: block;
  height: 40px;
  width: auto;
}

.learn-more-link {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 7px;
  display: inline-flex;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 560;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 17px;
  text-decoration: none;
}

.learn-more-link:hover {
  border-color: var(--red);
}

.hour-wheel-stage {
  aspect-ratio: 1;
  bottom: 0;
  cursor: grab;
  left: 50%;
  outline: none;
  position: absolute;
  touch-action: none;
  transform: translate(-50%, 50%);
  user-select: none;
  width: min(90vw, 112dvh, 1100px);
  z-index: 2;
}

.hour-wheel-stage.is-dragging {
  cursor: grabbing;
}

.hour-wheel-stage:focus-visible::after {
  border: 1px solid color-mix(in srgb, currentColor 62%, transparent);
  border-radius: 50%;
  content: "";
  inset: 2%;
  position: absolute;
}

.hour-wheel {
  display: block;
  height: 100%;
  transform-origin: center;
  will-change: transform;
  width: 100%;
}

.hour-wheel-pointer {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
  height: 60px;
  left: 50%;
  position: absolute;
  top: -52px;
  transform: translateX(-50%);
  width: 40px;
}

.is-night-office .hour-wheel-pointer {
  filter:
    invert(1)
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
}

.wheel-selection {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.wheel-instructions {
  color: inherit;
  font-size: 0.84rem;
  left: 50%;
  letter-spacing: 0.035em;
  margin: 0;
  position: absolute;
  text-align: center;
  top: 36.5dvh;
  transform: translate(-50%, -100%);
  width: min(90vw, 520px);
  z-index: 4;
}

.wheel-summary {
  color: var(--muted);
  display: block;
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  line-height: 1.35;
  margin-bottom: 12px;
}

#wheel-instructions-copy {
  opacity: 0.36;
}

.wheel-instructions a {
  opacity: 0.58;
  text-decoration-color: currentColor;
}

.site-footer {
  align-items: start;
  background: transparent;
  border-top: 1px solid rgba(5, 5, 5, 0.09);
  display: grid;
  gap: 24px 48px;
  grid-template-columns: 1fr auto;
  padding: 38px clamp(24px, 5vw, 76px) 46px;
}

.is-night-office .site-footer {
  border-top-color: rgba(247, 245, 239, 0.1);
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-size: 0.83rem;
}

.is-night-office .site-footer span,
.is-night-office .site-footer a {
  color: rgba(247, 245, 239, 0.48);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer nav a {
  text-decoration: none;
}

.page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 30px clamp(24px, 5vw, 76px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.page-header nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.page-header nav a {
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-page {
  display: grid;
  gap: clamp(54px, 8vw, 130px);
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  min-height: 100vh;
  padding: clamp(150px, 18vh, 220px) clamp(24px, 7vw, 110px) 130px;
}

.legal-heading {
  align-self: start;
  position: sticky;
  top: 46px;
}

.eyebrow {
  color: var(--red);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.legal-heading h1 {
  font-size: clamp(3.3rem, 5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin: 0;
}

.effective-date {
  color: rgba(5, 5, 5, 0.38);
  font-size: 0.9rem;
  margin-top: 24px;
}

.legal-content {
  max-width: 720px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-content code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-content .lede {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.35;
  margin-top: 0;
}

.legal-content h2 {
  border-top: 1px solid rgba(5, 5, 5, 0.12);
  font-size: 2rem;
  font-weight: 500;
  margin: 58px 0 14px;
  padding-top: 28px;
}

.legal-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 32px 0 8px;
}

.legal-content p,
.legal-content li {
  color: rgba(5, 5, 5, 0.66);
}

.legal-content ul {
  padding-left: 1.15rem;
}

.license-entry + .license-entry {
  border-top: 1px solid rgba(5, 5, 5, 0.12);
  margin-top: 34px;
  padding-top: 25px;
}

details {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(5, 5, 5, 0.13);
  margin-top: 18px;
  padding: 14px 17px;
}

summary {
  color: var(--red);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

pre {
  color: rgba(5, 5, 5, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* About Hours */

.about-page {
  background: var(--day-page-background);
  min-width: 0;
}

.about-main {
  overflow: hidden;
}

.about-header {
  position: absolute;
}

.about-header nav a[aria-current="page"] {
  color: var(--red);
}

.about-hero {
  align-items: center;
  display: grid;
  gap: clamp(50px, 6vw, 100px);
  grid-template-columns: minmax(340px, 0.76fr) minmax(590px, 1.24fr);
  margin: 0 auto;
  min-height: min(920px, 100vh);
  padding: clamp(150px, 17vh, 210px) clamp(28px, 5vw, 76px) 90px;
  width: min(100%, 1540px);
}

.about-hero-copy {
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  font-size: clamp(4rem, 5.6vw, 6.4rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
  max-width: 700px;
}

.about-hero-copy > p {
  color: rgba(5, 5, 5, 0.58);
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.55;
  margin: 36px 0 0;
  max-width: 650px;
}

.about-actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.about-secondary-link {
  color: var(--red);
  font-size: 1rem;
  font-weight: 560;
  text-decoration: none;
}

.about-secondary-link::after {
  content: "›";
  margin-left: 0.35em;
}

.about-hero-media {
  align-items: end;
  display: grid;
  gap: clamp(10px, 1.1vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  perspective: 1400px;
}

.about-shot {
  border-radius: clamp(12px, 1.3vw, 20px);
  box-shadow:
    0 26px 54px rgba(26, 22, 19, 0.16),
    0 4px 12px rgba(26, 22, 19, 0.1);
  margin: 0;
  overflow: hidden;
}

.about-shot img,
.about-media-frame img,
.about-ipad-frame img,
.about-cantor-frame img,
.about-night-media img {
  display: block;
  height: auto;
  width: 100%;
}

.about-shot-one {
  transform: translateY(34px) rotate(-1.4deg);
}

.about-shot-two {
  position: relative;
  transform: translateY(-10px);
  z-index: 2;
}

.about-shot-three {
  transform: translateY(30px) rotate(1.4deg);
}

.about-rule {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  width: min(calc(100% - 48px), 1420px);
}

.about-rule span {
  background: rgba(5, 5, 5, 0.13);
  height: 1px;
}

.about-rule img {
  height: 44px;
  width: auto;
}

.about-section {
  margin: 0 auto;
  padding: 108px clamp(28px, 6vw, 92px) 150px;
  width: min(100%, 1500px);
}

.about-section-intro {
  display: grid;
  gap: 40px 80px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.6fr);
}

.about-section-intro h2,
.about-feature-copy h2,
.about-night h2,
.about-closing h2 {
  font-size: clamp(3.3rem, 5.4vw, 6rem);
  font-weight: 430;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.about-section-intro p,
.about-feature-copy p,
.about-night-copy p,
.about-closing > p {
  color: rgba(5, 5, 5, 0.59);
  font-size: clamp(1.1rem, 1.45vw, 1.42rem);
  line-height: 1.55;
  margin: 0;
}

.about-feature {
  align-items: center;
  display: grid;
  gap: clamp(54px, 8vw, 130px);
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 130px;
}

.about-feature-latin {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  margin-top: 170px;
}

.about-number {
  color: var(--red);
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.about-feature-copy h3 {
  font-size: clamp(2.2rem, 3.2vw, 3.8rem);
  font-weight: 470;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 25px;
}

.about-feature-copy p + p {
  margin-top: 22px;
}

.about-media-frame,
.about-ipad-frame,
.about-cantor-frame,
.about-night-media figure {
  margin: 0;
}

.about-media-pair {
  align-items: end;
  display: grid;
  gap: clamp(14px, 2vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-media-pair img,
.about-media-single img,
.about-cantor-frame img {
  border-radius: clamp(14px, 1.5vw, 24px);
  box-shadow: 0 28px 60px rgba(26, 22, 19, 0.16);
}

.about-media-pair img:first-child {
  transform: translateY(30px);
}

.about-media-single {
  margin: 0 auto;
  max-width: 520px;
  width: min(100%, 42vw);
}

.about-chant {
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(5, 5, 5, 0.09);
  border-top: 1px solid rgba(5, 5, 5, 0.09);
}

.about-chant-inner {
  align-items: center;
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.1fr) minmax(220px, 0.45fr);
  margin: 0 auto;
  padding: 120px clamp(28px, 5vw, 80px);
  width: min(100%, 1540px);
}

.about-chant-copy h2 {
  font-size: clamp(3.1rem, 4.8vw, 5.5rem);
  margin-bottom: 30px;
}

.about-ipad-frame {
  border-radius: clamp(12px, 1.2vw, 20px);
  box-shadow: 0 30px 70px rgba(26, 22, 19, 0.15);
  overflow: hidden;
}

.about-cantor-frame {
  transform: translateY(52px);
}

.about-night {
  align-items: center;
  background:
    radial-gradient(circle at 78% 34%, rgba(36, 58, 89, 0.42), transparent 34%),
    #080b0f;
  color: #f7f5ef;
  display: grid;
  gap: clamp(54px, 7vw, 110px);
  grid-template-columns: minmax(300px, 0.66fr) minmax(0, 1.2fr);
  padding: 130px clamp(28px, 6vw, 96px);
}

.about-night-copy {
  justify-self: end;
  max-width: 560px;
}

.about-night-copy p {
  color: rgba(247, 245, 239, 0.62);
  margin-top: 30px;
}

.about-night-media {
  align-items: end;
  display: grid;
  gap: clamp(16px, 2vw, 30px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.about-night-media figure {
  border-radius: clamp(14px, 1.4vw, 24px);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.about-night-media figure:first-child {
  transform: translateY(34px);
}

.about-closing {
  margin: 0 auto;
  max-width: 920px;
  padding: 150px 28px 120px;
  text-align: center;
}

.about-closing > p {
  margin-top: 25px;
}

.about-closing-actions {
  justify-content: center;
  margin-top: 36px;
}

.about-independent-note {
  border-top: 1px solid rgba(5, 5, 5, 0.12);
  font-size: 0.96rem !important;
  margin: 72px auto 0 !important;
  max-width: 720px;
  padding-top: 30px;
}

.about-footer {
  background: transparent;
}

@media (min-width: 1001px) {
  .hero-copy {
    left: clamp(28px, 2.4vw, 48px);
    text-align: left;
    top: max(calc(env(safe-area-inset-top) + 24px), 4vh);
    transform: none;
    width: min(46vw, 620px);
  }

  .hour-wheel-stage {
    bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 4.6vw, 5.4rem);
  }

  .hero-copy p {
    margin-left: 0;
    margin-right: 0;
  }

  .app-store-link {
    margin: 0;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

}

@media (max-width: 1000px) {
  .hero-copy {
    top: max(calc(env(safe-area-inset-top) + 24px), 10vh);
    width: min(70vw, 600px);
  }

  .hour-wheel-stage {
    width: min(104vw, 108dvh, 850px);
  }

  .legal-page {
    gap: 56px;
    grid-template-columns: 1fr;
  }

  .legal-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    --mobile-browser-chrome-depth: max(0px, calc(100lvh - 100dvh));
    --mobile-wheel-center-offset: min(
      calc(
        var(--mobile-browser-chrome-depth) +
        var(--splash-bottom-extension)
      ),
      82px
    );
    height: 100lvh;
    height: calc(100lvh + var(--splash-bottom-extension));
    min-height: 0;
  }

  .hero-copy {
    left: 20px;
    text-align: left;
    top: max(
      calc(env(safe-area-inset-top) + 60px),
      calc(8vh + 40px)
    );
    transform: none;
    width: calc(100% - 40px);
  }

  .hero-copy h1 {
    font-family: var(--serif);
    font-size: 4.8rem;
  }

  .hero-copy p {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    margin-left: 0;
    margin-right: 0;
    max-width: 340px;
  }

  .app-store-link {
    margin: 0;
  }

  .hero-actions {
    gap: 10px;
    justify-content: flex-start;
    margin-top: 16px;
  }

  .hour-wheel-stage {
    /*
     * Expanded iOS Safari can report a dynamic viewport that is much shorter
     * than its visible address bar. Cap the offset so the hub's horizontal
     * diameter rests at the top of the bar, exposing only its upper half.
     */
    bottom: var(--mobile-wheel-center-offset);
    width: 128vw;
  }

  .hour-wheel-pointer {
    bottom: 100%;
    height: clamp(46px, 6.4dvh, 54px);
    top: auto;
    width: auto;
  }

  .wheel-instructions {
    bottom: calc(
      var(--mobile-wheel-center-offset) +
      59.52vw +
      clamp(104px, 13dvh, 128px)
    );
    font-size: 0.78rem;
    top: auto;
    transform: translateX(-50%);
  }

  .wheel-summary {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: left;
    transform: translateY(-4px);
  }

  #wheel-instructions-copy,
  #wheel-reset {
    position: relative;
    top: 30px;
  }

  .page-header {
    padding: 22px 20px;
  }

  .page-header nav {
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 5px;
  }

  .page-header nav a {
    font-size: 0.78rem;
  }

  .legal-page {
    padding: 142px 24px 90px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 20px 42px;
  }

  .about-header {
    align-items: center;
  }

  .about-header nav {
    max-width: 224px;
  }

  .about-hero {
    display: block;
    min-height: 0;
    padding: 128px 20px 84px;
  }

  .about-hero h1 {
    font-size: clamp(3.5rem, 16vw, 4.7rem);
  }

  .about-hero-copy > p {
    font-size: 1.08rem;
    margin-top: 26px;
  }

  .about-actions {
    gap: 14px;
    margin-top: 28px;
  }

  .about-hero-media {
    display: flex;
    gap: 14px;
    margin: 70px -20px 0;
    overflow-x: auto;
    padding: 8px 20px 54px;
    scroll-padding-left: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .about-hero-media::-webkit-scrollbar {
    display: none;
  }

  .about-shot {
    flex: 0 0 min(72vw, 275px);
    scroll-snap-align: start;
    transform: none;
  }

  .about-rule {
    width: calc(100% - 40px);
  }

  .about-section {
    padding: 78px 20px 100px;
  }

  .about-section-intro,
  .about-feature,
  .about-feature-latin,
  .about-chant-inner,
  .about-night {
    grid-template-columns: 1fr;
  }

  .about-section-intro {
    gap: 28px;
  }

  .about-section-intro h2,
  .about-feature-copy h2,
  .about-night h2,
  .about-closing h2 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .about-feature {
    gap: 46px;
    margin-top: 82px;
  }

  .about-feature-latin {
    margin-top: 110px;
  }

  .about-feature-latin .about-feature-copy {
    grid-row: 1;
  }

  .about-feature-latin .about-media-frame {
    grid-row: 2;
  }

  .about-media-pair {
    gap: 12px;
  }

  .about-media-single {
    width: min(78vw, 360px);
  }

  .about-chant-inner {
    padding: 90px 20px 115px;
  }

  .about-cantor-frame {
    margin: 0 auto;
    max-width: 340px;
    transform: none;
    width: 78vw;
  }

  .about-night {
    padding: 95px 20px 115px;
  }

  .about-night-copy {
    justify-self: start;
  }

  .about-night-media {
    gap: 12px;
  }

  .about-night-media figure:first-child {
    transform: translateY(22px);
  }

  .about-closing {
    padding: 110px 20px 90px;
  }

  .about-closing-actions {
    justify-content: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .splash-page .hero-copy,
  .splash-page .wheel-instructions,
  .splash-page .hour-wheel-stage {
    transition-delay: 0ms;
    transition-duration: 1ms;
  }

  html,
  body,
  .hero-copy p {
    transition-duration: 1ms;
  }
}

@media (max-height: 700px) and (max-width: 640px) {
  html.splash-page {
    /*
     * Short-phone previews can report the desktop browser's outer height.
     * Keep enough extension for real iOS browser chrome without letting that
     * measurement push the dial almost entirely below a 667px viewport.
     */
    --splash-bottom-extension: max(
      env(safe-area-inset-bottom, 0px),
      min(calc(var(--splash-outer-height) - 100lvh), 140px)
    );
  }

}

@media (max-height: 600px) and (max-width: 640px) {
  .hero-copy {
    top: max(calc(env(safe-area-inset-top) + 18px), 9vh);
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 13vw, 4rem);
  }

  .hero-copy p {
    font-size: 0.95rem;
    margin-top: 6px;
  }

  .wheel-instructions {
    bottom: auto;
    top: 199px;
  }

  .wheel-summary {
    font-size: 0.95rem;
    line-height: 1.18;
    margin-bottom: 0;
  }

  #wheel-instructions-copy,
  #wheel-reset {
    display: none;
  }

  .hour-wheel-stage {
    width: 102vh;
  }
}
