/* Editorial layer for the release page: serif reading text, a framed hero, and one violet accent.
   Loaded after ampersand.css and before dark.css, so dark.css restates only the tokens below. */
:root {
  --accent: #6a4d94;
  --orange: #7561ae;
  --pigment: linear-gradient(120deg, #7561ae 8%, #b54f8f 52%, #e9814a 92%);
  --hero-wash: linear-gradient(160deg, #f4eef6 0%, #efe6f2 56%, #f3e9ee 100%);
  --hero-ink: #3d2c4b;
  --hero-paper: #fff;
  --card: #faf9f6;
  --card-line: #e1e0d8;
  --card-shadow: 0 1px 2px rgb(47 38 56 / .04), 0 22px 44px -30px rgb(47 38 56 / .24);
  --link-line: rgb(106 77 148 / .4);
  --chat-person: color-mix(in srgb, var(--ink) 6%, var(--card));
  --chat-focus: color-mix(in srgb, #d2b385 30%, var(--card));
  --chat-amp: color-mix(in srgb, #7561ae 14%, var(--card));
}
::selection { background: #e2d8ef; }

/* Header: translucent so the article reads through it, and the theme button sits in the row instead of hanging past the edge. */
.ampersand-page .site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
@media (min-width: 701px) {
  body.ampersand-page .site-header { padding-inline: 24px; }
  body.ampersand-page .site-nav .theme-toggle { position: relative; inset: auto; width: 32px; margin: 0 -8px 0 -12px; transform: none; }
}
@media (min-width: 1120px) {
  body.ampersand-page .site-header { padding-inline: max(32px, calc((100% - 1280px) / 2)); }
}
.reading-progress::-webkit-progress-value { background: var(--pigment); }
.reading-progress::-moz-progress-bar { background: var(--pigment); }

/* Hero: a rounded plate with a faint paper grain under the paint. */
.ampersand-page .hero-art { background: var(--hero-wash); border-radius: 28px; box-shadow: inset 0 0 0 1px rgb(61 44 75 / .06); isolation: isolate; }
.ampersand-page .hero-art::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .32; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ampersand-page .hero-heading { z-index: 3; color: var(--hero-ink); }
.ampersand-page .hero-heading h1 { font-variation-settings: 'opsz' 72; letter-spacing: -.04em; text-wrap: balance; }
.ampersand-page .hero-heading .article-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--hero-paper) 45%, transparent); font: 500 12px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.ampersand-page .hero-heading .article-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pigment); }
.ampersand-page .hero-heading .article-subtitle { text-wrap: pretty; }
.ampersand-page .hero-heading .article-meta { color: color-mix(in srgb, currentColor 72%, transparent); }
.ampersand-page .hero-actions { gap: 12px; }
.ampersand-page .hero-actions .hero-action-link { gap: 6px; min-height: 44px; padding: 0 18px 0 22px; border: 1px solid color-mix(in srgb, var(--hero-ink) 22%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--hero-paper) 50%, transparent); color: var(--hero-ink); font: 500 14.5px/1 var(--sans); transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.ampersand-page .hero-actions .hero-action-link:first-child { border-color: var(--hero-ink); background: var(--hero-ink); color: var(--hero-paper); }
.ampersand-page .hero-actions .hero-action-link span { color: inherit; font-size: 19px; opacity: .65; transition: transform .18s ease; }
.ampersand-page .hero-actions .hero-action-link:is(:hover, :focus-visible) { background: var(--hero-paper); color: var(--hero-ink); box-shadow: 0 6px 18px -8px rgb(61 44 75 / .35); transform: translateY(-1px); }
.ampersand-page .hero-actions .hero-action-link:first-child:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--hero-ink) 88%, var(--hero-paper)); color: var(--hero-paper); }
.ampersand-page .hero-actions .hero-action-link:hover span { transform: translateX(2px); }
@media screen and (min-width: 701px) {
  /* Same band height as the Persimmon release hero; it only grows when narrow screens wrap the copy. */
  .ampersand-page .hero-art { width: auto; min-height: clamp(440px, 50svh, 520px); margin-inline: 24px; padding: 28px clamp(32px, 5vw, 72px); }
  .ampersand-page .hero-heading h1 { font-size: clamp(80px, 7.6vw, 112px); line-height: .98; }
  .ampersand-page .hero-heading .article-kicker { margin-bottom: 16px; }
  .ampersand-page .hero-heading .article-subtitle { margin-top: 18px; }
  .ampersand-page .hero-heading .article-meta { margin-top: 16px; }
  .ampersand-page .hero-heading .hero-actions { margin-top: 20px; }
}
@media screen and (min-width: 1120px) {
  .ampersand-page .hero-art { margin-inline: 0; }
}
@media (max-width: 700px) {
  .ampersand-page .hero-art { width: auto; margin: 4px 12px 0; border-radius: 22px; }
  .ampersand-page .hero-heading h1 { font-size: clamp(48px, 14.5vw, 68px); }
  .ampersand-page .hero-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ampersand-page .hero-actions :is(.hero-action-link, .hero-action-link span) { transition: none; }
}

