/* Afiș uses the same palette for the page and its swatch in the header. */
[data-theme="afis"] {
  --page: #f6f8fa;
  --ink: #182b40;
  --muted: #4b5e70;
  --accent: #2f5677;
  --rule: #c8d4df;
  --paper: #e3eaf1;
  --footer: #152638;
  --contact-accent: #b5cae3;
}

[data-theme="afis"] .top .contact-link { border-radius: 5px; }
[data-theme="afis"] .hero-grid {
  grid-template-columns: minmax(0,1fr);
  align-items: stretch;
  align-content: center;
  gap: 0;
  padding-block: clamp(18px,4.5svh,58px);
}
[data-theme="afis"] .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px,3.6vw,57px);
  margin-bottom: 0;
  background: var(--paper);
}
[data-theme="afis"] h1 {
  font-size: min(22cqw,clamp(39px,9vw,122px),11.8svh);
  font-weight: 700;
  letter-spacing: -.064em;
  line-height: .91;
}
[data-theme="afis"] h1 span { font-size: .91em; font-weight: 680; }
[data-theme="afis"] .hero-copy > p { margin-top: clamp(14px,2.9svh,31px); }
[data-theme="afis"] .exhibition, [data-theme="afis"] .controls { max-width: none; }
[data-theme="afis"] .exhibition { display: flex; flex-direction: column; background: var(--paper); }
[data-theme="afis"] .art-frame { display: grid; flex: 1 1 auto; border: 0; border-radius: 0; box-shadow: none; }
[data-theme="afis"] .exhibition figcaption { margin: 0; padding: 10px clamp(11px,1.7vw,26px); }
[data-theme="afis"] .chapters {
  gap: clamp(2px,.6vw,8px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
[data-theme="afis"] .chapters button { border: 1px solid var(--rule); border-radius: 0; }
[data-theme="afis"] .chapters button[aria-current] { border-color: var(--ink); }
[data-theme="afis"] .compare-images { border-radius: 0; }
[data-theme="afis"] .services h2 { font-weight: 690; letter-spacing: -.055em; }

@media (min-width: 801px) {
  [data-theme="afis"] .hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
  [data-theme="afis"] .art-stage { min-height: min(49svh,508px); aspect-ratio: auto; }
}

@media (max-width: 800px) {
  [data-theme="afis"] h1 { font-size: min(20.9cqw,clamp(44px,13vw,76px)); }
  [data-theme="afis"] h1 br:first-of-type { display: initial; }
}

@media (min-width: 560px) and (max-height: 520px) and (orientation: landscape) {
  [data-theme="afis"] .hero-grid { grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); padding-block: 12px; }
  [data-theme="afis"] h1 { font-size: min(18.7cqw,11.6svh,60px); }
}

[data-theme="alb"] {
  --page: #fff;
  --ink: #191919;
  --muted: #594f50;
  --accent: #df1f28;
  --rule: #e1dada;
  --paper: var(--page);
  --footer: var(--page);
  --contact-accent: var(--accent);
  --swatch-end: var(--ink);
}

:root[data-theme="alb"] {
  --frame-shadow: none;
  --footer-muted: var(--muted);
  --footer-rule: var(--rule);
}

[data-theme="alb"] .theme-toggle:hover,
[data-theme="alb"] .theme-picker[open] .theme-toggle,
[data-theme="alb"] .theme-choice:is(:hover, :has(input:checked)) { background: var(--track-hover); }
[data-theme="alb"] .contact-link { background: var(--accent); }
[data-theme="alb"] .contact-link:hover { background: color-mix(in srgb, var(--accent), #000 12%); }
[data-theme="alb"] .chapters button[aria-current] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 8%, var(--page));
  box-shadow: inset 0 0 0 1px var(--accent);
}
[data-theme="alb"] .technique { border-block: 1px solid var(--rule); }
[data-theme="alb"] .footer { color: var(--ink); }
[data-theme="alb"] .footer-line .brand img { filter: none; }
