/* Roll Call pages (site/rollcall/**). Every rule is scoped to body.rc so nothing here
   can leak into the Sidelark Labs pages, and sidelark.css is never loaded alongside it. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

body.rc {
  --ink: #0b0c0e;
  --text: #24282d;
  --muted: #555d66;
  --line: #e2e4e7;
  --grey: #f3f3f4;
  --peach: #fcebd2;
  --gold: #b58900;
  --blue: #0b67c2;
  --bar: #000;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 1160px;

  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.rc *, body.rc *::before, body.rc *::after { box-sizing: border-box; }
body.rc img { display: block; max-width: 100%; height: auto; }
body.rc h1, body.rc h2, body.rc h3 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
body.rc p { margin: 0; }
body.rc p, body.rc li { text-wrap: pretty; }
body.rc a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
body.rc a:hover { text-decoration-thickness: 2px; }
body.rc a:focus-visible, body.rc button:focus-visible, body.rc [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
body.rc .rc-header a:focus-visible, body.rc .rc-footer a:focus-visible { outline-color: #fff; }

body.rc .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.rc .skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 600;
}
body.rc .skip-link:focus { top: 12px; }

body.rc .container { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
body.rc .rc-header { background: var(--bar); color: #fff; }
body.rc .rc-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter);
}
body.rc .rc-header__home { display: flex; align-items: center; min-height: 44px; }
body.rc .rc-header__home img { width: 150px; height: auto; }
body.rc .rc-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
body.rc .rc-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: #d9dce0; border-radius: 8px;
}
body.rc .rc-nav a:hover { color: #fff; text-decoration: underline; }
body.rc .rc-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* ---------- Hero ---------- */
body.rc .hero { padding: 0; }
body.rc .hero__frame {
  position: relative; display: grid; overflow: hidden;
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
  background: #111;
}
body.rc .hero__photo, body.rc .hero__content { grid-area: 1 / 1; }
body.rc .hero__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
body.rc .hero__frame::after {
  content: ""; grid-area: 1 / 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.52) 58%, rgba(0,0,0,.62) 100%);
}
body.rc .hero__content {
  z-index: 1; align-self: center; justify-self: end;
  width: 50%; padding: 32px clamp(24px, 4vw, 56px) 72px 16px;
  color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
body.rc .hero h1 {
  color: #fff; font-size: clamp(56px, 8.4vw, 108px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.95;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
body.rc .hero__tagline { text-wrap: balance; margin-top: 18px; font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; line-height: 1.3; }
body.rc .hero__free {
  display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 15px; text-wrap: balance;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  font-size: 15px; font-weight: 700; text-shadow: none;
}
body.rc .hero__desc { margin: 16px auto 0; max-width: 30em; font-size: clamp(16px, 1.45vw, 18px); font-weight: 500; line-height: 1.5; }
body.rc .hero .app-store { margin: 24px auto 0; }
body.rc .hero__audience {
  position: absolute; z-index: 1; right: 0; bottom: 0; left: 0;
  padding: 12px clamp(16px, 3vw, 32px); text-align: right;
  color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

body.rc .app-store { display: block; width: max-content; border-radius: 10px; }
body.rc .app-store img { width: 150px; height: auto; }

/* ---------- Sections ---------- */
body.rc main { display: block; }
body.rc .section { padding-top: clamp(40px, 6vw, 72px); }
body.rc .section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
body.rc .feature p + p, body.rc .callout p + p { margin-top: 14px; }

/* Three steps */
body.rc .steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.rc .step { padding: 24px 24px 26px; border-radius: 18px; background: var(--grey); }
body.rc .step__num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 800;
}
body.rc .step h3 { margin-top: 16px; font-size: 20px; font-weight: 700; }
body.rc .step p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Image + text rows */
body.rc .feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4.5vw, 64px); align-items: center;
}
body.rc .feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
body.rc .feature--flip .feature__media { order: 2; }
body.rc .feature h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 16px; }
body.rc .feature__text { max-width: 36em; }
body.rc .feature__media img { width: 100%; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10); }
body.rc .feature__media--fielder img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
body.rc .feature__media--equipment img { aspect-ratio: 3 / 2; object-fit: cover; }

