* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

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

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--on-brand);
  background: var(--ink);
  border-radius: var(--radius-xs);
  transform: translateY(-180%);
}

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

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

.media-frame,
.asset-slot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-mid);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-slot {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid var(--outline-soft);
  background: var(--surface-mid);
}

.asset-slot__note {
  position: relative;
  z-index: 1;
  max-width: 220px;
  padding: 12px;
  color: var(--ink-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  background: rgba(248, 242, 234, .86);
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-s);
}

.review-note { display: none; }

body[data-review="true"] .review-note {
  display: block;
}

.site-footer {
  padding: 48px 0 56px;
  color: var(--ink-muted);
  background: var(--surface-low);
  border-top: 1px solid var(--outline-soft);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 64px;
  align-items: start;
}

.site-footer p { margin: 0; font-size: 14px; line-height: 1.55; }

.footer-brand {
  margin-bottom: 8px !important;
  color: var(--ink);
  font-size: 20px !important;
  font-weight: 600;
  letter-spacing: -.02em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px 24px;
  font-size: 14px;
}

.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--outline);
}

.site-footer__legal {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-soft);
}

@media (max-width: 767px) {
  :root { --shell: calc(100% - 40px); }

  html { scroll-behavior: auto; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__links { justify-content: start; }
  .site-footer__legal { display: block; grid-column: auto; }
  .site-footer__legal p + p { margin-top: 8px; }
}

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

/* Touch targets. A finger needs about 44px to hit reliably; these links sit at
   16-22px, which is a miss waiting to happen. Only coarse pointers get the
   padding — a mouse does not need it and the footer stays compact on desktop. */
@media (pointer: coarse) {
  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
