/*
  Nir Marom, clarinet. Site styles (grown from homepage version C, frontend-design skill).
  The one bold thing: the hero headline sits on a five-line staff and rises line by line.
  Everything else is quiet: staff-line rules, no cards, no shadows, one cerulean for actions.
*/
:root {
  --ink: #0f2347;
  --ink-2: #1a3361;
  --paper: #eef2f8;
  --staff: #9fb1cf;
  --staff-dark: #3c5688;
  --text: #0f2347;
  --muted: #4a5b7a;
  --on-ink: #f3f6fb;
  --on-ink-muted: #b7c4dc;
  --action: #2f6fe0;
  --action-hover: #2459b8;
  --display: "Bellefair", "Times New Roman", serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --gap: 22px;
  color-scheme: light;
}
:root[lang="he"] { --body: "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--action); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.top { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.name { font-family: var(--display); font-size: 26px; letter-spacing: .01em; text-decoration: none; }
.top .right { display: flex; align-items: center; gap: 24px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--on-ink-muted); padding-block: 10px; }
.top nav a:hover { color: var(--on-ink); }
.lang { font: 500 14px var(--body); color: var(--on-ink); border: 1px solid var(--staff-dark); border-radius: 4px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.lang:hover { border-color: var(--on-ink-muted); }
.lang[lang="he"] { font-family: "IBM Plex Sans Hebrew", sans-serif; }

/* hero */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 56px; padding-block: 40px 64px; align-items: end; }
.score { position: relative; padding-top: 30px; }
.staff { position: relative; height: calc(var(--gap) * 4 + 1px); margin-top: calc(var(--gap) * 3.5); }
.staff::before { content: ""; position: absolute; inset-block: 0; inset-inline: -100vw 0; background: repeating-linear-gradient(to bottom, var(--staff-dark) 0 1px, transparent 1px var(--gap)); }
h1 { --fit: 1; position: absolute; inset-inline-start: 0; bottom: 0; margin: 0; display: flex; align-items: flex-end; gap: .28em; font: 400 calc(clamp(38px, 4.9vw, 64px) * var(--fit))/1 var(--display); white-space: nowrap; }
:root[lang="en"] h1 { --fit: .8; }
h1 span { display: block; transform: translateY(calc(var(--step) * var(--gap) * -1 + .19em)); }
h1 span:nth-child(1) { --step: 0; }
h1 span:nth-child(2) { --step: 1; }
h1 span:nth-child(3) { --step: 2; }
h1 span:nth-child(4) { --step: 3; }
.lede { max-width: 36em; margin: 36px 0 28px; color: var(--on-ink-muted); font-size: 18px; }
.lede b { color: var(--on-ink); font-weight: 500; }
form.signup { display: flex; gap: 10px; max-width: 540px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; font: 400 16px var(--body); padding: 14px 16px; border: 1px solid var(--staff-dark); background: var(--ink-2); color: var(--on-ink); border-radius: 4px; }
.signup input[type=email]::placeholder { color: var(--on-ink-muted); }
.btn { font: 600 16px var(--body); padding: 14px 22px; border: 0; border-radius: 4px; background: var(--action); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--action-hover); }
.btn.quiet { background: transparent; color: var(--action); border: 1px solid var(--action); }
.btn.quiet:hover { background: var(--action); color: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; max-width: 540px; font-size: 14px; color: var(--on-ink-muted); line-height: 1.5; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--action); flex: none; }
.consent a { color: var(--on-ink); }
.note { min-height: 1.5em; margin-top: 10px; font-size: 15px; }
.note.ok { color: #cfe0ff; }
.note.err { color: #ffd2cc; }
.hero figure { margin: 0; justify-self: end; width: 100%; max-width: 280px; }
.hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
  h1 span { animation: climb .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--step) * 140ms + 150ms); }
  @keyframes climb { from { opacity: 0; transform: translateY(calc(.19em)); } }
}

/* credentials under the hero: plain facts on staff rules */
.creds { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--staff-dark); }
.creds ul { list-style: none; margin: 0 auto; padding-block: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; line-height: 1.5; }
.creds b { display: block; color: var(--on-ink); font-weight: 500; }

