/*
Theme Name: Darius Pike Noir
Theme URI: http://localhost/dariuspike.pl/
Author: Darius Pike
Description: Mroczny landing page książki Wampir z Krakowa.
Version: 1.0.50
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: darius-pike-noir
*/

:root {
  --black: #090909;
  --ink: #111;
  --panel: #1b1b1b;
  --paper: #f1eee7;
  --paper-soft: #d7cec0;
  --muted: #aaa198;
  --red: #82151b;
  --red-dark: #4d0c10;
  --line: rgba(241, 238, 231, 0.16);
  --max: 1180px;
  --serif: "EB Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

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

.skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--black);
  clip: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 9, 9, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 34px;
  object-fit: contain;
  filter: contrast(1.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: rgba(241, 238, 231, 0.82);
}

.site-nav a:hover {
  color: var(--paper);
}

.nav-buy {
  padding: 0 18px;
  background: var(--red);
  color: var(--paper) !important;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.45);
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.98) 0%, rgba(9, 9, 9, 0.72) 42%, rgba(9, 9, 9, 0.36) 100%),
    linear-gradient(0deg, #090909 0%, rgba(9, 9, 9, 0.05) 38%),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(0.85);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 112px 0 64px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
.author {
  font-family: var(--serif);
}

h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(51px, 8vw, 114px);
  line-height: 0.83;
  font-weight: 800;
  text-transform: uppercase;
}

.author {
  margin: 20px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.author.small {
  margin-top: -8px;
  font-size: 34px;
}

.lead {
  max-width: 560px;
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  color: rgba(241, 238, 231, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover {
  background: #9b1a21;
}

.btn-secondary {
  border-color: rgba(241, 238, 231, 0.34);
  color: var(--paper);
  background: rgba(9, 9, 9, 0.22);
}

.btn-secondary:hover {
  border-color: var(--paper);
}

.btn-wide {
  width: min(100%, 420px);
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.buy-actions .btn {
  min-width: min(100%, 200px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.meta-row span {
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: rgba(241, 238, 231, 0.76);
  font-size: 12px;
}

.cover-frame {
  margin: 0;
  justify-self: center;
  width: min(390px, 100%);
}

.cover-frame,
.buy-cover {
  position: relative;
  overflow: hidden;
}

.cover-frame img,
.buy-cover img {
  aspect-ratio: 165 / 235;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050505;
  border: 1px solid rgba(241, 238, 231, 0.16);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
}

.cover-frame::before,
.buy-cover::before {
  content: "Premiera 2026-08-24";
  position: absolute;
  z-index: 2;
  top: 26px;
  right: -64px;
  width: 246px;
  padding: 10px 12px;
  transform: rotate(36deg);
  background: #c6a35a;
  color: #111;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.section,
.section-dark,
.section-red,
.section-paper {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 4vw, 48px);
}

.section-dark {
  background: var(--panel);
}

.section-red {
  background: linear-gradient(135deg, #170709 0%, #090909 48%, #2a080b 100%);
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

.section-head,
.content-grid,
.buy-layout,
.map-layout,
.author-section,
.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 42px;
}

.section-head.narrow {
  max-width: 760px;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
}

h3 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
}

.hook {
  padding-top: 0;
}

.section-image {
  width: min(var(--max), calc(100% - 40px));
  min-height: clamp(260px, 42vw, 520px);
  margin: 0 auto clamp(54px, 8vw, 88px);
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.08), rgba(9, 9, 9, 0.6)),
    var(--hero-image) center / cover no-repeat;
  border: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.content-grid .section-kicker {
  grid-column: 1 / -1;
}

.text-stack {
  max-width: 620px;
  color: rgba(241, 238, 231, 0.78);
}

.text-stack p:first-child {
  margin-top: 0;
}

.feature-grid,
.split-panels,
.price-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.split-panels article,
.price-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: clamp(22px, 3vw, 34px);
}

.feature-grid img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  margin: calc(clamp(22px, 3vw, 34px) * -1) calc(clamp(22px, 3vw, 34px) * -1) 24px;
  max-width: calc(100% + (clamp(22px, 3vw, 34px) * 2));
  border-bottom: 1px solid var(--line);
  filter: saturate(0.72) contrast(1.05);
}

.feature-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 800;
}

.feature-grid p,
.split-panels p,
.buy-note,
.author-section p,
.reviews p {
  color: rgba(241, 238, 231, 0.72);
}

.statement {
  width: min(880px, 100%);
  margin: clamp(42px, 6vw, 70px) auto 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  text-align: center;
}

.split-panels {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
}

.fact-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 64px);
}

