/* Frontier — strona tekstu (publikacja, artykuł). Czytelnia według wzoru D4 Frontier (Design.md, punkt 10),
   z otwierającym zdjęciem jak na pl.jasonhunt.media. Gdzie Frontier ma własne rozwiązanie, obowiązuje Frontier. */
@font-face { font-family: Manrope; src: url('/assets/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url('/assets/manrope-latin-ext.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Oswald; src: url('/assets/oswald-latin-ext.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Oswald; src: url('/assets/oswald-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --radius: 12px;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: var(--font-body);
  --bg-base: #FAFBFB;
  --surface: #FFFFFF;
  --surface-soft: #F4F8FA;
  --surface-elevated: #FFFFFF;
  --ink: #17181C;
  --ink-soft: #55575F;
  --ink-faint: #8E9199;
  --line: #E2E8F2;
  --line-strong: #CBD5E1;
  --aqua: #0096FF;
  --aqua-soft: rgba(0, 150, 255, 0.08);
  --aqua-text: #0075C7;
  --red: #EE220A;
  --red-hover: #16A34A;
  --green: #22A559;
  --shadow-sm: 0 4px 12px rgba(20, 40, 60, 0.04);
  --shadow-card: 0 14px 34px -14px rgba(20, 50, 80, 0.08);
  --header-bg: rgba(250, 251, 251, 0.92);
  --logo-filter: none;
  --reading-text: #2D3748;
  --cobalt: #1778FF;
  --cobalt-line: rgba(23, 120, 255, 0.4);
  --meta: #64748B;
  --quote-bg: #F8FAFC;
  --quote-line: rgba(0, 150, 255, 0.22);
}
body.theme-evening {
  --bg-base: #11161D;
  --surface: #18202A;
  --surface-soft: #1E2835;
  --surface-elevated: #222C3A;
  --ink: #F3F6FA;
  --ink-soft: #A7B4C6;
  --ink-faint: #738296;
  --line: #283546;
  --line-strong: #36475D;
  --aqua-soft: rgba(0, 150, 255, 0.16);
  --aqua-text: #8FD1FF;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(24, 32, 42, 0.92);
  --logo-filter: brightness(0) invert(1);
  --reading-text: #CBD5E1;
  --cobalt: #6FB1FF;
  --cobalt-line: rgba(111, 177, 255, 0.45);
  --meta: #A7B4C6;
  --quote-bg: #1E2835;
  --quote-line: rgba(111, 177, 255, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(760px 520px at 6% -8%, rgba(120, 160, 176, .20), transparent 70%),
    radial-gradient(660px 480px at 96% 4%, rgba(150, 176, 160, .18), transparent 70%),
    radial-gradient(900px 600px at 50% 116%, rgba(196, 206, 214, .40), transparent 70%),
    var(--bg-base);
}
body.theme-evening {
  background:
    radial-gradient(760px 520px at 6% -8%, rgba(0, 150, 255, .10), transparent 70%),
    radial-gradient(660px 480px at 96% 4%, rgba(34, 165, 89, .07), transparent 70%),
    var(--bg-base);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* Przycisk konta w menu (public-studio.js): ten sam wygląd co na stronie głównej. */
.studio-account-link, a.btn-login { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; line-height: 1; }
@media (max-width: 640px) { .studio-account-link { font-size: 14px; padding-inline: 10px; } }

/* Zdjęcie otwierające: szerokość kontenera Frontier, narożniki 12 px. */
.text-main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 28px 36px 0; }
.text-hero { margin: 0; border-radius: var(--radius); overflow: hidden; height: clamp(240px, 42vw, 560px); background: var(--surface-soft); }
.text-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* Czytelnia: kolory, wagi i rozmiary jak na pl.jasonhunt.media (Jason, 08.11.2026: identycznie).
   Treść zostaje w oryginalnych ustawieniach Frontier (Manrope 16 px, interlinia 1,78): fonty treści są nietykalne (Jason, 08.11.2026). Szpalta 792 px daje ok. 85 znaków w wierszu. */
.text-stage { max-width: 792px; margin: 40px auto 0; min-width: 0; }
.post-header { text-align: center; margin-bottom: 36px; }
.post-category-finial { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 18px; }
.post-category-finial .post-finial-line { flex: 1; max-width: 160px; height: 1px; background: var(--line); }
.post-category-tag { display: inline-block; font: 700 14px/1.2 Oswald, sans-serif; color: var(--cobalt); letter-spacing: .15em; text-transform: uppercase; }
.post-title { color: var(--ink); font: 700 38px/1.24 Oswald, sans-serif; margin: 0 0 20px; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.post-meta-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--meta); font: 500 14px/1.65 Manrope, sans-serif; }
.post-header-accent-line { width: 48px; height: 3px; background: var(--cobalt); margin: 26px auto 0; border-radius: 2px; }
.post-reading-sheet { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 36px #0f172a12; padding: 60px 68px 72px; }

.text-body { font-size: 16px; line-height: 1.78; color: var(--reading-text); }
.text-body p { margin: 0 0 24px; }
.text-body h2 { font: 600 24px/1.35 Oswald, sans-serif; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 40px 0 16px; text-wrap: balance; }
.text-body .reading-sub-accent { width: 32px; height: 3px; background: var(--aqua); border-radius: 2px; margin: 0 0 20px; }
.text-body h2.tx-center + .reading-sub-accent { margin-left: auto; margin-right: auto; }
.text-body blockquote { margin: 38px 0; padding: 32px 38px; border: 1.5px solid var(--quote-line); border-radius: var(--radius); background: var(--quote-bg); box-shadow: 0 8px 25px #0f172a0a; text-align: center; }
.text-body blockquote p { margin: 0 0 14px; text-align: center; }
.text-body blockquote p:last-child { margin-bottom: 0; }
.text-body strong { font-weight: 700; color: var(--ink); }
.text-body a { color: var(--aqua-text); }
.text-body ul, .text-body ol { margin: 0 0 32px; padding-left: 36px; }
.text-body li { margin-bottom: 8px; }
.tx-center { text-align: center; }
.tx-right { text-align: right; }
.tx-justify { text-align: justify; }

.post-end-finial { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 55px 0 10px; }
.post-end-finial .post-finial-line { flex: 1; max-width: 160px; height: 1px; background: #111827; }
.post-finial-text { font: 700 14px/1 Oswald, sans-serif; letter-spacing: .18em; color: #111827; text-transform: uppercase; }

body.theme-evening .post-reading-sheet { box-shadow: var(--shadow-card); }
body.theme-evening .post-end-finial .post-finial-line { background: #A7B4C6; }
body.theme-evening .post-finial-text { color: #F3F6FA; }

/* Nawigacja pod tekstem jak na blogu: poprzedni i następny tekst; gdy sąsiadów brak, jedna karta powrotu do listy. */
.post-prev-next-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 0; }
.post-nav-card { display: flex; align-items: center; min-width: 0; gap: 18px; padding: 16px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 6px 20px #00000008; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-nav-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #1778ff1f; border-color: #1778ff59; }
.post-nav-card.all { grid-column: 1 / -1; justify-content: center; text-align: center; }
.post-nav-card-thumb { width: 70px; height: 70px; border-radius: 12px; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, .06); }
.post-nav-card-content { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.post-nav-label { font: 700 11.5px/1.2 Oswald, sans-serif; letter-spacing: .08em; color: var(--cobalt); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.post-nav-card.all .post-nav-label { justify-content: center; }
.post-nav-title { font: 600 16.5px/1.3 Oswald, sans-serif; color: var(--ink); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-nav-card.next { text-align: right; }
.post-nav-card.next .post-nav-label { justify-content: flex-end; }
@media (max-width: 700px) { .post-prev-next-nav { grid-template-columns: 1fr; gap: 14px; } }

/* Jedyna stopka Frontier (Design.md, punkt 8), ten sam wzór co strona główna i bramka. */
.site-footer { margin-top: 56px; padding: 24px 16px 64px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-pill { appearance: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--font-body); font-size: 13.5px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s, transform .2s; }
a.footer-pill:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.footer-pill.is-static { cursor: default; }
.footer-pill-icon { width: 15px; height: 15px; display: block; flex-shrink: 0; color: var(--ink); }

@media (max-width: 860px) {
  .post-reading-sheet { padding: 36px 24px 44px; }
  .post-title { font-size: 30px; }
}
@media (max-width: 700px) {
  .text-main { padding: 20px 16px 0; }
  .text-stage { margin-top: 28px; }
  .post-category-finial { gap: 12px; margin-bottom: 12px; }
  .post-category-finial .post-finial-line { max-width: 60px; }
  .post-header-accent-line { margin-top: 18px; }
  .text-body { font-size: 15.5px; }
  .text-body h2 { font-size: 21px; margin-top: 32px; }
  .text-body blockquote { padding: 24px 20px; }
  .post-end-finial { gap: 14px; margin: 40px 0 8px; }
  .post-end-finial .post-finial-line { max-width: 60px; }
  .site-footer { margin-top: 40px; padding: 16px 16px 48px; gap: 8px; }
  .footer-pill { padding: 8px 16px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  .post-reading-sheet { padding: 26px 18px 34px; }
  .post-title { font-size: 24px; line-height: 1.25; }
  .post-meta-bar { font-size: 12.5px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .footer-pill, .post-nav-card { transition: none; } }
