/* Franklin Barbecue design system: tokens.
   Version 1.0, 2026-12-03. Drawn from the capture of franklinbbq.com (home, 1440 and 390).

   COLOR
   Measured: the flat fills of the full-page picture (cream 31%, teal 16%, black 8.5%,
   orange 6%), the computed colors of every element, and the announcement bar fill.
   Decided: each measured value gets one role name; nothing is invented. */
:root {
  /* Surfaces */
  --color-cream: #efeede;        /* page paper; also the footer text on black */
  --color-teal: #5dc3bc;         /* brand teal: band tone, footer headings */
  --color-orange: #e67437;       /* brand orange: buttons, headings on cream, gift card band */
  --color-black: #000000;        /* ink on cream; footer band */
  --color-white: #ffffff;        /* text on teal and orange; form field fill */
  --color-ember: #9f1a03;        /* announcement bar fill */

  /* Text */
  --color-ink: #000000;          /* headings and body on cream: 18:1 */
  --color-ink-soft: #4e4b4e;     /* quote credit, sister-restaurant body: 7.4:1 on cream */
  --color-on-dark: #ffffff;      /* text on teal (2.1:1, as the live site has it), on orange (3.0:1, large text), on ember (8.0:1) */
  --color-on-black: #efeede;     /* footer text: 18:1 on black */
  --color-placeholder: #a9a9a9;  /* email field placeholder as drawn on the live site */

  /* Roles */
  --color-accent: var(--color-orange);
  --color-heading-on-cream: var(--color-orange);   /* 2.6:1 on cream: used only at 26 px and up, as the live site does */
  --color-rule: var(--color-orange);
  --color-field-border: rgba(0, 0, 0, 0.12);
  --color-focus: #000000;        /* focus ring on cream, teal and orange: 18:1, 10:1, 6.9:1 */
  --color-focus-on-dark: #ffffff;/* focus ring on black and ember */
}

/* TYPE
   Measured: the computed type of every text element at 1440 and at 390. Three families,
   all loaded at 400 only (voltage 700 is loaded but not used on the home page).
   cheap-pine-sans: the condensed all-caps display face, the site's voice.
   voltage: the brush script for asides, the announcement and the order button.
   Georgia: the reading face (a system font on the live site, kept so).
   Decided: each size is a role; it runs straight between the 390 value and the 1440
   value, so both widths land on what was measured. The live sizes each role replaces
   are noted as 390 / 1440. */
:root {
  --font-display: "cheap-pine-sans", "Arial Narrow", sans-serif-condensed, sans-serif;
  --font-script: "voltage", "Brush Script MT", cursive;
  --font-text: Georgia, "Times New Roman", serif;
  --weight-regular: 400;
  --weight-bold: 700;

  /* Display (cheap-pine-sans, all set in capitals by the face itself) */
  --size-hero: clamp(41.4px, 26.47px + 3.829vw, 81.6px);     /* 41.4 / 81.6 the press quote */
  --size-display-xl: clamp(56.5px, 45.87px + 2.726vw, 85.12px); /* 56.5 / 85.1 events title, Planning to visit */
  --size-display-l: clamp(43.3px, 36.09px + 1.850vw, 62.72px);  /* 43.3 / 62.7 sister restaurant, gift card */
  --size-heading-m: clamp(31.2px, 27.22px + 1.021vw, 41.92px);  /* 31.2 / 41.9 sourcing statement, Our location */
  --size-heading-s: clamp(28.2px, 25.03px + 0.813vw, 36.74px);  /* 28.2 / 36.7 event card titles */
  --size-label: clamp(22.1px, 20.51px + 0.407vw, 26.37px);      /* 22.1 / 26.4 address, hours, footer headings */
  --size-nav: clamp(18.7px, 15.85px + 0.730vw, 26.37px);        /* 18.7 / 26.4 header links */
  --size-button: clamp(23.1px, 21.24px + 0.476vw, 28.1px);      /* 23.1 / 28.1 arrow buttons */
  --size-button-s: 16px;                                        /* 16 / 16 card button */

  /* Script (voltage) */
  --size-script-l: clamp(23.1px, 21.24px + 0.476vw, 28.1px);    /* 23.1 / 28.1 "Send by text or email!" */
  --size-credit: clamp(25.9px, 27.27px - 0.095vw, 26.9px);          /* 26.9 / 25.9 the quote credit */
  --size-cta: clamp(21.1px, 19.79px + 0.337vw, 24.64px);        /* 21.1 / 24.6 Order in Advance */
  --size-announce: clamp(13px, 8.03px + 1.273vw, 26.37px);      /* 13 / 26.4 announcement bar */
  --size-tagline: clamp(15px, 13.25px + 0.448vw, 19.7px);       /* 15 / 19.7 small script lines */

  /* Text (Georgia) */
  --size-body-l: clamp(22.1px, 20.51px + 0.407vw, 26.37px);     /* 22.1 / 26.4 lead paragraphs */
  --size-body: clamp(18px, 17.46px + 0.139vw, 19.46px);         /* 18 / 19.5 body */
  --size-body-s: 16px;                                          /* 16 / 16 footer */
  --size-fine: clamp(11.4px, 10.06px + 0.343vw, 15px);          /* 11.4 / 15 copyright */

  /* Line heights, as ratios of the size (measured) */
  --leading-solid: 1;        /* hero quote, labels, buttons */
  --leading-tight: 0.84;     /* Planning to visit */
  --leading-display: 0.892;  /* sister restaurant, card titles */
  --leading-heading: 0.94;   /* sourcing statement, Our location */
  --leading-label: 0.976;    /* address and hours */
  --leading-loose-display: 1.5; /* events title */
  --leading-open: 1.2;       /* Get the Latest */
  --leading-script: 1.3;
  --leading-text: 1.5;       /* every Georgia paragraph */
}

/* SPACE, GRID, SHAPE, MOTION
   Measured: the page gutter (43 px at 1440 = 3vw; 23 px at 390 = 6vw), the layout grid
   (24 columns at 1440 with 11 px gaps, 8 columns at 390), the 50 px corner on photos and
   panels, square buttons, round social icons, the 30 px arrow head on buttons.
   Decided: a spacing scale in steps the page actually uses. */
:root {
  --gutter: 6vw;
  --grid-columns: 8;
  --grid-gap: 11px;
  --site-max: 1500px;

  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius-photo: 50px;      /* photos and the visit panel */
  --radius-none: 0;          /* buttons, fields */
  --radius-round: 50%;       /* social icons */

  --arrow-depth: 30px;       /* the arrow head on the signature button */
  --arrow-height: 100px;     /* the arrow head is taller than the button it points from */
  --rule-weight: 3px;        /* orange rule under Our location and Our Hours */
  --focus-ring: 3px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --speed: 0.2s;
}
@media (min-width: 768px) {
  :root {
    --gutter: 3vw;
    --grid-columns: 24;
  }
}