.fact-photo {
  margin: 0;
  min-height: 100%;
  border: 1px solid var(--line);
  background: #090909;
  overflow: hidden;
}

.fact-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.72) contrast(1.08);
}

.fact-layout .section-head {
  width: 100%;
  margin-inline: 0;
}

.centered {
  margin-inline: auto;
}

.excerpt-paper {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 62px);
  background: #fffaf0;
  color: #15110d;
  border: 1px solid rgba(9, 9, 9, 0.16);
  box-shadow: 0 22px 60px rgba(9, 9, 9, 0.18);
}

.excerpt-paper p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.55;
}

.excerpt-paper p:first-child::first-letter {
  float: left;
  padding-right: 10px;
  font-size: 72px;
  line-height: 0.88;
  color: var(--red);
}

.read-more {
  margin-top: 32px;
  text-align: center;
}

.read-more p {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 32px;
}

.buy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 0.95fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.buy-cover {
  margin: 0;
}

.buy-copy h2 {
  max-width: 8ch;
  text-transform: uppercase;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0;
}

.price-grid-single {
  grid-template-columns: minmax(260px, 420px);
}

.price-grid-duo {
  grid-template-columns: repeat(2, minmax(260px, 360px));
}

.price-grid article {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.price-grid h3 {
  font-size: 24px;
}

.price-grid p {
  margin: 18px 0 0;
  color: var(--paper);
  font-size: 24px;
  font-weight: 800;
}

.price-grid .delivery-note {
  min-height: 2.5em;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.price-grid .price-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 13px 14px;
  background: var(--red);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.price-grid .price-action:hover {
  background: #9b1a21;
}

.price-grid .price-action-secondary {
  background: rgba(241, 238, 231, 0.12);
  border: 1px solid rgba(241, 238, 231, 0.28);
}

.price-grid .price-action-secondary:hover {
  background: rgba(241, 238, 231, 0.2);
}

.price-grid article.is-coming-soon {
  border-color: rgba(241, 238, 231, 0.22);
}

.availability-ribbon {
  position: absolute;
  top: 18px;
  right: -42px;
  z-index: 1;
  width: 166px;
  padding: 7px 10px;
  transform: rotate(36deg);
  background: #c6a35a;
  color: #111;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.price-grid .price-action-disabled,
.price-grid .price-action-disabled:hover {
  background: rgba(241, 238, 231, 0.1);
  color: rgba(241, 238, 231, 0.78);
  border: 1px solid rgba(241, 238, 231, 0.2);
  cursor: default;
}

.krakow-map {
  overflow: hidden;
}

.next-book {
  position: relative;
  overflow: hidden;
}

.buy-showcase {
  position: relative;
  overflow: hidden;
  background: #090909;
}

.buy-showcase-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.97), rgba(9, 9, 9, 0.76) 46%, rgba(9, 9, 9, 0.5)),
    linear-gradient(0deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.18) 48%, rgba(9, 9, 9, 0.8)),
    var(--buy-showcase-bg) center / cover no-repeat;
  opacity: 0.48;
  filter: saturate(0.68) contrast(1.1);
}

.buy-showcase-layout {
  position: relative;
  z-index: 1;
}

.buy-showcase-copy .hero-actions {
  margin-top: 28px;
}

.buy-showcase-copy .btn {
  margin-top: 0;
}

.buy-showcase-price del {
  margin-right: 6px;
  opacity: 0.65;
}

.buy-showcase-price ins {
  color: var(--paper);
  text-decoration: none;
}

.next-book-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.74) 46%, rgba(9, 9, 9, 0.42)),
    linear-gradient(0deg, rgba(9, 9, 9, 0.94), rgba(9, 9, 9, 0.2) 48%, rgba(9, 9, 9, 0.78)),
    var(--next-book-bg) center / cover no-repeat;
  opacity: 0.42;
  filter: saturate(0.68) contrast(1.1);
}

