/* ==========================================================================
   CZYTUJ — kit.css
   Design tokens + base. Kolory i fonty przeniesione z motywu Typology
   (czytuj.pl na WordPressie): akcent #c62641, Merriweather + Alata.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alata&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
  /* ---------- COLOR ---------- */
  --bg:            #F8F8F8;   /* tło strony */
  --paper:         #FFFFFF;   /* karta z treścią */
  --bg-soft:       #F0EEEC;   /* sekcje alternatywne, placeholdery */
  --ink:           #2B2B2B;   /* nagłówki */
  --ink-text:      #444444;   /* tekst */
  --ink-soft:      #888888;   /* meta */
  --ink-ghost:     #B5B5B5;
  --accent:        #C62641;   /* karmin z logo */
  --accent-hover:  #A01C33;
  --mast:          #1D1B1B;   /* pasek nagłówka (logo ma jasny napis) */
  --mast-ink:      #F2F2F2;
  --cover-veil:    rgba(198, 38, 65, .6);   /* karmazynowa nakładka na zdjęcie okładki */
  --rule:          #E6E3E0;
  --shadow-card:   0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05);

  /* ---------- TYPOGRAPHY ---------- */
  --font-display:  'Alata', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:     'Merriweather', Georgia, 'Times New Roman', serif;

  --fs-hero:       clamp(40px, 7vw, 76px);
  --fs-h1:         clamp(30px, 4.4vw, 44px);
  --fs-h2:         26px;
  --fs-h3:         20px;
  --fs-body:       16px;
  --fs-poem:       17px;
  --fs-meta:       12px;

  --lh-tight:      1.15;
  --lh-normal:     1.75;
  --lh-poem:       1.9;
  --ls-caps:       0.18em;

  /* ---------- SPACING (8px grid) ---------- */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 96px;

  /* ---------- LAYOUT ---------- */
  --col-content:   720px;
  --col-wide:      1180px;
  --radius:        4px;

  /* ---------- MOTION ---------- */
  --ease:          cubic-bezier(.2, .6, .2, 1);
  --dur:           180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #141313;
    --paper:       #1C1B1B;
    --bg-soft:     #252323;
    --ink:         #EDEAE6;
    --ink-text:    #CFCAC4;
    --ink-soft:    #8E8883;
    --ink-ghost:   #5E5955;
    --accent:      #E4566D;
    --accent-hover:#F07A8D;
    --mast:        #0E0D0D;
    --cover-veil:  rgba(110, 18, 34, .7);
    --rule:        #2E2B2B;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .4);
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 15px; text-transform: uppercase; letter-spacing: var(--ls-caps); }

p { margin: 0 0 var(--space-3); }
strong { font-weight: 700; color: var(--ink); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img, video, iframe { max-width: 100%; }
img { height: auto; }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--space-5) 0;
}

blockquote {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--accent);
  font-style: italic;
}

.meta, .caps {
  font-family: var(--font-display);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px 11px;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; }

.wrap    { max-width: var(--col-wide); margin: 0 auto; padding: 0 var(--space-2); }
.wrap-sm { max-width: var(--col-content); margin: 0 auto; padding: 0 var(--space-2); }

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