@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
  /* Tema claro — FICHÁRIO */
  --bg: #E4DED1;
  --surface: #F2EDE3;
  --surface-2: #E9E3D7;
  --ink: #1C1A17;
  --ink-strong: #0E0D0B;
  --ink-dim: #544E45;
  --line: #CFC6B4;
  --line-strong: #1C1A17;
  --accent: #8B2E23;
  --accent-soft: #F0DDD8;

  /* Escala tipográfica */
  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 17px;
  --t-lg: 20px;
  --t-xl: 26px;
  --t-2xl: 36px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Tema escuro — ÂMBAR */
    --bg: #12100E;
    --surface: #1A1714;
    --surface-2: #221D18;
    --ink: #FFB454;
    --ink-strong: #FFD9A0;
    --ink-dim: #CBA05E;
    --line: #3A2E1F;
    --line-strong: #FFB454;
    --accent: #FFD9A0;
    --accent-soft: #2A2118;
  }
}

:root[data-theme="dark"] {
  /* Tema escuro — ÂMBAR */
  --bg: #12100E;
  --surface: #1A1714;
  --surface-2: #221D18;
  --ink: #FFB454;
  --ink-strong: #FFD9A0;
  --ink-dim: #CBA05E;
  --line: #3A2E1F;
  --line-strong: #FFB454;
  --accent: #FFD9A0;
  --accent-soft: #2A2118;
}

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  padding-bottom: 56px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink-strong);
}

.mono, .label, .stamp, .meta, .btn, nav, .taskbar-right {
  font-family: 'IBM Plex Mono', ui-monospace, SF Mono, Menlo, Consolas, monospace;
}

.label {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.stamp {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer {
  background-image: repeating-linear-gradient(
    var(--bg) 0 27px, var(--line) 27px 28px
  );
}

.btn {
  font-family: 'IBM Plex Mono', ui-monospace, SF Mono, Menlo, Consolas, monospace;
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background-color: var(--surface);
  min-height: 44px;
  cursor: pointer;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: var(--accent);
  color: var(--surface);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 640px) {
  .card {
    padding: 16px;
  }
}