.next-book-layout {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 0.94fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.next-book-cover,
.book-cover-frame {
  margin: 0;
  border: 1px solid var(--line);
  background: #050505;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
}

.next-book-cover img,
.book-cover-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.next-book-copy {
  max-width: 760px;
}

.next-book-copy h2 {
  max-width: 12ch;
  text-transform: uppercase;
}

.next-book-subtitle,
.book-subtitle {
  margin: 10px 0 0;
  color: #c5151b;
  font-family: var(--sans);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.next-book-copy > p:not(.section-kicker, .next-book-subtitle) {
  max-width: 620px;
  color: rgba(241, 238, 231, 0.78);
}

.next-book-copy .btn {
  margin-top: 28px;
}

.book-page-baczynski {
  background: #090909;
}

.book-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.book-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.98), rgba(9, 9, 9, 0.72) 50%, rgba(9, 9, 9, 0.52)),
    linear-gradient(0deg, #090909, rgba(9, 9, 9, 0.06) 42%, rgba(9, 9, 9, 0.72)),
    var(--baczynski-bg) center / cover no-repeat;
  filter: saturate(0.64) contrast(1.08);
}

.book-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.54fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  padding: 112px 0 64px;
}

.book-hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(50px, 7vw, 104px);
}

.book-cover-frame {
  justify-self: center;
  width: min(390px, 100%);
}

.case-file-layout,
.book-dossier-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.case-file-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.76fr);
}

.case-file-layout h2 {
  max-width: 11ch;
}

.book-dossier-layout {
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 0.9fr);
}

.book-dossier-layout figure {
  margin: 0;
  border: 1px solid rgba(9, 9, 9, 0.18);
  background: #090909;
  overflow: hidden;
}

.book-dossier-layout img {
  display: block;
  width: 100%;
  height: auto;
}

.book-dossier .section-kicker,
.book-preview .section-kicker {
  color: #6e655d;
}

.book-dossier .split-panels {
  width: 100%;
  margin-top: 28px;
}

.book-dossier .split-panels article {
  border-color: rgba(9, 9, 9, 0.16);
  background: rgba(9, 9, 9, 0.035);
}

.book-dossier .split-panels p,
.book-preview p {
  color: #5d554e;
}

.purchase-options-book-page {
  width: min(720px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr);
  margin: 36px auto 0;
}

.book-preview .book-buy-card {
  background: #15100e;
  color: var(--paper);
}

.book-preview .book-buy-card p,
.book-preview .book-buy-card li {
  color: var(--paper);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.map-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.45), rgba(9, 9, 9, 0.08)),
    linear-gradient(0deg, rgba(9, 9, 9, 0.56), rgba(9, 9, 9, 0.08)),
    var(--map-image) center / cover no-repeat,
    #101010;
}

.map-panel::before,
.map-panel::after {
  content: "";
  position: absolute;
  inset: 20% -8%;
  border-top: 1px solid rgba(241, 238, 231, 0.2);
  transform: rotate(-13deg);
}

.map-panel::after {
  inset: 54% -8%;
  transform: rotate(9deg);
}

.map-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--red);
  color: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-point::after {
  content: attr(data-place);
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  min-width: max-content;
  padding: 4px 8px;
  background: rgba(9, 9, 9, 0.84);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.map-point.active {
  background: var(--paper);
}

.map-info {
  border: 1px solid var(--line);
  padding: 28px;
  background: #101010;
}

.map-info h3 {
  margin-top: 0;
}

.map-info p:last-child {
  color: rgba(241, 238, 231, 0.74);
}

.author-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 760px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.author-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 1.08;
  overflow: hidden;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.82) contrast(1.05);
}

.author-mark {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 800;
}

.section-paper .section-kicker,
.section-paper .reviews p {
  color: #6e655d;
}

.section-paper .btn-secondary {
  border-color: rgba(9, 9, 9, 0.32);
  color: var(--ink);
  background: transparent;
}

