/*
  Self-hosted fonts (replaces the earlier Google Fonts CDN import + Georgia fallback).
  Files live under wwwroot/fonts/ — see tokens.css for the --font-body / --font-display vars.
*/
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-Thin.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-Light.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-Regular.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-Italic.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-LightItalic.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-Medium.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-SemiBold.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/Josefin Sans/JosefinSans-Bold.woff2') format('woff2'),
       url('/fonts/Josefin Sans/JosefinSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LC Sac Trial';
  src: url('/fonts/LC Sac/LCSac Trial-Regular.woff2') format('woff2'),
       url('/fonts/LC Sac/LCSac Trial-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  color: var(--color-black);
  background: var(--color-white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: inherit;
}

p {
  margin: 0;
}

ul {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767.98px) {
  .container {
    padding: 0 16px;
  }
}

/* Figma often ships different copy per breakpoint; render both and toggle. */
.u-mobile-only { display: none; }

@media (max-width: 767.98px) {
  .u-desktop-only { display: none; }
  .u-mobile-only { display: inline; }
}

main {
  min-height: 60vh;
}

/* ---------- Focus ----------
   There were no focus styles anywhere outside a couple of form inputs, and the add-to-cart
   button used `all: unset`, which strips the browser's own outline too — so keyboard users
   had no idea where they were on the page. :focus-visible keeps mouse clicks clean. */
:focus-visible {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Dark surfaces (hero, red category band, footer) need a light ring to stay visible. */
.home-hero :focus-visible,
.cat-hero :focus-visible,
.footer :focus-visible,
.mega-menu__visual :focus-visible {
  outline-color: #fff;
}

/* Skip link — the nav is three rows of links before the content starts. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 2000;
  padding: 12px 24px;
  background: var(--color-brand-red-deep);
  color: #fff;
  font: 500 16px/20px var(--font-body);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
