/* Pikola's public pages, one calm look (17 Nov 2026, "calmer and clearer"): warm paper, hairlines, lots of space, one
   accent colour (the green button and links), real app screens, Dill once at the end. Colours come from tokens.css
   only (light and dark); this file is the parts. The homepage adds home.css; the schedule pages add
   schedule/schedule.css; the trade analyzer adds trade-analyzer.css. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-variable.woff2') format('woff2'); }
/* Fraunces as the headings use it (optical size 144, soft, wonky, weights 700 to 900), Latin only: 20 KB, not 121. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('/fonts/fraunces-display.woff2') format('woff2'); }

/* One card for every page: --r-box (a card: a hairline, the surface, no shadow at rest), --r-inner (a box inside one,
   a tab), --r-pic (a picture's frame). */
:root { --wrap: 1120px; --g: 16px; --bar-h: 60px; --space: 48px; --r-box: 14px; --r-inner: 10px; --r-pic: 20px; }
@media (min-width: 720px) { :root { --g: 32px; --bar-h: 68px; --space: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font-body); font-feature-settings: 'cv11', 'ss01'; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--selection); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.sr, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 60; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; }
abbr[title] { text-decoration: none; }

/* Type: Fraunces for headings, Inter for everything read */
.brand-h, .h2 { font-family: var(--font-brand); font-weight: 800; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; letter-spacing: -.02em; line-height: 1.06; }
.h2 { font-size: clamp(32px, 3.6vw, 46px); }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--dim); max-width: 46ch; }
.eyebrow { font: 650 14px/1.3 var(--font-body); color: var(--dim); }

/* A small label (once a sticker): quiet, one line, no fill */
.sticker { display: inline-flex; align-items: center; gap: 6px; font: 650 14px/1.3 var(--font-body); color: var(--dim); white-space: nowrap; }

/* The main button, "Open Pikola free": the brand's acid with an ink label (11:1), the 6 px control radius, a pickle-ink
   edge and a 3 px key under it that goes down when pressed, and a drawn arrow (the → in the markup stays for screen
   readers' text and the tests, drawn by a mask). Dark: the same acid on the ink page, the key in pickle 600. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 20px 0 24px; border-radius: var(--r-control); background: var(--acid); color: var(--acid-ink); text-decoration: none; font: 750 17px/1 var(--font-body); letter-spacing: -.01em; border: 0; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--pk-pickle-800), 0 3px 0 var(--pk-pickle-800); transition: background var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast); }
.btn:hover { background: var(--pk-pickle-300); color: var(--acid-ink); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--pk-pickle-800), 0 0 0 var(--pk-pickle-800); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--r-control); }
.btn .arr { flex: none; width: 20px; height: 20px; font-size: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6.5L19.5 12 13 18.5' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6.5L19.5 12 13 18.5' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform var(--motion-fast) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.sm { min-height: 44px; padding: 0 14px 0 16px; gap: 8px; font-size: 15.5px; box-shadow: inset 0 0 0 1.5px var(--pk-pickle-800), 0 2px 0 var(--pk-pickle-800); }
.btn.sm .arr { width: 17px; height: 17px; }
.btn.lg { min-height: 56px; padding: 0 22px 0 26px; font-size: 18px; }
/* Phones: the top bar's button is the small one without its arrow, so the bar isn't crowded */
@media (max-width: 519px) { .bar .btn.sm { padding: 0 14px; font-size: 15px; } .bar .btn.sm .arr { display: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn { box-shadow: 0 3px 0 var(--pk-pickle-600); }
  :root:not([data-theme='light']) .btn:active { box-shadow: 0 0 0 var(--pk-pickle-600); }
  :root:not([data-theme='light']) .btn.sm { box-shadow: 0 2px 0 var(--pk-pickle-600); }
}
:root[data-theme='dark'] .btn { box-shadow: 0 3px 0 var(--pk-pickle-600); }
:root[data-theme='dark'] .btn:active { box-shadow: 0 0 0 var(--pk-pickle-600); }
:root[data-theme='dark'] .btn.sm { box-shadow: 0 2px 0 var(--pk-pickle-600); }
/* Links: the one accent colour */
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 17px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

/* Top bar: sticky, a hairline under it, the one button */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 14px; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.brand .wordmark { width: 104px; height: auto; }
@media (min-width: 720px) { .brand .wordmark { width: 118px; } }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 550; font-size: 15px; border-radius: var(--r-control); white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--accent); }
.bar .btn { margin-left: auto; }
/* Six links and the button need about 1,200 px on one line. From 900 px the first three (the projections and the free
   tools); narrower, the footer carries them (as on a phone). */
