
/* ── Fonts ─────────────────────────────────────────────────── */

@font-face {
  font-family: 'Academico';
  src: url('fonts/Academico-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Academico';
  src: url('fonts/Academico-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Academico';
  src: url('fonts/Academico-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Academico';
  src: url('fonts/Academico-BoldItalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
}

/* ── Themes ─────────────────────────────────────────────────── */

:root {
  --glow-rgb:         70, 120, 200;   /* steel blue */
  --bg:               #f7f7f5;
  --surface:          #fff;
  --text:             #222;
  --text-muted:       #555;
  --text-subtle:      #777;
  --border:           #ccc;
  --border-strong:    #222;
  --border-row:       #e8e8e8;
  --row-hover:        #f0ede8;
  --link:             #1a5cad;
  --input-focus:      #555;
  --key-original:     rgba(30, 140, 80, 0.28);
  --key-common:       rgba(30, 140, 80, 0.11);
}

[data-theme="dark"] {
  --glow-rgb:         45, 195, 210;   /* light teal-cyan */
  --bg:               #1a1a1a;
  --surface:          #242424;
  --text:             #e0e0e0;
  --text-muted:       #aaa;
  --text-subtle:      #666;
  --border:           #444;
  --border-strong:    #bbb;
  --border-row:       #2e2e2e;
  --row-hover:        #2a2a2a;
  --link:             #7aaee8;
  --input-focus:      #aaa;
  --key-original:     rgba(60, 200, 120, 0.38);
  --key-common:       rgba(60, 200, 120, 0.16);
}

/* ── Base ────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Theme toggle button ─────────────────────────────────────── */

#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background-color: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  z-index: 10;
}

#theme-toggle:hover {
  border-color: var(--input-focus);
  color: var(--text);
}
