:root {
  color-scheme: light;
  --ink: #302c26;
  --muted: #756c5e;
  --paper: #f2e7c9;
  --paper-light: #fff9e9;
  --blue: #264b9b;
  --orange: #d87924;
  --green: #3f8966;
}
* { box-sizing: border-box; }
html { background: #d8c9a9; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.48), transparent 38rem),
    linear-gradient(115deg, #eadfc4, #d8c9a9);
}
header, footer { width: min(1440px, calc(100% - 32px)); margin: auto; }
header { padding: 26px 0 20px; }
nav { display: flex; gap: 18px; margin-bottom: 30px; }
a { color: var(--blue); font-weight: 700; text-decoration: none; }
.intro { max-width: 830px; }
.eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(2.35rem, 6vw, 5.8rem)/.94 Georgia, serif; letter-spacing: -.055em; }
.intro > p:last-child { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  margin-top: 26px; padding: 14px 18px; border: 1px solid rgba(66,55,38,.18); border-radius: 15px;
  background: rgba(255,249,233,.58); box-shadow: 0 8px 30px rgba(75,55,23,.07);
}
.controls label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.controls input { width: 150px; accent-color: var(--blue); }
button {
  border: 1px solid rgba(38,75,155,.35); border-radius: 999px; padding: 9px 15px;
  color: var(--blue); background: rgba(255,255,255,.55); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
button[aria-pressed="true"] { color: white; background: var(--blue); }
.comparison {
  width: min(1440px, calc(100% - 32px)); margin: 0 auto 26px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.sample {
  overflow: hidden; border: 1px solid rgba(66,55,38,.2); border-radius: 20px;
  background: rgba(255,249,233,.72); box-shadow: 0 18px 45px rgba(78,56,21,.10);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sample:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(78,56,21,.16); }
.sample.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38,75,155,.18), 0 22px 50px rgba(78,56,21,.16); }
.sample-heading { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.sample-heading > div { display: flex; align-items: baseline; gap: 10px; }
.sample-heading span { color: var(--orange); font: 800 12px/1 monospace; }
h2 { margin: 0; font: 700 1.55rem/1 Georgia, serif; }
.sample-heading em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sample canvas { display: block; width: 100%; height: min(42vw, 430px); min-height: 270px; background: var(--paper); }
.sample > p { min-height: 70px; margin: 0; padding: 15px 18px 18px; color: var(--muted); font-size: 14px; }
footer { padding: 3px 0 38px; }
footer strong { color: var(--blue); }
footer p { max-width: 820px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  header, footer, .comparison { width: min(100% - 20px, 640px); }
  header { padding-top: 16px; }
  nav { margin-bottom: 22px; }
  .comparison { grid-template-columns: 1fr; }
  .sample canvas { height: 66vw; max-height: 390px; }
  .controls { align-items: stretch; flex-direction: column; }
  .controls label { justify-content: space-between; }
  .controls input { width: min(55vw, 230px); }
}
