:root {
  --paper: #f6f3ec;
  --paper-2: #efebe1;
  --ink: #151515;
  --ink-2: #3b3b3b;
  --muted: #6b6760;
  --rule: #1c1c1c;
  --hair: rgba(21, 21, 21, 0.14);
  --red: #c4262b;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'onum';
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(196, 38, 43, .16); }

.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.wrap-wide { width: min(1040px, 100% - 64px); margin-inline: auto; }
.wrap-text { width: min(660px, 100% - 48px); margin-inline: auto; }

/* small caps label style */
.kicker, .rubric, .top-line, .sections, .bar-nav, .byline, .badge, .foot nav, .copy, #cookie-banner {
  font-family: var(--sans);
}
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  padding-top: 14px; border-top: 3px solid var(--rule); margin-bottom: 28px; display: inline-block; min-width: 72px;
}
.rubric { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.byline { font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.byline .sep { margin: 0 4px; color: var(--hair); color: #b9b4aa; }
.badge {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hair); padding: 2px 6px; border-radius: 3px; vertical-align: 1px;
}

/* MASTHEAD (front page) */
.masthead { padding-bottom: 0; }
.top-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .06em; color: var(--muted); padding: 18px 0 0;
}
.lang { text-decoration: none; color: var(--muted); }
.lang:hover { color: var(--red); }
.mast { text-align: center; padding: 40px 0 30px; }
.mast-mark svg { height: clamp(64px, 9vw, 112px); width: auto; display: inline-block; }
.mast-mark { display: inline-block; }
svg .cut { fill: var(--paper); }
.mast-tagline { font-style: italic; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); margin-top: 18px; }
.sections {
  display: flex; justify-content: center; gap: 36px; padding: 13px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--rule); /* double rule */
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.sections a { text-decoration: none; }
.sections a:hover { color: var(--red); }

