/* Base styles for every page: fonts, reset, the three brand type styles, the
   page container and the logo lockup. Load after tokens.css.
   Page layout lives in each page's own stylesheet, not here. */

/* ---------- Fonts: Barlow Condensed, self-hosted (SIL Open Font License) ---------- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-800-italic.woff2') format('woff2');
}

/* Stand-in faces shown for the moment before Barlow Condensed loads. They are
   a system font squeezed to Barlow Condensed's width (measured in Chrome), so
   the text does not jump when the real font swaps in. */
@font-face {
  font-family: 'LCC Fallback';
  font-style: normal;
  font-weight: 500;
  src: local('Arial'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 78%;
}
@font-face {
  font-family: 'LCC Fallback';
  font-style: normal;
  font-weight: 600;
  src: local('Arial Bold'), local('Helvetica Neue Bold'), local('Roboto Bold'), local('Arial');
  size-adjust: 66%;
}
@font-face {
  font-family: 'LCC Fallback';
  font-style: italic;
  font-weight: 800;
  src: local('Arial Bold Italic'), local('Helvetica Neue Bold Italic'), local('Roboto Bold Italic'), local('Arial');
  size-adjust: 67%;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}
[hidden] {
  display: none !important;
}

/* ---------- The three brand type styles ----------
   1. Headlines: 800 italic, all caps.
   2. Labels: 600, all caps, wide letter spacing.
   3. Body: 500, sentence case. */
h1, h2, h3, .t-display, .t-h2, .t-h3, .t-title {
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  text-wrap: balance;
}
h1, .t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}
h2, .t-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
}
h3, .t-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}
.t-title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
}
.t-label {
  font-size: var(--fs-label);
  font-weight: 600;
  font-style: normal;
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}
.t-small {
  font-size: var(--fs-small);
  line-height: 1.4;
}
.t-muted {
  color: var(--muted);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--w-page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Logo ----------
   A logo only ever sits on --logo-ground (White in Calm, Night in Party).
   .logo-ground gives an area that solid background. */
.logo-ground {
  background: var(--logo-ground);
}

/* Horizontal lockup: the mark with LAST CALL / CHARGING beside it, in the
   brand file's proportions (tile 200, gap 40, LAST CALL 168, CHARGING 42).
   Set the size with --lockup-size (the tile's height, 32 px or more):

   <a class="lockup" href="/" aria-label="Last Call Charging home">
     <svg class="lockup__mark" ...>the mark, pasted from site/assets/logo</svg>
     <span class="lockup__text" aria-hidden="true">
       <span class="lockup__name">Last Call</span>
       <span class="lockup__sub"><span>C</span><span>h</span><span>a</span><span>r</span><span>g</span><span>i</span><span>n</span><span>g</span></span>
     </span>
   </a>

   Both themes use the blue mark (B9 sky blue #00A8FF tile, white phone and waves, Chris Nov 15);
   CHARGING is the same blue (--logo-blue).
   Party uses mark.svg (Volt tile) with white text and CHARGING in Volt. */
.lockup {
  --lockup-size: var(--logo-header);
  display: inline-flex;
  align-items: center;
  gap: calc(var(--lockup-size) * 0.2);
  color: var(--ink);
  text-decoration: none;
}
.lockup__mark {
  flex: none;
  width: var(--lockup-size);
  height: var(--lockup-size);
}
.lockup__text {
  display: inline-flex;
  flex-direction: column;
  gap: calc(var(--lockup-size) * 0.06);
  text-transform: uppercase;
}
.lockup__name {
  font-size: calc(var(--lockup-size) * 0.84);
  font-weight: 800;
  font-style: italic;
  line-height: 0.8;
  white-space: nowrap;
}
.lockup__sub {
  display: flex;
  justify-content: space-between;
  padding: 0 calc(var(--lockup-size) * 0.03);
  font-size: calc(var(--lockup-size) * 0.21);
  font-weight: 600;
  line-height: 1;
}
.lockup__sub {
  color: var(--logo-blue);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

/* ---------- Reduced motion: nothing animates ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
