/* tarotgratis.de — editorial design system. Paper and ink, with the card art as the colour. */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --ink: #221f1b;
  --ink-2: #4a443c;
  --muted: #7a7166;
  --rule: #ddd3c2;
  --accent: #8c3a24;      /* brick red, taken from the RWS palette */
  --accent-ink: #fff8ef;
  --gold: #b88a2e;

  --font-display: 'Fraunces Variable', Georgia, serif;
  --font-text: 'Literata Variable', Georgia, serif;
  --font-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --measure: 40rem;
  --wide: 72rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(34 31 27 / .08), 0 8px 24px rgb(34 31 27 / .08);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --paper-2: #211e1a;
    --ink: #ece5d8;
    --ink-2: #cfc6b6;
    --muted: #9c9284;
    --rule: #37322b;
    --accent: #e08b6a;
    --accent-ink: #1a1512;
    --gold: #d9ac52;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 50, 'opsz' 72;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font: 600 .75rem/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 36rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }

.button {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em;
  background: var(--accent); color: var(--accent-ink);
  font: 600 .95rem/1 var(--font-ui);
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.button.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--rule); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  font: 500 .8rem/1 var(--font-ui);
  padding: .45em .7em;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