.reviews-layout {
  width: min(var(--max), 100%);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.42fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
}

.reviews-layout .section-head {
  width: 100%;
  margin: 0;
  text-align: left;
}

.reviews-photo {
  margin: 0;
  border: 1px solid rgba(9, 9, 9, 0.18);
  overflow: hidden;
}

.reviews-photo img {
  width: 100%;
  aspect-ratio: 0.93;
  object-fit: cover;
  filter: sepia(0.16) contrast(1.05);
}

.has-modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(26px, 5vw, 42px);
  background:
    linear-gradient(rgba(19, 15, 13, 0.94), rgba(19, 15, 13, 0.94)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.contact-modal__dialog h2 {
  margin: 4px 0 22px;
  font-size: clamp(36px, 6vw, 58px);
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(241, 238, 231, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(241, 238, 231, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  font: inherit;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(198, 163, 90, 0.55);
  outline-offset: 2px;
}

.contact-form__website {
  position: absolute;
  left: -9999px;
}

.contact-form__note,
.contact-form__status {
  margin: 0;
  color: rgba(241, 238, 231, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.contact-form__status.is-success {
  color: #c6a35a;
}

.contact-form__status.is-error {
  color: #ff9a9a;
}

.contact-form button[disabled] {
  opacity: 0.62;
  cursor: wait;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 20px 42px;
  color: rgba(241, 238, 231, 0.6);
  font-size: 13px;
}

.site-footer__links,
.site-footer__payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer__payments span {
  color: rgba(241, 238, 231, 0.62);
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer__payments img {
  width: auto;
  max-width: 92px;
  height: 28px;
  padding: 3px 6px;
  background: #fff;
  object-fit: contain;
}

.mobile-sticky-cta {
  display: none;
}

.commerce-page {
  min-height: 100dvh;
  padding: 118px clamp(20px, 4vw, 48px) 80px;
  background:
    linear-gradient(180deg, rgba(130, 21, 27, 0.16), transparent 360px),
    var(--black);
}

.commerce-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.commerce-content,
.commerce-shop {
  color: var(--paper);
}

/* Keep the empty-cart message and product recommendations visually separate. */
.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  padding: 12px 0 40px;
  text-align: center;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title {
  margin: 0 auto 24px;
  font-size: 18px;
  line-height: 1.45;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator {
  margin: 0 auto 48px;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
  margin: 0 0 32px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-grid {
  margin-top: 0;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: flex-start;
  margin-top: 0;
  padding: 0;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    padding-bottom: 24px;
  }

  .woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator {
    margin-bottom: 40px;
  }

  .woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
    margin-bottom: 24px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: minmax(0, 1fr);
  }
}

.commerce-content > h1,
.woocommerce-products-header__title,
.commerce-shop .page-title {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

.woocommerce ul.products,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
  align-items: start;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  align-self: start;
  align-content: start;
  align-items: start;
}

.woocommerce ul.products li.product > a:first-child {
  display: block;
  align-self: start;
  height: auto;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 165 / 235;
  object-fit: contain;
  background: #050505;
  border: 1px solid var(--line);
}

.woocommerce ul.products li.product a img.dp-shop-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto !important;
  object-fit: contain;
  background: transparent;
  align-self: start;
}

/* WordPress keeps the uploaded 960x1502 attributes on the Baczyński cover,
   while srcset may serve a smaller derivative. Keep the image box at the
   cover's real ratio so it cannot create a black letterbox. */
.woocommerce ul.products li.product a img.dp-shop-cover[width=960][height=1502] {
  aspect-ratio: 960 / 1502 !important;
  height: auto !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.12;
}

.woocommerce ul.products li.product .price {
  color: var(--paper);
  font-size: 18px;
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--red);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
  background: #9b1a21;
  color: var(--paper);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-breadcrumb {
  color: rgba(241, 238, 231, 0.72);
}

.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #payment,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border-radius: 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce form .form-row label,
.woocommerce form .form-row span,
.woocommerce-checkout-review-order-table,
.woocommerce-Price-amount {
  color: var(--paper);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  min-height: 44px;
  border: 1px solid rgba(241, 238, 231, 0.26);
  background: #0f0f0f;
  color: var(--paper);
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.woocommerce div.product::before,
.woocommerce div.product::after {
  display: none;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

.woocommerce div.product div.images {
  max-width: 420px;
  justify-self: start;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  margin: 0;
}

/* Hide the redundant thumbnail strip when the gallery has only one image. */
.single-product .woocommerce-product-gallery .flex-control-thumbs:has(> li:only-child) {
  display: none !important;
}

.woocommerce div.product div.images img {
  width: 100%;
  height: auto;
  aspect-ratio: 165 / 235;
  object-fit: contain;
  background: #050505;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.woocommerce div.product .summary {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-top: 4px;
}

.woocommerce div.product .product_title {
  max-width: 18ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--paper);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

/* Keep the single related product useful without forcing it into a four-column slot. */
.woocommerce div.product .related.products {
  grid-column: 1 / -1;
  width: 100%;
  margin: clamp(48px, 7vw, 88px) 0 0;
}

.woocommerce div.product .related.products > h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  text-align: center;
  text-wrap: balance;
}

.woocommerce div.product .related.products ul.products {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
  gap: 0;
}

.woocommerce div.product .related.products ul.products li.product {
  width: 100%;
  max-width: 360px;
  padding: 20px;
}

.woocommerce div.product .related.products .woocommerce-loop-product__title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.08;
  text-wrap: balance;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0 0;
}

.woocommerce div.product form.cart .button {
  min-width: min(100%, 220px);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(9, 9, 9, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
  }

  .nav-buy {
    margin-top: 10px;
    justify-content: center;
  }

  .hero-inner,
  .content-grid,
  .buy-layout,
  .map-layout,
  .author-section,
  .fact-layout,
  .reviews-layout,
  .next-book-layout,
  .book-hero-inner,
  .case-file-layout,
  .book-dossier-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-bottom: 92px;
  }

  .cover-frame {
    width: min(320px, 84vw);
  }

  .next-book-cover,
  .book-cover-frame {
    width: min(320px, 86vw);
    justify-self: center;
  }

  .feature-grid,
  .split-panels,
  .price-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product div.images {
    width: min(320px, 86vw);
    max-width: 100%;
    justify-self: center;
  }

  .woocommerce div.product .product_title {
    max-width: 100%;
    font-size: clamp(30px, 10vw, 42px);
  }
  .map-layout {
    gap: 18px;
  }

  .map-panel {
    min-height: 430px;
  }

  .map-info {
    width: 100%;
  }

  .fact-photo img {
    min-height: 260px;
  }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 60;
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--paper);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48);
  }

  .site-footer {
    padding-bottom: 88px;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section-head,
  .content-grid,
  .buy-layout,
  .map-layout,
  .author-section,
  .site-footer,
  .next-book-layout,
  .book-hero-inner,
  .case-file-layout,
  .book-dossier-layout {
    width: min(100% - 32px, var(--max));
  }

  h1 {
    font-size: clamp(56px, 18vw, 84px);
  }

  .lead {
    font-size: 24px;
  }

  .hero-actions .btn,
  .read-more .btn,
  .buy-actions .btn {
    width: 100%;
  }

  .section,
  .section-dark,
  .section-red,
  .section-paper {
    padding-inline: 0;
  }

  .section-image {
    width: calc(100% - 32px);
  }

  .map-point::after {
    display: none;
  }

  .author-mark {
    width: 132px;
    font-size: 48px;
  }

  .brand {
    gap: 9px;
    font-size: 20px;
  }

  .brand img {
    width: 40px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.purchase-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.purchase-option {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.purchase-price {
  margin: 0;
  color: var(--paper);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.purchase-price del,
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del,
.read-price del {
  color: rgba(241, 238, 231, 0.55);
  font-size: 0.72em;
}

.purchase-price ins,
.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins,
.read-price ins {
  color: #f6efe4;
  text-decoration: none;
}

.purchase-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(241, 238, 231, 0.76);
  font-size: 14px;
  line-height: 1.35;
}

.purchase-facts li {
  padding-left: 16px;
  border-left: 2px solid var(--red);
}

.purchase-option .price-action {
  margin-top: auto;
}

.dp-product-facts,
.dp-product-external-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dp-product-facts span,
.dp-loop-format {
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: rgba(241, 238, 231, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  max-width: 68ch;
  color: rgba(241, 238, 231, 0.78);
}

.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 34px;
}

.woocommerce ul.products li.product {
  display: grid;
  gap: 12px;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  align-self: start;
}

.read-page {
  background: var(--black);
}

.read-landing {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: clamp(22px, 5vw, 54px);
  background: linear-gradient(90deg, rgba(9, 9, 9, 0.98), rgba(9, 9, 9, 0.72)), var(--black);
}

.read-landing__inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 64px);
  align-items: center;
}

.read-cover {
  margin: 0;
}

.read-cover img {
  width: 100%;
  aspect-ratio: 165 / 235;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #050505;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.read-copy h1 {
  max-width: 11ch;
  font-size: clamp(44px, 10vw, 86px);
  line-height: 0.9;
}

.read-lead {
  max-width: 34ch;
  color: rgba(241, 238, 231, 0.86);
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.12;
}

.read-price {
  margin: 22px 0 0;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
}

.read-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.read-actions .btn,
.read-fragment {
  width: min(100%, 360px);
}

.read-fragment {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  font-weight: 800;
  text-transform: uppercase;
}

.read-note {
  margin-top: 18px;
  color: rgba(241, 238, 231, 0.72);
  font-size: 14px;
}

.review-quote {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--red);
  text-align: left;
}

@media (max-width: 920px) {
  .purchase-options,
  .read-landing__inner {
    grid-template-columns: 1fr;
  }

  .read-cover {
    width: min(260px, 74vw);
    justify-self: center;
  }

  .read-copy {
    text-align: center;
  }

  .read-copy h1,
  .read-lead,
  .read-actions .btn,
  .read-fragment {
    margin-inline: auto;
  }
}

/* Streamlined checkout reassurance for virtual products. */
.dp-checkout-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 168, 104, 0.42);
  border-radius: 8px;
  background: rgba(201, 168, 104, 0.08);
  line-height: 1.5;
}

