/* Roketing public-site design system v1. Existing image and scene motion remain untouched. */
/* Primitive tokens */
:root {
  --rkds-ink-900: #1c1815;
  --rkds-ink-600: #5e554d;
  --rkds-paper-100: #f5f5f0;
  --rkds-white: #fff;
  --rkds-orange-500: #fc8300;
  --rkds-orange-700: #ad5a00;
  --rkds-line-300: #d7d3ca;
  --rkds-teal-900: #082b35;
  --rkds-focus-width: 3px;
  --rkds-ui-duration: 180ms;
  --rkds-space-1: 4px;
  --rkds-space-2: 8px;
  --rkds-space-3: 12px;
  --rkds-space-4: 16px;
  --rkds-space-6: 24px;
  --rkds-space-8: 32px;
  --rkds-space-12: 48px;
  --rkds-space-16: 64px;
  --rkds-space-24: 96px;
}

/* Semantic roles: light editorial pages; cinematic sections continue to use their own colors. */
body.rk-ds-site {
  --rkds-text-on-light: var(--rkds-ink-900);
  --rkds-text-muted-light: var(--rkds-ink-600);
  --rkds-surface-light: var(--rkds-paper-100);
  --rkds-surface-card: var(--rkds-white);
  --rkds-accent-on-light: var(--rkds-orange-700);
  --rkds-action-primary: var(--rkds-orange-500);
  --rkds-border-light: var(--rkds-line-300);
  --rkds-focus-color: var(--rkds-orange-500);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}
/* Some existing wide hero ornaments protrude by eight pixels at desktop sizes. */
html:has(body.rk-ds-site.studio-home),
body.rk-ds-site.studio-home { overflow-x: clip; }

/* Typography roles; do not change masked words, image placement or scene transforms. */
body.rk-ds-site {
  --type-hero: clamp(40px, 4.8vw, 72px);
  --type-section: clamp(32px, 3.5vw, 52px);
  --type-card: clamp(20px, 2vw, 26px);
  --type-body: 16px;
  --type-label: 13px;
}
body.rk-ds-site main h1 { letter-spacing: -.035em; }
body.rk-ds-site main h2 { letter-spacing: -.025em; }
body.rk-ds-site main h3 { letter-spacing: -.015em; }
body.rk-ds-site main :is(p, li, dd, label, summary) { letter-spacing: 0; }
body.rk-ds-site :is(.site-header a, .site-footer a, button, input, textarea, select) { letter-spacing: 0; }
body.rk-ds-site main :is(.st-kicker, .eyebrow, .rc-eyebrow, .je-section-label) { letter-spacing: .08em; }
body.rk-ds-site main :is(h1, h2, h3) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.rk-ds-site main :is(.label, .st-kicker, .section-index, .sd-kicker, .lab-eyebrow) {
  font-size: max(13px, 0.8125rem);
  line-height: 1.45;
}
body.rk-ds-site .rk-page main .t-h2,
body.rk-ds-site.rk-page main .t-h2 { line-height: 1.28; }

/* Standard public-page introduction: warm light field, ink copy, one orange signal. */
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero {
  background: var(--rkds-surface-light);
  color: var(--rkds-text-on-light);
}
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero :is(h1, .t-h1) {
  color: var(--rkds-text-on-light);
  line-height: 1.17;
}
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero :is(.lead, .muted, p:not(.label)) {
  color: var(--rkds-text-muted-light);
  line-height: 1.65;
}
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero .label,
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero .crumb {
  color: var(--rkds-accent-on-light);
}
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero .btn-secondary {
  color: var(--rkds-text-on-light);
  border-color: #aeb7b5;
}
body.rk-ds-site.rk-page:not(.rk-ds-ai) .page-hero .btn-secondary:hover {
  color: var(--rkds-text-on-light);
  border-color: var(--rkds-orange-500);
  background: #fff;
}
body.rk-ds-site.rk-page:not(.rk-ds-ai) .section-warm {
  background-color: var(--rkds-surface-light);
}

