/*
 * travismarceau.com, v2.
 * Swiss grid, one grotesk, a mono for captions. Four visible columns
 * run the length of the page; everything snaps to them. No colour but
 * what the photographs bring.
 */

:root {
  --bg: #efefec;
  --ink: #0d0d0c;
  --mute: #8b8b86;
  --line: rgba(13, 13, 12, 0.13);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(10px, 1.1vw, 16px);
  --gap: clamp(10px, 1.1vw, 16px);
  --col: calc((100vw - var(--pad) * 2 - var(--gap) * 3) / 4);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, p, figure, ol, dl, dd { margin: 0; }
ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0; line-height: 1.45; text-transform: uppercase; }
.circle-arrow { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.18em; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 60; padding: 8px 12px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 8px; }

/* The four columns, drawn behind everything. */
.columns {
  position: fixed;
  inset: 0 var(--pad);
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  pointer-events: none;
}
.columns span { border-left: 1px solid var(--line); }
.columns span:last-child { border-right: 1px solid var(--line); }
main, .bar { position: relative; z-index: 1; }

/* Top and bottom bars: one cell per column. */
.bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 12px var(--pad);
  font-size: 13px;
  font-weight: 500;
}
header.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar-cell { padding-left: 6px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bar-muted { color: var(--mute); }
.bar-nav { gap: 14px; }
.bar-nav a { transition: color 0.2s; }
.bar-nav a:hover { color: var(--mute); }
.bar-end { justify-content: flex-end; padding-right: 6px; font-variant-numeric: tabular-nums; }
.square { width: 9px; height: 9px; background: var(--ink); display: inline-block; }

/* Hero */
.hero { padding: 0 var(--pad); }
.wordmark {
  margin: 4vh 0 0 -0.04em;
  font-size: 23.4vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}
.line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.wordmark .line:nth-child(2) { font-size: calc(0.96em - 3px); }
.line > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.line:nth-child(2) > span { transition-delay: 0.08s; }
.is-in .line > span { transform: none; }

.hero-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: end;
  padding: clamp(40px, 8vh, 96px) 0 clamp(24px, 4vh, 48px);
}
.hero-note { padding-left: 6px; color: var(--mute); }
.statement {
  grid-column: 2 / 5;
  padding-left: 6px;
  font-size: clamp(28px, 3.9vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.statement .w { display: inline-block; opacity: 0.12; transition: opacity 0.5s ease; }
.statement .w.on { opacity: 1; }

.hero-photo .plate-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 40%; }

/* Captions, file-name style. */
.cap {
  display: grid;
  grid-template-columns: 3.2em 1fr auto;
  gap: 8px;
  padding: 6px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.cap-meta { color: var(--mute); text-align: right; }
.plate-img { display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: rgba(13, 13, 12, 0.06); }
.plate-img img { width: 100%; transition: transform 1.2s var(--ease), filter 0.6s ease; }
.plate-img:hover img { transform: scale(1.02); }

/* Blocks */
.block, .contact { padding: clamp(120px, 20vh, 220px) var(--pad) 0; }
.block-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: baseline;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}
.block-head > * { padding-left: 6px; }
.block-head h2 { grid-column: 2 / 4; font-size: clamp(40px, 6.4vw, 104px); font-weight: 500; line-height: 0.85; letter-spacing: -0.055em; }
.block-count { color: var(--mute); justify-self: end; padding-right: 6px; }

/* Tables: Work, Films, Photo index */
.table li { border-bottom: 1px solid var(--line); }
.table a, .table button {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: baseline;
  width: 100%;
  padding: 16px 0 18px;
  transition: background 0.25s, color 0.25s;
}
.table a > *, .table button > * { padding-left: 6px; }
.t-title { font-size: clamp(22px, 2.3vw, 36px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.t-desc { max-width: 34em; color: var(--ink); }
.t-meta { justify-self: stretch; display: flex; justify-content: space-between; color: var(--mute); padding-right: 6px; }
.t-meta .circle-arrow { color: var(--ink); transition: transform 0.4s var(--ease); }
.table a:hover, .table button:hover { background: var(--ink); color: var(--bg); }
.table a:hover .t-meta, .table a:hover .t-desc, .table button:hover .row-exif, .table button:hover .row-date { color: var(--bg); }
.table a:hover .t-meta .circle-arrow { color: var(--bg); transform: translate(3px, -3px); }
.work-table .project-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: baseline;
  padding: 16px 0 18px;
  transition: background 0.25s, color 0.25s;
}
.project-row > * { padding-left: 6px; }
.project-row:hover, .project-row:focus-within { background: var(--ink); color: var(--bg); }
.project-row:hover .t-desc, .project-row:hover .project-details,
.project-row:focus-within .t-desc, .project-row:focus-within .project-details { color: var(--bg); }
.table .project-primary { display: block; width: auto; padding: 0 0 0 6px; }
.table .project-primary::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.table .project-primary:hover { background: none; color: inherit; }
.table .project-primary:focus-visible { outline: none; }
.table .project-primary:focus-visible::before { outline: 2px solid var(--bg); outline-offset: -3px; }
.project-details { display: flex; flex-direction: column; gap: 9px; color: var(--mute); }
.project-links { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; }
.table .project-links a { position: relative; z-index: 2; display: inline; width: auto; padding: 0; border-bottom: 1px solid currentColor; transition: opacity 0.2s; }
.table .project-links a:hover { background: none; color: inherit; opacity: 0.65; }
.table .project-links a:focus-visible { outline-color: var(--bg); }

/* Experience: company in column one, roles across two to four. */
.cv-table .job {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.job-co { display: grid; grid-template-columns: 2.2em 1fr; align-content: start; row-gap: 10px; padding-left: 6px; }
.job-co .t-title { grid-column: 2; }
.job-co > .mono:first-child { padding-top: 0.55em; }
.job-co a.t-title .circle-arrow { width: 0.6em; height: 0.6em; vertical-align: 0.24em; transition: transform 0.4s var(--ease); }
.job-co a.t-title:hover .circle-arrow { transform: translate(3px, -3px); }
.job-co a.t-title:hover { color: var(--mute); }
.job-where { grid-column: 2; color: var(--mute); }
.job-roles { grid-column: 2 / 5; display: grid; grid-template-columns: subgrid; row-gap: 14px; align-content: start; }
.job-roles li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.job-roles li > * { padding-left: 6px; }
.role { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.role-note { color: var(--ink); max-width: 34em; }
.role-dates { color: var(--mute); text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
.cv-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding: 14px 0 0; }
.cv-foot > * { padding-left: 6px; }
.cv-foot > span:first-child { color: var(--mute); }
.cv-foot .underline { grid-column: 4; justify-self: end; margin: 0 6px 0 0; }

.cap-title { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.cap-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv dd a:hover { color: var(--mute); }
#v-file:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cursor preview for Work */
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: 320px; aspect-ratio: 1; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.preview.on { opacity: 1; }
.pv { position: absolute; inset: 0; display: none; }
.pv.on { display: flex; }
.pv-books, .pv-snappy { border: 1px solid var(--ink); }
.pv-e2b { flex-direction: column; justify-content: space-between; padding: 18px; background: var(--ink); color: var(--bg); }
.pv-e2b strong { font-size: 34px; font-weight: 500; line-height: 0.95; letter-spacing: -0.04em; }
/* After Albers, as on booksonquality.com: nested flat squares in the book's own
   palette (High Quality Looking), each sitting low in the one around it. */
.pv-books { background: #e9ddc4; }
.pv-books .sq { position: absolute; }
.pv-books .sq-2 { left: 9%; right: 9%; top: 13%; bottom: 5%; background: #d6a84f; }
.pv-books .sq-3 { left: 18%; right: 18%; top: 26%; bottom: 10%; background: #203c37; }
.pv-books img { position: absolute; left: 26%; top: 34%; width: 48%; box-shadow: 0 16px 30px -16px rgba(20, 15, 5, 0.7); }
/* ChatNIV: a phone at iPhone proportions drawn as a single ink outline, the
   verse set large, no panel behind it. */
.pv-app { align-items: center; justify-content: center; overflow: visible; }
.phone {
  display: flex; flex-direction: column; width: 200px; aspect-ratio: 71.6 / 147.6; flex: none;
  padding: 34px 22px 24px; border: 1.5px solid var(--ink); border-radius: 36px;
  background: #f8f6f1; color: var(--ink); box-shadow: 0 24px 50px -30px rgba(13, 13, 12, 0.35);
}
.ph-ref { font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.ph-verse { margin-top: 22px; font: 300 26px/1.18 "Newsreader", Georgia, serif; letter-spacing: -0.015em; }
.ph-ask { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font: italic 300 15px/1.45 "Newsreader", Georgia, serif; color: var(--ink-soft, #57524a); }
.pv-snappy { flex-direction: column; justify-content: center; align-items: center; gap: 16px; background: #dce7dc; }
.snappy-screen { position: relative; width: 76%; aspect-ratio: 1.45; border: 2px solid #274537; border-radius: 9px; background-color: #f5f7f0; background-image: linear-gradient(#9db5a2 1px, transparent 1px), linear-gradient(90deg, #9db5a2 1px, transparent 1px); background-size: 16.6667% 16.6667%; box-shadow: 0 18px 30px -20px #274537; }
.snappy-region { position: absolute; inset: 0 50% 0 0; background: rgba(58, 107, 72, 0.52); border-right: 3px solid #274537; }
.snappy-key { color: #274537; letter-spacing: 0.08em; }

/* Photo grid */
.view-toggle { grid-column: 4; display: flex; gap: 12px; justify-content: flex-end; padding-right: 6px; }
.view-toggle button { color: var(--mute); }
.view-toggle button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.view-toggle .block-count { padding: 0 0 0 10px; }

.plates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
  padding-top: var(--gap);
}
.plate { grid-column: var(--start) / span var(--span); }
.plate-drop { margin-top: clamp(20px, 6vw, 96px); }

/* A series: frames meant to be read together, set in one row under a shared label. */
.series {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: 12px;
  align-items: center;
  padding: clamp(24px, 4vw, 64px) 0;
}
.series-label {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding: 8px 6px 0;
  border-top: 1px solid var(--ink);
}
.series-label span:first-child, .series-label span:last-child { color: var(--mute); }
.series-label span:last-child { text-align: right; }
.series .plate { align-self: start; }
/* On wide screens a series is one justified row: each frame's width follows its aspect
   ratio, so every photo in the series is the same height. */
@media (min-width: 821px) {
  .series { display: flex; flex-wrap: wrap; column-gap: var(--gap); }
  .series-label { flex: 0 0 100%; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); }
  .series .plate { flex: var(--ar) 1 0; min-width: 0; }
}

.photo-index button { position: relative; }
.photo-index .row-title { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.photo-index button > span:first-child, .photo-index .row-file, .photo-index .row-exif { font-family: var(--mono); font-size: 11px; }
.photo-index .row-exif { color: var(--mute); }
.photo-index .row-date { display: none; }
.photo-index img { position: absolute; right: 6px; top: 50%; width: 96px; height: 64px; object-fit: cover; transform: translateY(-50%); opacity: 0; transition: opacity 0.2s; }
.photo-index button:hover img { opacity: 1; }

/* About */
.about { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding-top: var(--gap); align-items: start; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%; filter: grayscale(1); mix-blend-mode: multiply; }
.about-lede { grid-column: 2 / 4; padding-left: 6px; font-size: clamp(22px, 2.3vw, 36px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
.cv { padding-left: 6px; }
.cv-label { color: var(--mute); padding-bottom: 8px; }
.cv dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.cv dd { font-weight: 500; }
.cv dd span { display: block; font-weight: 400; color: var(--mute); }
.underline { display: inline-block; margin-top: 16px; border-bottom: 1px solid currentColor; }

/* Contact */
.contact { padding-bottom: clamp(40px, 8vh, 96px); }
.mail {
  display: block;
  margin: clamp(24px, 4vh, 48px) 0 0 -0.03em;
  font-size: 12.6vw;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.065em;
  transition: color 0.3s;
}
.mail:hover { color: var(--mute); }
.bar-foot { border-top: 1px solid var(--ink); margin: 0 var(--pad); padding: 12px 0 20px; }

/* Viewer */
.viewer {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer::backdrop { background: var(--bg); }
.viewer-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding: 14px var(--pad); border-bottom: 1px solid var(--ink); position: relative; z-index: 2; }
.viewer-bar > * { padding-left: 6px; }
.viewer-meta { color: var(--mute); }
.v-close { justify-self: end; padding-right: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
#v-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: var(--pad); }
.v-prev, .v-next { position: absolute; top: 48px; bottom: 0; width: 50%; z-index: 1; }
.v-prev { left: 0; cursor: w-resize; }
.v-next { right: 0; cursor: e-resize; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Narrow */
@media (max-width: 820px) {
  .columns { grid-template-columns: repeat(2, 1fr); }
  .columns span:nth-child(n + 3) { display: none; }
  .columns span:nth-child(2) { border-right: 1px solid var(--line); }
  .bar { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  header.bar .bar-cell:nth-child(2) { display: none; }
  header.bar .bar-end { display: none; }
  .bar-nav { grid-column: 2; justify-content: flex-end; padding-right: 6px; gap: 10px; }
  .bar-foot .bar-cell:nth-child(2) { display: none; }
  .bar-foot .bar-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-left: 6px; }
  .hero-row { grid-template-columns: 1fr 1fr; }
  .hero-note { grid-column: 1 / -1; grid-row: 2; padding-top: 16px; }
  .statement { grid-column: 1 / -1; }
  .hero-photo .plate-img img { aspect-ratio: 4 / 3; }
  .cap { grid-template-columns: 3.2em 1fr; }
  .cap-meta { grid-column: 2; text-align: left; }
  .block-head { grid-template-columns: 1fr 1fr; }
  .block-head h2 { grid-column: 1 / -1; grid-row: 2; padding-top: 10px; }
  .view-toggle { grid-column: 2; }
  .view-toggle .block-count { display: none !important; }
  .table a, .table button, .work-table .project-row { grid-template-columns: 2.2em 1fr; row-gap: 8px; }
  .t-desc, .t-meta, .project-details { grid-column: 2; }
  .t-meta { justify-content: flex-start; gap: 16px; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plate { grid-column: auto / span min(var(--span), 2); }
  .plate-drop { margin-top: 0; }
  .series-label { grid-template-columns: 1fr 1fr; row-gap: 2px; }
  .series-sun-burn .plate:nth-of-type(2) { order: 1; }  /* two portraits side by side, then the wide frame */
  .photo-index .row-title, .photo-index .row-file, .photo-index .row-exif { grid-column: 2; }
  .photo-index img { display: none; }
  .about { grid-template-columns: 1fr 1fr; }
  .about-lede { grid-column: 1 / -1; grid-row: 2; padding-top: 24px; }
  .cv { grid-column: 1 / -1; padding-top: 24px; }
  .preview { display: none; }
  .cv-table .job { grid-template-columns: 1fr; row-gap: 14px; }
  .job-roles { grid-column: 1; grid-template-columns: 2.2em 1fr; row-gap: 16px; }
  .job-roles li { grid-template-columns: 2.2em 1fr; row-gap: 4px; }
  .job-roles li > * { grid-column: 2; padding-left: 6px; }
  .role-dates { text-align: left; order: -1; }
  .cv-foot { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .cv-foot .underline { grid-column: 1 / -1; justify-self: start; margin-left: 6px; }
  .viewer-bar { grid-template-columns: 1fr 1fr; }
  .viewer-meta, #v-file { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span { transform: none; transition: none; }
  .statement .w { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Palette variants. tarragon: tarragon cream ground, photographs on intractable.
   slate: off-white ground, photographs on 1f1d2a.
   adobe: after Albers' Variant/Adobe greens; light grey ground, photographs on deep green.
   horizon: adobe's structure in the blues of Narrow focus, which also leads the page. */
[data-palette] {
  --ink: #1f1d2a;
  --mute: #6a5f54;
  --line: rgba(31, 29, 42, 0.14);
  --plate: #dbcca5;
  --hover: #353442;
  --foot: #1f1d2a;
  --foot-mute: #dbcca5;
  --band-plate: rgba(31, 29, 42, 0.18);
  --band-rule: var(--band-ink);
}
[data-palette="tarragon"] { --bg: #f1e5bb; --band: #776b5f; --band-ink: #f1e5bb; --band-mute: #f1e5bb; }
[data-palette="slate"] { --bg: #f8f6f0; --band: #1f1d2a; --band-ink: #f8f6f0; --band-mute: #f8f6f0; --hover: #1f1d2a; --plate: #f8f6f0; --foot-mute: #f8f6f0; }
[data-palette="adobe"] {
  --bg: #dfe0dc;
  --ink: #13211b;
  --mute: #4d5550;
  --line: rgba(19, 33, 27, 0.14);
  --plate: #888986;
  --hover: #2c6230;
  --foot: #13211b;
  --foot-mute: #a3a5a0;
  --band: #1b2e2a;
  --band-ink: #dfe0dc;
  --band-mute: #a3a5a0;
  --band-plate: #1d4530;
  --band-rule: #33746f;
}
[data-palette="horizon"] {
  --bg: #e2e6e9;
  --ink: #14202b;
  --mute: #4c5864;
  --line: rgba(20, 32, 43, 0.14);
  --plate: #9eacb9;
  --hover: #3b5d76;
  --foot: #14202b;
  --foot-mute: #a7bdcb;
  --band: #1b2c3a;
  --band-ink: #e2e6e9;
  --band-mute: #a7bdcb;
  --band-plate: #28465c;
  --band-rule: #5f84a1;
}
[data-palette] .plate-img { background: var(--plate); }
[data-palette] .table a:hover,
[data-palette] .table button:hover,
[data-palette] .project-row:hover,
[data-palette] .project-row:focus-within { background: var(--hover); }
[data-palette] #photographs {
  --ink: var(--band-ink);
  --mute: var(--band-mute);
  --line: color-mix(in srgb, var(--band-ink) 20%, transparent);
  position: relative;
  margin-top: clamp(120px, 20vh, 220px);
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(64px, 9vw, 140px);
  background: var(--band);
  color: var(--ink);
}
[data-palette] #photographs .plate-img { background: var(--band-plate); }
[data-palette] #photographs .block-head,
[data-palette] #photographs .series-label { border-color: var(--band-rule); }
[data-palette] #photographs .table button:hover { background: var(--band-ink); color: var(--band); }
[data-palette] #photographs .table button:hover .row-exif { color: var(--band); }
[data-palette] .bar-foot { background: var(--foot); color: var(--bg); }
[data-palette] .bar-foot .bar-muted { color: var(--foot-mute); }
[data-palette] .viewer { background: var(--foot); color: var(--bg); }
/* The painting's nested bands, as a cap on the photographs band: teal, leaf, forest. */
[data-palette="adobe"] #photographs::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: linear-gradient(#33746f 0 6px, #2c6230 6px 12px, #1d4530 12px 18px);
}
[data-palette="adobe"] .square { background: #33746f; }
/* Horizon: the same structure in the blues of Narrow focus. Cap runs sky, sea, deep water. */
[data-palette="horizon"] #photographs::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: linear-gradient(#7297b4 0 6px, #446882 6px 12px, #28465c 12px 18px);
}
[data-palette="horizon"] .square { background: #5f84a1; }
/* Keep the boats and the sea line in the wide crop. */
.hero-narrow-focus .plate-img img { object-position: 50% 100%; }
