:root {
  --bg: #f4ede2;
  --surface: #fbf7f0;
  --text: #191714;
  --muted: #5a5249;
  --rule: #e0d5c4;
  --sea: #17496b;
  --sea-deep: #0f324b;
  --land: #3d6440;
  --on-dark: #f4ede2;
  --link: var(--sea);
  --link-hover: var(--sea-deep);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header { padding-top: 1.75rem; padding-bottom: 1rem; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

main { flex: 1; padding-top: 2rem; padding-bottom: 4rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 1.25rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.1875rem; margin: 2rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }
li > ul, li > ol { margin-top: 0.45rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

strong { font-weight: 600; }

/* Legal */
.legal { font-size: 1rem; }
.legal h1 + p { color: var(--muted); }
.legal h2 { padding-top: 0.25rem; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.notice {
  border-left: 3px solid var(--sea);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 0 0 1.25rem;
}
.notice p:last-child { margin-bottom: 0; }
.caps { text-transform: uppercase; font-size: 0.9375rem; letter-spacing: 0.01em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .site-footer { flex-direction: column; }
}

/* Home */
.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: 76rem;
  padding: 1.5rem 1.25rem;
}
.home-page main { max-width: none; padding: 0; }
.home-page .site-footer { max-width: 76rem; padding-top: 2rem; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home section { padding: 5.5rem 0; }
.home h2 { font-size: clamp(2rem, 6.5vw, 3.25rem); line-height: 1.08; margin: 0 0 1.5rem; letter-spacing: -0.02em; }
.home p { max-width: 34rem; }
.home .big { font-size: clamp(1.1875rem, 3.4vw, 1.375rem); line-height: 1.55; }

/* Full-bleed photo with words on it */
.bleed {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #2d2b28;
}
.bleed picture,
.bleed .bleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bleed .bleed-img { object-fit: cover; }
.bleed .wrap { position: relative; z-index: 1; }

.home section.hero { padding: 0; }
.hero-top { padding-top: 6.5rem; }
.hero h1 {
  font-size: clamp(3rem, 13vw, 6.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}
.hero .lede {
  font-size: clamp(1.125rem, 3.6vw, 1.4375rem);
  line-height: 1.45;
  max-width: 26rem;
  margin: 0;
}
.hero-bottom { padding-bottom: 2.25rem; color: var(--on-dark); }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.1rem; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.7rem 1.15rem 0.75rem;
  background: var(--on-dark);
  color: var(--text);
  border-radius: 10px;
  line-height: 1.2;
}
.store small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.01em; }
.store span { font-weight: 600; font-size: 1.0625rem; margin-top: 0.15rem; }
.fine { font-size: 0.9375rem; margin: 0; }
.on-dark .fine, .on-dark a { color: var(--on-dark); }

/* Pull quote */
.quote-grid { display: grid; gap: 2.5rem; align-items: center; }
.quote-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
blockquote { margin: 0; }
.home blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 5.6vw, 2.625rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
blockquote footer { color: var(--muted); font-size: 0.9375rem; }

/* How it works */
.steps-grid { display: grid; gap: 3rem; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--land);
}
.steps h3 { margin: 0.2rem 0 0.4rem; font-size: 1.3125rem; }
.steps p { margin: 0; color: var(--muted); }
.steps-photo img { width: 100%; aspect-ratio: 10 / 13; object-fit: cover; }

/* Every level */
.levels-grid { display: grid; gap: 2.5rem; align-items: center; }
.levels-grid img { width: 100%; aspect-ratio: 10 / 13; object-fit: cover; }

/* Where we are */
.home section.where { padding-bottom: 0; }
.cities { display: grid; gap: 2.5rem; margin: 3rem 0 3.5rem; }
.cities h3 { font-size: 1.625rem; margin: 0 0 0.25rem; }
.cities .when { font-weight: 600; margin: 0 0 0.75rem; }
.cities .now .when { color: var(--sea); }
.cities .next .when { color: var(--land); }
.cities p { color: var(--muted); margin: 0; }
.where-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Safety */
.home section.safety { background: var(--sea-deep); color: var(--on-dark); margin-top: 5.5rem; }
.safety h2 { color: var(--on-dark); }
.safety-grid { display: grid; gap: 1rem; }
.safety p { max-width: 38rem; }
.safety p + p { margin-top: 1.5rem; }
.safety strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.3rem; }
.safety a { color: var(--on-dark); }
.safety a:hover { color: #fff; }
.safety .aside { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244, 237, 226, 0.25); font-size: 0.9375rem; }

/* Closing */
.closing h2 { color: var(--on-dark); font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; }
.closing .bleed-bottom { padding-bottom: 3rem; color: var(--on-dark); }
.home section.closing { padding: 0; justify-content: flex-end; min-height: 90vh; min-height: 90svh; }
.closing .fine + .fine { margin-top: 0.4rem; }

@media (min-width: 48rem) {
  .home-page .site-header { padding: 2rem 2.5rem; }
  .home-page .site-footer { padding-left: 2.5rem; padding-right: 2.5rem; }
  .wrap { padding: 0 2.5rem; }
  .home section { padding: 8rem 0; }
  .hero-top { padding-top: 9rem; }
  .hero-bottom { padding-bottom: 3rem; }

  .quote-grid { grid-template-columns: 7fr 5fr; gap: 4.5rem; }
  .quote-grid img { aspect-ratio: 4 / 3; }

  .steps-grid { grid-template-columns: 6fr 5fr; gap: 6rem; align-items: start; }
  .steps-photo { margin-top: 7rem; }

  .levels-grid { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .levels-text { padding-top: 4rem; }

  .cities { grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 56rem; }
  .where-photo { margin-left: 16%; }

  .home section.safety { margin-top: 8rem; }
  .safety-grid { grid-template-columns: 4fr 7fr; gap: 4rem; }
  .safety h2 { position: sticky; top: 2rem; }

  .closing .bleed-bottom { padding-bottom: 4.5rem; }
}