.dp-checkout-reassurance strong {
  flex-basis: 100%;
  color: inherit;
  font-size: 1.05rem;
}

.dp-checkout-reassurance span {
  display: inline-flex;
  align-items: center;
}

.dp-checkout-reassurance span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

@media (max-width: 520px) {
  .dp-checkout-reassurance {
    display: grid;
    gap: 6px;
  }

  .dp-checkout-reassurance span:not(:last-child)::after {
    display: none;
  }
}

.purchase-editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.purchase-edition {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.72);
}

.purchase-edition--featured {
  border-color: rgba(201, 168, 104, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.purchase-edition__badge {
  margin: 0 0 8px;
  color: var(--paper, #f1e8d8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-edition h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.purchase-edition__price {
  margin: 10px 0 12px;
  color: var(--paper, #f1e8d8);
  font-size: 1.45rem;
  font-weight: 700;
}

.purchase-edition ul {
  flex: 1;
  margin: 0 0 20px;
  padding-left: 20px;
  line-height: 1.65;
}

.purchase-edition .btn {
  width: 100%;
  min-height: 48px;
  text-align: center;
}

.purchase-external-actions {
  margin-top: 16px;
}

.dp-personalization {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid rgba(201, 168, 104, 0.42);
  border-radius: 8px;
  background: rgba(201, 168, 104, 0.08);
}

.dp-personalization legend {
  padding: 0 6px;
  font-weight: 700;
}

.dp-personalization legend span,
.dp-personalization small {
  font-weight: 400;
  opacity: 0.78;
}

.dp-personalization label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.dp-personalization input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.dp-personalization__text {
  display: grid !important;
  gap: 8px !important;
  margin-top: 4px;
}

.dp-personalization__text[hidden] {
  display: none !important;
}

.dp-personalization textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  resize: vertical;
}

@media (max-width: 720px) {
  .purchase-editions {
    grid-template-columns: 1fr;
  }

  .purchase-edition {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .woocommerce ul.products,
  .woocommerce ul.products.columns-2,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce ul.products.columns-2,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: 1fr !important;
  }
}
