/* Riff by Myreze v1.0. All font URLs are relative to this stylesheet. */
@font-face {
  font-family: "Rift Demi";
  src: url("./fonts/rift-demi-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("./fonts/archivo-black-fallback.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --riff-ink: #050A10;
  --riff-shell: #0B141D;
  --riff-fg: #E8F1F7;
  --riff-rain: #8FBDD9;
  --riff-ember: #E6A45F;
  --riff-text-secondary: rgb(232 241 247 / 72%);
  --riff-text-muted: rgb(232 241 247 / 55%);
  --riff-glass: rgb(10 19 29 / 46%);
  --riff-glass-border: rgb(168 205 228 / 20%);
  --riff-radius-card: 14px;
  --riff-radius-panel: 22px;
  --riff-glass-blur: 14px;
  --riff-font-display: "Rift Demi", "Archivo Black", "Archivo", sans-serif;
  --riff-font-body: "Archivo", system-ui, sans-serif;
  --riff-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Apply the scope deliberately; this file does not reset the existing site. */
.riff-ui {
  color: var(--riff-fg);
  background: var(--riff-ink);
  font-family: var(--riff-font-body);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
  color-scheme: dark;
}
.riff-heading,
.riff-value {
  font-family: var(--riff-font-display);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
}
.riff-heading { font-size: clamp(2rem, 4vw, 4rem); }
.riff-value { font-size: clamp(2.5rem, 6vw, 5rem); }
.riff-body { font-family: var(--riff-font-body); font-weight: 400; }
.riff-control { font-family: var(--riff-font-body); font-weight: 500; }
.riff-emphasis { font-family: var(--riff-font-body); font-weight: 600; }
.riff-label,
.riff-code,
.riff-timestamp {
  font-family: var(--riff-font-mono);
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.riff-label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--riff-text-muted);
}
.riff-secondary { color: var(--riff-text-secondary); }
.riff-muted { color: var(--riff-text-muted); }
.riff-panel {
  background: var(--riff-shell);
  border: 1px solid var(--riff-glass-border);
  border-radius: var(--riff-radius-panel);
}
.riff-glass-card {
  background: var(--riff-glass);
  border: 1px solid var(--riff-glass-border);
  border-radius: var(--riff-radius-card);
  -webkit-backdrop-filter: blur(var(--riff-glass-blur));
  backdrop-filter: blur(var(--riff-glass-blur));
}
/* Select one accent for an element. Do not combine Rain and Ember within it. */
.riff-accent--rain { --riff-accent: var(--riff-rain); color: var(--riff-accent); }
.riff-accent--ember { --riff-accent: var(--riff-ember); color: var(--riff-accent); }
.riff-primary-button {
  color: var(--riff-ink);
  background: var(--riff-rain);
  border: 1px solid var(--riff-rain);
  font-family: var(--riff-font-body);
  font-weight: 500;
}
.riff-icon {
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
/* Logo files are static outlined SVG images. Never apply .riff-icon to a logo. */
.riff-logo {
  display: block;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.riff-logo--primary { width: 300px; min-width: 300px; }
.riff-logo--compact { width: 136px; min-width: 120px; }
.riff-logo--symbol { width: 32px; }
.riff-myreze-mark { display: block; width: 32px; min-width: 24px; height: auto; }
/* At 32px mark width, half the official mark height is 9.953125px. */
.riff-myreze-mark-zone { display: inline-block; padding: 10px; }

@media print {
  .riff-ui { color: var(--riff-ink); background: white; }
  .riff-panel, .riff-glass-card { background: white; backdrop-filter: none; }
  /* Select the -ink.svg logo explicitly when preparing a light print layout. */
}
