/* arena.omarali.xyz. Tokens from brand.omarali.xyz (the same values as workshop.css and intro.css). Light only, square
   corners on cards and panels, pills and dots are the only round things. Drawn at 390 first, three columns from 1100.
   The one loud thing is the side by side: three answers on one line, the pick marked in poppy. Everything else is quiet. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-wdth.woff2") format("woff2"); font-weight: 400; font-stretch: 100% 125%; font-style: normal; font-display: block; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-wght.woff2") format("woff2"); font-weight: 400 500; font-stretch: 100%; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f6f2; --white: #fff; --ink: #17171b; --ink-soft: #4a4a52;
  --poppy: #ef4a24; --poppy-text: #b02a10; --poppy-fill: #d63a12;
  --sky: #cfe3f4; --blush: #f9d6dd; --lilac: #dcd6f7;
  --rule: rgba(23, 23, 27, .2); --lift: 3px 4px 0 rgba(23, 23, 27, .12);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px; --gap: 12px; --section-y: 48px; --ease: cubic-bezier(.19, 1, .22, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; --gap: 16px; --section-y: 64px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--text); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 .9em; max-width: 64ch; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { padding-inline: var(--gutter); max-width: 1480px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: .875rem; line-height: 1.45; }
.soft { color: var(--ink-soft); }
.label { font-size: .875rem; font-weight: 500; line-height: 1.2; margin: 0 0 10px; color: var(--ink-soft); }
.lead { font-size: 1.1875rem; line-height: 1.35; max-width: 40ch; }

.display, .wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .92; text-wrap: balance; }
.stop { display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; background: var(--poppy); vertical-align: baseline; }
.nb { white-space: nowrap; }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--poppy); }
.mark { width: 30px; aspect-ratio: 432.06 / 258.37; color: var(--ink); }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 30; background: var(--white); padding: 10px 14px; font-size: .875rem; }
.skip:focus { top: 8px; }

/* pills and chips: colors change, nothing moves */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .38em 1.4em .34em; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 400 .9375rem/1.1 var(--text); text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.pill:hover, .pill:focus-visible { background: var(--ink); color: var(--paper); }
.pill--small { min-height: 44px; padding-inline: 1.1em; font-size: .875rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; white-space: nowrap; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* kind tags: one tint per kind of work */
.tag { display: inline-block; padding: 3px 8px 2px; font-size: .8125rem; line-height: 1.3; color: var(--ink); text-decoration: none; background: var(--sky); }
.tag--page { background: var(--blush); }
.tag--deck { background: var(--lilac); }
a.tag:hover { text-decoration: underline; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.door { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.sign { width: 34px; height: 34px; flex: none; }
.door__name, .wordmark { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1; text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }

/* hero */
.hero { padding-top: 20px; padding-bottom: 28px; }
.hero__name { font-size: clamp(3.4rem, 17vw, 10.5rem); line-height: .82; margin: 0 0 22px -.04em; }
.hero--kind .hero__name { font-size: clamp(2.4rem, 11vw, 6rem); }
.hero__lead { margin: 0; }
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap); align-items: end; }
  .hero__name { margin-bottom: 0; }
  .hero--kind { align-items: center; }
  .hero--kind .hero__name { font-size: clamp(2.6rem, 6.4vw, 6rem); }
  .hero__lead { padding-bottom: 10px; }
}

.kinds { padding-bottom: 8px; }
.kinds ul { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 420px) { .kinds ul { gap: 6px; } .kinds .chip { padding: 0 .8em; font-size: .875rem; } }

.sec__title { font-size: clamp(1.9rem, 7vw, 3rem); margin: 0 0 20px -.03em; }

