/* Hallmark pre-emit critique | Philosophy 4 | Hierarchy 5 | Execution 4 | Specificity 5 | Restraint 5 | Variety 4 */
:root {
  --paper: #fff;
  --ink: #201d1c;
  --muted: #5e5550;
  --accent: #783d43;
  --rule: #ded7d0;
  --wash: #f7f1eb;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.68 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: anywhere; font-family: var(--serif); font-style: normal; font-weight: 700; }
h1 { max-width: 24ch; font-size: clamp(2.17rem, 6.7vw, 3.55rem); line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: clamp(1.65rem, 5.1vw, 2.35rem); line-height: 1.13; letter-spacing: -.027em; }
h3 { font-size: clamp(1.2rem, 3vw, 1.48rem); line-height: 1.22; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 7px; color: var(--muted); font-size: .77rem; line-height: 1.45; }

.frame, .reading { width: min(calc(100% - var(--gutter) * 2), 43rem); margin-inline: auto; }
.topline { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); }
.masthead, .footer-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; min-height: 54px; }
.masthead-title, .footer-line > span { font: bold clamp(.96rem, 3.6vw, 1.17rem)/1.2 var(--serif); }
.disclosure, .label { color: var(--accent); font-size: .69rem; font-weight: 750; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.disclosure { padding: 4px 6px; border: 1px solid var(--rule); }

.article-header { padding-top: 27px; }
.article-header h1 { text-wrap: balance; }
.article-header .label { margin-bottom: 10px; }
.deck { max-width: 53ch; margin-top: 13px; color: var(--muted); font-size: clamp(1.02rem, 3.2vw, 1.16rem); line-height: 1.53; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 5px; margin-top: 16px; padding-block: 8px; border-block: 1px solid var(--rule); color: var(--muted); font-size: .76rem; }
.byline strong { color: var(--ink); }
.byline time { margin-left: 4px; padding-left: 9px; border-left: 1px solid var(--rule); }
.cover { margin-top: 17px; }
.cover-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); }
.cover-half + .cover-half { border-left: 1px solid var(--rule); }
.cover-half span { display: block; padding: 6px; border-top: 1px solid var(--rule); background: var(--wash); text-align: center; font-size: .75rem; font-weight: 650; line-height: 1.38; }
.introduction { padding-block: 20px 21px; }
.introduction p + p { margin-top: 9px; }

.reason, .comparison-section { padding-block: 25px; border-top: 1px solid var(--rule); }
.reason h2 + p { margin-top: 10px; }
.number { color: var(--accent); }
.reason > figure { width: min(100%, 35rem); margin: 17px auto 0; }
.reason > figure.grip-photo { max-width: 31.25rem; }
.reason .small-note { margin-top: 10px; color: var(--muted); font-size: .82rem; }
.demo-media { position: relative; overflow: hidden; background: var(--wash); }
.demo-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.demo-media.has-played video { opacity: 1; }
.demo-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; min-height: 44px; margin-top: 2px; }
.motion-control { min-height: 44px; padding: 4px 0 4px 10px; border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; cursor: pointer; }
.motion-control:hover { color: var(--ink); }
.motion-control:disabled { color: var(--muted); cursor: default; }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 17rem); gap: 9px; margin: 15px auto 0; }
.variants figure { padding: 5px; border: 1px solid var(--rule); text-align: center; }
.variants figcaption { margin: 0 0 3px; font-weight: 650; }

.comparison-section { padding-bottom: 35px; }
.comparison { width: 100%; margin-top: 15px; border-collapse: collapse; table-layout: fixed; font-size: .82rem; line-height: 1.42; text-align: left; }
.comparison th, .comparison td { padding: 10px 7px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.comparison th:first-child { width: 21%; }
.comparison thead { background: var(--wash); color: var(--accent); }
.comparison tbody td { color: var(--muted); }
.takeaway { margin-top: 20px; padding: 15px; border-left: 3px solid var(--accent); background: var(--wash); }
.takeaway p { margin-top: 6px; }
.page-footer { border-top: 1px solid var(--rule); }
.footer-line { padding-block: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 15px; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .85rem; font-weight: 650; }
.footer-nav a[aria-current="page"] { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.policy { min-height: 65vh; padding-block: 33px 45px; }
.policy .label { margin: 24px 0 8px; }
.policy h2 { margin: 26px 0 8px; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.policy p { margin-top: 10px; color: var(--muted); }
.policy .policy-home, .policy .policy-date { font-size: .85rem; }
.policy .policy-home { font-weight: 650; }
.policy .policy-date { margin-bottom: 20px; }

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .article-header { padding-top: 39px; }
  .cover { margin-top: 21px; }
  .introduction { padding-block: 25px; }
  .reason, .comparison-section { padding-block: 31px; }
  .comparison { font-size: .93rem; }
  .comparison th, .comparison td { padding-inline: 12px; }
  .takeaway { padding: 18px 20px; }
}