/* Reading text: Newsreader at a book size; figures, captions and controls keep Inter. */
.ampersand-page .article-content > :is(p, ul, ol):not([class]),
.ampersand-page .article-content > p.eval-section-intro { font: 400 20px/1.62 var(--serif); letter-spacing: -.004em; text-wrap: pretty; }
.ampersand-page .article-content > p.eval-section-intro { margin-bottom: 20px; color: var(--ink); }
.ampersand-page .article-content > p#introduction { margin-bottom: 28px; font-size: 25px; line-height: 1.5; letter-spacing: -.01em; }
.ampersand-page .article-content > p :is(code) { font-size: .8em; }
.ampersand-page .article-content a { text-decoration-color: var(--link-line); text-underline-offset: .2em; transition: color .15s ease, text-decoration-color .15s ease; }
.ampersand-page .article-content a:hover { color: var(--accent); text-decoration-color: currentColor; }

.ampersand-page .article-content > h2[id] { margin: 80px 0 28px; font-size: clamp(42px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.ampersand-page .article-content > h3.eval-section-heading.eval-section-heading { margin: 64px 0 16px; font: 400 31px/1.2 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.ampersand-page .article-content > h3#behaviors { margin-bottom: 12px; }
/* Figure titles take the serif too, one size below the section headings. */
.ampersand-page .article-content .sim-example > h3.eval-section-heading,
.persimmon-page .eval-skill-card h4.eval-skill-name.eval-skill-name { font: 400 27px/1.2 var(--serif); letter-spacing: -.015em; }
/* "SF Mono" is not installed for browsers on most Macs, so name the system monospace first. */
.ampersand-page .article-content code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }

/* Figure boxes: lifted cards whose content lines up with the reading column on wide screens. */
.ampersand-page :is(.eval-skills-picker, .sim-examples) { border-color: var(--card-line); border-radius: 20px; background: var(--card); box-shadow: var(--card-shadow); }
.ampersand-page .article-content > :is(.code-tabs, .build-chat) { border-color: var(--card-line); border-radius: 16px; box-shadow: var(--card-shadow); }
@media screen and (min-width: 1120px) {
  .ampersand-page :is(.eval-skills-picker, .sim-examples) { margin-inline: -28px; padding: 28px 28px 32px; }
}

/* Tabs: one segmented control in every tabbed box; the selected tab lifts out as a chip. On narrow screens it scrolls rather than wrapping into a lumpy pill. */
.ampersand-page :is(.eval-skill-tabs, .code-tabs-bar) { display: flex; flex-wrap: nowrap; gap: 2px; width: fit-content; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--card-line); border-radius: 999px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.ampersand-page :is(.eval-skill-tabs, .code-tabs-bar)::-webkit-scrollbar { display: none; }
.ampersand-page :is(.eval-skill-tabs [role="tab"], .code-tabs-bar button) { flex: none; margin: 0; padding: 7px 16px; border: 0; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.ampersand-page :is(.eval-skill-tabs [role="tab"], .code-tabs-bar button):hover { color: var(--ink); }
.ampersand-page :is(.eval-skill-tabs [role="tab"], .code-tabs-bar button)[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(47 38 56 / .1), 0 0 0 1px rgb(47 38 56 / .05); }
.ampersand-page :is(.eval-skill-tabs [role="tab"], .code-tabs-bar button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Headline chart: the same card as the other figures, rounded bars, and Ampersand's row as a soft pill. */
.ampersand-page .eval-explorer { padding: 20px 18px 22px; border: 1px solid var(--card-line); border-radius: 20px; background: var(--card); box-shadow: var(--card-shadow); }
.ampersand-page .eval-bar-row .eval-bar { border-radius: 0 5px 5px 0; }
.ampersand-page .eval-cost-goal-track > .eval-cost-bar { border-radius: 5px 0 0 5px; background: #9a8ac9; }
.ampersand-page :is(.eval-cost-label, .eval-zero-axis-labels span:first-child) { color: #7d6db8; }
.ampersand-page .eval-life-row.featured::before { background: color-mix(in srgb, #7561ae 9%, transparent); outline: 0; border-radius: 12px; }
.ampersand-page .eval-life-row[data-provider="humansand"] { --provider-color: #c79a57; }
.ampersand-page .eval-bar-ci { opacity: .45; }
.ampersand-page .eval-plot-backdrop { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
/* Slider: hairline track filled up to the value (evaluations.js sets --fill), with a white thumb. */
.ampersand-page .eval-attention input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
.ampersand-page .eval-attention input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #7561ae 0 var(--fill, 50%), color-mix(in srgb, var(--ink) 12%, transparent) var(--fill, 50%)); }
.ampersand-page .eval-attention input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #7561ae, 0 2px 6px rgb(47 38 56 / .25); }
.ampersand-page .eval-attention input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ampersand-page .eval-attention input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #7561ae; }
.ampersand-page .eval-attention input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #7561ae, 0 2px 6px rgb(47 38 56 / .25); }
.ampersand-page .eval-attention input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
@media screen and (min-width: 1120px) {
  .ampersand-page .eval-explorer { margin-inline: -28px; padding: 24px 28px 26px; }
}

/* Simulation timeline: the selected moment sits on a soft tinted sheet instead of a box with a coloured top bar. */
.ampersand-page .amp-tl .tl-card { border: 0; border-radius: 16px; background: color-mix(in srgb, var(--arm) 6%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--arm) 16%, transparent); }
@media (min-width: 701px) {
  .ampersand-page .amp-tl .tl-card { padding: 22px 24px 20px; }
  .ampersand-page .amp-tl .tl-card-headline { font-size: 25px; }
}
.ampersand-page .amp-tl .tl-step { background: var(--card); box-shadow: 0 1px 2px rgb(47 38 56 / .08); }
.ampersand-page .amp-tl .tl-dot.is-selected { box-shadow: 0 0 0 5px color-mix(in srgb, var(--arm) 18%, transparent); }

/* Teamwork dimensions: the selected filter is filled, so the current view is unmistakable. */
.ampersand-page .teamwork-tabs [role="tab"] { padding: 5px 11px; border-color: var(--card-line); background: var(--card); color: var(--muted); font-weight: 500; }
.ampersand-page .teamwork-tabs [role="tab"][aria-selected="true"] { border-color: #6a4d94; background: #6a4d94; color: #fff; }

/* Conversations read as conversations: people on the left, Ampersand on the right in violet; bubbles fit their message. */
.ampersand-page .article-content > .build-chat { gap: 10px; padding: 18px; }
.ampersand-page .article-content .persimmon-examples .build-chat { gap: 10px; box-shadow: none; }
.ampersand-page .build-chat-msg { justify-self: start; justify-items: start; width: fit-content; max-width: 84%; padding: 9px 14px 10px; border-radius: 18px 18px 18px 6px; background: var(--chat-person); }
.ampersand-page :is(.build-chat-msg.is-amp, .persimmon-examples .build-chat-msg.is-amp) { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--chat-amp); }
.ampersand-page .build-chat-msg.is-focus { background: var(--chat-focus); }
.ampersand-page .build-chat-msg b { font-size: 12px; }
/* A silent turn is a choice, so it gets a small dashed tag rather than an aside. */
.ampersand-page .build-chat-pass { display: table; margin: 6px 0 0; padding: 2px 9px; border: 1px dashed color-mix(in srgb, #7561ae 40%, transparent); border-radius: 999px; color: var(--accent); font-size: 11px; font-style: normal; white-space: nowrap; }
.ampersand-page .build-chat-pass::before { content: none; }

/* Code on a deep plum sheet with pastel tokens, in both themes. */
.ampersand-page .article-content .code-tabs { --code-bg: #221b2b; --code-key: #d4b8f0; --code-str: #f1c48f; --code-arg: #9fd8c3; border-color: #221b2b; background: var(--code-bg); }
.ampersand-page .code-tabs .code-tabs-bar { margin: 12px 0 0 12px; border-color: #ffffff1a; background: #ffffff0a; }
.ampersand-page .code-tabs .code-tabs-bar button { color: #b8adc4; }
.ampersand-page .code-tabs .code-tabs-bar button:hover { color: #fff; }
.ampersand-page .code-tabs .code-tabs-bar button[aria-selected="true"] { background: #ffffff1f; color: #fff; box-shadow: none; }
.ampersand-page .article-content .code-tabs pre.code-block { padding: 20px 22px 22px; color: #ece6f2; font-size: 13.5px; }
.ampersand-page .article-content .code-tabs .tok-punct { color: #8f839c; }

/* Next steps as buttons; the separators stay in the markup for readers without CSS. */
.ampersand-page .article-content .build-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: transparent; font-size: 0; }
.ampersand-page .article-content .build-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--card-line); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 14px/1 var(--sans); text-decoration: none; box-shadow: 0 1px 2px rgb(47 38 56 / .05); transition: color .15s ease, background-color .15s ease; }
.ampersand-page .article-content .build-links a:first-child { border-color: var(--hero-ink); background: var(--hero-ink); color: var(--hero-paper); }
.ampersand-page .article-content .build-links a:hover { color: var(--accent); }
.ampersand-page .article-content .build-links a:first-child:hover { background: color-mix(in srgb, var(--hero-ink) 88%, var(--hero-paper)); color: var(--hero-paper); }

/* Display equations on a faint sheet, so they read as figures. */
.ampersand-page .math-display { margin: 6px 0 28px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, #7561ae 5%, var(--card)); box-shadow: inset 0 0 0 1px var(--card-line); }
.ampersand-page p + .math-display { margin-top: -4px; }

/* Contents rail: a thin line with a violet tick at the current section, no boxes. */
@media screen and (min-width: 1120px) {
  body.persimmon-page .article-rail .article-toc ol { border-left: 1px solid var(--card-line); padding-left: 0; }
  body.persimmon-page .article-rail .article-toc a { margin-left: -1px; padding: 6px 0 6px 16px; border-left: 0; border-radius: 0; color: var(--muted); }
  body.persimmon-page .article-rail .article-toc a:hover { background: none; color: var(--ink); }
  body.persimmon-page .article-rail .article-toc a.active { background: none; color: var(--ink); -webkit-text-stroke: 0; box-shadow: inset 2px 0 0 #7561ae; }
}

@media (prefers-reduced-motion: reduce) {
  .ampersand-page :is(.eval-skill-tabs [role="tab"], .code-tabs-bar button, .build-links a) { transition: none; }
}

/* Closing call to action: one card, clickable as a whole, with the painted mark. */
.model-card-cta { position: relative; margin: 128px 0 0; padding: 36px 220px 38px 40px; border-radius: 24px; background: url("assets/ampersand-logo-pigments.svg") right 40px center / 150px no-repeat, var(--hero-wash); box-shadow: inset 0 0 0 1px rgb(61 44 75 / .06); color: var(--hero-ink); transition: box-shadow .2s ease, transform .2s ease; }
.model-card-cta:has(a:hover, a:focus-visible) { box-shadow: inset 0 0 0 1px rgb(61 44 75 / .1), 0 22px 44px -28px rgb(61 44 75 / .45); transform: translateY(-2px); }
.ampersand-page .article-content .model-card-cta p.model-card-cta-label { margin: 0 0 10px; padding: 0; border: 0; color: inherit; font: 500 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.ampersand-page .article-content .model-card-cta h2.model-card-cta-title { margin: 0 0 10px; font-size: 36px; font-weight: 400; letter-spacing: -.02em; }
.ampersand-page .article-content .model-card-cta-title a { color: inherit; text-decoration: none; }
.model-card-cta-title a::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.model-card-cta-title a:focus-visible { outline: none; }
.model-card-cta:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.model-card-cta-title::after { content: '→' / ''; display: inline-block; margin-left: .35em; font-family: var(--sans); font-size: .7em; opacity: .6; transition: transform .2s ease; }
.model-card-cta:has(a:hover) .model-card-cta-title::after { transform: translateX(4px); }
.ampersand-page .article-content .model-card-cta .model-card-cta-description { margin: 0; color: inherit; opacity: .78; }
@media (max-width: 700px) {
  .model-card-cta { margin-top: 96px; padding: 28px 24px 30px; background: var(--hero-wash); }
  .ampersand-page .article-content .model-card-cta h2.model-card-cta-title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .model-card-cta, .model-card-cta-title::after { transition: none; }
}

@media (max-width: 700px) {
  .ampersand-page .article-content > :is(p, ul, ol):not([class]),
  .ampersand-page .article-content > p.eval-section-intro { font-size: 19px; }
  .ampersand-page .article-content > p#introduction { font-size: 22px; }
  .ampersand-page .article-content > h2[id] { margin-top: 64px; }
  .ampersand-page .article-content > h3.eval-section-heading.eval-section-heading { margin-top: 52px; font-size: 27px; }
}

@media print {
  .ampersand-page .hero-art { border-radius: 0; box-shadow: none; }
  .ampersand-page .hero-art::after { content: none; }
  .ampersand-page :is(.eval-skills-picker, .sim-examples), .ampersand-page .article-content :is(.code-tabs, .build-chat) { box-shadow: none; }
}
/* The closing section heading ends in the logo's ampersand, filled with the pigment gradient ("You&"); the other headings stay plain. */
.ampersand-page .article-content > h2#access::after { content: ''; display: inline-block; width: .65em; height: .69em; margin-left: .06em; background: var(--pigment); -webkit-mask: url("assets/logo-ampersand.png") center / contain no-repeat; mask: url("assets/logo-ampersand.png") center / contain no-repeat; }
/* Collaboration Over Time chart, left-aligned: bar from 0 to the overall score, then the weighted cost as a hatched end (same purple as before), up to total goal progress. */
.ampersand-page .eval-life-row .eval-cost-goal-track > .eval-bar { left: 0; border-radius: 0; }
.ampersand-page .eval-life-row .eval-cost-goal-track > .eval-cost-bar { right: auto; border-radius: 0 5px 5px 0; background: repeating-linear-gradient(135deg, #9a8ac9 0 2px, #9a8ac93d 2px 5px); }
.ampersand-page .eval-life-row .eval-goal-label { transform: translateX(-50%); font-weight: 600; }
.ampersand-page .eval-life-row.featured .eval-goal-label { color: #7d6db8; }
.eval-goal-total { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eval-life-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px calc(var(--plot-label) + var(--plot-gap)); color: var(--muted); font: 12px/1.4 var(--sans); }
.eval-life-legend span { display: inline-flex; align-items: center; gap: 6px; }
.eval-life-legend i { display: inline-block; width: 16px; height: 9px; border-radius: 2px; }
.eval-life-legend .lg-overall { background: #d2b385; }
.eval-life-legend .lg-cost { background: repeating-linear-gradient(135deg, #9a8ac9 0 2px, #9a8ac93d 2px 5px); }
.eval-life-legend .lg-marker { width: 2px; height: 13px; border-radius: 0; background: var(--ink); }
@media (max-width: 700px) { .eval-life-legend { margin-left: 0; } }
