@font-face {
  font-family: "Hadassah";
  src: url("fonts/HadassahMF.subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hadassah";
  src: url("fonts/HadassahMF-Italic.subset.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hadassah";
  src: url("fonts/Hadassah-Bold-v2.ttf") format("truetype");
  /* this file has no usable Latin letters, so only Hebrew, digits and basic punctuation come from it */
  unicode-range: U+0020-0021, U+0028-0029, U+002C-003B, U+003F, U+0030-0039, U+0590-05FF;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@property --paper { syntax: "<color>"; inherits: true; initial-value: #121213; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #e4dfd1; }
@property --link { syntax: "<color>"; inherits: true; initial-value: #f6f1e3; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #9d9b96; }
@property --ghost { syntax: "<color>"; inherits: true; initial-value: rgba(222, 221, 216, 0.08); }
@property --cta-bg { syntax: "<color>"; inherits: true; initial-value: #deddd8; }
@property --cta-ink { syntax: "<color>"; inherits: true; initial-value: #121213; }
@property --cta-hover { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

@font-face {
  font-family: "Sofia Pro";
  src: url("fonts/SofiaPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* bold English text uses Sofia Pro Medium */
@font-face {
  font-family: "Sofia Pro";
  src: url("fonts/SofiaPro-Medium.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #121213;
  --ink: #e4dfd1;
  --link: #f6f1e3;
  --muted: #9d9b96;
  --ghost: rgba(222, 221, 216, 0.08);
  --cta-bg: #deddd8;
  --cta-ink: #121213;
  --cta-hover: #ffffff;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fdfdfc;
  --ink: #292824;
  --link: #080808;
  --muted: #6f6c65;
  --ghost: rgba(41, 40, 36, 0.06);
  --cta-bg: #080808;
  --cta-ink: #fdfdfc;
  --cta-hover: #3a3934;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.75 "Hadassah", "Times New Roman", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font: inherit; color: var(--link); }
ul, ol { margin: 0; padding: 0; list-style: none; }

@media (hover: hover) {
  #theme:hover, .back:hover, .pager a:hover { background: var(--ghost); color: var(--link); }
  a:hover, h2 a:hover, footer a:hover { color: var(--link); }
  .cta:hover { background: var(--cta-hover); color: var(--cta-ink); }
}

/* header */
header > a { color: var(--link); white-space: nowrap; }
header h1 { white-space: nowrap; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding-top: 56px;
  margin-bottom: 64px;
}
#theme {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-end: -8px; /* keep the icon itself on the column edge */
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
#theme:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
#theme svg { display: block; }

/* article pages */
article h1 { margin-bottom: 4px; font-size: 1em; font-weight: 700; line-height: 1.75; }
article > time { display: block; color: var(--muted); font-size: 14px; font-style: italic; margin-bottom: 36px; }
.prose p, .prose ul { margin: 0 0 22px; }
.prose strong { color: var(--link); font-weight: 400; }
.prose ul li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; }
.prose ul li::before {
  content: "\2862";
  position: absolute;
  inset-inline-start: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  transform: translateY(-3px);
}
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--muted); opacity: .3; margin: 32px 0; }
.pager { margin-top: 56px; margin-bottom: 96px; color: var(--muted); font-size: 14px; }
.pager a {
  display: inline-flex;
  align-items: center;
  margin: 0 -10px;
  padding: 2px 10px;
  border-radius: 8px;
  color: var(--muted);
  transition: background-color .15s, color .15s;
}
.pager a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

section { margin-bottom: 64px; }
section > h2 {
  margin-bottom: 14px;
  font-weight: 700;
}
h2 .sep { color: var(--muted); padding: 0 6px; }
h2 a { color: var(--ink); }

p { margin: 0; }

/* syllabus: two sessions, one continuous 01-06 count; number column + content, same grid as the writing list */
.syllabus { counter-reset: m; }
.syllabus .session { margin-bottom: 18px; font-weight: 700; }
.syllabus .session > span:not(.w) { color: var(--muted); font-weight: 400; }
.syllabus ol { margin-bottom: 36px; }
.syllabus ol:last-child { margin-bottom: 0; }
.syllabus ol > li {
  counter-increment: m;
  display: grid;
  grid-template-columns: 56px 1fr;
  margin-bottom: 28px;
}
.syllabus ol > li::before {
  content: counter(m, decimal-leading-zero);
  color: var(--muted);
  font-size: 15px;
}
.syllabus ul { margin-top: 6px; }
.syllabus ul li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 4px;
}
.syllabus ul li::before {
  content: "\2862";
  position: absolute;
  inset-inline-start: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  transform: translateY(-3px);
}

/* syllabus item titles share the weight of the section headings */
.syllabus h3 { font-weight: 700; }

/* writing */
.year {
  display: grid;
  grid-template-columns: 56px 1fr;
}
.year > span { color: var(--muted); font-size: 14px; line-height: 1.75; }
.year li { margin-bottom: 14px; }
.year li a { display: block; line-height: 1.5; padding: 6px 0; margin: -6px 0; }
.year time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

footer a { display: inline-block; padding: 8px 0; margin: -8px 0; }
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-bottom: 96px;
  color: var(--muted);
  font-size: 14px;
}


.back {
  display: inline-flex;
  align-items: center;
  margin: 0 -10px 24px 0; /* keep the text itself on the column edge */
  padding: 2px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: background-color .15s, color .15s;
}
.back:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.hero { margin: 0 0 36px; }
.hero img { display: block; width: 100%; height: auto; border-radius: 12px; }

.actions { display: flex; align-items: center; gap: 12px; }
.cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 14px;
  transition: background-color .15s;
}
.cta:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.duration { margin-top: 14px; }

/* text link next to the signup button */
.org-link {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  transition: background-color .15s, color .15s;
}
@media (hover: hover) {
  .org-link:hover { background: var(--ghost); color: var(--link); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  header { padding-top: 32px; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
  section { margin-bottom: 52px; }
  .syllabus ol > li, .year { grid-template-columns: 36px 1fr; }
  /* 44px minimum touch targets */
  #theme { width: 44px; height: 44px; margin-inline-end: -12px; }
  .cta { height: 44px; padding: 0 18px; font-size: 15px; }
  .org-link { height: 44px; padding: 0 18px; font-size: 15px; }
  .back, .pager a { min-height: 44px; padding: 10px 12px; margin-inline: -12px; }
  .back { margin-bottom: 16px; }
}

/* organisations sub-page */
.org h1 { font-size: 1.4em; font-weight: 700; line-height: 1.4; margin-bottom: 18px; }
.org p { margin-bottom: 18px; }
.org .lead { color: var(--link); }
.org .cta { display: inline-flex; margin-top: 12px; }

/* theme toggle: icons cross-fade and turn the same way */
#theme { position: relative; }
#theme svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity .45s cubic-bezier(.4, 0, .2, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="light"] #theme .sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root:not([data-theme="light"]) #theme .moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root:not([data-theme="light"]) #theme .sun,
:root[data-theme="light"] #theme .moon { opacity: 1; transform: none; }

/* theme change: the colour tokens themselves animate on <html>,
   so every element follows one interpolated value in sync */
html.theme-fade {
  transition:
    --paper .6s cubic-bezier(.4, 0, .2, 1),
    --ink .6s cubic-bezier(.4, 0, .2, 1),
    --link .6s cubic-bezier(.4, 0, .2, 1),
    --muted .6s cubic-bezier(.4, 0, .2, 1),
    --ghost .6s cubic-bezier(.4, 0, .2, 1),
    --cta-bg .6s cubic-bezier(.4, 0, .2, 1),
    --cta-ink .6s cubic-bezier(.4, 0, .2, 1),
    --cta-hover .6s cubic-bezier(.4, 0, .2, 1);
}
/* element-level hover transitions would chase the moving tokens; pause them */
html.theme-fade body *:not(svg) { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.theme-fade, #theme svg { transition: none !important; }
}

/* organisations page: solution points */
.org .points li { position: relative; padding-inline-start: 22px; margin-bottom: 12px; }
.org .points li::before {
  content: "\2862";
  position: absolute;
  inset-inline-start: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  transform: translateY(-3px);
}
.org .points strong { display: block; font-weight: 700; color: var(--link); }
.org h2 { margin: 32px 0 14px; font-weight: 700; color: var(--link); }

/* organisations page: workshop / implementation switch */
.segment {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--ghost);
  margin-bottom: 28px;
}
.seg-btn {
  appearance: none;
  border: 0;
  height: 36px;
  padding: 0 18px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg-btn[aria-selected="true"] {
  background: var(--paper);
  color: var(--link);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
@media (hover: hover) {
  .seg-btn:hover { color: var(--link); }
}
.seg-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (max-width: 480px) {
  .seg-btn { height: 44px; padding: 0 22px; }
}

/* phone: 44px tap targets for the title link and the writing list */
@media (max-width: 480px) {
  header > a { display: inline-flex; align-items: center; min-height: 44px; }
  .year li a { padding: 10px 0; margin: -10px 0; }
  footer a { padding: 11px 0; margin: -11px 0; }
}

/* homepage and organisations page: English text in Sofia Pro, Hebrew stays Hadassah */
body.sofia { font-family: "Hadassah", "Sofia Pro", "Times New Roman", Georgia, serif; }

/* inline links in article text get a 44px tap area without changing the line */
.prose a { display: inline-block; padding: 12px 0; margin: -12px 0; }

.org .process { margin-top: 32px; }

/* implementation steps: numbered 01-08 like the syllabus */
.org .steps { counter-reset: s; }
.org .steps li { counter-increment: s; padding-inline-start: 36px; }
.org .steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: inherit;
  font-size: 14px;
  transform: none;
}
.org p strong { color: var(--link); font-weight: 700; }

/* legal page */
.prose h2 { margin: 36px 0 12px; font-weight: 700; color: var(--link); }
.prose h2:first-child { margin-top: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* legal link sits at the left edge of the footer */
.footer-legal { margin-inline-start: auto; }

/* homepage disclaimer: who the workshop is for */
.disclaimer { margin-top: 24px; }
.disclaimer p + p { margin-top: 10px; }
.disclaimer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }

/* word-by-word text reveal (motion.js) */
.w { position: relative; }
/* hide text until it has been split, so it never flashes in unanimated;
   if the script fails, show it anyway after 2.5s */
.motion:not(.motion-ready) main :is(h1, h2, h3, h4, p, li, article > time) {
  visibility: hidden;
  animation: motion-fallback 0s 2.5s forwards;
}
@keyframes motion-fallback { to { visibility: visible; } }

/* logo strip: slow marquee, grey logos, faded edges */
.logos {
  margin: 56px 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 45s linear infinite;
}
.logos-track li { flex: none; margin-right: 52px; }
.logos-track img { display: block; width: auto; opacity: .55; }
:root:not([data-theme="light"]) .logos-track img { filter: invert(1); }
@keyframes logos-scroll { to { transform: translateX(-50%); } }
/* phones: the rail runs edge to edge, so logos are cut at the screen edge instead of mid-column, with no fade */
@media (max-width: 760px) {
  .logos { margin: 48px -16px; -webkit-mask-image: none; mask-image: none; }
  .logos-track li { margin-right: 40px; }
  .logos-track img { height: 20px; width: auto; }
}
/* reduced motion: no rail, so the logos sit in an even grid of equal cells instead of wrapping unevenly */
@media (prefers-reduced-motion: reduce) {
  .logos { margin: 48px 0; }
  .logos-track { animation: none; width: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 28px 16px; justify-items: center; }
  .logos-track li { margin: 0; height: 36px; display: flex; align-items: center; justify-content: center; }
  .logos-track li[aria-hidden="true"] { display: none; }
  .logos-track img { height: 22px; width: auto; max-width: 100%; }
}

/* homepage: about copy and syllabus intro */
.about p + p { margin-top: 16px; }
.about strong, .syllabus-intro strong, .syllabus li strong { color: var(--link); font-weight: 700; }
.about a, .bullets a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.syllabus-intro { margin-bottom: 28px; }

/* implementation process: five outlined boxes touching in a row, stacked on phones */
.flow-steps {
  display: flex;
  align-items: stretch;
  margin: 8px 0 28px;
  counter-reset: flow;
  direction: ltr;
}
.flow-steps li {
  counter-increment: flow;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 4px 11px;
  border: 1px solid var(--line-soft, rgba(128, 126, 120, .42));
  text-align: left;
}
.flow-steps li + li { margin-inline-start: -1px; }
.flow-steps li:first-child { border-radius: 8px 0 0 8px; }
.flow-steps li:last-child { border-radius: 0 8px 8px 0; }
.flow-steps li::before {
  content: "0" counter(flow);
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}
.flow-name { display: block; font-size: 14px; line-height: 1.35; color: var(--link); hyphens: auto; }
@media (max-width: 480px) {
  .flow-steps { flex-direction: column; }
  .flow-steps li { flex: none; padding: 12px 14px; }
  .flow-steps li + li { margin-inline-start: 0; margin-top: -1px; }
  .flow-steps li:first-child { border-radius: 8px 8px 0 0; }
  .flow-steps li:last-child { border-radius: 0 0 8px 8px; }
  .flow-steps li::before { display: inline; margin: 0 10px 0 0; }
  .flow-name { display: inline; }
}

/* ספרינט: Foundation + Your Context, then the sprint, then the output */
.org h2.en, .org .en-line { direction: ltr; text-align: right; unicode-bidi: isolate; }
.dgm {
  --line: rgba(128, 126, 120, .42);
  --w: min(720px, calc(100vw - 48px));
  --gap: 28px;
  --vv-draw-dur: 700ms;
  --vv-stagger: 26ms;
  --vv-tilt-max: 8deg;
  --vv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* wider than the text column, centred on it */
  width: var(--w);
  margin: 24px calc((100% - var(--w)) / 2) 40px;
}
.dgm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.dgm-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 230px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  transition: border-color 200ms ease;
}
.dgm-tile:hover { border-color: var(--muted); }
/* the operator between two tiles: + joins the inputs, arrows lead to the sprint and the output */
.dgm-op {
  position: absolute;
  top: 50%;
  left: calc(var(--gap) / -2 - 1px);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.dgm-text .layer-kicker { margin-bottom: 4px; }
/* the two inputs side by side, + between them; the sprint and the output each take a full-width row below */
.dgm-tile:nth-child(n+3) { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 24px; min-height: 0; }
.dgm-tile:nth-child(n+3) .vv { width: 96px; flex: none; }
.dgm-tile:nth-child(n+3) .dgm-op { top: calc(var(--gap) / -2 - 1px); left: 50%; }
.dgm-tile:nth-child(n+3) .dgm-op span { rotate: 90deg; }
.dgm-text .layer-title { margin: 0; }
.layer-kicker { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.layer-title { margin: 0 0 12px; color: var(--link); font-weight: 700; }

/* isometric marks: draw on hover, cursor tilt, breathing core, ghosted back edges */
.vv { display: block; width: 124px; height: auto; overflow: visible; color: var(--link); }
.vv path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.vv [data-part="hidden"] { opacity: .3; }
@keyframes vv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vv-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
.motion .vv {
  transform: perspective(900px)
    rotateX(calc(var(--my, 0) * var(--vv-tilt-max) * -1))
    rotateY(calc(var(--mx, 0) * var(--vv-tilt-max)));
  transition: transform 180ms var(--vv-ease);
  will-change: transform;
}
.motion .vv [data-part="core"] { animation: vv-breathe 2.6s ease-in-out infinite; }
.motion .dgm-tile:hover .vv path { animation: vv-draw var(--vv-draw-dur) var(--vv-ease) both; animation-delay: calc(var(--i) * var(--vv-stagger)); }
/* first view: tiles draw in reading order, input to output */
.motion .dgm-pending .vv path { stroke-dashoffset: 1; }
.motion .dgm-drawing .vv path {
  animation: vv-draw 900ms var(--vv-ease) both;
  animation-delay: calc(var(--t) * 380ms + var(--i) * var(--vv-stagger));
}
.motion .dgm-pending .dgm-op { opacity: 0; }
.motion .dgm-drawing .dgm-op { opacity: 1; transition: opacity 400ms ease calc(var(--t) * 380ms); }

@media (max-width: 760px) {
  .dgm { width: auto; margin-inline: 0; }
  .dgm-tiles { grid-template-columns: minmax(0, 1fr); }
  .dgm-tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; min-height: 0; padding: 16px; }
  .vv { width: 72px; flex: none; }
  .dgm-op { top: calc(var(--gap) / -2 - 1px); left: 50%; }
  .dgm-op.is-arrow span { rotate: 90deg; }
  .dgm-tile:nth-child(n+3) { gap: 18px; }
  .dgm-tile:nth-child(n+3) .vv { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .vv [data-part="core"], .dgm-tile:hover .vv path { animation: none; }
}

#panel-sprint .cta { margin-bottom: 56px; }
.cta[hidden] { display: none !important; }

/* ---- yair-works: design harness workshop (Hebrew, RTL) ---- */
/* the six parts of the harness read right to left, like the text */
.flow-steps.loop { direction: rtl; }
.flow-steps.loop li { text-align: right; padding-inline: 10px; }
.flow-steps.loop li:first-child { border-radius: 0 8px 8px 0; }
.flow-steps.loop li:last-child { border-radius: 8px 0 0 8px; }
@media (max-width: 480px) {
  .flow-steps.loop li:first-child { border-radius: 8px 8px 0 0; }
  .flow-steps.loop li:last-child { border-radius: 0 0 8px 8px; }
  .flow-steps.loop li::before { margin: 0 0 0 10px; }
}
/* the four rule tiers sit one step in, under the line that introduces them */
.syllabus ul li.tier { margin-inline-start: 22px; }
/* the portfolio's menu: the current page reads in the ink colour */
.site-menu a[aria-current] { color: var(--link); }
/* bullet lists: bold names read in the ink colour */
.bullets strong { color: var(--link); font-weight: 700; }
.bullets { margin-top: 10px; }
.bullets li { position: relative; padding-inline-start: 22px; margin-bottom: 6px; }
.bullets li::before {
  content: "\2862";
  position: absolute;
  inset-inline-start: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  transform: translateY(-3px);
}
/* each session ends on what it produces, in an outlined box under its topics */
.syllabus .deliverable {
  margin: -8px 0 44px;
  padding: 12px 16px;
  border: 1px solid rgba(128, 126, 120, .42);
  border-radius: 8px;
  color: var(--link);
}
.syllabus .deliverable:last-child { margin-bottom: 0; }
.syllabus .deliverable .label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
/* a short definition set in a box inside the about copy: the same box as the syllabus's
   between-sessions and end-of-workshop notes (thin border, 8px corners, a small muted label) */
.about .callout {
  margin: 4px 0 24px;
  padding: 12px 16px;
  border: 1px solid rgba(128, 126, 120, .42);
  border-radius: 8px;
  color: var(--link);
}
.about .callout .label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.about .callout p + p { margin-top: 12px; }
.about .callout .flow-steps { margin: 12px 0 0; }
@media (max-width: 480px) { .about .callout .flow-steps.loop li { padding-inline: 4px; } }
/* a bullet list inside the about copy */
.about .bullets { margin: 12px 0 16px; }
/* the header stays on screen once scrolled, so the sign-up button is always in reach;
   the negative top lets its upper padding scroll away first */
body > .wrap > header { position: sticky; top: -40px; z-index: 10; padding-bottom: 16px; margin-bottom: 48px; background: var(--paper); }
@media (max-width: 480px) {
  body > .wrap > header { top: -20px; margin-bottom: 32px; }
}
/* the sign-up button wears the yellow of the poster */
header .cta { background: #fdf795; color: #121213; }
@media (hover: hover) {
  header .cta:hover { background: #fffbc6; color: #121213; }
}
/* the header now holds only the sign-up button, at the left edge */
body > .wrap > header { justify-content: flex-end; }
/* the big title: as wide as the poster below it */
.title-wrap { position: relative; margin: 0 0 56px; }
.title {
  display: block;
  font-size: min(101px, calc((100vw - 40px) * 0.21));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-align: right;
  color: var(--link);
}
.title-fx { position: absolute; pointer-events: none; }
/* the sound switch beside the sign-up button */
.sound-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.sound-btn svg { position: absolute; inset: 0; margin: auto; }
.sound-btn[aria-pressed="true"] .off, .sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (hover: hover) { .sound-btn:hover { background: var(--ghost); } }
@media (max-width: 480px) { .sound-btn { width: 44px; height: 44px; } }
/* the title's raster face */
@font-face {
  font-family: "Raster Grotesk";
  src: url("fonts/FKRasterGroteskCompactTrial-Blended.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.title { font-family: "Raster Grotesk", "Sofia Pro", sans-serif; letter-spacing: 0; }
/* the letters' ink runs exactly the poster's width: "Design Evals" inks 4.7083em wide,
   with 0.0167em of side bearing at each end, which the negative margins pull past the edges */
.title-wrap { container-type: inline-size; }
@supports (width: 1cqi) {
  .title { font-size: calc(100cqi / 4.7083); margin-inline: -0.0167em; }
}
/* the letters fade from white into the poster's yellow towards the bottom; title-fx.js
   paints its dots with the same fill (FADE_FROM and FADE_TO there match the two stops).
   The fill reaches only as far as the box, so the box runs 0.15em lower to take in the g's tail */
.title {
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  background: linear-gradient(180deg, currentColor 40%, #fdf795 87%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* tweets, as minimal cards in X's dark style; each one links to the original post */
.tweets { display: grid; gap: 16px; }
.tweet {
  display: block;
  padding: 16px 20px 14px;
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  color: #e7e9ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
@media (hover: hover) { .tweet:hover { background: #080808; border-color: #536471; } }
/* the date is the link; it stretches over the whole card so the card stays one click target */
.tweet { position: relative; }
.tweet-date { text-decoration: none; }
.tweet-date::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tweet-date:focus-visible { outline: none; }
.tweet:has(.tweet-date:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
/* long tweets start folded to five lines, fading out, with "Show more" above the link layer */
.tweet-body { font-size: 17px; line-height: 1.4; }
.tweet.is-folded .tweet-body {
  max-height: 7em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
}
.tweet-more {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: #1d9bf0;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.tweet-more[hidden] { display: none; }
@media (hover: hover) { .tweet-more:hover { text-decoration: underline; } }
.tweet-more:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.tweet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tweet-head img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.tweet-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; font-size: 15px; }
.tweet-name { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #e7e9ea; }
.tweet-handle { color: #71767b; }
.tweet-x { margin-left: auto; flex: none; color: #e7e9ea; }
.tweet-text { display: block; font-size: 17px; line-height: 1.4; }
.tweet-mention { color: #1d9bf0; }
.tweet-date { display: block; margin-top: 12px; color: #71767b; font-size: 15px; }
/* a quoted post sits in a smaller box inside the card */
.tweet-quote { display: block; margin-top: 12px; padding: 12px; border: 1px solid #2f3336; border-radius: 12px; }
.tweet-quote-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 15px; line-height: 1.25; }
.tweet-quote-head img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.tweet-quote-text { display: block; font-size: 15px; line-height: 1.4; }
/* the tweets list starts with only the first tweet; a text button under it opens the rest */
.tweets.is-collapsed .tweet:nth-child(n+2) { display: none; }
.tweets-toggle {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
  cursor: pointer;
}
.tweets-toggle[hidden] { display: none; }
.tweets-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
/* hook: one promise line under the poster */
/* the banner keeps the gap the tagline under it used to hold */
.hero { margin-bottom: 64px; }
@media (max-width: 480px) { .hero { margin-bottom: 48px; } }
/* proof: examples (the Kela deck, the Gen UI reel), each a linked image with a caption */
.proof-card { display: block; margin-bottom: 16px; border-radius: 12px; }
.proof-card img, .proof-card video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(128, 126, 120, .42); transition: border-color .15s; }
@media (hover: hover) { .proof-card:hover :is(img, video) { border-color: var(--muted); } }
.proof-card:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.proof .about + .proof-card { margin-top: 40px; }
/* folds (examples, glossary) start closed behind a button; it opens them below like a dropdown */
.fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(128, 126, 120, .42);
  border-radius: 999px;
  color: var(--link);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color .15s, border-color .15s;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .chev { flex: none; transition: transform .2s; }
.fold[open] > summary .chev { transform: rotate(180deg); }
@media (hover: hover) { .fold > summary:hover { background: var(--ghost); border-color: var(--muted); } }
.fold > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.fold-body { margin-top: 24px; }
/* opening must not scroll the page: the browser would otherwise keep the sign-up block still and push the button off screen */
.proof ~ section, .glossary ~ section, .site-menu { overflow-anchor: none; }
/* glossary: topic groups of English terms, each with a one-line Hebrew meaning, and a search box on top */
.gl-search {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(128, 126, 120, .42);
  border-radius: 10px;
  background: transparent;
  color: var(--link);
  font: inherit;
}
.gl-search::placeholder { color: var(--muted); }
.gl-search:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* search and topic chips stay under the sticky header while the glossary is open */
.gl-bar { position: sticky; top: 64px; z-index: 5; padding: 8px 0 12px; background: var(--paper); }
@media (max-width: 480px) { .gl-bar { top: 72px; } }
.gl-chips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
/* the far edge fades only while more chips are hidden past it */
.gl-chips.has-more {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
}
.gl-chips::-webkit-scrollbar { display: none; }
/* room inside the scrolling row for the chips' focus ring, and keyboard scrolling stops clear of the fade */
.gl-chips { padding: 4px; margin-inline: -4px; margin-top: 6px; scroll-padding-inline: 36px; }
.gl-chip {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(128, 126, 120, .42);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.gl-chip[aria-pressed="true"] { background: #fdf795; border-color: #fdf795; color: #121213; }
@media (hover: hover) { .gl-chip[aria-pressed="false"]:hover { color: var(--link); border-color: var(--muted); } }
.gl-chip:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.gl-empty { margin-top: 20px; color: var(--muted); }
.gl-group { margin-top: 32px; }
.gl-group h3 { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 400; }
.glossary dl { margin: 0; }
.glossary dl > div { margin-bottom: 16px; }
.glossary dl > div:last-child { margin-bottom: 0; }
.glossary dt { color: var(--link); font-weight: 700; }
.glossary dd { margin: 2px 0 0; }
/* search matches are marked in the sign-up button's yellow */
.glossary mark { background: #fdf795; color: #121213; border-radius: 2px; }
/* the two fold buttons sit close together, as one group */
section.proof { margin-bottom: 20px; }
/* a divider closes the examples and glossary before the sign-up details */
section.glossary { margin-bottom: 48px; }
section.signup { padding-top: 48px; border-top: 1px solid rgba(128, 126, 120, .42); }
/* closing call to action: the same yellow button as the header, larger */
.signup .cta { margin-top: 20px; height: 44px; padding: 0 22px; font-size: 16px; background: #fdf795; color: #121213; }
@media (hover: hover) { .signup .cta:hover { background: #fffbc6; color: #121213; } }

/* selected text uses the same yellow as the sign-up button */
::selection { background: #fdf795; color: #121213; }

/* phones: comfortable tap sizes for the fold buttons, search, chips and tweets link,
   and the footer menu on one line */
@media (max-width: 480px) {
  .fold > summary { height: 44px; }
  .gl-search { height: 44px; }
  .gl-chip { height: 36px; }
  .tweets-toggle { padding: 7px 0; margin-top: 7px; }
  .site-menu { justify-content: space-between; column-gap: 8px; }
}

/* the footer's links sit in a nav landmark that doesn't change the layout */
.site-menu > nav { display: contents; }
/* inline links get the same visible focus ring as the buttons */
main a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

/* terms page */
.terms { padding-top: 48px; margin-bottom: 64px; }
.terms h1 { font-size: 28px; line-height: 1.25; font-weight: 700; }
.terms-meta { margin: 8px 0 40px; color: var(--muted); font-size: 14px; }

/* the two session dates as a small 2x2 table: day and date, then the time */
.schedule { width: 100%; margin: 10px 0 16px; border: 1px solid rgba(128, 126, 120, .42); border-radius: 12px; border-collapse: separate; border-spacing: 0; }
.schedule td { padding: 12px 16px; text-align: start; }
.schedule tr + tr td { border-top: 1px solid rgba(128, 126, 120, .42); }
.schedule td:first-child { color: var(--link); }
.schedule td:last-child { color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the loop: six steps in one row, right to left, on every width */
.flow-steps.loop li { padding: 12px 10px 11px; }
.flow-steps.loop .flow-name { font-size: 16px; font-weight: 700; }
@media (max-width: 480px) {
  .flow-steps.loop { flex-direction: row; }
  .flow-steps.loop li { flex: 1 1 0; padding: 10px 6px; }
  .flow-steps.loop li + li { margin-top: 0; margin-inline-start: -1px; }
  .flow-steps.loop li:first-child { border-radius: 0 8px 8px 0; }
  .flow-steps.loop li:last-child { border-radius: 8px 0 0 8px; }
  .flow-steps.loop li::before { display: block; margin: 0 0 6px; }
  .flow-steps.loop .flow-name { display: block; font-size: 14px; }
}

/* who's teaching */
/* the photo: a square around the face, faded like an old print (warm cast, lifted blacks, soft vignette, grain) */
.bio-photo { position: relative; margin: 0 0 24px; max-width: 280px; aspect-ratio: 1; overflow: hidden; border-radius: 16px; }
.bio-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.4) saturate(.7) contrast(.84) brightness(1.08); }
.bio-photo::before, .bio-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.bio-photo::before {
  background:
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(46, 28, 12, .5) 100%),
    linear-gradient(160deg, rgba(255, 214, 150, .16), rgba(120, 160, 170, .1));
}
.bio-photo::after {
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bio .about a { color: var(--link); }

/* FAQ, folded like the glossary */
section.glossary { margin-bottom: 20px; }
section.faq { margin-bottom: 48px; }
.faq dl { margin: 0; }
.faq dl > div { margin-bottom: 20px; }
.faq dl > div:last-child { margin-bottom: 0; }
.faq dt { color: var(--link); font-weight: 700; }
.faq dd { margin: 4px 0 0; }
.faq dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }

/* the companies behind the bio: a static row of grey logos */
.clients { margin-top: 32px; }
.clients-label { color: var(--muted); font-size: 14px; }
.clients ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 16px; margin-top: 14px; }
.clients img { display: block; width: auto; opacity: .55; }
/* a small grey dot between the logos */
.clients li.dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }
:root:not([data-theme="light"]) .clients img { filter: invert(1); }
@media (max-width: 480px) { .clients ul { gap: 16px 8px; zoom: .85; } }

/* an open fold gets more room before the closed fold buttons below it */
section.proof:has(> .fold[open]), section.glossary:has(> .fold[open]) { margin-bottom: 64px; }

/* header links to the main sections, at the right; the sign-up button keeps the left edge.
   Phones show only the button, there is no room for both */
.jump { display: flex; gap: 18px; font-size: 14px; }
.jump a { color: var(--muted); padding: 6px 0; white-space: nowrap; }
@media (hover: hover) { .jump a:hover { color: var(--link); } }
.jump a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
body > .wrap > header .actions { margin-inline-start: auto; }
@media (max-width: 480px) { .jump { display: none; } }
/* a jumped-to section lands below the sticky header, not under it */
main > section[id] { scroll-margin-top: 88px; }

/* ---- CD player (ported from Gen UI's CD Player): under the poster, one disc already spinning ---- */
@font-face { font-family: "Gochi Hand"; src: url("/workshop/fonts/GochiHand.woff2") format("woff2"); font-display: swap; }
.cd-player {
  --cd-line: rgba(128, 126, 120, .42);
  --cd-lo: color-mix(in oklab, var(--ink) 20%, var(--paper));
  --cd-hi: color-mix(in oklab, var(--ink) 36%, var(--paper));
  margin: 0 0 36px;
  border: 1px solid var(--cd-line);
  border-radius: 14px;
}
:root[data-theme="light"] .cd-player {
  --cd-lo: color-mix(in oklab, var(--ink) 5%, var(--paper));
  --cd-hi: color-mix(in oklab, var(--ink) 16%, var(--paper));
}
.cd-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px; }
.cd-well { position: relative; display: grid; place-items: center; width: 176px; height: 176px; border: 1px solid var(--cd-line); border-radius: 10px; }
.cd-blank { width: 152px; height: 152px; }
.cd-in { position: absolute; inset: 0; margin: auto; width: 152px; height: 152px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transform-origin: top left; }
.cd-in:focus-visible, .cd-rack button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.cd-flying { z-index: 5; }

/* the disc: a silver face that turns, a light and pressed rings that stay put, a clear hub and the hole */
.cd-disc { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.cd-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); }
.cd-face { position: absolute; inset: 0; border-radius: 50%; background-image: conic-gradient(var(--cd-lo), var(--cd-hi), var(--cd-lo), var(--cd-hi), var(--cd-lo)); }
.cd-face img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cd-sheen {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: soft-light;
  background-image:
    conic-gradient(from 20deg, rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / .32) 35deg, rgb(255 255 255 / 0) 75deg, rgb(255 255 255 / 0) 160deg, rgb(255 255 255 / .22) 210deg, rgb(255 255 255 / 0) 250deg, rgb(255 255 255 / 0) 360deg),
    repeating-radial-gradient(circle, rgb(255 255 255 / 0) 0 2px, rgb(255 255 255 / .06) 2px 3px);
}
.cd-hub { position: absolute; inset: 33%; border-radius: 50%; background: color-mix(in oklab, var(--ink) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 25%, transparent); }
.cd-ring { position: absolute; inset: 40%; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); }
.cd-hole { position: absolute; inset: 44%; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 15%, transparent); }
/* the artist's name in marker, above and below the hub, sized against the disc */
.cd-letters { position: absolute; inset: 0; rotate: -8deg; container-type: inline-size; font-family: "Gochi Hand", cursive; color: var(--ink); direction: ltr; }
.cd-face.has-art .cd-letters { color: #141414; }
.cd-letters span { position: absolute; inset-inline: 8%; translate: 0 -50%; text-align: center; line-height: 1; white-space: nowrap; }
.cd-letters .above { top: 24%; }
.cd-letters .below { top: 76%; }
/* only the disc in the player turns; slow enough to read the artwork go round */
.cd-in .cd-face { animation: cd-spin 3.2s linear infinite; animation-play-state: paused; }
.cd-in.is-spinning .cd-face { animation-play-state: running; }
@keyframes cd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cd-in .cd-face { animation: none; } }

/* play / pause: always shown when it would start the disc, on hover or focus while it plays */
.cd-icon { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in oklab, var(--paper) 85%, transparent); color: var(--link); transition: opacity .15s; }
.cd-icon svg { display: block; }
.cd-in[data-action="pause"] .cd-icon { opacity: 0; }
.cd-in[data-action="pause"]:is(:hover, :focus-visible) .cd-icon { opacity: 1; }

/* what's in the player, two lines held so nothing jumps */
.cd-now { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 288px; min-height: 46px; text-align: center; }
.cd-title, .cd-artist { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.cd-title { color: var(--link); font-weight: 700; }
/* the previous and next song buttons, at the two edges of the title line */
.cd-now { position: relative; padding-inline: 40px; }
.cd-next, .cd-prev { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s; }
.cd-next { right: 0; }
.cd-prev { left: 0; }
.cd-next[hidden], .cd-prev[hidden] { display: none; }
@media (hover: hover) { .cd-next:hover, .cd-prev:hover { color: var(--link); background: var(--ghost); } }
.cd-next:focus-visible, .cd-prev:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.cd-artist { color: var(--muted); font-size: 14px; }
/* with lyrics: the player on the left, the lyrics on the right (the page is right to left,
   so the lyrics take the first column); on phones the lyrics sit under the player */
.cd-player.has-lyrics { display: grid; grid-template-columns: 1fr minmax(0, 220px); grid-template-areas: "lyrics stage" "rack rack"; }
.cd-player.has-lyrics .cd-stage { grid-area: stage; }
.cd-player.has-lyrics .cd-rack { grid-area: rack; }
.cd-lyrics-card {
  grid-area: lyrics;
  margin: 12px;
  margin-inline-end: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #33427b, #aa23ee);
  overflow: hidden;
}
.cd-lyrics-card[hidden] { display: none; }
.cd-lyrics {
  position: relative;
  height: 252px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.cd-lyrics::-webkit-scrollbar { display: none; }
.cd-lyrics ol { padding: 96px 20px; }
.cd-lyrics li + li { margin-top: 8px; }
.cd-lyrics li.cd-verse { margin-top: 26px; }
/* lyrics in Simpler Pro Extended Super. Until its web license is in, the page only names the
   copy installed on the device (local), so no font file is served; everyone else gets Sofia Pro
   for Latin and the system sans for Hebrew. With the license, add its woff2 to src here. */
@font-face {
  font-family: "Simpler Pro Extended";
  src: local("SimplerPro Extended Super"), local("SimplerPro_Extended-Super");
  font-weight: 900;
  font-display: swap;
}
.cd-line {
  display: block;
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--link);
  font-family: "Simpler Pro Extended", "Sofia Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-align: start;
  opacity: .45;
  cursor: pointer;
  transition: opacity .3s;
}
.cd-lyrics li.is-past .cd-line { opacity: .3; }
.cd-lyrics li.is-active .cd-line { opacity: 1; }
@media (hover: hover) { .cd-line:hover { opacity: .85; } }
.cd-line:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 560px) {
  .cd-player.has-lyrics { grid-template-columns: 1fr; grid-template-areas: "stage" "lyrics" "rack"; }
  .cd-lyrics-card { margin: 0 12px 12px; }
  .cd-lyrics { height: 220px; }
  .cd-lyrics ol { padding: 84px 18px; }
  .cd-line { font-size: 20px; }
}
/* the timeline under the track name: elapsed, a draggable bar, length; the bar in the grey of the
   poster's background lettering */
.cd-time { --p: 0%; --tl: #c8c8c4; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 288px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cd-time[hidden] { display: none; }
.cd-cur, .cd-dur { flex: none; min-width: 3ch; }
.cd-cur { text-align: left; }
.cd-dur { text-align: right; }
.cd-seek { flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cd-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tl) var(--p), color-mix(in oklab, var(--tl) 25%, transparent) var(--p)); }
.cd-seek::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in oklab, var(--tl) 25%, transparent); }
.cd-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--tl); }
.cd-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--tl); transition: scale .15s; }
.cd-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--tl); }
@media (hover: hover) { .cd-seek:hover::-webkit-slider-thumb { scale: 1.2; } }
.cd-seek:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 4px; }

/* the rack: a disc in the player leaves a dashed ring in its slot, so the rack never reflows */
.cd-rack { padding: 16px 12px; border-top: 1px solid var(--cd-line); }
.cd-rack ul { display: grid; justify-content: center; gap: 12px; }
.cd-rack li { aspect-ratio: 1; border-radius: 50%; }
.cd-rack li.is-empty { border: 1px dashed var(--cd-line); }
.cd-rack button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transform-origin: top left; transition: scale .15s; }
@media (hover: hover) { .cd-rack button:hover { scale: 1.06; } }
.cd-rack button:active { scale: .96; }
.cd-rack button[hidden] { display: none; }

/* now playing: four bars that move while the CD's song plays and the player is out of view */
.now-playing {
  --np: 32px;
  display: inline-flex;
  flex: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: var(--np);
  height: var(--np);
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #33427b, #aa23ee);
  overflow: hidden;
  cursor: pointer;
  transition: width .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, scale .35s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
/* out of sight it takes no room: no width, and a negative margin swallows the gap before it,
   so the speaker and sign-up button slide over as it grows in or shrinks away */
.now-playing:not(.is-on) {
  width: 0;
  padding-inline: 0;
  margin-inline-start: -12px;
  opacity: 0;
  scale: .6;
  visibility: hidden;
  pointer-events: none;
  transition: width .35s cubic-bezier(.2, .8, .2, 1), padding .35s, margin .35s cubic-bezier(.2, .8, .2, 1), opacity .2s, scale .35s, visibility 0s .35s;
}
.now-playing span { flex: 1; height: 100%; border-radius: 1px; background: var(--link); transform-origin: bottom; animation: np-bar 1s ease-in-out infinite; }
.now-playing span:nth-child(1) { animation-delay: -.4s; }
.now-playing span:nth-child(2) { animation-delay: -.1s; animation-duration: .8s; }
.now-playing span:nth-child(3) { animation-delay: -.7s; animation-duration: 1.1s; }
.now-playing span:nth-child(4) { animation-delay: -.25s; animation-duration: .9s; }
@keyframes np-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .now-playing span { animation: none; }
  .now-playing span:nth-child(odd) { transform: scaleY(.55); }
}
.now-playing:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (max-width: 480px) { .now-playing { --np: 44px; padding: 14px 12px; } }
@media (prefers-reduced-motion: reduce) { .now-playing, .now-playing:not(.is-on) { transition: none; } }
