/* Shared foundations. Source photos were converted to WebP and stripped of metadata. */
:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --content: 76rem;
  --reading: 43rem;
  --space-1: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-2: clamp(0.85rem, 0.7rem + 0.5vw, 1.25rem);
  --space-3: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-4: clamp(2rem, 1.4rem + 2.5vw, 4rem);
  --space-5: clamp(3.5rem, 2.25rem + 5vw, 7rem);
  --radius: 0.35rem;
  --transition: 180ms ease;
}

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

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

body {
  margin: 0;
  min-width: 20rem;
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus, currentColor);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

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

.shell {
  width: min(calc(100% - 2 * var(--gutter, 1.25rem)), var(--content));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-5);
}

.eyebrow {
  margin-bottom: var(--space-1);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid currentColor;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.video-frame {
  overflow: hidden;
  width: 100%;
  border-radius: var(--video-radius, var(--radius));
  background: #111;
  box-shadow: var(--video-shadow, none);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-local-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  padding: var(--space-3);
  align-content: center;
  justify-items: center;
  gap: 1rem;
  background: #111;
  color: #fff;
  text-align: center;
}

.video-local-fallback p {
  max-width: 30rem;
  margin: 0;
  font-weight: 700;
}

.video-local-fallback .button {
  border-color: #fff;
}

.video-local-fallback small {
  color: #bbb;
}

.profile-list {
  margin: 0;
}

.profile-list > div {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid currentColor;
}

.profile-list dt {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
}

.clip__meta {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.clip__meta h3 {
  margin-bottom: 0;
}

.clip__runtime {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.gallery-link {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-link:hover img {
  transform: scale(1.025);
}

.lightbox {
  width: min(92vw, 74rem);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.9);
  backdrop-filter: blur(8px);
}

.lightbox__figure {
  position: relative;
  margin: 0;
}

.lightbox__image {
  max-height: 84vh;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__caption {
  margin: 0.7rem 3.5rem 0 0;
  font-size: 0.85rem;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.65);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  place-items: center;
}

.site-footer {
  padding-block: 1.5rem;
  font-size: 0.78rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }

  .profile-list > div {
    grid-template-columns: minmax(8rem, 0.75fr) 1.5fr;
    gap: 1.5rem;
  }
}

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