/* Jarcool visitor pages: dark design from the canvas.
   The Archivo font gets self-hosted in a later step; system fonts stand in. */

/* Archivo (SIL Open Font License, see /assets/fonts/OFL.txt), self-hosted:
   one variable file covering weights 400-800 and widths 75-100%. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff") format("woff");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #16191C;
  --panel: #1F2327;
  --panel-line: #2E3338;
  --field-bg: #0F1113;
  --field-line: #4A5057;
  --text: #F2F3F4;
  --text-strong: #FFFFFF;
  --muted: #AEB6BF;
  --quiet: #8A939C;
  --accent: #F5C518;
  --ink: #15181B;
  --error: #FF9C8F;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--text); }
[hidden] { display: none !important; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 5vw, 48px); }
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.header-link { color: var(--muted); min-height: 44px; display: flex; align-items: center; text-underline-offset: 3px; }
.site-main { padding: 8px clamp(16px, 5vw, 48px) 48px; }

h1 { margin: 0; font-size: clamp(40px, 7vw, 84px); line-height: 0.95; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--text-strong); }
.tagline { margin: 12px 0 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; font-weight: 700; color: var(--accent); }
.lede { margin: 16px 0 0; font-size: 17px; color: #D5DADF; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Unlock page */
.unlock { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1180px; margin: 0 auto; min-height: 70vh; }
.card { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 600; color: #E6E9EC; }
input[type="email"], input[type="password"], input[type="text"] {
  height: 48px; width: 100%; padding: 0 14px;
  border: 1px solid var(--field-line); border-radius: 6px;
  background: var(--field-bg); color: var(--text-strong);
  font: inherit; font-size: 16px;
}
input::placeholder { color: var(--quiet); }
input[aria-invalid="true"], .password-wrap.is-invalid { border-color: var(--error); border-width: 2px; }
.password-wrap { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: 6px; background: var(--field-bg); }
.password-wrap input { border: 0; background: transparent; }
.password-wrap.is-invalid input { border: 0; }
.reveal { min-width: 64px; height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.field-error { margin: 2px 0 0; font-size: 14px; color: var(--error); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button-primary { border: 0; background: var(--accent); color: var(--ink); }
.button-outline { border: 1px solid var(--muted); background: transparent; color: var(--text-strong); font-weight: 600; }
.button[disabled] { border-color: var(--field-line); color: var(--quiet); cursor: default; }
.wide { width: 100%; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--quiet); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--panel-line); }
.keep { display: flex; align-items: flex-start; gap: 12px; padding-top: 18px; border-top: 1px solid var(--panel-line); font-weight: 400; cursor: pointer; }
.keep input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.keep > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }

/* Message pages: check your email, expired link, placeholder */
.message-page { max-width: 480px; margin: 24px auto 0; }
.message-page h1 { font-size: clamp(36px, 6vw, 56px); }
.message-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--panel); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.message-page .muted { margin: 12px 0 0; }
.actions { margin-top: 28px; }
.text-link { min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 600; text-underline-offset: 3px; }
.footnote { margin-top: 32px !important; }

@media (max-width: 860px) {
  .unlock { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .card { padding: 22px 18px; }
}

/* ===================== Step 4: galleries and viewer ===================== */

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav form { margin: 0; }
.header-button { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.page { max-width: 1200px; margin: 0 auto; }
.page-title { margin: 8px 0 40px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.back-link::before { content: "\2039"; font-size: 22px; margin-right: 6px; line-height: 1; }
.badge-new { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; }

/* All galleries */
.featured { margin-bottom: 64px; }
.featured-link { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; color: inherit; text-decoration: none; }
.featured-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; background: var(--panel); display: block; }
.featured-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.featured-title { font-size: clamp(34px, 5vw, 64px); line-height: 0.95; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.featured-text .meta { margin: 0; }
.featured-link:hover .button-primary { filter: brightness(1.05); }
.year { margin-bottom: 56px; }
.year h2, .day-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.01em; }
.year h2 { padding-top: 14px; border-top: 1px solid var(--panel-line); margin-bottom: 20px; }
.gallery-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 28px; }
.gallery-card { position: relative; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.gallery-card-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--panel); display: block; }
.gallery-card .badge-new { position: absolute; top: 10px; left: 10px; }
.gallery-card-title { font-size: 24px; line-height: 1.1; font-weight: 800; color: var(--text-strong); }
.gallery-card .meta { margin: 0; font-size: 14px; }
.gallery-card:hover .gallery-card-title { text-decoration: underline; text-underline-offset: 4px; }

