:root {
  --bg: #ecebf1;
  --panel: #ffffff;
  --ink: #1f1d27;
  --muted: #5d5a70;
  --line: #cbc8d8;
  --pink: #d63bbf;
  --yellow: #ffd166;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, .table-wrap:focus-visible { outline: 3px solid #ad70ed; outline-offset: 4px; border-radius: 4px; }
code { font-size: .92em; }

.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px var(--gutter); }
.mark { font-weight: 850; font-size: 19px; letter-spacing: -.02em; }
.mark span { font-weight: 500; color: var(--muted); }
.top a { font-size: 15px; font-weight: 650; }

main { width: min(100%, 1240px); margin-inline: auto; padding: 0 var(--gutter) 40px; }

.intro { padding: clamp(28px, 7vw, 88px) 0 clamp(36px, 6vw, 64px); }
h1 { margin: 0; max-width: 11ch; font-size: clamp(46px, 9vw, 112px); line-height: .9; font-weight: 850; letter-spacing: -.05em; }
.lede { max-width: 60ch; margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-weight: 650; }

.shots { display: grid; grid-template-columns: minmax(0, 3.46fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 24px); align-items: end; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); background: var(--panel); }
.shot.phone img { border-width: 5px; border-radius: 22px; }

.current { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.problems h2, .compare h2, .synthesis h2 { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.025em; }
.problems dl { margin: 0; display: grid; gap: 12px; }
.problems dt { font-weight: 750; }
.problems dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.compare { margin-top: clamp(56px, 8vw, 96px); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.legend .dot + .dot, .legend .dot.helps { margin-left: 12px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--pink); }
.dot.main { background: var(--pink); }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
thead th { font-weight: 700; font-size: 13px; line-height: 1.25; color: var(--muted); vertical-align: bottom; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { text-align: left; font-size: 15px; white-space: nowrap; }
tbody th a { text-decoration: none; }
tbody th a:hover { text-decoration: underline; }
td:last-child, thead th:last-child { text-align: left; }
td:last-child { font-weight: 750; font-size: 15px; }
td small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
td[data-v]::before { content: ''; display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--pink); vertical-align: middle; }
td[data-v='main']::before { background: var(--pink); }

.variant { margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(28px, 4vw, 44px); border-top: 2px solid var(--ink); scroll-margin-top: 16px; }
.variant header { margin-bottom: 28px; }
.variant h2 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.variant h2::before { content: ''; flex: none; width: .42em; height: .56em; border: 2px solid var(--ink); border-radius: 4px; background: var(--tint); transform: rotate(-6deg); }
.bet { max-width: 58ch; margin: 14px 0 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; }
.notes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 36px; }
.notes h3 { margin: 0 0 8px; font-size: 16px; }
.notes ul { margin: 0; padding-left: 1.1em; }
.notes li { margin-bottom: 8px; font-size: 15px; color: #3a3748; }
.notes li::marker { color: var(--tint); }
.open { display: inline-block; margin-top: 26px; padding: 12px 22px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; text-decoration: none; }
.open:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.open:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.synthesis { margin-top: clamp(72px, 10vw, 128px); padding: clamp(24px, 4vw, 48px); border: 2px solid var(--ink); border-radius: 16px; background: var(--panel); box-shadow: 7px 7px 0 var(--ink); }
.synthesis ol { margin: 0; padding-left: 1.4em; max-width: 72ch; }
.synthesis ol li { margin-bottom: 14px; padding-left: 4px; font-size: 17px; }
.synthesis ol li::marker { font-weight: 850; color: var(--pink); }
.synthesis h3 { margin: 36px 0 10px; font-size: 18px; }
.synthesis ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.synthesis ul li { margin-bottom: 6px; }

.foot { width: min(100%, 1240px); margin: 0 auto; padding: 24px var(--gutter) 56px; color: var(--muted); font-size: 14px; }
.foot p { max-width: 72ch; margin: 0; }

@media (max-width: 960px) {
  .current { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr 1fr; }
  .notes section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .shot.phone { width: min(62%, 240px); }
  .notes { grid-template-columns: 1fr; }
  .synthesis ol li { font-size: 16px; }
}
.shot a { display: block; border-radius: 10px; }
.shot a:hover img { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
