:root {
  --rose-deep: #d8b6a6;
  --rose-soft: #e6c8bb;
  --blush-bg: #f2e0d9;
  --blush-border: #e8c9be;
  --cream: #f2e5d9;
  --cream-soft: #f6ece2;
  --page-cream: #f5ede6;
  --ink: #1e1410;
  --ink-warm: #2a1f1a;
  --ink-soft: rgba(30, 20, 16, 0.74);
  --ink-mute: rgba(30, 20, 16, 0.55);
  --dusty-pink: #c4929a;
  --dusty-pink-deep: #a8727c;
  --plum: #4a2a33;
  --confirm-green: #6e7a5e;
  --white: #ffffff;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: Georgia, "Times New Roman", serif;
  --radius-image: 8px;
  --radius-card: 14px;
  --content-max: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-warm);
  background: var(--page-cream);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--dusty-pink-deep);
}

a:hover,
a:focus-visible {
  color: var(--plum);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--page-cream);
}

.site-header-inner,
.hero,
.store,
.site-footer-inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  display: block;
  width: 7.5rem;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.join-button {
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--dusty-pink);
  color: var(--ink-warm);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.join-button:hover,
.join-button:focus-visible {
  background: var(--dusty-pink-deep);
}

.join-button:focus-visible,
.menu-button:focus-visible,
.dialog-close:focus-visible,
.store-badge:focus-visible,
.site-menu a:focus-visible,
.site-menu button:focus-visible {
  outline: 2px solid var(--dusty-pink-deep);
  outline-offset: 3px;
}

.menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button-bars,
.menu-button-bars::before,
.menu-button-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink-warm);
  border-radius: 999px;
}

.menu-button-bars {
  position: relative;
}

.menu-button-bars::before,
.menu-button-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button-bars::before {
  top: -6px;
}

.menu-button-bars::after {
  top: 6px;
}

.site-menu {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: 0 1.25rem 1rem;
}

.site-menu[hidden] {
  display: none;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--blush-bg);
  border-radius: var(--radius-card);
}

.site-menu li + li {
  border-top: 1px solid var(--blush-border);
}

.site-menu a,
.site-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0;
  border: 0;
  background: none;
  color: var(--ink-warm);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.hero {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink-warm);
}

.hero-line {
  display: block;
}

.hero-line-accent {
  font-style: italic;
  color: var(--dusty-pink-deep);
}

.hero-lead {
  margin: 0 auto;
  max-width: 22rem;
  color: var(--ink-soft);
}

.gallery {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-block: 0.25rem 2rem;
}

.gallery-row {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 0.65rem;
}

.gallery-set {
  display: flex;
  gap: 0.65rem;
}

.gallery img {
  display: block;
  width: 9.5rem;
  height: 12rem;
  object-fit: cover;
  border-radius: var(--radius-image);
  flex-shrink: 0;
}

.gallery-row-left .gallery-track {
  animation: gallery-left 48s linear infinite;
}

.gallery-row-right .gallery-track {
  animation: gallery-right 52s linear infinite;
}

.gallery-row:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes gallery-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.325rem));
  }
}

@keyframes gallery-right {
  from {
    transform: translateX(calc(-50% - 0.325rem));
  }
  to {
    transform: translateX(0);
  }
}

.store {
  padding-bottom: 3rem;
  text-align: center;
}

.store-label {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 0.85rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.store-badge img {
  display: block;
  height: 3.3425rem;
  width: auto;
}

.download-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.download-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-warm);
}

.download-page p {
  margin: 0 0 0.4rem;
  max-width: 22rem;
  color: var(--ink-soft);
}

.site-footer {
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid var(--blush-border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-copy {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-mute);
}

.dialog-root[hidden] {
  display: none;
}

.dialog-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 16, 0.46);
}

.dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 26.5rem);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--cream-soft);
  border-radius: var(--radius-card);
  text-align: center;
}

.dialog h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--ink-warm);
}

.dialog p {
  margin: 0;
  color: var(--ink-soft);
}

.dialog .store-badges {
  margin-top: 1.5rem;
}

.dialog-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-warm);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 720px) {
  .site-header-inner,
  .hero,
  .store,
  .site-footer-inner,
  .site-menu {
    padding-inline: 1.5rem;
  }

  .logo {
    width: 8.75rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
  }

  .gallery img {
    width: 12.5rem;
    height: 15.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-row-left .gallery-track,
  .gallery-row-right .gallery-track {
    animation: none;
    transform: none;
  }

  .gallery-track {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .gallery-set:last-child {
    display: none;
  }
}