body.rc .feature--card {
  padding: clamp(20px, 3.5vw, 40px); border-radius: 28px;
  background: var(--peach); border: 1.5px solid var(--gold);
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
body.rc .feature__media--batter img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

body.rc .nos { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
body.rc .nos li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
body.rc .nos li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* Screenshot gallery (replaces the old autoplaying slideshow; swipe or use the buttons) */
body.rc .shots { --shot: clamp(220px, 25vw, 290px); width: var(--shot); margin: 0 auto; }
body.rc .shots__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: 12px;
}
body.rc .shots__track::-webkit-scrollbar { display: none; }
body.rc .shots__slide { flex: 0 0 100%; scroll-snap-align: center; }
body.rc .shots__slide figure { margin: 0; }
body.rc .shots__slide img { width: 100%; aspect-ratio: 652 / 1312; }
body.rc .shots__slide figcaption { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); }
body.rc .shots__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
body.rc .shots__controls[hidden] { display: none; }
body.rc .shots__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  font: 700 22px/1 "Inter", system-ui, sans-serif;
}
body.rc .shots__btn:hover:not(:disabled) { background: var(--grey); }
body.rc .shots__btn:disabled { opacity: .35; cursor: default; }
body.rc .shots__count { min-width: 48px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Privacy callout */
body.rc .callout {
  max-width: 820px; margin: 0 auto; padding: clamp(24px, 4vw, 40px);
  border-radius: 28px; background: var(--grey);
}
body.rc .callout h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; margin-bottom: 12px; }

/* Roll Call 2.0 note. Delete the matching <aside> in rollcall/index.html when 2.0 ships;
   these rules can go at the same time. */
body.rc .next-version {
  display: flex; gap: 16px 22px; align-items: center; flex-wrap: wrap;
  max-width: 820px; margin: 0 auto; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
}
body.rc .next-version__badge {
  flex: none; padding: 5px 12px; border-radius: 999px; background: #e7f0fa; color: #0a4f94;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
body.rc .next-version__text { flex: 1 1 360px; }
body.rc .next-version h2 { font-size: 19px; font-weight: 700; }
body.rc .next-version p { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Closing call to action */
body.rc .cta { text-align: center; padding-bottom: clamp(48px, 7vw, 88px); }
body.rc .cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
body.rc .cta p { margin-top: 12px; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
body.rc .cta .app-store { margin: 24px auto 0; }

/* ---------- Text pages (support, privacy, terms, licenses) ---------- */
body.rc .doc { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); }
body.rc .doc h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
body.rc .doc__meta { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 500; }
body.rc .doc__lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink); }
body.rc .doc__body { margin-top: 28px; }
body.rc .doc__body > * + * { margin-top: 14px; }
body.rc .doc__body h2 {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: clamp(22px, 2.6vw, 27px); font-weight: 750;
}
body.rc .doc__body h3 { margin-top: 30px; font-size: 19px; font-weight: 700; }
body.rc .doc__body h2 + *, body.rc .doc__body h3 + * { margin-top: 10px; }
body.rc .doc__body ul { margin-bottom: 0; padding-left: 1.3em; }
body.rc .doc__body li { margin-top: 6px; padding-left: 2px; }
body.rc .doc__body li::marker { color: var(--muted); }
body.rc .doc__body a { color: var(--blue); }
body.rc .doc__body strong { color: var(--ink); font-weight: 700; }

body.rc .doc__body .doc-toc, body.rc .doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
body.rc .doc-toc a {
  display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--grey); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
