/* Franklin Barbecue design system: base.
   Fonts, reset, page defaults, type roles as classes, the page shell.
   The two brand faces were served by Adobe Fonts on the live site; the files the
   site loaded are kept here, beside the site, so the pages do not depend on the old host. */

@font-face {
  font-family: "cheap-pine-sans";
  src: url("/assets/fonts/cheap-pine-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "voltage";
  src: url("/assets/fonts/voltage-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "voltage";
  src: url("/assets/fonts/voltage-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Page defaults */
body {
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: var(--leading-text);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
}
a { color: inherit; }
p a, .text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
p a:hover, .text-link:hover { text-decoration-thickness: 2px; }
strong { font-weight: var(--weight-bold); }

/* Focus: one visible ring everywhere, dark on light bands, light on dark bands */
:focus-visible {
  outline: var(--focus-ring) solid var(--color-focus);
  outline-offset: 3px;
}
.tone-black :focus-visible, .tone-ember :focus-visible { outline-color: var(--color-focus-on-dark); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--size-body);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-xs); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Type roles */
.t-hero { font-family: var(--font-display); font-size: var(--size-hero); line-height: var(--leading-solid); text-transform: uppercase; }
.t-display-xl { font-family: var(--font-display); font-size: var(--size-display-xl); line-height: var(--leading-tight); text-transform: uppercase; }
.t-display-l { font-family: var(--font-display); font-size: var(--size-display-l); line-height: var(--leading-display); text-transform: uppercase; }
.t-heading-m { font-family: var(--font-display); font-size: var(--size-heading-m); line-height: var(--leading-heading); text-transform: uppercase; }
.t-heading-s { font-family: var(--font-display); font-size: var(--size-heading-s); line-height: var(--leading-display); text-transform: uppercase; }
.t-label { font-family: var(--font-display); font-size: var(--size-label); line-height: var(--leading-label); text-transform: uppercase; }
.t-script-l { font-family: var(--font-script); font-size: var(--size-script-l); line-height: var(--leading-script); }
.t-credit { font-family: var(--font-script); font-size: var(--size-credit); line-height: var(--leading-solid); }
.t-tagline { font-family: var(--font-script); font-size: var(--size-tagline); line-height: var(--leading-solid); }
.t-body-l { font-family: var(--font-text); font-size: var(--size-body-l); line-height: var(--leading-text); }
.t-body { font-family: var(--font-text); font-size: var(--size-body); line-height: var(--leading-text); }
.t-body-s { font-family: var(--font-text); font-size: var(--size-body-s); line-height: var(--leading-text); }
.t-fine { font-family: var(--font-text); font-size: var(--size-fine); line-height: var(--leading-solid); }

/* Colors as text roles */
.c-orange { color: var(--color-orange); }
.c-ink-soft { color: var(--color-ink-soft); }
.c-teal { color: var(--color-teal); }

/* Band tones: each band carries one. Cream may sit next to anything; teal and orange
   may sit next to each other (the gift card and newsletter bands do); black is the footer. */
.tone-cream { background: var(--color-cream); color: var(--color-ink); }
.tone-teal { background: var(--color-teal); color: var(--color-on-dark); }
.tone-orange { background: var(--color-orange); color: var(--color-on-dark); }
.tone-black { background: var(--color-black); color: var(--color-on-black); }
.tone-ember { background: var(--color-ember); color: var(--color-on-dark); }

/* Page shell: full-bleed bands, content on the layout grid inside the gutters */
.band { position: relative; }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap {
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