/* sections */
section { padding-block: 80px; scroll-margin-top: 70px; }
section + section { border-top: 1px solid var(--staff); }
h2 { font: 400 clamp(32px, 4.2vw, 48px)/1.1 var(--display); margin: 0 0 14px; }
h3 { line-height: 1.3; }
.intro { max-width: 34em; color: var(--muted); margin: 0 0 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.split.photo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split figure { margin: 0; }
.split figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.text p { margin: 0 0 16px; max-width: 34em; }

/* where to start: four doors on staff rules */
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.doors li { border-top: 1px solid var(--staff); padding-block: 22px 26px; }
.doors h3 { font: 400 28px/1.15 var(--display); margin: 0 0 6px; }
.doors p { margin: 0 0 10px; color: var(--muted); max-width: 30em; }
.go { color: var(--action); font-weight: 500; text-underline-offset: 4px; }

/* reels */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.reel { text-decoration: none; }
.reel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 4px; }
.reel b { display: block; margin-top: 12px; font-weight: 500; }
.reel span { display: block; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reel:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* course */
.lessons { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.lessons li { counter-increment: l; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding-block: 20px; border-bottom: 1px solid var(--staff); }
.lessons li:first-child { border-top: 1px solid var(--staff); }
.lessons li::before { content: counter(l); grid-row: span 3; font: 400 44px/1 var(--display); color: var(--action); }
.lessons h3 { margin: 0; font-size: 19px; font-weight: 600; }
.lessons p { margin: 0; color: var(--muted); }
.lessons .rep { color: var(--text); font-size: 15px; }
.free { font-size: 14px; font-weight: 500; color: var(--action); margin-inline-start: 8px; }
.prices { list-style: none; margin: 28px 0 24px; padding: 0; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--staff); }
.prices li:first-child { border-top: 1px solid var(--staff); }
.prices strong { font: 400 32px/1 var(--display); white-space: nowrap; }
.prices small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.fine { font-size: 14px; color: var(--muted); max-width: 34em; }

/* videos */
.videos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.videos .side { display: grid; gap: 24px; align-content: start; }
.yt { display: block; text-decoration: none; }
.yt .frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 4px; overflow: hidden; }
.yt .frame img, .yt .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: rgba(15,35,71,.85); display: grid; place-items: center; }
.yt .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-inline-start: 4px; }
:root[dir="rtl"] .yt .play::after { margin-inline-start: 0; margin-inline-end: 4px; }
.yt:hover .play { background: var(--action); }
.yt b { display: block; margin-top: 10px; font-weight: 500; }
.yt span { display: block; font-size: 14px; color: var(--muted); }

/* rates and setup lists */
.list { list-style: none; margin: 0 0 24px; padding: 0; }
.list li { padding-block: 12px; border-bottom: 1px solid var(--staff); display: flex; justify-content: space-between; gap: 16px; }
.list li:first-child { border-top: 1px solid var(--staff); }
.list li span:last-child { color: var(--muted); text-align: end; }
.list.rates li span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.soon { font-size: 14px; color: var(--muted); }

/* tools */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.tools h3 { font: 400 28px/1.2 var(--display); margin: 0 0 8px; }
.tools p { margin: 0 0 12px; color: var(--muted); max-width: 30em; }

/* about */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding-block: 14px; border-bottom: 1px solid var(--staff); }
.facts li:first-child { border-top: 1px solid var(--staff); }

/* faq */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--staff); }
.faq details:first-of-type { border-top: 1px solid var(--staff); }
.faq summary { cursor: pointer; padding-block: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--action); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 40em; }

/* contact + footer */
.contact { background: var(--ink); color: var(--on-ink); border: 0; }
.contact .intro { color: var(--on-ink-muted); }
.contact .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.social { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.social a { color: var(--on-ink-muted); text-underline-offset: 4px; }
.social a:hover { color: var(--on-ink); }
footer { background: var(--ink); color: var(--on-ink-muted); font-size: 14px; border-top: 1px solid var(--staff-dark); }
footer .wrap { padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--on-ink-muted); }

/* simple text pages */
.page { max-width: 46em; padding-block: 56px 80px; }
.page h1 { position: static; display: block; white-space: normal; font-size: clamp(34px, 5vw, 48px); margin: 0 0 24px; }
.page h2 { font-size: 26px; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }

@media (max-width: 960px) {
  .top nav { display: none; }
}
@media (max-width: 860px) {
  :root { --gap: 13px; }
  .wrap { padding-inline: 16px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 8px 44px; }
  h1 { font-size: calc(8.4vw * var(--fit)); gap: .2em; }
  .score { padding-top: 0; }
  .hero figure { justify-self: start; max-width: 200px; }
  .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding-block: 56px; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .split, .split.photo, .doors, .videos, .tools { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split figure { max-width: 360px; }
  .signup .btn { flex: 1 1 100%; }
}
