/* Accent and focus colour from VariaUI Kit, seed #6e263c. */
:root {
  --paper: #f8f6f1;
  --ink: #18181b;
  --muted: #52525b;
  --line: #d9d3c8;
  --accent: #6e263c;
  --serif: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main { width: min(100% - 36px, 860px); margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
a { color: inherit; text-underline-offset: 4px; }
.wordmark { font: 32px/1 var(--serif); text-decoration: none; }
header > a:last-child { font-size: 14px; }
.intro { margin: clamp(26px, 5vw, 58px) 0 22px; }
h1 { font: normal clamp(37px, 7vw, 76px)/1.02 var(--serif); letter-spacing: -.045em; margin: 0; }
.intro p { margin: 12px 0 0; max-width: 46ch; color: var(--muted); }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); }
figure { min-width: 0; margin: 0; background: white; }
.mat { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; height: clamp(154px, 48vw, 385px); padding: clamp(10px, 4vw, 34px); background: var(--colour); }
.portrait { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 36%; }
figcaption label { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px clamp(8px, 2vw, 18px); border: 1px solid var(--line); border-top: 0; cursor: pointer; }
figcaption strong, output { display: block; font-size: 13px; }
output { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=color] { width: 48px; height: 44px; cursor: pointer; border: 0; padding: 2px; background: transparent; }
.photo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.upload { position: relative; display: inline-grid; place-items: center; min-height: 46px; padding: 8px 18px; background: var(--accent); color: white; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
:focus-visible, .upload:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.fine, #image-caption, #status { font-size: 13px; color: var(--muted); }
.fine { margin: 8px 0; }
#status:empty { display: none; }
#status { color: var(--accent); margin: 8px 0; }
.palettes, footer { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
.seasons, .swatches, .outfit-colours, .report-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
button { font: inherit; background: white; border: 1px solid var(--line); padding: 8px 12px; min-height: 44px; cursor: pointer; }
button[aria-pressed=true] { border-color: var(--accent); }
.swatches i, .report-swatches i, .outfit-colours span { display: block; width: 38px; height: 30px; margin: auto; }
.report { display: none; }
footer { display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; }
footer a { color: var(--accent); font-weight: 600; }
@media print {
  header, .intro, .studio, .controls, summary, footer { display: none; }
  .palettes { margin: 0; padding: 0; border: 0; }
  .report { display: block; }
  .report-swatches i { print-color-adjust: exact; }
}
