/* Reset, tipografie și layout de bază. */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--pine);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pine);
  color: var(--mint);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; outline: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
h3 { font-size: var(--text-lg); font-weight: 600; }

p { margin: 0; max-width: 66ch; }
a { color: var(--gold); text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--paper); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* Tot ce stă pe hârtie folosește cerneala, nu culorile de pe verde. */
.paper { background: var(--paper); color: var(--ink-2); }
.paper h1, .paper h2, .paper h3 { color: var(--ink); }
.paper a:not(.btn) { color: var(--red-ink); }
.paper a:hover { color: var(--red-dark); }

.container { width: min(100% - 2 * var(--space-6), var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--space-6), var(--narrow)); margin-inline: auto; }

.section { padding-block: var(--space-16); }
@media (min-width: 768px) { .section { padding-block: var(--space-20); } }
.section-head { margin-bottom: var(--space-8); display: grid; gap: var(--space-3); }
.section-head p { color: var(--mint-2); }

.muted { color: var(--mint-2); }
.paper .muted { color: var(--ink-3); }
.mono { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--space-4); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--gold); color: var(--ink); border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--space-4); }