/* COMPACT BAR (essay pages) */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(246, 243, 236, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.bar-inner { display: flex; justify-content: space-between; align-items: center; height: 62px; }
.mark svg { height: 28px; width: auto; display: block; }
.bar-nav { display: flex; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { color: var(--red); }
.bar-nav .lang { color: var(--muted); }

/* FRONT PAGE */
.front { padding: 56px 0 24px; }
.story h2 { font-weight: 500; letter-spacing: -0.012em; line-height: 1.08; }
.story h2 a { text-decoration: none; }
.story h2 a:hover { color: var(--red); }
.story-img { display: block; overflow: hidden; background: #0c0c0c; }
.story-img img { width: 100%; aspect-ratio: 27 / 20; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.story:hover .story-img img { transform: scale(1.02); }
.standfirst { color: var(--ink-2); line-height: 1.42; }

.story--lead { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-bottom: 64px; border-bottom: 1px solid var(--hair); }
.story--lead .story-img { order: 2; }
.story--lead h2 { font-size: clamp(44px, 5.6vw, 76px); margin-bottom: 22px; }
.story--lead .standfirst { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 26px; }

.more { padding-top: 56px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.grid .story-img { margin-bottom: 18px; }
.grid h2 { font-size: 28px; margin-bottom: 10px; }
.grid .standfirst { font-size: 18px; margin-bottom: 14px; }
.empty { font-size: 22px; font-style: italic; color: var(--muted); }

/* AUTHOR */
.author-section { padding: 72px 0 96px; }
.author-grid { display: grid; grid-template-columns: minmax(0, 620px) 240px; gap: 72px; align-items: center; justify-content: space-between; max-width: 1000px; }
.author-grid img { width: 100%; order: 2; }
.author-grid p:not(.kicker) { font-size: 22px; line-height: 1.5; color: var(--ink-2); margin-bottom: 14px; }

/* ESSAY */
.essay { padding: 64px 0 88px; }
.essay-head { text-align: center; }
.essay-head h1 { font-weight: 500; font-size: clamp(46px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px; }
.essay-head .standfirst { font-style: italic; font-size: clamp(21px, 2.1vw, 26px); margin-bottom: 26px; }
.essay-head .byline { padding-top: 18px; border-top: 1px solid var(--hair); display: inline-block; }
.twin { margin-top: 14px; font-family: var(--sans); font-size: 13px; }
.twin a { color: var(--red); text-decoration: none; }
.essay-img { margin-top: 48px; margin-bottom: 52px; }
.essay-img img { width: 100%; }
.essay-img figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 10px; }

.prose { font-size: 21px; line-height: 1.66; color: #1b1b1b; hyphens: auto; -webkit-hyphens: auto; }
.prose > * + * { margin-top: 1.05em; }
.prose > p:first-child::first-letter {
  float: left; font-size: 4.25em; line-height: .8; font-weight: 500; margin: .07em .09em 0 0; color: var(--ink);
}
.prose > p:first-child::first-line { font-variant: small-caps; letter-spacing: .03em; }
.prose h2, .prose h3 { font-weight: 600; line-height: 1.2; margin-top: 1.8em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 22px; font-style: italic; font-weight: 500; }
.prose a { text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose blockquote { font-size: 1.25em; font-style: italic; line-height: 1.4; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; margin: 1.6em 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; text-align: center; margin: 1.8em 0; }
.prose hr::after { content: '⁂'; color: var(--muted); }
.end { color: var(--red); font-size: .55em; vertical-align: 2px; margin-left: 6px; }

.note { display: flex; gap: 20px; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); }
.note img { width: 56px; flex-shrink: 0; }
.note p { font-style: italic; font-size: 17px; color: var(--ink-2); line-height: 1.5; }
.back { margin-top: 36px; font-family: var(--sans); font-size: 13px; letter-spacing: .04em; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--red); }

/* FOOTER */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.foot-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-mark svg { height: 22px; width: auto; display: block; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; flex: 1; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--red); }
.copy { font-size: 12px; color: var(--muted); }

/* COOKIES */
#cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99;
  width: calc(100% - 40px); max-width: 640px; display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #e8e4da; padding: 16px 20px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
#cookie-banner[hidden] { display: none; }
#cookie-banner p { flex: 1; font-size: 13px; line-height: 1.5; }
#cookie-banner button { font: 500 13px var(--sans); padding: 9px 16px; border-radius: 3px; cursor: pointer; }
.cookie-ok { background: #f6f3ec; color: var(--ink); border: 0; }
.cookie-no { background: transparent; color: #b8b2a6; border: 1px solid #4a4a4a; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .story--lead { grid-template-columns: 1fr; gap: 28px; }
  .story--lead .story-img { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { width: calc(100% - 40px); }
  .mast { padding: 28px 0 22px; }
  .sections { gap: 24px; }
  .front { padding-top: 36px; }
  .grid { grid-template-columns: 1fr; }
  .author-section { padding: 48px 0 72px; }
  .author-grid { display: block; }
  .author-grid img { float: right; width: 112px; margin: 6px 0 10px 18px; }
  .author-grid p:not(.kicker) { font-size: 19px; }
  .author-grid::after { content: ''; display: block; clear: both; }
  .bar-nav { gap: 18px; font-size: 11px; }
  .bar-nav a:not(.lang):nth-child(2) { display: none; }
  .essay { padding-top: 40px; }
  .essay-img { width: 100%; margin-top: 32px; margin-bottom: 36px; }
  .prose { font-size: 19px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  #cookie-banner { flex-direction: column; align-items: stretch; bottom: 0; width: 100%; border-radius: 0; }
}

/* portret: miękkie krawędzie, żeby papier wtapiał się w tło strony */
.author-grid img, .note img {
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 52%, transparent 97%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 52%, transparent 97%);
}

/* SUBSCRIBE */
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.subscribe { margin-top: 64px; padding-top: 0; }
.subscribe .kicker { margin-bottom: 18px; }
.subscribe-lead { font-size: 24px; line-height: 1.3; font-weight: 500; margin-bottom: 18px; }
.subscribe-row { display: flex; gap: 0; border: 1px solid var(--rule); background: #fbf9f4; }
.subscribe-row input[type=email] {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 16px;
  font: 400 17px var(--serif); color: var(--ink); outline: none;
}
.subscribe-row input[type=email]::placeholder { color: #8d887e; font-style: italic; }
.subscribe-row button {
  border: 0; background: var(--ink); color: var(--paper); padding: 0 22px; cursor: pointer;
  font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .2s;
}
.subscribe-row button:hover { background: var(--red); }
.subscribe-row button:disabled { opacity: .5; cursor: wait; }
.subscribe-row:focus-within { box-shadow: 0 0 0 3px rgba(196, 38, 43, .12); }
.subscribe-note { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 10px; }
.subscribe-note a { color: var(--muted); }
.subscribe-msg { font-style: italic; font-size: 17px; margin-top: 12px; }
.subscribe-msg:empty { display: none; }
.subscribe-msg.err { color: var(--red); }
.subscribe.is-done .subscribe-row, .subscribe.is-done .subscribe-note { display: none; }
.sub-section { padding-top: 8px; }
.subscribe--wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: end; margin-top: 56px; padding-bottom: 8px; }
.subscribe--wide .kicker { grid-column: 1 / -1; justify-self: start; }
.subscribe--wide .subscribe-lead { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 0; }
.subscribe--wide .subscribe-note, .subscribe--wide .subscribe-msg { grid-column: 2; }
.confirmed {
  background: var(--ink); color: var(--paper); text-align: center; padding: 12px 20px;
  font-family: var(--sans); font-size: 14px;
}
@media (max-width: 760px) {
  .subscribe--wide { display: block; }
  .subscribe--wide .subscribe-lead { margin-bottom: 18px; }
  .subscribe-lead { font-size: 21px; }
  .subscribe-row button { padding: 0 16px; }
}
