/* =========================================================
   steezy.wav — shared styles for every page
   Fonts, colours, top bar, page title, text boxes, cards and chips.
   The homepage adds its own bits (hero, stats, philosophy, contact) in index.html.
   ========================================================= */

/* CV Display = headlines + numbers · CV Sans = everything else (SIL OFL, see fonts/OFL-LICENSE.txt) */
@font-face { font-family: "CV Display"; font-weight: 500; font-display: swap; src: url("fonts/CVDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "CV Display"; font-weight: 700; font-display: swap; src: url("fonts/CVDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "CV Sans"; font-weight: 400; font-display: swap; src: url("fonts/CVSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "CV Sans"; font-weight: 500; font-display: swap; src: url("fonts/CVSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "CV Sans"; font-weight: 700; font-display: swap; src: url("fonts/CVSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "CV Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/CVSans-Italic.woff2") format("woff2"); }

:root {
  --wash: #e9e8ff;      /* lavender at the top of every page */
  --ink: #14122b;       /* headlines: deep dark purple, almost black */
  --text: #201f30;      /* body text, same purple tint */
  --mute: #67657b;      /* secondary text */
  --faint: #a6a4b5;     /* gray words */
  --line: #ecebf0;      /* borders, dividers */
  --panel: #f7f7f9;     /* light gray panels + cards */
  --accent: #7d74f2;    /* purple text, arrows */
  --accent-2: #9896ff;  /* cursor, chips, buttons */
  --accent-3: #cfceff;  /* soft purple */
  --night: #1b1a20;     /* dark block */
  --night-2: #44436a;
  --ease: .22s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1100px 600px at 50% -130px, var(--wash), #f6f5ff 55%, #fff 100%) no-repeat, #fff;
  color: var(--text);
  font: 400 17px/1.6 "CV Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: background var(--ease), border-color var(--ease); }
.bar.scrolled { background: rgba(255,255,255,.82); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top { display: flex; align-items: center; gap: 10px; padding: 22px 0; }
.logo { font: 700 21px/1 "CV Display", sans-serif; color: var(--ink); transition: opacity var(--ease); }
a.logo:hover { opacity: .7; }
.here { min-width: 0; font: 500 15px/1 "CV Sans", sans-serif; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.here::before { content: "/"; margin-right: 10px; color: var(--accent-3); }

/* ---------- blinking block cursor ---------- */
.cursor { display: inline-block; width: .5em; height: .78em; margin-left: .08em; vertical-align: -.04em; background: var(--accent-2); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- small tag above a title ---------- */
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid #dddcf2; border-radius: 999px; background: #fafaff; font: 500 14px/1 "CV Sans", sans-serif; color: var(--text); }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }

/* ---------- section heads ---------- */
.head { margin-bottom: 18px; }
.head h2, .more h2 { margin: 0; font: 500 26px/1.2 "CV Display", sans-serif; letter-spacing: -.01em; color: var(--ink); }

/* ---------- spec work cards (whole card is the link) ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; min-height: 118px; border-radius: 18px; background: var(--panel); transition: transform var(--ease), background var(--ease), box-shadow var(--ease); }
.work a:hover, .work a:focus-visible { transform: translateY(-3px) scale(1.02); background: #fff; box-shadow: 0 10px 30px rgba(125,116,242,.14), 0 0 0 1px var(--line); }
.work strong { font: 700 18px/1.3 "CV Sans", sans-serif; color: var(--ink); padding-right: 24px; }
.work span { color: var(--mute); }
.work a::after { content: "↗"; position: absolute; top: 20px; right: 22px; font-size: 16px; color: var(--accent); }

/* ---------- vocal range chips ---------- */
.range { display: flex; flex-wrap: wrap; gap: 10px; }
.range a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--panel); font: 500 18px/1 "CV Sans", sans-serif; color: var(--ink); transition: transform var(--ease), background var(--ease), box-shadow var(--ease); }
.range a::after { content: "↗"; font-size: 15px; color: var(--accent); }
.range a:hover, .range a:focus-visible { transform: translateY(-3px) scale(1.02); background: #fff; box-shadow: 0 10px 30px rgba(125,116,242,.14), 0 0 0 1px var(--line); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* =========================================================
   text pages (built from Notion by tools/build.py)
   ========================================================= */
.page-hero { padding: 44px 0 40px; text-align: center; }
h1.title { margin: 20px auto 0; max-width: 820px; font: 700 clamp(34px, 5.4vw, 56px)/1.1 "CV Display", sans-serif; letter-spacing: -.02em; color: var(--ink); }
.page-hero .tag + h1.title { margin-top: 20px; }
.page-hero h1.title:first-child { margin-top: 0; }

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; }
.box { display: flex; flex-direction: column; gap: 2px; padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(27,26,32,.03); }
/* Notion spacing: every line is its own block with a little air around it, and an empty line takes exactly one line of space.
   min-height keeps "empty" lines (Notion puts an invisible character in them) from collapsing in Firefox-based browsers like Zen. */
.box p { margin: 0; padding: 5px 0; min-height: calc(1.5em + 10px); line-height: 1.5; white-space: pre-wrap; }
.box p.label, .box p.marker, .box p.ph { min-height: 0; }
.box .gap { height: calc(1.5em + 10px); }
.box strong { font-weight: 700; color: var(--ink); }
.d { color: var(--faint); }

/* the first box (the intro note) sits on the gray panel */
.prose > .box:first-child { background: var(--panel); border-color: transparent; box-shadow: none; font-size: 18px; color: var(--ink); }

/* an empty Notion box = soft divider */
.box.empty { padding: 0; height: 12px; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent-3), #ecebff 60%, transparent); box-shadow: none; opacity: .8; }
.box.empty .gap { display: none; }

/* gray line at the top of a box (e.g. "after 48 hours") and [chorus]/[verse] = chip */
.box p.label, .box p.marker { align-self: flex-start; padding: 6px 13px; border-radius: 999px; background: #f0efff; font: 500 13px/1.2 "CV Sans", sans-serif; }
.box p.label { margin-bottom: 10px; }
.box p.marker { margin: 3px 0; }
.box p.label .d, .box p.marker .d, .box p.marker.d { color: var(--accent); }
.box p.label::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent-2); vertical-align: 1px; }

/* [placeholder for a button, image, testimonial…] = dashed box */
.box p.ph { align-self: flex-start; max-width: 100%; margin: 6px 0; padding: 10px 16px; border: 1.5px dashed var(--accent-3); border-radius: 12px; background: #fafaff; font-size: 14px; color: var(--accent); }
.box p.ph .d, .box p.ph.d { color: var(--accent); }

/* headings inside boxes (Notion H1–H4 become h2–h5) */
.box h2, .box h3, .box h4, .box h5 { margin: 4px 0 0; font-family: "CV Display", sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); white-space: pre-wrap; }
.box h2 { font-size: 32px; margin-top: 14px; } .box h3 { font-size: 27px; margin-top: 10px; } .box h4 { font-size: 24px; } .box h5 { font-size: 20px; }
.box > :first-child { margin-top: 0; }

/* bullets */
.box ul { margin: 0; padding-left: 1.4em; }
.box li { white-space: pre-wrap; padding-left: .1em; }
.box li::marker { color: var(--accent-2); }

/* side-by-side columns + images (stacked on phones) */
.cols { display: flex; gap: 16px; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.img { margin: 0; }
.img img { display: block; width: 100%; height: auto; }   /* square corners: some charts have a frame drawn in */

/* "more" section under a page */
.more { max-width: 720px; margin: 72px auto 0; }
.more h2 { margin-bottom: 18px; font-size: 22px; }
.more .work { grid-template-columns: repeat(2, 1fr); }

/* footer */
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding: 22px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.sub footer { max-width: 720px; margin-left: auto; margin-right: auto; }
footer a { transition: color var(--ease); }
footer a:hover { color: var(--ink); }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .page-hero { padding: 28px 0; }
  .box { padding: 22px 20px; border-radius: 18px; }
  .box h2 { font-size: 26px; } .box h3 { font-size: 22px; } .box h4 { font-size: 21px; }
  .cols { flex-direction: column; }
  .more .work { grid-template-columns: 1fr; }
  .range a { padding: 12px 18px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .work a, .range a { transition: none; }
  .work a:hover, .work a:focus-visible, .range a:hover, .range a:focus-visible { transform: none; }
}