@media (min-width: 900px) { .nav { display: flex; } .nav a:nth-child(n+4) { display: none; } .bar .btn { margin-left: 8px; } }
@media (min-width: 1200px) { .nav a:nth-child(n+4) { display: inline-flex; } }

/* Sections: space between them, and a hairline */
.sect { padding: var(--space) 0; border-top: 1px solid var(--line); }

/* Steps: a number, a heading and a line */
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); }
.step .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font: 700 16px/1 var(--font-body); color: var(--text); }
.step h3 { font: 700 19px/1.25 var(--font-body); }
.step p { font-size: 16px; color: var(--dim); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Related links */
.related { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: grid; gap: 6px; height: 100%; min-height: 44px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); color: var(--text); text-decoration: none; }
.related a:hover { border-color: var(--line-strong); color: var(--text); }
.related b { font: 700 18px/1.25 var(--font-body); }
.related span { color: var(--dim); font-size: 15px; text-wrap: pretty; }

/* FAQ: folded questions */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font-weight: 650; font-size: 18px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' fill='none' stroke='%235F665A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12' fill='none' stroke='%235F665A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .faq summary::after { filter: invert(1); } }
:root[data-theme='dark'] .faq summary::after { filter: invert(1); }
.faq .a, .faq details > p { color: var(--dim); font-size: 17px; max-width: 64ch; }
.faq .a { padding: 0 0 22px; display: grid; gap: 10px; }
.faq details > p { padding: 0 0 12px; }
.faq details > p:last-child { padding-bottom: 22px; }

/* The closing band: Dill, a line and the one button, centred on the paper */
.band { padding: var(--space) 0; border-top: 1px solid var(--line); text-align: center; }
.band .wrap { display: grid; gap: 18px; justify-items: center; }
.band .dill { width: 96px; height: 96px; }
.band h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 22ch; }
.band p { color: var(--dim); max-width: 52ch; margin: 10px auto 0; font-size: 17px; }

/* footer:start (pages/chrome.ts FOOTER, on every public page). This block is the one source of the footer's look:
   pages/build.ts copies it, as it is, into site.css (the pages written by hand load that stylesheet), and --check fails
   when the two differ. So it sets everything the footer needs itself (its width, type, spacing and the wordmark's size)
   and reads the same whichever stylesheet is around it. Colours from tokens.css (light and dark). */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); background: none; color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: auto; }
.foot .wrap { width: 100%; max-width: calc(1120px + 2 * 16px); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .foot .wrap { max-width: calc(1120px + 2 * 32px); padding: 0 32px; } }
.foot p { margin: 0; }
.foot a:focus-visible { border-radius: 4px; }
.foot .brand { display: inline-flex; align-items: center; gap: 0; min-height: 44px; color: var(--text); text-decoration: none; font: inherit; font-variation-settings: normal; letter-spacing: normal; }
.foot .brand .wordmark { display: block; width: 104px; height: auto; color: inherit; }
@media (min-width: 720px) { .foot .brand .wordmark { width: 118px; } }
.foot-grid { display: grid; gap: 22px 28px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot-brand p { color: var(--dim); max-width: 34ch; }
@media (max-width: 899px) { .foot-grid > nav:first-of-type { grid-row: span 2; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }
.foot h2 { margin: 0 0 4px; font: 650 14px/1.2 var(--font-body); letter-spacing: normal; color: var(--dim); text-wrap: balance; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; color: var(--text); text-decoration: none; }
.foot li a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1.5px; color: var(--accent); }
.foot .legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
/* footer:end */

/* A player's face: ONE component for every page (pages/face.ts faceHtml: the homepage's pictures and the projection pages). A disc in his NBA team's colour with his initials, and his
   ESPN headshot over it, loaded from ESPN's own address (owner, 18 Nov 2026). The photo's own backing is the disc, so
   the initials show only where there is no photo (no id, or home.js took a failed one away). Never a status badge. */
.pf { --s: 34px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; background: var(--tc, var(--headshot-fg)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.pf::before { content: attr(data-i); color: var(--tc-ink, #FFFFFF); font: 800 calc(var(--s) * .4)/1 var(--font-display); letter-spacing: .04em; }
.pf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--tc) 72%, #FFFFFF), var(--tc) 72%); color: transparent; font-size: 0; }
/* A photo that fails on a page with no script (the projection pages): the browser draws its broken picture's ::after,
   so that is the disc and the initials again, over the broken-image icon. */
.pf img::after { content: attr(data-i); position: absolute; inset: 0; display: grid; place-items: center; background: var(--tc, var(--headshot-fg)); color: var(--tc-ink, #FFFFFF); font: 800 calc(var(--s) * .4)/1 var(--font-display); letter-spacing: .04em; }
/* An NBA tricode in its team's colour (brand §3, in season): pages/face.ts teamChip */
.tc { display: inline-block; padding: 2px 4px 1px; border-radius: var(--r-sticker); background: var(--tc); color: var(--tc-ink, #FFFFFF); box-shadow: inset 0 0 0 1px var(--chip-edge); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .05em; }
/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--dim); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--dim); }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); }
.crumbs [aria-current] { color: var(--text); text-decoration: none; }

/* A tool or site page's first screen: crumbs, a label, the H1, the answer, the button, and At a glance */
.t-hero { position: relative; padding: 8px 0 56px; }
.t-grid { display: grid; gap: 32px; align-items: start; margin-top: 16px; }
.t-copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.t-hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.025em; max-width: 20ch; }
.t-hero .answer { font-size: clamp(18px, 1.5vw, 19px); color: var(--dim); max-width: 58ch; }
.t-hero .small { font-size: 15px; color: var(--dim); max-width: 58ch; }
@media (max-width: 519px) { .t-hero .ctas .btn { width: 100%; } }
@media (min-width: 980px) { .t-hero { padding: 16px 0 88px; } .t-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 64px; } }

/* Beside the H1: a homepage drawn picture where one fits (draw.css), then At a glance. The trade analyzer's page has
   neither there: its H1 and one line, then the tool straight away, At a glance under it. */
.t-side { display: grid; gap: 20px; align-content: start; }
.t-hero:has(.t-tool) { padding-bottom: 8px; }
.t-tool { grid-template-columns: 1fr !important; }
.t-glance .glance { max-width: 760px; }

/* At a glance: the facts beside the H1 */
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px 20px 10px; }
.glance h2 { font: 650 14px/1.2 var(--font-body); color: var(--dim); padding-bottom: 8px; }
.glance dl { margin: 0; display: grid; grid-template-columns: minmax(92px, auto) 1fr; }
.glance dt, .glance dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.glance dt { font-weight: 650; padding-right: 12px; }
.glance dd { color: var(--dim); }

