/* ==========================================================================
   FIJLY — Base: reset, typography, utilities

   Breakpoints
   - Mobile:  up to 767px          @media (max-width: 767px)
   - Tablet:  768px to 1023px      @media (min-width: 768px) and (max-width: 1023px)
   - Desktop: 1024px and up        @media (min-width: 1024px)

   Local WOFF2 fonts (Plus Jakarta Sans, JetBrains Mono) load via a <link> in each
   page's <head>, not by @import here, so the font request starts in parallel
   with this stylesheet instead of waiting for it to parse.
   ========================================================================== */

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-white);
  /* The prototype relies on the browser default ("normal") line-height;
     components set explicit line-heights where the prototype does. */
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Headings --------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -.03em;
}

h1 {
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h2 {
  line-height: 1.08;
}

/* Links ------------------------------------------------------------------ */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.skip-link {
  clip-path: inset(50%);
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--surface-white);
  color: var(--primary);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; clip-path: none; }

/* Utilities -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
