@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/dm-serif-display.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url("/assets/figtree-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url("/assets/figtree-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #001a45;
  --red: #c8102e;
  --gold: #e8b54a;
  --cream: #fcf8f0;
  --ink: #0e1a33;
  --muted: #4c5870;
  --rule: #e2d9cb;
  --surface: #fffdfa;
  --display: "DM Serif Display", Georgia, serif;
  font-family: Figtree, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 100%;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #2e6fb0; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--navy); line-height: 1.05; }
h1 { font-size: clamp(2.85rem, 5.65vw, 5.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.033em; }
.wrap { width: min(74rem, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: .65rem; padding: .65rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead-inner { min-height: 5.25rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font: 1.55rem/1 var(--display); text-decoration: none; }
.brand img { flex: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.55rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.hero {
  border-bottom: 1px solid var(--rule);
}
.hero-grid, .feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 7vw, 6.4rem);
  align-items: center;
}
.hero-grid { padding-block: clamp(3rem, 6.2vw, 5.85rem); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #962139;
  font-size: .79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.flag { position: relative; flex: 0 0 1.5rem; height: 1rem; background: var(--red); }
.flag::before, .flag::after { position: absolute; content: ""; background: #fff; }
.flag::before { inset: 43% 0 auto; height: 15%; }
.flag::after { inset: 0 auto 0 31%; width: 10%; }
.hero h1 { margin-top: 1.1rem; }
.intro { color: var(--muted); font-size: clamp(1.1rem, 1.55vw, 1.25rem); line-height: 1.57; }
.hero .intro { max-width: 29rem; margin-top: 1.15rem; }
.availability { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .65rem; margin-top: 1.35rem; font-size: .97rem; }
.availability span { color: var(--muted); }
.availability span::before { content: "·"; padding-right: .65rem; color: #a16a08; }
.text-action { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; color: #962139; font-weight: 700; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 1rem; color: white; background: var(--red); font-weight: 700; text-decoration: none; }
.button:hover { background: #a50d27; }
.store-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.store { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }

.app-figure { margin: 0; min-width: 0; }
.app-image-frame { background: #f2e7d3; border: 1px solid #dcd0bb; padding: clamp(.55rem, 1.6vw, 1.25rem); }
.app-image-frame img { width: 100%; height: auto; border: 1px solid #d8d1c5; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .89rem; }

.features { background: var(--surface); padding-block: clamp(2.6rem, 5.5vw, 4.65rem); }
.feature-layout { align-items: start; }
.features h2 { margin-top: .7rem; }
.feature-list { margin: 0; }
.feature-list > div { border-top: 1px solid var(--rule); padding: .8rem 0; }
.feature-list > div:last-child { border-bottom: 1px solid var(--rule); }
.feature-list dt { font-weight: 700; font-size: 1.07rem; color: var(--navy); }
.feature-list dd { margin: .15rem 0 0; color: var(--muted); }
.membership { color: #e7edf7; background: var(--navy); border-top: 4px solid var(--red); }
.membership-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 7vw, 6.4rem); align-items: center; padding-block: clamp(2.5rem, 5.5vw, 4rem); }
.membership h2 { color: white; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .65rem; }
.membership p { max-width: 34rem; }
.membership .text-action { color: var(--gold); justify-self: start; }
.membership :focus-visible { outline-color: var(--gold); }
.footer { background: var(--cream); border-top: 1px solid var(--rule); }
.footer-inner { padding-block: 1.5rem; }
.footer .brand { font-size: 1.25rem; }
.footer .brand img { width: 36px; height: 36px; }
.footer p { color: var(--muted); margin-top: .15rem; font-size: .85rem; }

.article { max-width: 46rem; padding-block: clamp(2.5rem, 7vw, 5rem); overflow-wrap: anywhere; }
.article h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
.article .intro { margin-block: .65rem 1.4rem; }
.article h2 { margin: 1.6rem 0 .45rem; font-size: clamp(1.55rem, 3.7vw, 2.1rem); }
.article li + li, .article p + p { margin-top: .55rem; }
.article ul, .article ol { padding-left: 1.5rem; }
.article a:not(.button) { color: #265992; font-weight: 700; }
.notice { border-left: 4px solid #a16a08; padding: .75rem 1rem; background: #fbf1dc; }
.notice p { margin-top: .12rem; }

@media (max-width: 60rem) {
  .hero-grid, .feature-layout, .membership-inner { gap: 2rem; }
}

@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 4.25rem; }
  .masthead .brand { font-size: 1.23rem; gap: .4rem; }
  .masthead .brand img { width: 36px; height: 36px; }
  nav { column-gap: .8rem; }
  .hero-grid, .feature-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 5.3rem); }
  .hero-grid { padding-block: 2.6rem 2rem; }
  .membership-inner { grid-template-columns: 1fr; gap: .5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead .brand { font-size: 1.05rem; }
  .masthead nav a { font-size: .86rem; }
  .availability span::before { content: none; }
}