/* A real app screen, in a quiet frame */
.shot { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pic); box-shadow: var(--shadow-card); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { padding: 8px 16px; font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); }
.t-shots { display: grid; gap: 20px; justify-items: center; }
.t-shots .shot { max-width: 390px; width: 100%; }

/* A tool page's sections */
.t-sect { padding: calc(var(--space) * .75) 0; border-top: 1px solid var(--line); }
.t-sect h2 { margin-bottom: 20px; }
.t-sect .prose { display: grid; gap: 12px; max-width: 64ch; color: var(--dim); font-size: 17px; }
.t-sect .prose b { color: var(--text); }
.t-h2 { font-family: var(--font-brand); font-weight: 800; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.02em; }
.t-two { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .t-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; } }

/* Which leagues a tool covers */
.cov-wrap { border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); overflow: hidden; max-width: 860px; }
.cov { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cov th, .cov td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cov tr:last-child th, .cov tr:last-child td { border-bottom: 0; }
.cov thead th { font: 650 14px/1.2 var(--font-body); color: var(--dim); background: var(--surface-2); }
.cov tbody th { font-weight: 650; width: 42%; }
.fact { margin-top: 16px; font-size: 15px; color: var(--dim); max-width: 80ch; }
@media (max-width: 599px) {
  .cov thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cov tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .cov tr:last-child { border-bottom: 0; }
  .cov th, .cov td { display: block; width: auto !important; padding: 0; border: 0; }
  .cov tbody th { margin-bottom: 4px; }
}

/* The study line */
.study { display: grid; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); max-width: 760px; }
.study .k { font: 650 14px/1.2 var(--font-body); color: var(--dim); }
.study a { font-family: var(--font-brand); font-weight: 800; font-variation-settings: 'opsz' 144, 'SOFT' 100; font-size: 22px; line-height: 1.15; display: inline-flex; min-height: 44px; align-items: center; }
.study p { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The free trade analyzer's mount (js/trade-analyzer.js keeps the heading and replaces the rest with the tool) */
.tool-mount { position: relative; width: 100%; max-width: calc(var(--wrap) + 2 * var(--g)); margin: 0 auto; padding: calc(var(--space) * .75) var(--g); }
.tool-mount::before { content: ''; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 1px; background: var(--line); }
.tool-mount .prose { margin-top: 16px; display: grid; gap: 12px; color: var(--dim); max-width: 64ch; }
.steps.steps-1 { grid-template-columns: 1fr; margin-top: 20px; }
.steps-1 .step { grid-template-columns: 32px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px 20px; }
.steps-1 .step .n { grid-row: 1 / 3; }
