@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: Inter, system-ui, sans-serif;
  color: #fbfcf6;
  background: #1b251a;
  --muted: #bac6b0;
  --accent: #dceaa9;
  --accent-hover: #c3d58a;
  --line: #eef3d530;
}

* { box-sizing: border-box; }

body { margin: 0; }

h1, h2, p { margin: 0; }

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

[hidden] { display: none !important; }

main { max-width: 1120px; margin: 0 auto; }

button, input, select { font: inherit; }

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

button { cursor: pointer; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #b7d4fa;
  outline-offset: 3px;
}

.masthead { padding: 22px 20px 6px; text-align: center; }

.logo {
  width: clamp(176px, 58vw, 219px);
  height: auto;
  aspect-ratio: 1.72;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(1) contrast(2.8) invert(1);
  mix-blend-mode: screen;
}

.date {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .045em;
}

.intro { padding: 26px 23px 24px; text-align: center; }

h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(27px, 8.4vw, 36px);
  line-height: 1.07;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.primary, .secondary, .link {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  color: #202a18;
  background: var(--accent);
  transition: background-color .16s ease;
}

.primary:not(:disabled):is(:hover, :focus-visible) { background: var(--accent-hover); }

.intro .primary { margin-top: 19px; }

.secondary { border: 1px solid var(--line); background: transparent; color: inherit; }

.secondary:not(:disabled):hover { background: #6d806223; }

.link {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button:disabled {
  cursor: wait;
  background: #d6d9d2;
  color: #515850;
  border-color: #bbc2b8;
  text-decoration: none;
}

.helper { color: var(--muted); font-size: 12px; font-style: italic; line-height: 1.5; }

.intro .helper { margin-top: 10px; }

footer.helper { padding: 18px 23px 22px; text-align: center; }

.hero { width: 100%; height: 320px; object-fit: cover; object-position: center 2%; }

.panel { padding: 25px 23px 34px; }

.panel > p:not(.date) { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.files { padding: 0; margin: 18px 0 0; list-style: none; }

.files li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.file-preview, .tile {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #6d806223;
  color: var(--muted);
}

.file-preview { height: 55px; font-size: 11px; }

.file-preview :is(img, video), .tile :is(img, video) {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.file-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.filename { overflow-wrap: anywhere; line-height: 1.4; }

.outcome {
  justify-self: end;
  max-width: 11em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #6d806223;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.outcome:is(.selected, .uploaded) { color: #213b24; background: var(--accent); }

.outcome.uploaded { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; font-size: 15px; }

.outcome.failed { color: #722a3b; background: #ffe2e8; }

progress { display: block; width: 100%; height: 8px; margin-top: 12px; accent-color: var(--accent); }

.actions { display: grid; gap: 8px; margin-top: 18px; }

.album { text-align: center; }

.album h1 { margin-top: 21px; }

.album #review { max-width: 38ch; margin: 9px auto 0; }

.album .link { margin-top: 4px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }

.tile { height: 152px; font-size: 12px; }

.tile.blur img { filter: blur(14px); transform: scale(1.2); }

.owner { max-width: 900px; margin: auto; }

.owner h2 { margin: 28px 0 10px; }

.owner a { color: var(--accent); }

.owner .primary { width: auto; margin: 12px 0; }

.owner form label { display: flex; gap: 8px; align-items: center; }

.owner .tile { margin-bottom: 8px; }

.owner .gallery article { overflow-wrap: anywhere; }

@media (min-width: 660px) {
  .landing { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .masthead { padding-bottom: 20px; }
  .intro { padding: 35px clamp(24px, 5vw, 60px); }
  h1 { font-size: clamp(33px, 4vw, 51px); }
  .intro .primary { width: min(100%, 320px); }
  .hero { height: 405px; object-position: center 18%; }
  .panel:not(.owner) { max-width: 760px; margin: auto; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
}
