/* =============================================================
   mrokpodcast.pl - arkusz stylów
   Wygląd odtworzony z dawnego motywu WordPress "Twenty Twenty-One"
   (ciemny wariant) wraz z własnymi poprawkami ze starej strony.
   Spis treści:
     1. Fonty (hostowane lokalnie)
     2. Zmienne i podstawy
     3. Strona główna
     4. Menu, nagłówek i stopka podstron
     5. Treść: lista odcinków, odcinek, O podcaście
     6. Media queries
   ============================================================= */

/* ---------- 1. Fonty ----------
   Wszystkie na licencji SIL Open Font License 1.1 (pakiety @fontsource).
   - Emilys Candy: tytuł „Mrok” na stronie głównej
   - Bigelow Rules: podtytuł na stronie głównej
   - Roboto Condensed Light: treść i tytuły. Zastępuje Open Sans Condensed Light
     ze starej strony (tamte pliki fontów zaginęły, strona pokazywała Arial). */
@font-face { font-family: "Emilys Candy"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/emilys-candy-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Emilys Candy"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/emilys-candy-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bigelow Rules"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bigelow-rules-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bigelow Rules"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bigelow-rules-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-condensed-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-condensed-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Condensed"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/roboto-condensed-latin-300-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/roboto-condensed-latin-ext-300-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 2. Zmienne i podstawy ---------- */
:root {
  --bg: #0b1517;
  --text: #fff;
  --muted: rgba(255, 255, 255, .75);
  --content-width: 610px;
  --wide-width: 1240px;
  --gutter: 25px;
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

p { margin: 0 0 1.25em; text-align: justify; }
strong, b { font-weight: 700; }

h1, h2 { margin: 0; font-weight: 300; line-height: 1.15; }

a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-style: dotted; }
:focus-visible { outline: 2px dotted currentColor; outline-offset: 3px; }

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75em 1em;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { left: .5em; top: .5em; }

/* Szerokości kolumn: treść (610 px) i „szeroka” (nagłówki, menu) */
.wrap, .wrap-wide {
  width: calc(100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}
.wrap      { max-width: var(--content-width); }
.wrap-wide { max-width: var(--wide-width); }

/* Ikony Spotify / YouTube w stopce (i na stronie głównej) */
.social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a { display: block; padding: 4px; }
.social img { width: 34px; height: auto; }

/* ---------- 3. Strona główna ----------
   Ilustracja z lasem wycentrowana i przypięta (background-attachment: fixed),
   na niej tytuł, podtytuł i dwa linki. */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg) url("../img/tlo-1101.jpg") no-repeat center / contain fixed;
}
.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2em var(--gutter) 0;
  text-align: center;
}
.home__title {
  font-family: "Emilys Candy", var(--font);
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1.1;
}
.home__tagline {
  margin: 0 0 1.25em;
  font-family: "Bigelow Rules", var(--font);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.2;
  text-align: center;
}
.home__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25em 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.5rem;
}
.home__menu a { text-decoration: none; border-bottom: 2px solid transparent; }
.home__menu a:hover, .home__menu a:focus-visible { border-bottom: 2px dotted; }
.home footer { padding: 3em 0 4em; }

/* ---------- 4. Menu, nagłówek i stopka podstron ---------- */
.site-nav { padding: 2.5em 0 0; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25em 1.4em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }

.page-header {
  margin-top: 3.5em;
  margin-bottom: 3.5em;
  padding-bottom: .9em;
  border-bottom: 3px solid var(--text);
}
.page-header h1 { font-size: 2.5rem; }

.site-footer { padding: 3em 0 2.5em; }

/* ---------- 5. Treść ---------- */

/* Lista odcinków */
.episodes { margin: 0; padding: 0; list-style: none; }
.episodes li {
  margin-bottom: 3em;
  padding-bottom: 3em;
  border-bottom: 1px solid var(--text);
}
.episodes li:last-child { border-bottom: 0; }
.episodes h2 { margin-bottom: .9em; font-size: 2.25rem; }
.posted-on { margin: 0; font-size: 1rem; color: var(--muted); }

/* Strona odcinka */
.player { margin: 2em 0; text-align: center; }
.player iframe { display: block; width: 100%; border: 0; }
.player--spotify iframe { height: 232px; border-radius: 12px; }
.player--youtube iframe { aspect-ratio: 16 / 9; height: auto; }

.episode-place {
  margin: 0 0 2.5em;
  padding-top: 1.5em;
  border-top: 2px solid var(--text);
  text-align: center;
}
.episode-footer { margin-bottom: 3em; }

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5em;
  padding-top: 2em;
  border-top: 3px solid var(--text);
}
.post-nav a { display: block; max-width: 48%; text-decoration: none; }
.post-nav a:hover .post-nav__title { text-decoration: underline; }
.post-nav__next { margin-left: auto; text-align: right; }
.post-nav__label { display: block; font-size: 1rem; color: var(--muted); }
.post-nav__title { display: block; font-size: 1.5rem; line-height: 1.3; }

/* O podcaście */
.listen { margin: 0 0 2em; }
.listen p { margin-bottom: .6em; }
.listen a { display: inline-block; }
.listen img { width: 180px; }
.listen .spotify-btn {
  padding: 2px;
  border: 1px solid var(--text);
  border-radius: 5px;
}
.motto { margin: 3em 0; }
.motto blockquote { margin: 0; font-style: italic; }
.motto figcaption { padding-left: 1.75em; }

/* ---------- 6. Media queries ---------- */
@media (min-width: 482px) {
  .page-header h1 { font-size: 3rem; }
}

@media (min-width: 822px) {
  :root { --gutter: 60px; }
  .page-header h1 { font-size: 4rem; }
}

@media (max-width: 481px) {
  body { font-size: 1.125rem; }
  .site-nav ul { justify-content: center; }
  .episodes h2 { font-size: 1.75rem; }
  .post-nav a { max-width: 100%; }
  .post-nav__next { text-align: right; }
}

/* iOS Safari nie obsługuje background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .home { background-attachment: scroll; }
}

@media (max-width: 700px) {
  .home { background-image: url("../img/tlo-700.jpg"); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
