:root {
  --paper: #f0eee8;
  --ink: #1a1a18;
  --muted: #5c5952;
  --line: #c9c3b8;
  --accent: #b6ff43;
  color-scheme: light;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, p, h1, figure { margin: 0; }
.shell { width: min(1220px, calc(100% - clamp(28px, 8vw, 116px))); margin-inline: auto; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 67px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.brand { color: var(--ink); font-size: 1.08rem; font-weight: 750; letter-spacing: -.035em; }
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(25px, 6vw, 92px);
  padding: clamp(24px, 5vw, 62px) 0;
}
.intro { display: grid; justify-items: start; gap: 20px; }
.label { color: var(--muted); font-size: .77rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1 { font: 500 clamp(2.8rem, 7.3vw, 6.5rem)/.98 Georgia, serif; letter-spacing: -.075em; }
h1 em { font-weight: 400; }
.description { max-width: 40ch; color: var(--muted); font-size: clamp(.94rem, 1.5vw, 1.08rem); }
.comparison-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.comparison-controls button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.comparison-controls button:hover { border-color: var(--ink); }
.comparison-controls button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
button:focus-visible, input:focus-visible { outline: 2px solid #456b0a; outline-offset: 4px; }
.note { max-width: 36ch; color: var(--muted); font-size: .84rem; }
.comparison { width: min(100%, 460px); justify-self: center; }
.frame {
  --split: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #cab9a5;
}
.frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 69%; }
.frame .before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.divider { position: absolute; inset-block: 0; left: var(--split); width: 2px; translate: -50% 0; background: var(--accent); pointer-events: none; }
.frame-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  color: white;
  background: #26231f;
  font-size: .8rem;
  font-weight: 650;
}
.before-label { left: 12px; }
.after-label { right: 12px; }
.frame[data-mode="before"] .after-label,
.frame[data-mode="after"] .before-label,
.frame:not([data-mode="split"]) .divider { display: none; }
figcaption { margin-top: 12px; }
.range-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: .8rem; font-weight: 650; }
input[type="range"] { display: block; width: 100%; height: 26px; margin: 0; accent-color: #456b0a; cursor: ew-resize; }
.look-labels { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) {
  .top { min-height: 54px; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .intro { gap: 13px; }
  .comparison { justify-self: start; }
}