/* Gallery page: justified rows. Each tile grows in proportion to its shape,
   so every row fills the width at an even height. */
.day { margin-bottom: 44px; }
.day-head { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; border-top: 1px solid var(--panel-line); margin-bottom: 16px; }
.justified { display: flex; flex-wrap: wrap; gap: 8px; }
.justified::after { content: ""; flex-grow: 1000000; }
.jtile { display: block; overflow: hidden; border-radius: 2px; background: var(--panel); }
.jtile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jtile:focus-visible { outline-offset: 3px; }
.r050 { flex: 50 1 105px;  aspect-ratio: 1 / 2; }
.r067 { flex: 67 1 140px;  aspect-ratio: 2 / 3; }
.r075 { flex: 75 1 158px;  aspect-ratio: 3 / 4; }
.r080 { flex: 80 1 168px;  aspect-ratio: 4 / 5; }
.r100 { flex: 100 1 210px; aspect-ratio: 1 / 1; }
.r125 { flex: 125 1 263px; aspect-ratio: 5 / 4; }
.r133 { flex: 133 1 280px; aspect-ratio: 4 / 3; }
.r150 { flex: 150 1 315px; aspect-ratio: 3 / 2; }
.r178 { flex: 178 1 374px; aspect-ratio: 16 / 9; }
.r233 { flex: 233 1 490px; aspect-ratio: 7 / 3; }
.gallery-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--panel-line); }
.signed-in-note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--panel-line); display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 14px; }

