/* Self-hosted Inter and JetBrains Mono; original Google Fonts variable WOFF2 subsets.
 * Copyright and SIL Open Font License notices: ./assets/fonts/Inter-OFL.txt and ./assets/fonts/JetBrainsMono-OFL.txt.
 * Exact upstream URLs and SHA-256 hashes: ./assets/fonts/sources.json. */

/* Inter - cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-cyrillic-ext.ca157063339ac4ad.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter - cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-cyrillic.71d5ee93cc1e9f1d.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter - greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-greek-ext.6e9e020a25f9b56d.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* Inter - greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-greek.1be3448e292fbf05.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter - vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-vietnamese.5c66f9e07e90c6d4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter - latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-latin-ext.34b9c504cab7a73e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./assets/fonts/inter-latin.3100e775e8616cd2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono - cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(./assets/fonts/jetbrains-mono-cyrillic-ext.62213be8a78b42f1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* JetBrains Mono - cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(./assets/fonts/jetbrains-mono-cyrillic.e17cfd15fb96909d.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* JetBrains Mono - greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(./assets/fonts/jetbrains-mono-greek.0a557721b1f8b36d.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* JetBrains Mono - vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(./assets/fonts/jetbrains-mono-vietnamese.c89b9cc0bc6262bd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* JetBrains Mono - latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(./assets/fonts/jetbrains-mono-latin-ext.db5ff4db83e58042.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono - latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(./assets/fonts/jetbrains-mono-latin.83c005d49d8a6a50.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared with rkcadtools.com: theme.css, theme.json and homepage.css. */
:root {
  color-scheme: light;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --brand-primary: #1f6fb8;
  --brand-primary-100: #dde9f4;
  --brand-primary-700: #155080;
  --brand-secondary: #d08a2b;
  --ink-900: #1a1f2a;
  --ink-700: #3d4655;
  --surface-50: #f7f8fa;
  --surface-0: #fff;
}
body { -webkit-font-smoothing: antialiased; }
body > header { background: var(--surface-0); color: var(--ink-900); border-bottom: 1px solid #e2e6eb; }
.site-wordmark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink-900); text-decoration: none; font-family: var(--font-sans); }
.site-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: white; background: var(--brand-primary); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.wordmark em { color: var(--brand-primary); font-style: normal; }
body > header .header-divider { border-color: #e2e6eb; }
body > header .badge { border-color: #cad6e2; color: var(--brand-primary-700); background: #eff5fa; }
body > header button { background: white; border-color: #b8c7d5; color: var(--brand-primary-700); border-radius: 6px; }
body > header button:hover { background: #eff5fa; border-color: var(--brand-primary); }
body > header .studio-icon-tool { --icon-stroke: var(--brand-primary); }
button.primary:hover:not(:disabled), #save.studio-icon-tool:hover:not(:disabled), #help.studio-icon-tool:hover { background: var(--brand-primary-700); border-color: var(--brand-primary-700); color: white; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 4px; }
button, input, select, textarea { accent-color: var(--brand-primary); }
body > header .site-wordmark:hover { text-decoration: none; }
.guide-brand-label { font-size: 14px; font-weight: 500; color: var(--ink-700); }
@media (max-width: 680px) {
  body:not(.studio-start) > header .wordmark { display: none; }
  body > header .site-wordmark { gap: 8px; }
  body > header .wordmark { font-size: 16px; }
  body > header .site-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 480px) {
  body.studio-start > header #help .tool-label { display: none; }
  body.studio-start > header #help { min-width: 40px; }
}