/* A clear reading rhythm on informational pages, without flattening dark/photo chapters. */
body.rk-ds-site.rk-page .sec-head > :is(.muted, p),
body.rk-ds-site.rk-page .section-heading > p,
body.rk-ds-site.rk-page .situation-heading > p,
body.rk-ds-site.rk-page .sd-heading > p {
  max-width: 65ch;
  line-height: 1.7;
}
body.rk-ds-site .section:not(.section-dark) :is(.card, .sd-card):focus-within {
  border-color: var(--rkds-orange-500);
}

/* Main-page pilot: preserve the black hero and the existing motion. */
body.rk-ds-site.studio-home #brand-flow.cv-criteria {
  background: var(--rkds-surface-light);
  color: var(--rkds-text-on-light);
}
body.rk-ds-site.studio-home #brand-flow :is(.cv-heading, .cv-criterion h3) {
  color: var(--rkds-text-on-light);
}
body.rk-ds-site.studio-home #brand-flow :is(.cv-copy, .cv-criterion p) {
  color: var(--rkds-text-muted-light);
  line-height: 1.7;
}
body.rk-ds-site.studio-home #brand-flow :is(.cv-criterion, .cv-criterion a) {
  border-color: var(--rkds-border-light);
}
body.rk-ds-site.studio-home #brand-flow .cv-criterion a {
  color: var(--rkds-text-on-light);
}
body.rk-ds-site.studio-home #brand-flow .st-kicker {
  color: var(--rkds-accent-on-light);
}
body.rk-ds-site.studio-home #brand-flow .cv-heading { line-height: 1.28; }
body.rk-ds-site.studio-home .rk-universe .rc-console-footer { display: none; }
body.rk-ds-site.studio-home #insights-title .je-heading-comma {
  color: var(--rkds-orange-500);
}
@media (min-width: 1025px) {
  body.rk-ds-site.studio-home .cv-faq-grid > div:first-child { padding-top: 20px; }
}

/* Form component: the light surface must not inherit white text from its dark section. */
body.rk-ds-site #contact .form-card {
  background: var(--rkds-surface-light);
  color: var(--rkds-text-on-light);
}
body.rk-ds-site #contact .form-card :is(.cv-form-title, .field label, .field .lbl) {
  color: var(--rkds-text-on-light);
}
body.rk-ds-site #contact .form-card :is(.cv-form-help, .privacy) {
  color: var(--rkds-text-muted-light);
}
body.rk-ds-site #contact .form-card .privacy a {
  color: var(--rkds-accent-on-light);
  text-underline-offset: 3px;
}
body.rk-ds-site #contact .form-card :is(input, textarea, select) {
  font-family: inherit;
  font-size: 16px;
}

/* Component interaction tokens: no new scrolling or animation loops. */
body.rk-ds-site :is(a, button, input, select, textarea, summary):focus-visible {
  outline: var(--rkds-focus-width) solid var(--rkds-focus-color);
  outline-offset: 4px;
}
@media (hover: hover) {
  body.rk-ds-site .site-footer .cv-footer-nav a {
    transition: color var(--rkds-ui-duration) ease;
  }
  body.rk-ds-site .site-footer .cv-footer-nav a:hover {
    color: var(--rkds-orange-500);
  }
}
@media (max-width: 767px) {
  body.rk-ds-site {
    --type-hero: clamp(36px, 8.5vw, 44px);
    --type-section: clamp(30px, 7.4vw, 36px);
    --type-card: clamp(18px, 5vw, 22px);
  }
  body.rk-ds-site main h1 { letter-spacing: -.025em; }
  body.rk-ds-site main h2 { letter-spacing: -.02em; }
  body.rk-ds-site main h3 { letter-spacing: -.01em; }
  body.rk-ds-site.studio-home #brand-flow .cv-heading { line-height: 1.3; }
  body.rk-ds-site #contact .form-card :is(input, textarea, select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.rk-ds-site .site-footer .cv-footer-nav a { transition: none; }
}
