/* Base: reset, type scale, shared components. Borders, not shadows. */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

/* Type scale */
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.0625;
  letter-spacing: -0.01em;
}
.display-l {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.14;
}
.display-m {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
}
.heading {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}
.body-l {
  font-size: 18px;
  line-height: 29px;
}
.small {
  font-size: 14px;
  line-height: 21px;
}
.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  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;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-3);
}

/* Buttons. Labels wrap, never truncate (German runs about 30% longer). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary {
  background: var(--heather);
  color: var(--on-heather);
}
.btn--primary:hover {
  color: var(--on-heather);
  background: color-mix(in srgb, var(--heather) 88%, var(--ink));
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover {
  color: var(--ink);
  background: var(--heather-soft);
}

/* Secondary button on film or photo: light outline, same in both themes. */
.btn--on-media {
  background: transparent;
  color: var(--media-text);
  border-color: rgba(247, 246, 243, 0.85);
}
.btn--on-media:hover {
  color: var(--media-text);
  background: rgba(247, 246, 243, 0.14);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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