@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-latin-variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #141c38;
  --night-deep: #0c1128;
  --paper: #f8f5ec;
  --card: #fffdf7;
  --ink: #1d2b3a;
  --ink-soft: rgb(29 43 58 / 74%);
  --gold: #e9c27a;
  --gold-deep: #b7832f;
  --blue: #3c6fae;
  --line: rgb(29 43 58 / 12%);
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

em {
  font-style: normal;
  color: var(--gold-deep);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--card);
  border-radius: 0.5rem;
}

.skip:focus {
  left: 0.5rem;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Gold is for the dark sections; on paper and card it is too faint, so
   focus there uses the night colour (WCAG 1.4.11, 3:1). */
.steps :focus-visible,
.gallery :focus-visible,
.plans :focus-visible,
.faq :focus-visible,
.cta :focus-visible,
.links :focus-visible,
.foot :focus-visible,
.skip:focus-visible {
  outline-color: var(--night);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fdf8ec;
  background: var(--night-deep);
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(12 17 40 / 55%) 0%, rgb(12 17 40 / 30%) 40%, rgb(12 17 40 / 92%) 100%),
    url('/img/hero-night.webp') center 30% / cover no-repeat;
}

.bar,
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 35%);
}

.bar__link {
  font-size: 0.95rem;
  text-underline-offset: 0.2em;
  opacity: 0.9;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(1rem, 5vw, 3.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
}

.hero h1 em {
  color: var(--gold);
}

.lede {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgb(253 248 236 / 88%);
}

.hero__note {
  max-width: 30rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: rgb(253 248 236 / 72%);
}

.hero__phone {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
}

.hero__phone img {
  border-radius: 1.75rem;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 14%),
    0 30px 60px -20px rgb(0 0 0 / 70%);
  transform: rotate(2deg);
}

/* At a glance */

.facts {
  position: relative;
  list-style: none;
  max-width: var(--max);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  border-top: 1px solid rgb(253 248 236 / 16%);
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgb(253 248 236 / 78%);
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
}

/* Store buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stores--center {
  justify-content: center;
}

.store {
  display: inline-block;
  border-radius: 0.6rem;
  line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store img {
  height: 3.25rem;
  width: auto;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 60%);
}

/* Sections */

main section {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

main h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.steps__list {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.steps__list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 12px 30px -24px rgb(20 28 56 / 50%);
}

.steps__num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
}

.steps__list h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
}

.steps__list p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery {
  background:
    linear-gradient(180deg, var(--paper) 0%, rgb(248 245 236 / 55%) 30%, rgb(248 245 236 / 55%) 70%, var(--paper) 100%),
    url('/img/circle-day.webp') center / cover no-repeat;
}

.gallery__head {
  text-align: center;
}

.gallery__head p {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
}

.gallery__strip {
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0.5rem 0 1.5rem;
  max-width: var(--max);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.gallery__strip li {
  scroll-snap-align: center;
}

.gallery__strip img {
  border-radius: 1.25rem;
  box-shadow: 0 18px 36px -22px rgb(20 28 56 / 70%);
}

.plans__grid {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.plan--full {
  background: var(--night);
  color: #fdf8ec;
  border-color: transparent;
}

.plan h3 {
  font-size: 1.6rem;
}

.plan h3 span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.plan ul {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
}

.plan li + li {
  margin-top: 0.4rem;
}

.grownups {
  background: var(--night);
  color: #fdf8ec;
}

.grownups__inner {
  max-width: 46rem;
  margin: 0 auto;
}

.grownups ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.grownups li {
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
}

.grownups strong {
  color: var(--gold);
  font-weight: 600;
}

.plans__note {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gallery__strip:focus-visible {
  outline-offset: 6px;
  border-radius: 1.25rem;
}

/* Questions */

.faq__list {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.faq summary {
  position: relative;
  padding: 1.1rem 3.25rem 1.1rem 1.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-deep);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq summary:focus-visible {
  border-radius: 1rem;
}

.faq details p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-soft);
}

.faq details a,
.faq__more a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

.faq__more {
  margin: 1.5rem 0 0;
  text-align: center;
  font-weight: 600;
}

.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, #efe8d4 100%);
}

.cta p {
  margin: 1rem 0 0;
}

.cta h2 {
  margin-bottom: 1.75rem;
}

/* Footer */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.foot {
  padding: 1.25rem var(--gutter) 2.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}

.links a,
.foot a {
  text-underline-offset: 0.2em;
}

.legal {
  margin: 0;
}

/* Narrow screens */

@media (max-width: 54rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .stores {
    justify-content: center;
  }

  .hero__phone {
    width: min(78%, 18rem);
  }

  .steps__list,
  .plans__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
  }

  .gallery__strip {
    grid-auto-columns: 62%;
  }
}

@media (max-width: 30rem) {
  .steps__list li,
  .plan {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store {
    transition: none;
  }

  .store:hover {
    transform: none;
  }
}
