/* racicki.com - vanilla CSS, mobile-first
 * Typografia: Inter (body) + Fraunces (nagłówki)
 * Kolory: off-white #fafaf7 / ciemny granat #1a2a4a / tekst #111
 * Szerokość treści: 680px (czytelność)
 */

:root {
  --bg: #FAF7F2;
  --bg-cosmic: #0F1729;
  --text: #0F1729;
  --text-muted: #5A5A52;
  --text-on-cosmic: #E8E6E1;
  --accent: #2D8659;
  --accent-hover: #236B47;
  --star: #E4B24A;
  --border: #E2DED6;
  --placeholder-bg: #eeeeea;
  --placeholder-border: #cfcfc9;
  --measure: 680px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 1.5rem 0 .75rem; }

@media (min-width: 720px) {
  h2 { font-size: 2.25rem; }
}

ul li::marker { color: var(--star); }

p { margin: 0 0 1.1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
}

/* Nawigacja - kosmiczne tło z gwiazdami */
.site-nav {
  background: var(--bg-cosmic) url('/stars.svg') center / 400px 200px repeat;
  border-bottom: 1px solid rgba(232, 230, 225, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-nav__logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-on-cosmic);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav__logo:hover { color: var(--star); }
.site-nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__menu a {
  color: var(--text-on-cosmic);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav__menu a:hover { color: var(--star); }
.site-nav__menu a.active { color: var(--star); font-weight: 600; }
.site-nav__menu .nav-home {
  display: inline-flex;
  align-items: center;
  color: var(--text-on-cosmic);
  padding: 2px 0;
}
.site-nav__menu .nav-home:hover { color: var(--star); }
.site-nav__menu .nav-home svg { display: block; }

/* Figure z podpisem (figcaption) */
figure { margin: 1.5rem 0; padding: 0; }
figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* Sekcje i szerokość treści */
main { display: block; }
.section {
  padding: 2.25rem 1.25rem;
}
.section--hero + .section { padding-top: 1.5rem; }
.section__inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.section--wide .section__inner { max-width: 1000px; }
.section--hero {
  padding: 4rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, #F0ECE3 0%, var(--bg) 100%);
}
.section--hero h1 { font-size: 2.15rem; max-width: 18ch; }

@media (min-width: 720px) {
  .section { padding: 3.5rem 1.5rem; }
  .section--hero { padding: 5.5rem 1.5rem 3.5rem; }
  .section--hero + .section { padding-top: 2rem; }
  .section--hero h1 { font-size: 2.75rem; }
}

/* Obrazy w treści */
.content-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}
.content-photo--portrait { max-width: 380px; margin-left: auto; margin-right: auto; }
.content-photo--book { max-width: 260px; margin-left: auto; margin-right: auto; }

/* Photo placeholders */
.photo-placeholder {
  width: 100%;
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}
.photo-placeholder--hero { aspect-ratio: 16 / 9; }
.photo-placeholder--wide { aspect-ratio: 16 / 9; }
.photo-placeholder--portrait { aspect-ratio: 4 / 5; max-width: 380px; }
.photo-placeholder--square { aspect-ratio: 1 / 1; }
.photo-placeholder--logos { aspect-ratio: 4 / 2; }
.photo-placeholder--book { aspect-ratio: 2 / 3; max-width: 260px; margin-left: auto; margin-right: auto; }

/* Dwie osie */
.dual-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 820px) {
  .dual-boxes { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.dual-box {
  background: #F4EFE5;
  padding: 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.dual-box h3 {
  margin-top: 0;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.35rem;
}
.dual-box__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Pasek dyskretny */
.footnote-bar {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA */
.cta-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}
.email-big {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 500;
  display: inline-block;
  margin: 1rem 0 0.5rem;
}
@media (min-width: 720px) {
  .email-big { font-size: 2rem; }
}

/* Newsletter embed */
.newsletter-embed {
  background: #F4EFE5;
  padding: 2rem 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}
.newsletter-embed__placeholder {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  border: 1px dashed var(--placeholder-border);
  border-radius: 4px;
  text-align: center;
  padding: 1rem;
}

/* Drabina */
.ladder-category {
  margin: 2rem 0;
}
.ladder-category h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.ladder-category ul {
  list-style: none;
  padding-left: 0;
}
.ladder-category li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
}
.ladder-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Lista wulkanów */
.volcano-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}
.volcano-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.volcano-list li:last-child { border-bottom: none; }
.volcano-list__alt {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Stopka - kosmiczne tło z gwiazdami */
.site-footer {
  background: var(--bg-cosmic) url('/stars.svg') center / 400px 200px repeat;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--text-on-cosmic);
}
.site-footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.site-footer a {
  color: var(--text-on-cosmic);
  text-decoration-color: rgba(232, 230, 225, 0.4);
}
.site-footer a:hover {
  color: var(--star);
  text-decoration-color: var(--star);
}
.site-footer__legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 230, 225, 0.15);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.muted { color: var(--text-muted); font-size: 0.9rem; }

/* === Plansza spółek (pierwsza górka) === */
.plansza-spolek-figure {
  margin: 2.5rem 0;
  padding: 0;
  text-align: center;
}
.plansza-spolek-figure img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Media list */
.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;
}
.media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .media-list { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
}
.media-item {
  background: var(--placeholder-bg, #F4EFE5);
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.media-item h3 {
  margin: 0 0 0.5rem;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.15rem;
}
.media-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