/* Photo viewer */
.viewer-page { background: #000000; }
.viewer { min-height: 100vh; display: flex; flex-direction: column; background: #000000; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.viewer-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; }
.viewer-title { color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-button { width: 52px; height: 52px; flex-shrink: 0; border-radius: 999px; background: #1F2327; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.round-button.is-off { visibility: hidden; }
.viewer-stage { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; min-height: 0; }
.viewer-figure { flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
.viewer-figure img { display: block; max-width: 100%; max-height: calc(100vh - 250px); width: auto; height: auto; object-fit: contain; }
.viewer-caption { text-align: center; padding: 14px 16px 6px; }
.caption-text { margin: 0; font-size: 17px; color: var(--text-strong); }
.caption-date { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.swipe-hint { display: none; margin: 8px 0 0; font-size: 13px; color: var(--quiet); }
.viewer-strip { display: flex; justify-content: center; gap: 6px; padding: 8px 16px 20px; overflow-x: auto; }
.strip-thumb { display: block; width: 72px; height: 48px; flex-shrink: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; opacity: 0.55; }
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-thumb.is-current { border-color: var(--accent); opacity: 1; }
.strip-thumb:hover { opacity: 1; }

@media (max-width: 860px) {
  .featured-link { grid-template-columns: 1fr; gap: 16px; }
  .featured-text .button { align-self: stretch; }
}

@media (max-width: 700px) {
  .justified { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 -16px; }
  .justified::after { display: none; }
  .jtile { aspect-ratio: 1 / 1; border-radius: 0; }
  .gallery-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .gallery-card-title { font-size: 19px; }
  .viewer-stage { padding: 0; }
  .viewer-stage .round-button { display: none; }
  .viewer-figure img { max-height: calc(100vh - 200px); }
  .viewer-strip { display: none; }
  .swipe-hint { display: block; }
}

/* ===================== Step 5: downloads ===================== */

.gallery-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.gallery-actions form { margin: 0; }
.gallery-actions .button { gap: 8px; }
.select-tip { margin: 16px 0 0; color: var(--accent); font-weight: 600; }
.day-select { margin-left: auto; min-height: 40px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Selection mode: tiles become toggles with a check circle. */
.is-selecting .jtile { position: relative; cursor: pointer; }
.is-selecting .jtile::after {
  content: ""; position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 999px;
  border: 2px solid #FFFFFF; background: rgba(0, 0, 0, 0.35); box-sizing: border-box;
}
.is-selecting .jtile.is-selected { outline: 4px solid var(--accent); outline-offset: -4px; }
.is-selecting .jtile.is-selected::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315181B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.is-selecting .site-main { padding-bottom: 110px; }
.select-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--panel); border-top: 1px solid var(--panel-line);
  padding: 12px clamp(16px, 5vw, 48px) calc(12px + env(safe-area-inset-bottom, 0px));
}
.select-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.select-count { font-weight: 700; color: var(--text-strong); font-size: 17px; }
.bar-link { min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.grow { flex: 1; }

/* Download dialog (a bottom sheet on phones) */
.dl-dialog {
  width: min(500px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--panel-line); border-radius: 8px;
  background: var(--panel); color: var(--text);
}
.dl-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.dl-dialog form { display: flex; flex-direction: column; gap: 16px; }
.dl-dialog h2 { font-size: 26px; font-weight: 800; }
.dl-dialog p { margin: 0; }
.dl-options { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-options legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #E6E9EC; }
.dl-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--field-line); border-radius: 6px; font-weight: 400; cursor: pointer; }
.dl-option:has(input:checked) { border: 2px solid var(--accent); padding: 13px 15px; background: #262B30; }
.dl-option:has(input:disabled) { opacity: 0.5; cursor: default; }
.dl-option input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.dl-option > span { display: flex; flex-direction: column; gap: 3px; }
.dl-option strong { color: var(--text-strong); }
.dl-progress { font-weight: 600; color: var(--accent); }
.dl-buttons { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* Viewer download button */
.viewer-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pill-button {
  min-height: 52px; padding: 0 18px; border-radius: 999px; background: #1F2327; color: #FFFFFF;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
}
.pill-button.is-ready { background: var(--accent); color: var(--ink); }

@media (max-width: 700px) {
  .gallery-actions .button { flex: 1 1 0; }
  .dl-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .dl-buttons { flex-direction: column-reverse; }
  .dl-buttons .button { width: 100%; }
  .select-bar-inner .button-outline { display: none; }
  .select-bar-inner .button-primary { flex: 1; }
  .pill-button { padding: 0 14px; }
}

/* ===================== Step 6: home page and resume ===================== */

.header-nav .is-current { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-lock { display: inline-flex; gap: 6px; text-decoration: none; color: var(--text); font-weight: 600; }
.site-footer { margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: 14px; }

/* Home */
.home { max-width: 1180px; margin: 0 auto; }
.hero { padding: clamp(24px, 6vw, 72px) 0 56px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: clamp(56px, 11vw, 152px); line-height: 0.88; letter-spacing: -0.025em; }
.hero-title { margin: 6px 0 0; font-size: clamp(20px, 2.4vw, 26px); color: #E6E9EC; }
.hero .tagline { margin-top: 0; }
.hero .lede { margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.hero-actions .button { gap: 8px; }
.home-lower { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 64px); padding-top: 40px; border-top: 1px solid var(--panel-line); }
.contact h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.contact-line { margin: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 17px; }
.contact-line a, .contact-line .js-email a { color: var(--text); text-underline-offset: 4px; }
.photos-card { align-items: flex-start; }
.photos-card-head { display: flex; align-items: center; gap: 14px; }
.photos-card h2 { font-size: 26px; font-weight: 800; }
.lock-circle { width: 44px; height: 44px; border-radius: 999px; background: #2A2F34; color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Resume page: a white sheet on the dark frame */
.resume-wrap { max-width: 880px; margin: 0 auto; }
.resume-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 0 20px; }
.resume-tools .button { gap: 8px; }
.preview-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: var(--accent); color: var(--ink); font-weight: 700; }
.sheet { background: #FFFFFF; color: #15181B; border-radius: 4px; padding: clamp(24px, 6vw, 56px) clamp(20px, 7vw, 64px) 32px; }
.sheet a { color: #15181B; }
.sheet-head { padding-bottom: 24px; }
.sheet h1 { color: #15181B; font-size: clamp(40px, 7vw, 64px); }
.sheet-title { margin: 8px 0 0; font-size: 20px; color: #3A4046; }
.sheet-contact { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; color: #3A4046; }
.sheet-section { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 22px 0; border-top: 1px solid #D5D9DE; }
.sheet-section h2 { color: #15181B; font-size: 20px; font-weight: 800; }
.sheet-body p { margin: 0; line-height: 1.6; }
.job + .job { margin-top: 24px; }
.job-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.job-head h3 { margin: 0; font-size: 18px; }
.job-dates { font-size: 14px; color: #545B63; white-space: nowrap; }
.job-where { margin: 4px 0 0 !important; color: #3A4046; font-size: 15px; }
.sheet ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; }
.skills { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.skills dt { font-weight: 700; }
.skills dd { margin: 0; color: #3A4046; }
.edu { display: flex; justify-content: space-between; gap: 16px; }
.edu + .edu { margin-top: 12px; }
.edu-school { display: block; color: #3A4046; font-size: 15px; }

@media (max-width: 860px) {
  .home-lower { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .sheet-section { grid-template-columns: 1fr; gap: 10px; }
  .job-head { flex-direction: column; gap: 2px; }
  .resume-wrap { margin: 0 -16px; }
  .resume-tools { padding-left: 16px; padding-right: 16px; }
  .resume-tools .button { width: 100%; }
}

/* Printing the resume page gives just the sheet. */
@media print {
  html, body { background: #FFFFFF !important; color: #000000; }
  body { padding: 0; }
  .site-header, .resume-tools, .site-footer, .preview-banner { display: none !important; }
  .site-main { padding: 0; }
  .resume-wrap { max-width: none; margin: 0; }
  .sheet { padding: 0; border-radius: 0; }
  .sheet-section { break-inside: avoid; }
  .job { break-inside: avoid; }
  .sheet a { text-decoration: none; }
}

/* ===================== Step 7: Archivo headings ===================== */
/* Headlines use Archivo's condensed width, as in the design. */
h1, h2, .wordmark, .tagline, .featured-title, .gallery-card-title, .year h2, .day-head h2,
.dl-dialog h2, .contact h2, .photos-card h2, .sheet h1, .sheet-section h2 {
  font-stretch: 75%;
}
h1, .featured-title, .sheet h1 { font-weight: 800; }
.tagline { font-weight: 700; }

/* ===================== Page not found ===================== */
.not-found { max-width: 640px; margin: clamp(24px, 8vh, 96px) auto 0; display: flex; flex-direction: column; gap: 14px; }
.not-found-code { margin: 0; font-size: clamp(72px, 14vw, 140px); line-height: 0.85; font-weight: 800; font-stretch: 75%; color: var(--accent); }
.not-found .lede { margin-top: 0; }
.not-found .muted { margin: 8px 0 0; }

/* ===================== Videos ===================== */
.jtile.is-video { position: relative; }
.tile-play { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #FFFFFF; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.viewer-video { display: block; max-width: 100%; max-height: calc(100vh - 250px); width: auto; height: auto; background: #000000; }
.video-fallback { margin: 12px 0 0; padding: 12px 16px; border-radius: 6px; background: var(--panel); color: var(--text); text-align: center; }
.video-fallback a { color: var(--accent); }
.viewer-figure { flex-direction: column; }
@media (max-width: 700px) {
  .viewer-video { max-height: calc(100vh - 200px); }
  .tile-play { left: 4px; bottom: 4px; padding: 2px 6px; font-size: 11px; }
}
