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

:root {
  --display: Fraunces, Georgia, serif;
  --body: Fraunces, Georgia, serif;
  --type-hero: clamp(3.5rem, 4.4vw, 4rem);
  --type-section: clamp(2.5rem, 3.4vw, 3rem);
  --type-title: clamp(1.625rem, 2vw, 1.75rem);
  --type-body: 1.125rem;
  --type-control: 1rem;
  --type-supporting: .875rem;
}

h1, h2, h3, .flavor-directory > summary {
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -.02em;
}

body {
  font-size: var(--type-body);
  font-optical-sizing: auto;
  font-synthesis: none;
}
.brand { font-weight: 600; letter-spacing: -.02em; }
button, input, textarea, select, label, legend, nav,
.button, .text-button, .text-link {
  font-size: var(--type-control);
}
.site-header nav, .footer-top nav { font-size: var(--type-control); }
.site-header .button { font-size: var(--type-control); }
.hero h1 {
  font-size: var(--type-hero);
  line-height: 1.08;
  text-wrap: balance;
}
.hero-copy > p { font-size: var(--type-body); line-height: 1.6; }
.hero-copy > .hero-description { margin-top: 1rem; }
.hero-copy > .hero-location {
  margin-top: .5rem;
  max-width: 36ch;
  font-size: var(--type-control);
  line-height: 1.55;
  color: var(--on-dark);
}
.selected-flavor-copy .fruit-jam-note {
  max-width: 36ch;
  margin: .75rem 0 0;
  font-size: var(--type-control);
  line-height: 1.55;
  color: var(--muted);
}
h2, .carousel-heading h2, .about-heading, .pickup-intro h2 {
  font-size: var(--type-section);
  line-height: 1.15;
}
h3, .selected-flavor-copy h3, .flavor-directory .flavor-directory-name,
.occasion-scene h3, .occasion-table h3, .is-unannounced .event-panel h3,
.slip-heading h3, .review-heading h3 {
  font-size: var(--type-title);
  line-height: 1.2;
}
.flavor-directory .flavor-directory-name { font-weight: 500; }
.flavor-directory > summary { font-size: var(--type-title); line-height: 1.2; }

.section-heading p, .carousel-heading p,
.selected-flavor-copy #selected-flavor-description,
.flavor-directory-identity, .about-intro p, .occasion-scene p,
.catering-note, .pickup-intro .request-state-note, .pickup-empty p,
.popup-copy p, .popup-copy p:last-child, .event-panel > p {
  font-size: var(--type-body);
  line-height: 1.6;
}
.about-intro p { max-width: 40ch; }
.flavor-directory-identity { min-height: 4.8em; }
.selected-flavor-copy #selected-flavor-description { max-width: 36ch; }
.flavor-directory-intro > p, .dairy-free-notice,
.menu-availability, .carousel-footnote, .pickup-location-content,
.fieldset-help, .basket-recovery, .handoff-instructions {
  font-size: var(--type-control);
  line-height: 1.55;
}

.compare-flavors-link, .menu-cart-link,
.occasion-scene .text-link, .recipe-choice legend, .cup-size-choice legend,
.cup-size-options label > span, .directory-size-options label,
.directory-recipe, .flavor-directory .directory-add,
.flavor-directory-order > summary, .pickup-location summary,
.cart-remove, .cart-edit, .cart-continue,
.cart-option-editor label, .cart-option-actions .button,
.cart-recovery button, .order-slip button.text-link {
  font-size: var(--type-control);
}
.cup-size-options strong span, .directory-portion,
.directory-recipe > span:last-child, .directory-price-range,
.cart-title span, .cart-unit-price, .cart-item-variant, .cart-item-recipe,
.cart-confirmation, .cart-option-price, .cart-recovery p,
.field-help, .field-error, .optional, .basket-save-note {
  font-size: var(--type-supporting);
  line-height: 1.45;
}
.cart-title h2 { font-size: 1.75rem; line-height: 1.2; }
.cart-item-heading h3 {
  font: 600 1rem/1.4 var(--body);
  letter-spacing: 0;
}
.cart-item-pricing strong, .draft-item { font-size: var(--type-control); }
.cart-empty h3 { font-size: var(--type-title); }
.cart-empty p, .cart-empty .button { font-size: var(--type-control); }

@media (min-width: 701px) and (max-width: 1000px) {
  .hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.5rem); }
}
@media (max-width: 700px) {
  :root {
    --type-hero: clamp(2.5rem, 8.2vw, 2.75rem);
    --type-section: clamp(2rem, 6.8vw, 2.25rem);
    --type-title: 1.5rem;
    --type-body: 1.0625rem;
  }
  .hero h1 { max-width: none; }
  .flavor-directory-identity { min-height: 0; }
  .flavor-select-label { font-size: var(--type-control); }
  .flavor-select-label select { font-size: var(--type-control); }
  .cart-title h2 { font-size: 1.625rem; }
  .is-unannounced .popup-copy h2 { max-width: none; }
}
@media (max-width: 420px) {
  .cup-size-options label > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    min-height: 88px;
  }
  .site-header nav { column-gap: .5rem; }
  .site-header nav a { white-space: nowrap; }
}
@media (max-width: 380px) {
  .site-header nav { column-gap: .25rem; }
}