/* the scorecard */
.board { padding-top: var(--section-y); }
.board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.board__head p { margin: 0 0 20px; }
.board__grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .board__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .board__grid--one { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.score { background: var(--white); border: 1px solid var(--rule); padding: 16px 18px 12px; }
.score__kind { font-family: var(--display); font-stretch: 112%; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
.score__kind a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.score__kind a:hover { text-decoration: underline; }
.score__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.score__table th, .score__table td { padding: 9px 0; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: middle; }
.score__table thead th { border-top: 0; padding-top: 0; font-size: .8125rem; color: var(--ink-soft); }
.score__table tbody th { font-weight: 500; }
.num { text-align: right !important; width: 3.2em; padding-right: 12px !important; }
.barcell { width: 38%; }
.bar { display: block; height: 8px; background: var(--paper); }
.bar__fill { display: block; height: 100%; background: var(--ink); width: 0; }
.score__table tr.is-lead .bar__fill { background: var(--poppy); }
.board--short .score__table thead th { padding-bottom: 6px; }
.board--short .score__table th, .board--short .score__table td { padding-block: 7px; }
@media (max-width: 719px) { .board--short .score { padding: 12px 14px 8px; } .board--short .score__kind a { min-height: 36px; } }
.p1 { width: 5%; } .p2 { width: 10%; } .p3 { width: 15%; } .p4 { width: 20%; } .p5 { width: 25%; } .p6 { width: 30%; } .p7 { width: 35%; }
.p8 { width: 40%; } .p9 { width: 45%; } .p10 { width: 50%; } .p11 { width: 55%; } .p12 { width: 60%; } .p13 { width: 65%; } .p14 { width: 70%; }
.p15 { width: 75%; } .p16 { width: 80%; } .p17 { width: 85%; } .p18 { width: 90%; } .p19 { width: 95%; } .p20 { width: 100%; }
.board .small.soft { margin-top: 14px; }

.notes { padding-top: var(--section-y); }
.notes p { max-width: 62ch; }

/* the run list */
.list { padding-top: var(--section-y); }
.runs { border-top: 1px solid var(--ink); }
.run { border-bottom: 1px solid var(--rule); }
.run__link { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tag date" "title title" "pick pick"; gap: 8px 12px; align-items: center; padding: 16px 0 18px; text-decoration: none; transition: background-color .3s var(--ease); }
.run__link:hover { background: var(--white); }
.run__link:hover .run__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.run .tag { grid-area: tag; justify-self: start; }
.run__title { grid-area: title; font-family: var(--display); font-stretch: 112%; font-size: 1.3rem; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.run__date { grid-area: date; justify-self: end; }
.run__pick { grid-area: pick; display: inline-flex; align-items: center; gap: 8px; }
.run__pick strong { font-weight: 500; }
@media (min-width: 900px) {
  .run__link { grid-template-columns: 9rem minmax(0, 1fr) 11rem 10rem; grid-template-areas: "tag title date pick"; padding: 18px 10px; margin-inline: -10px; }
  .run__date { justify-self: start; }
}
.empty { padding: 28px 0; }

/* a run */
.runpage { padding-top: 20px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; }
.title { font-family: var(--display); font-stretch: 112%; font-size: clamp(1.9rem, 6.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; margin: 0 0 26px -.02em; }
.runhead { display: grid; gap: var(--gap); margin-bottom: 28px; }
@media (min-width: 900px) { .runhead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
.brief { background: var(--white); border: 1px solid var(--rule); padding: 16px 18px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; text-wrap: pretty; }
.more { margin-top: 10px; }
.more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .9375rem; }
.more[open] summary { margin-bottom: 6px; }
.verdict { background: var(--ink); color: var(--paper); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.verdict__pick { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1; margin: 0; text-wrap: balance; }
.verdict__pick .dot { width: 14px; height: 14px; }
.verdict__why { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.4; }

/* the side by side */
.answers { display: grid; gap: var(--gap); }
@media (min-width: 1100px) {
  .answers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .answers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.answer { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); min-width: 0; }
.answer.is-pick { border-color: var(--poppy); box-shadow: inset 0 0 0 1px var(--poppy), var(--lift); }
.answer--missing .answer__body { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--paper); margin: 12px; padding: 24px 16px; }
.answer__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); min-height: 56px; }
.answer__slot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-soft); flex: none; }
.answer__model { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.answer__pick { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: .875rem; font-weight: 500; color: var(--poppy-text); }
.title .answer__pick { margin-left: 14px; font-family: var(--text); font-stretch: 100%; letter-spacing: 0; vertical-align: middle; }
.answer__body { padding: 16px; flex: 1; }
.answers--copy .answer__body, .answers--deck .answer__body { font-size: 1.0625rem; line-height: 1.55; }
.answer__time { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--rule); }
.missing { margin: 0; color: var(--ink-soft); }
.shot { display: block; border: 1px solid var(--rule); background: var(--paper); }
.shot img { width: 100%; }
.shot--none { margin: 0; aspect-ratio: 14 / 9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.answer__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

.back { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 32px 0 0; }
.back a { display: inline-flex; align-items: center; min-height: 44px; }

/* a page as written, in a sandboxed frame; the Wide and Phone links set its width through :target */
.framepage { padding-top: 20px; }
.framepage .title { margin-bottom: 10px; }
.views { display: flex; gap: 8px; margin: 18px 0; }
.anchor { display: block; height: 0; overflow: hidden; scroll-margin-top: 100vh; }
.frame { background: var(--white); border: 1px solid var(--rule); padding: 12px; overflow-x: auto; }
.frame__shell { width: 100%; max-width: 1400px; margin-inline: auto; transition: max-width .4s var(--ease); }
.frame iframe { display: block; width: 100%; height: 900px; border: 1px solid var(--rule); background: var(--white); }
.views a[href="#wide"], #phone:target ~ .views a[href="#phone"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#phone:target ~ .views a[href="#wide"] { background: transparent; border-color: var(--rule); color: var(--ink); }
#phone:target ~ .frame .frame__shell { max-width: 390px; }
#phone:target ~ .frame iframe { height: 844px; }
@media (max-width: 720px) { .frame iframe { height: 760px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* footer and 404 */
.foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 26px; padding-bottom: 32px; margin-top: var(--section-y); border-top: 1px solid var(--rule); }
.foot p { margin: 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.lost { padding-top: 40px; padding-bottom: 20px; }
.lost .hero__name { font-size: clamp(2.6rem, 12vw, 7rem); margin-bottom: 24px; }
