/* Shared type scale. Local font faces are declared in styles.css. */
:root {
  --type-body: 1rem;
  --type-lead: 1.0625rem;
  --type-label: .875rem;
  --type-small: .75rem;
  --leading-body: 1.65;
  --leading-small: 1.55;
  --tracking-label: .065em;
}

body {
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.02;
}

.ticker span,
.stamp strong,
.story-numbers strong,
.form-section legend,
.order-steps li::before {
  font-family: var(--display);
  font-weight: 900;
}

.intro,
.page-hero .intro,
.split-hero .intro,
.editorial-row .intro,
.store-teaser p.intro,
.article-head .intro {
  font-size: var(--type-lead);
  line-height: 1.7;
}

/* Keep the home hero's V3 heading scale and its compact introduction. */
.hero p.intro,
.order-intro .intro {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.section-heading p:not(.eyebrow):not(.intro),
.bread-copy p:not(.eyebrow):not(.intro),
.editorial-row p:not(.eyebrow):not(.intro),
.order-banner p:not(.eyebrow),
.statement p:not(.eyebrow),
.story-numbers p,
.store-card p:not(.eyebrow):not(.fine),
.article-body p,
.info-page p,
.info-page li {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.eyebrow,
.hero .eyebrow,
.moment-copy .eyebrow,
.journal-item .eyebrow,
.store-card .eyebrow,
.section-heading .eyebrow,
.order-banner .eyebrow {
  font-family: var(--font);
  font-size: var(--type-small);
  font-weight: 700;
  line-height: var(--leading-small);
  letter-spacing: var(--tracking-label);
}

.fine,
.breadcrumb,
.photo-caption,
.bread-photo .vertical-note,
.fournil-signature small,
.article-body .source-note,
.store-card .fine,
.form-note,
.field small,
.optional,
.form-submit p,
.form-privacy,
.order-help,
.dialog-mail-note,
.copy-status,
.toast {
  font-size: var(--type-small);
  line-height: var(--leading-small);
}

.photo-caption,
.bread-photo .vertical-note,
.fournil-signature small {
  letter-spacing: .05em;
}

.photo-caption {
  max-width: calc(100% - 40px);
  text-align: right;
}

.breadcrumb {
  flex-wrap: wrap;
  gap: 5px 12px;
}

.fournil-signature strong,
.store-results-count,
.store-contact a,
.store-card summary,
.hours,
.store-services,
.order-steps li,
.field,
.choice span,
.form-error,
.dialog-intro,
.request-summary dl,
.request-description {
  font-size: var(--type-label);
  line-height: var(--leading-small);
}

.fournil-signature > :not(img) {
  min-width: 0;
}

.fournil-signature strong svg {
  flex-shrink: 0;
}

/* Header controls have their own scale in navigation.css. */
.button:not(.header-order),
.button.small:not(.header-order),
.hero .button,
.store-card .button,
.dialog-actions .button,
.text-link,
.hero .text-link,
.journal-item .text-link {
  font-family: var(--font);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  max-width: 100%;
}

.button:not(.header-order) svg,
.text-link svg {
  flex-shrink: 0;
}

input:not([type=radio]),
textarea,
select,
.copy-fallback textarea {
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.5;
  min-width: 0;
}

.form-section legend {
  line-height: 1.08;
}

.form-section legend span {
  font-family: var(--font);
  font-size: var(--type-small);
  font-weight: 700;
  line-height: 1;
}

.audience-selector {
  flex-wrap: wrap;
}

.announcement {
  font-family: var(--font);
  font-size: var(--type-small);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--tracking-label);
  min-height: 32px;
}

.announcement > span {
  min-width: 0;
  text-wrap: balance;
}

.ticker span {
  line-height: 1.15;
}

/* The badge needs room for readable supporting text at every viewport. */
.hero .stamp {
  width: 144px;
  height: 144px;
  padding: 13px;
}

.stamp span,
.hero .stamp span {
  font-size: var(--type-small);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .025em;
  max-width: 108px;
}

/* Split-page headings scale with the width of their text column. */
.split-hero h1 {
  font-size: clamp(52px, 7.6vw, 118px);
  line-height: 1.02;
}

.footer-head h2 {
  flex: 1 1 0;
  min-width: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.footer-head .round-arrow {
  flex-shrink: 0;
}

.footer-main {
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
}

.footer-main > div {
  min-width: 0;
}

.footer-main h3 {
  font-family: var(--font);
  font-size: var(--type-small);
  font-weight: 700;
  line-height: var(--leading-small);
  letter-spacing: var(--tracking-label);
}

.footer-main p,
.footer-main a:not(.footer-logo) {
  font-family: var(--font);
  font-size: var(--type-label);
  font-weight: 400;
  line-height: 1.75;
}

.footer-main a:not(.footer-logo) {
  max-width: 100%;
  overflow-wrap: break-word;
}

.footer-bottom {
  font-size: var(--type-small);
  line-height: var(--leading-small);
  flex-wrap: wrap;
}

@media (max-width: 850px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero .stamp { width: 136px; height: 136px; padding: 12px; }
  .announcement {
    padding: 7px 16px;
    min-height: 34px;
    letter-spacing: .05em;
    text-align: center;
  }

  .button:not(.header-order) {
    min-height: 48px;
  }

  .split-hero h1 {
    font-size: clamp(58px, 18vw, 78px);
  }

  .page-hero h1 {
    font-size: clamp(60px, 18vw, 79px);
    line-height: 1.02;
  }

  .page-hero.info-hero h1 {
    font-size: clamp(42px, 14vw, 76px);
  }

  .statement h2 {
    font-size: clamp(48px, 15.5vw, 70px);
    line-height: 1.02;
  }

  .order-banner h2 {
    font-size: clamp(52px, 17vw, 73px);
    line-height: 1.02;
  }

  .footer-head h2 {
    font-size: clamp(42px, 12vw, 57px);
  }

  .form-submit .button {
    min-height: 53px;
  }
}

@media (max-width: 480px) {
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