body.rc .doc-toc a:hover { background: #e8e9eb; }

body.rc .contact-card { padding: 20px 22px; border-radius: 18px; background: var(--grey); }
body.rc .contact-card .contact-card__email { font-size: 18px; font-weight: 700; color: var(--ink); }
body.rc .contact-card > * + * { margin-top: 8px; }
body.rc .doc__body .doc-toc li { margin: 0; padding: 0; }

/* Grouped facts: ZIPFoundation details, Mixkit sounds */
body.rc .facts { margin: 14px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--grey); }
body.rc .facts p + p { margin-top: 4px; }
body.rc .doc__body .sound-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
body.rc .doc__body .sound-list li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
body.rc .sound-list p { margin: 0; }
body.rc .sound-list .sound-list__name { font-weight: 700; color: var(--ink); }
body.rc .sound-list .sound-list__source { color: var(--muted); font-size: 16px; }

/* Changelog: version headings get a little more weight; first-level items read as groups */
body.rc .changelog h3 { font-size: 20px; }
body.rc .changelog > ul > li { margin-top: 12px; }
body.rc .changelog ul ul { margin-top: 4px; }
body.rc .changelog ul ul li { margin-top: 4px; font-size: 16px; }

/* ---------- Footer ---------- */
body.rc .rc-footer { background: var(--bar); color: #c9cdd2; font-size: 15px; }
body.rc .rc-footer__inner {
  display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center;
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter);
}
body.rc .rc-footer__brand { display: flex; align-items: center; gap: 12px; }
body.rc .rc-footer__brand img { width: 44px; height: 44px; border-radius: 10px; }
body.rc .rc-footer__brand strong { display: block; color: #fff; font-size: 17px; }
body.rc .rc-footer__brand span { display: block; font-size: 14px; }
body.rc .rc-footer__brand a { color: inherit; }
body.rc .rc-footer nav { justify-self: end; }
body.rc .rc-footer .rc-nav a { min-height: 40px; font-size: 14px; color: #c9cdd2; }
body.rc .rc-footer .rc-nav a:hover { color: #fff; }
body.rc .rc-footer__legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #2a2d31; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (min-width: 721px) and (max-width: 1000px) {
  body.rc .hero__content { width: 58%; padding-right: 24px; }
  body.rc .hero__frame::after { background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.65) 100%); }
  body.rc .hero__free { font-size: 14px; }
  body.rc .hero__desc { font-size: 15.5px; }
  body.rc .hero .app-store { margin-top: 18px; }
  body.rc .hero__audience { font-size: 13px; }
}
@media (max-width: 720px) {
  body.rc .feature, body.rc .feature--flip, body.rc .feature--card { grid-template-columns: minmax(0, 1fr); }
  body.rc .feature--flip .feature__media { order: 0; }
  body.rc .feature__text { max-width: none; }
  body.rc .feature__media--batter img { aspect-ratio: 4 / 3; }
  body.rc .shots { --shot: min(270px, 72vw); }
}
@media (max-width: 720px) {
  body.rc { font-size: 16.5px; }
  body.rc .rc-header__inner { justify-content: center; padding-top: 8px; padding-bottom: 6px; }
  body.rc .rc-header .rc-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 4px; }
  body.rc .rc-header .rc-nav a { justify-content: center; min-height: 40px; padding: 0 10px; font-size: 15px; }
  body.rc .hero__frame { display: block; }
  body.rc .hero__frame::after { display: none; }
  body.rc .hero__content { width: auto; padding: 28px var(--gutter) 8px; text-shadow: none; }
  body.rc .hero__audience { position: static; padding: 8px var(--gutter) 28px; text-align: center; color: #c9cdd2; text-shadow: none; }
  body.rc .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.rc .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  body.rc .step__num { grid-row: span 2; }
  body.rc .step h3 { margin-top: 4px; }
  body.rc .rc-footer__inner { grid-template-columns: minmax(0, 1fr); }
  body.rc .rc-footer nav { justify-self: start; margin-left: -10px; }
}
@media (max-width: 360px) {
  body.rc .rc-header .rc-nav a { padding: 0 6px; font-size: 14px; }
  body.rc .hero__free { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.rc .shots__track { scroll-behavior: auto; }
}
