@font-face {
  font-family: Anton;
  src: url("fonts/anton-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #080808;
  --paper: #fff;
  --muted: #626262;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; }
img { max-width: 100%; }
a, button { -webkit-tap-highlight-color: #dedede; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
::selection { background: var(--ink); color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* HOME */
.home-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: clamp(1rem, 3vh, 2rem) 1rem 1.5rem; }
.home { width: min(100%, 44rem); text-align: center; }
.home__portrait { display: block; width: min(100%, clamp(16rem, calc(100svh - 14.5rem), 40rem)); height: auto; margin-inline: auto; }
.work-link { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 48px; margin-top: 1.5rem; text-decoration: none; text-transform: uppercase; font: 400 clamp(1.9rem, 3vw, 2.35rem)/1.25 Anton, Impact, sans-serif; }
.work-link svg { transition: transform 160ms ease; flex: none; }
.work-link:hover svg { transform: translateX(5px); }
.email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.1rem; font-size: .875rem; line-height: 1.5; letter-spacing: .065em; text-decoration: none; }
.email:hover { text-decoration: underline; }

/* WORK */
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.work-page { width: min(100%, 80rem); margin-inline: auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.7rem; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; flex-direction: column; align-items: stretch; text-decoration: none; width: 7.5rem; }
.wordmark__first { background: var(--ink); color: var(--paper); font: 400 1.5rem/1.15 Anton, Impact, sans-serif; text-align: center; letter-spacing: .2em; text-indent: .2em; padding: .2rem 0; }
.wordmark__last { font: 400 .68rem/1.5 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .21em; text-align: center; margin-top: .35rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.work-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3.5rem 0 2rem; }
.work-heading h1 { font: 400 clamp(3.5rem, 8vw, 6rem)/1 Anton, Impact, sans-serif; text-transform: uppercase; margin: 0; letter-spacing: -.015em; }
.work-heading p { color: var(--muted); font-size: .8rem; margin: 0; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 1.75rem; margin: 0; padding: 0; }
.film { display: block; text-decoration: none; }
.film__image { position: relative; display: block; aspect-ratio: 16 / 9; background: #eee; overflow: hidden; }
.film__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.film__play { position: absolute; right: .85rem; bottom: .85rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--ink); color: var(--paper); }
.film:hover .film__image img { transform: scale(1.025); }
.film:hover .film__title { text-decoration: underline; text-underline-offset: .2em; }
.film__caption { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-top: .8rem; }
.film__title { font-size: .95rem; line-height: 1.4; font-weight: 600; }
.film__duration { flex: none; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--ink); margin-top: 4rem; padding-block: 1.4rem; }
.site-footer .email { margin: 0; }
.vimeo-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }

/* THE PLAYER ONLY LOADS AFTER A VISITOR CHOOSES A VIDEO. */
body.player-open { overflow: hidden; }
.player { position: fixed; color: var(--ink); background: var(--paper); border: 0; padding: 0; width: min(70rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.player::backdrop { background: rgb(0 0 0 / .86); }
.player__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 1rem; }
.player__header h2 { font-size: .95rem; line-height: 1.4; margin: 0; }
.player__close { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: .5rem; min-height: 44px; min-width: 44px; background: none; color: inherit; border: 0; padding: .5rem; cursor: pointer; font-size: .8rem; }
.player__close:hover { background: #ededed; }
.player__screen { aspect-ratio: 16 / 9; background: #000; }
.player__screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.player__footer { display: flex; justify-content: flex-end; padding: .4rem 1rem; }
.player__footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }

@media (max-width: 600px) {
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .site-header { padding-block: 1.2rem; }
  .work-heading { margin: 2.5rem 0 1.5rem; }
  .work-heading p { font-size: .75rem; }
  .site-footer { margin-top: 3rem; }
  .player { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .player__header { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
