/* The Penumbra Benchmark. White, black, Times New Roman. Generated by build_site.py: edit site.css there, then rebuild. */
:root { --bg: #fff; --ink: #000; --mute: #666; --line: #d4d4d4; --soft: #f1f1f1; --accent: #000; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Times New Roman", Times, serif; padding: 0 clamp(18px, 5vw, 64px); }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- foot and bar, on every page */
.foot { display: flex; gap: 28px; padding: 22px 0 26px; font-size: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.bar { padding: 22px 0 0; font-size: 17px; }
.bar a, .top a { text-decoration: none; font-style: italic; }
.bar a:hover, .top a:hover { text-decoration: underline; }

/* ---------- home: title, subtitle, two columns, foot. One screen. */
.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.mast { padding-top: clamp(22px, 5vh, 52px); }
.mast h1 { font-weight: 400; font-size: clamp(38px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.015em; }
.mast .sub { font-style: italic; font-size: clamp(18px, 2vw, 28px); margin-top: clamp(8px, 1.4vh, 16px); }
.two { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(24px, 4vh, 48px) 0; }
.bench { display: block; text-decoration: none; max-width: 640px; }
.bench .ct { display: block; font-size: clamp(19px, 1.7vw, 24px); margin-bottom: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.bench .cn { display: block; font-size: 14px; color: var(--mute); margin-top: 12px; line-height: 1.4; max-width: 34em; }
.bench .cc { display: block; font-size: 14px; margin-top: 12px; font-variant: small-caps; letter-spacing: 0.03em; }
.bench .cc i { font-style: normal; padding: 0 6px; color: var(--mute); }
.bench:hover .ct { border-bottom-width: 2px; padding-bottom: 7px; }
.bench:hover .fill { filter: saturate(1.25) brightness(0.96); }

.bars .row { display: grid; grid-template-columns: minmax(120px, 12.5em) 1fr 3.6em; align-items: center; gap: 14px; padding: 6px 0; }
.bars .name { font-size: 17px; line-height: 1.15; }
.bars .name small { font-size: 13px; color: var(--mute); margin-left: 4px; }
.bars .track { height: 17px; background: #f6f6f4; }
.bars .fill { display: block; height: 100%; background: #ccc; }
.bars .val { font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bars.settled .row { grid-template-columns: minmax(120px, 12.5em) 1fr 4.6em; }
.bars.settled .val { font-size: 16px; }

/* the paper: a sheet you can pick up */
.paper { position: relative; display: flex; flex-direction: column; justify-self: center; width: min(100%, 330px); aspect-ratio: 17 / 22; padding: clamp(22px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px); background: var(--bg); border: 1px solid var(--ink); text-decoration: none; overflow: hidden;
  box-shadow: 5px 5px 0 -1px var(--bg), 5px 5px 0 0 var(--ink), 10px 10px 0 -1px var(--bg), 10px 10px 0 0 var(--ink);
  transition: transform .28s ease, box-shadow .28s ease; }
.paper .pt { font-size: clamp(22px, 2.3vw, 31px); line-height: 1.1; text-align: center; margin-top: 8%; }
.paper .pr { display: block; width: 42px; height: 1px; background: var(--ink); margin: 18px auto 14px; }
.paper .pa { text-align: center; font-size: 16px; }
.paper .pd { text-align: center; font-size: 13px; color: var(--mute); font-style: italic; margin-top: 3px; }
.paper .px { margin-top: auto; font-size: 9.5px; line-height: 1.5; text-align: justify; color: #444; max-height: 11.6em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.paper::after { content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  background: linear-gradient(135deg, #f7f7f7 0, #dedede calc(50% - 1px), #000 calc(50% - 1px), #000 50%, var(--bg) 50%);
  box-shadow: -3px -3px 7px rgba(0, 0, 0, .13); transition: width .28s ease, height .28s ease; }
.paper:hover, .paper:focus-visible { transform: translate(-3px, -7px) rotate(-0.6deg);
  box-shadow: 7px 8px 0 -1px var(--bg), 7px 8px 0 0 var(--ink), 14px 16px 0 -1px var(--bg), 14px 16px 0 0 var(--ink), 18px 26px 30px rgba(0, 0, 0, .12); }
.paper:hover::after, .paper:focus-visible::after { width: 58px; height: 58px; }
.paper:hover .pt { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- inner pages */
.doc h1 { font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.01em; margin-top: clamp(22px, 4vh, 44px); }
.doc h2 { font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 8px; }
.doc h3 { font-weight: 400; font-style: italic; font-size: 22px; margin: 30px 0 8px; }
.doc section { margin-top: clamp(36px, 6vh, 64px); }
.doc h1.ask { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; max-width: 19em; }
.crumb { margin-top: 18px; font-size: 15px; }
.crumb + h1 { margin-top: 6px; }
.lede { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.35; margin-top: 10px; max-width: 40em; }
.lede2, .doc section > p, .more p, .tail p { font-size: 17px; line-height: 1.5; max-width: 46em; }
.fine { font-size: 15px; line-height: 1.5; color: var(--mute); max-width: 60em; margin-top: 16px; }
.fine a { color: var(--ink); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(28px, 6vw, 88px); border-top: 1px solid var(--ink); padding-top: 22px; }
.charts figcaption { font-size: 15px; line-height: 1.4; color: var(--mute); min-height: 6.2em; max-width: 32em; }
.charts figcaption b { display: block; font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 3px; }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(30px, 5vh, 52px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.acts a { display: block; padding: 22px 24px 22px 0; text-decoration: none; }
.acts a + a { border-left: 1px solid var(--ink); padding-left: 24px; }
.acts .cite { display: block; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; }
.acts .lab { display: block; font-size: 15px; color: var(--mute); margin-top: 8px; line-height: 1.4; }
.acts .go { display: block; font-size: 15px; font-style: italic; margin-top: 10px; }
.acts a:hover .cite { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.explain { max-width: 46em; }
.explain p { margin-top: 10px; }
.explain b { font-weight: 700; }
.doc section.explain { margin-top: clamp(26px, 4vh, 40px); }

/* phrase by model */
.scroll { overflow-x: auto; margin-top: 14px; }
.matrix { border-collapse: collapse; width: 100%; max-width: 1080px; }
.matrix thead th { font-weight: 400; font-size: 16px; text-align: left; padding: 0 0 8px; vertical-align: bottom; }
.matrix thead small { display: flex; gap: 4px; font-size: 12px; color: var(--mute); font-variant: small-caps; }
.matrix thead small span { width: 36px; text-align: center; }
.matrix tbody tr { border-top: 1px solid var(--line); }
.matrix tbody th { text-align: left; font-weight: 400; padding: 9px 18px 9px 0; font-size: 18px; white-space: nowrap; position: sticky; left: 0; background: var(--bg); }
.matrix tbody th a { text-decoration: none; }
.matrix tbody th a:hover { text-decoration: underline; }
.matrix tbody th small { display: block; font-size: 13px; color: var(--mute); font-style: italic; }
.matrix td { padding: 6px 12px 6px 0; white-space: nowrap; }
.matrix td.st { text-align: right; padding-right: 0; }
.c { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 28px; margin-right: 4px; font-size: 15px; font-variant-numeric: tabular-nums; border: 1px solid #cfcfcf; color: var(--ink); }
.c.on { border-color: transparent; }
.c.na { border-color: transparent; }
.scale { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--mute); max-width: 62em; }
.scale .badge { color: var(--ink); margin-right: 4px; }
.scale .badge.split { color: #fff; }
.scale .badge + .badge, .scale .badge:not(:first-child) { margin-left: 14px; }
.badge { display: inline-block; padding: 3px 8px 4px; border: 1px solid var(--ink); font-size: 13px; white-space: nowrap; font-variant: small-caps; letter-spacing: 0.03em; }
.badge.split { background: var(--ink); color: #fff; }
.badge.un { border-style: dashed; }

/* each phrase */
.entry { border-top: 1px solid var(--ink); padding: clamp(22px, 4vh, 36px) 0 6px; margin-top: 22px; scroll-margin-top: 10px; }
.eh { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15px; }
.eh .num { color: var(--mute); font-variant-numeric: tabular-nums; }
.eh .cite { color: var(--mute); }
.phrase { font-size: clamp(24px, 3vw, 38px); line-height: 1.14; margin-top: 12px; max-width: 26em; }
.q { font-size: 18px; line-height: 1.45; margin-top: 12px; max-width: 44em; }
.tally { font-size: 18px; margin-top: 12px; }
.tally b { font-weight: 400; font-size: 1.35em; }
.grid { border-collapse: collapse; margin-top: 14px; }
.grid thead th { text-align: left; padding: 0 0 4px; font-weight: 400; }
.grid .ab { display: flex; gap: 10px; font-size: 12px; color: var(--mute); font-variant: small-caps; }
.grid .ab span { width: 110px; }
.grid tbody tr { border-top: 1px solid var(--line); }
.grid tbody th { text-align: left; font-weight: 400; font-size: 17px; padding: 6px 26px 6px 0; white-space: nowrap; }
.grid td { padding: 6px 18px 6px 0; white-space: nowrap; vertical-align: middle; font-size: 16px; }
.grid .cnt { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 14px; }
.v-yes .word { font-weight: 700; }
.v-no .word { color: #333; }
.v-unsettled .word { font-style: italic; color: var(--mute); }
.strip { display: inline-flex; gap: 10px; vertical-align: middle; }
.strip .g { display: inline-grid; grid-auto-flow: column; gap: 2px; width: 110px; }
.strip i { width: 12px; height: 12px; display: block; border: 1px solid #bdbdbd; }
.strip i.y { background: var(--mc, #000); border-color: color-mix(in srgb, var(--mc, #000) 80%, #000); }
.note { margin-top: 14px; font-size: 17px; line-height: 1.5; max-width: 46em; }
details { margin-top: 12px; padding-bottom: 12px; }
summary { cursor: pointer; font-size: 16px; font-style: italic; width: fit-content; list-style: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
summary::-webkit-details-marker { display: none; }
.said { list-style: none; margin-top: 14px; columns: 2 340px; column-gap: 48px; }
.said li { break-inside: avoid; border-left: 1px solid var(--ink); padding: 0 0 0 12px; margin-bottom: 14px; font-size: 16px; line-height: 1.45; }
.said li b { font-weight: 700; }
.said .k { color: var(--mute); font-size: 13px; margin-left: 6px; }
.said li p { margin-top: 3px; }
.said .rel { color: var(--mute); font-size: 14px; font-style: italic; }

.plain { border-collapse: collapse; margin: 14px 0; }
.plain th, .plain td { text-align: left; font-size: 16px; padding: 6px 28px 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plain thead th { border-top: 0; font-weight: 400; font-size: 13px; color: var(--mute); font-variant: small-caps; letter-spacing: 0.03em; vertical-align: bottom; }
.method ul { margin: 8px 0 26px 20px; max-width: 52em; }
.method li { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.credit { font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 52em; margin-top: 18px; }

/* the paper's page */
.abs { max-width: 620px; margin: 0 auto; padding-top: clamp(20px, 5vh, 56px); }
.abs h1 { text-align: center; font-size: clamp(32px, 4.6vw, 54px); }
.abs .by { text-align: center; font-size: 20px; margin-top: 18px; }
.abs .when { text-align: center; font-size: 15px; font-style: italic; color: var(--mute); margin: 4px 0 34px; }
.abs p { font-size: 19px; line-height: 1.6; margin-bottom: 16px; }
.abs .toc { margin: 30px 0 26px 26px; font-size: 18px; line-height: 1.7; list-style: upper-roman; }

/* ---------- articles list and article pages */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 28px; max-width: 1100px; }
.cards a { display: block; text-decoration: none; }
.cards img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; border: 1px solid var(--ink); filter: grayscale(1); }
.cards a:hover img { filter: none; }
.cards .t { font-size: 20px; line-height: 1.25; padding-top: 10px; }
.cards a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.arts .signup { margin-top: 56px; }
.signup { width: min(100%, 460px); }
.signup label, .signup .msg { display: block; font-size: 16px; font-style: italic; margin-bottom: 8px; }
.signup .row { display: flex; gap: 8px; }
.signup input[type=email] { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 9px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; }
.signup .hp { position: absolute; left: -9999px; }
.signup button { font: inherit; font-size: 17px; padding: 9px 18px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; }
.signup button:hover { background: var(--bg); color: var(--ink); }
.signup button:disabled { opacity: .5; cursor: default; }

.top { padding: 22px 0 0; font-size: 17px; }
.cool { display: none; }
article { max-width: 660px; margin: clamp(28px, 7vh, 72px) 0 0; }
article .date { font-size: 15px; font-style: italic; color: var(--mute); margin-bottom: 14px; }
article h1 { font-weight: 400; font-size: clamp(32px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 36px; }
article img { display: block; width: 100%; height: auto; margin: 30px 0; }
article p, article li { font-size: 20px; line-height: 1.6; }
article p { margin-bottom: 20px; }
article ul, article ol { margin: 0 0 20px 26px; }
article li { margin-bottom: 8px; }
article h2 { font-weight: 400; font-size: 28px; line-height: 1.2; margin: 46px 0 14px; }
article h3 { font-weight: 400; font-style: italic; font-size: 23px; margin: 28px 0 10px; }
article a { text-underline-offset: 3px; overflow-wrap: anywhere; }
article .orig { margin-top: 44px; font-size: 16px; font-style: italic; }
.article-end { max-width: 660px; margin: 64px 0 0; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 16px; }
.article-end > a { text-decoration: none; }
.article-end > a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .paper { width: min(78%, 300px); }
  .charts, .acts { grid-template-columns: 1fr; }
  .acts a + a { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; }
  .charts figcaption { min-height: 0; }
  .bars .row, .bars.settled .row { grid-template-columns: 8.6em 1fr 3.4em; gap: 10px; }
  .bars .name small { display: block; margin-left: 0; }
  .bars.settled .val { font-size: 14px; }
  .matrix { width: auto; }
  .matrix tbody th { white-space: normal; min-width: 120px; max-width: 134px; font-size: 16px; line-height: 1.15; padding-right: 10px; }
  .matrix tbody th small, .matrix td.st, .matrix thead td:last-child { display: none; }
  .matrix td { padding-right: 8px; }
  .c { width: 28px; height: 25px; font-size: 13px; margin-right: 2px; }
  .matrix thead small span { width: 28px; margin-right: -2px; }
  .grid, .grid tbody, .grid tr { display: block; }
  .grid thead { display: none; }
  .grid tbody tr { padding: 8px 0; }
  .grid tbody th { display: block; padding: 0 0 4px; }
  .grid td { display: inline-block; padding: 0 10px 0 0; }
  .strip { gap: 6px; } .strip .g { width: auto; } .strip i { width: 9px; height: 9px; }
  .plain th, .plain td { padding-right: 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .paper, .paper::after { transition: none; } .paper:hover { transform: none; } }
