/* ==========================================================================
   Takszu — reset and element defaults
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--weight-regular);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

/* A component that sets its own `display` would otherwise override the
   browser default for [hidden]; scripts toggle visibility via el.hidden. */
[hidden] { display: none !important; }

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

/* <picture> only carries the webp <source>; it must not affect layout, so
   every selector written against the <img> keeps working untouched. */
picture { display: contents; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Shared helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  z-index: 100;
  padding: var(--space-8) var(--space-16);
  background-color: var(--color-ink);
  color: var(--color-bone);
  font-size: var(--fs-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: translateY(0); }

/* The 1440px Figma frame, centred, with the design's side gutters. */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide   { padding-inline: var(--gutter-wide); }
.wrap--chrome { padding-inline: var(--gutter-chrome); }

/* The repeated "— LABEL" motif: a 24px hairline dash before small caps.
   The dash inherits its colour from the text, so the same class works on
   both the bone and the ink sections. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--fs-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  line-height: normal;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: var(--hairline);
  background-color: currentColor;
  opacity: var(--opacity-rule);
}
