:root {
  color-scheme: light;
  --bg: #f1e3ef;
  --surface: #fcf7fb;
  --text: #2a1f2d;
  --accent: #1d6b63;
  --accent2: #e0663a;
  --muted: #655464;
  --line: #ceb9ca;
  --heading: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.75; overflow-wrap: break-word; }
.page { min-height: 100vh; }
main { display: block; }
::selection { background: var(--accent); color: var(--surface); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { margin-top: .8rem; color: var(--muted); font-size: .875rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 500; line-height: 1.13; text-wrap: balance; margin: 0 0 1.1rem; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 2.1rem); }
h4, h5, h6 { font-size: 1.3rem; }
p { margin: 0 0 1.2rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .35rem; }
strong, b { font-weight: 650; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 3px solid var(--accent2); font-family: var(--heading); font-size: 1.4rem; }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; background: #e8d8e5; }
pre { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; max-width: 100%; }
input, select, textarea { padding: .65rem; border: 1px solid var(--muted); background: var(--surface); color: var(--text); }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .7rem 1.2rem; background: var(--surface); border: 2px solid var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 5px solid var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-family: var(--heading); font-size: clamp(1.6rem, 1.3rem + .7vw, 2rem); font-weight: 600; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand::after { content: ''; display: inline-block; width: .4rem; height: .4rem; margin-left: .55rem; background: var(--accent2); border-radius: 50%; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; padding: 0; margin: 0; list-style: none; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: inline-block; padding-block: .5rem; color: var(--text); font-size: .84rem; font-weight: 550; text-decoration: none; }
.site-nav a:hover, .footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4.4rem); }
.eyebrow { display: inline-block; padding: .24rem .65rem; margin-bottom: 1.5rem; background: var(--accent2); color: var(--text); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1rem, .94rem + .2vw, 1.125rem); line-height: 1.8; }
.hero-actions { margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid var(--accent); font-size: .88rem; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background-color .2s, box-shadow .2s; }
.btn-primary { color: var(--surface); background: var(--accent); }
.btn-primary:hover { background: #174f49; box-shadow: 4px 4px 0 var(--line); }
.hero-media { padding: clamp(.65rem, 1.5vw, 1.3rem); background: var(--surface); border: 1px solid #baa4b5; outline: 5px solid #dac8d5; box-shadow: 0 16px 30px #2a1f2d19; transform: rotate(2deg); }
.hero-media img { width: 100%; aspect-ratio: 1.1; object-position: center; }
.section { padding-block: clamp(2.8rem, 5vw, 5rem); }
.section-title { max-width: 25ch; }
.section-title::before { content: ''; display: block; width: 2.7rem; height: 3px; background: var(--accent2); margin-bottom: 1.2rem; }
.section .wrap > p { max-width: 72ch; color: var(--muted); }
.section-intro { max-width: 65ch; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 3.5rem clamp(1.5rem, 5vw, 5rem); margin: 3rem auto 2rem; max-width: 1060px; padding-inline: .6rem; }
.card { display: flex; flex-direction: column; min-width: 0; padding: clamp(.85rem, 2vw, 1.5rem); border: 1px solid #bca8b7; background: var(--surface); box-shadow: 5px 6px 0 #dccbd8, 0 12px 24px #2a1f2d0d; transform: rotate(-1deg); transition: transform .25s, box-shadow .25s; }
.card:nth-child(even) { margin-top: 3rem; transform: rotate(1.2deg); }
.card:nth-child(3) { transform: rotate(.7deg); }
.card:nth-child(4) { transform: rotate(-.8deg); }
.card::before { content: ''; display: block; width: 100%; aspect-ratio: 4 / 3; background-position: center; background-size: cover; background-color: #ded2db; margin-bottom: 1.5rem; }
.card:nth-child(1)::before { background-image: url('img/narracyjne.jpg'); }
.card:nth-child(2)::before { background-image: url('img/vr.jpg'); aspect-ratio: 16 / 11; }
.card:nth-child(3)::before { background-image: url('img/horizon.jpg'); aspect-ratio: 16 / 10; }
.card:nth-child(4)::before { background-image: url('img/gta.jpg'); }
.card-title { margin-bottom: .75rem; }
.card-text { color: var(--muted); font-size: .97rem; line-height: 1.7; }
.card-link { align-self: flex-start; padding-block: .35rem; border-bottom: 2px solid var(--accent2); font-size: .85rem; font-weight: 650; text-decoration: none; }
.card-link::after { content: ' ↗'; margin-left: .6rem; }
.section-feature { border-block: 1px solid var(--line); background: #ebdce8; }
.split { display: grid; grid-template-columns: 1.35fr .8fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.split-text { min-width: 0; }
.split-text p { color: var(--muted); }
.split-media { padding: .85rem; border: 1px solid #bca8b7; background: var(--surface); box-shadow: 8px 8px 0 #d7c2d1; transform: rotate(-2deg); }
.split-media img { width: 100%; aspect-ratio: 3 / 4; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-block: 2rem; padding: 0; list-style: none; }
.fact { border-top: 2px solid var(--accent2); padding-top: 1rem; }
.section-partners { background: var(--surface); border-top: 1px solid var(--line); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.partner { min-width: 0; margin: 0; padding: clamp(1.25rem, 2.6vw, 2.25rem); border: 1px solid var(--line); border-top: 3px solid var(--accent); background: #f6edf4; }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .8rem; line-height: 1.65; margin-bottom: 1.5rem; }
.partner-phrase { font-family: var(--heading); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); line-height: 1.25; }
.partner-desc { color: var(--muted); font-size: .92rem; margin: 0; }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 7vw, 7rem); }
.article > .wrap { max-width: 860px; }
.breadcrumb { color: var(--muted); font-size: .8rem; margin-bottom: 2.5rem; }
.breadcrumb a { margin-right: .35rem; }
.breadcrumb span { margin-left: .35rem; }
.page-header { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 3px solid var(--accent2); }
.page-header h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 4.25rem); margin: 0; }
.prose { max-width: 68ch; margin-inline: auto; font-size: clamp(1rem, .96rem + .25vw, 1.125rem); line-height: 1.9; }
.prose > p:first-child { font-size: 1.08em; color: #51404f; }
.prose h2 { font-size: clamp(1.65rem, 1.3rem + 1vw, 2.3rem); margin-top: 2.7rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; }
.prose .figure { margin-block: 2.5rem; padding: clamp(.5rem, 1.5vw, 1rem); background: var(--surface); border: 1px solid var(--line); box-shadow: 6px 6px 0 #ddccda; }
.figure img { width: 100%; height: auto; object-fit: cover; }
.note { margin-block: 2rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent2); background: var(--surface); }
.note > :last-child { margin-bottom: 0; }
.site-footer { padding-block: 2.7rem; border-top: 1px solid var(--line); background: #e7d6e3; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.footer-note { max-width: 65ch; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.footer-nav a { display: inline-block; padding-block: .3rem; color: var(--text); font-size: .8rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover, .card:focus-within { transform: translateY(-4px) rotate(0); box-shadow: 5px 10px 0 #dccbd8, 0 18px 28px #2a1f2d12; }
}
@media (min-width: 1400px) {
  .hero-media { margin-top: 2rem; }
}
@media (max-width: 1000px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .hero-inner { gap: 2rem; }
  .hero-media img { aspect-ratio: 3 / 4; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.25rem); }
  .site-nav ul { gap: .15rem 1rem; }
  .site-nav a { font-size: .8rem; }
  .hero-inner, .split, .partner-list, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 19ch; }
  .hero-media { width: calc(100% - 1rem); margin: 1rem auto 0; transform: rotate(1deg); }
  .hero-media img { aspect-ratio: 16 / 10; }
  .card-grid { gap: 2rem 1.25rem; padding: 0; }
  .card { padding: .75rem; }
  .card-title { font-size: 1.5rem; }
  .card-text { font-size: .9rem; }
  .split-media { width: min(85%, 360px); margin: 1rem auto; }
  .footer-inner { gap: 1.5rem; }
  .page-header { margin-bottom: 1.8rem; }
}
@media (max-width: 480px) {
  .card-grid, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .card-grid { padding-inline: .3rem; gap: 2rem; }
  .card { padding: 1rem; }
  .card:nth-child(even) { margin-top: 0; }
  .card-title { font-size: 1.8rem; }
  .card::before { aspect-ratio: 4 / 3; }
  .breadcrumb { margin-bottom: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .wrap { width: 100%; }
  .article { padding: 0; }
  .card, .hero-media, .split-media, .prose .figure { transform: none; box-shadow: none; }
  a { color: inherit; }
  h2, h3 { break-after: avoid; }
  img, figure, .partner { break-inside: avoid; }
}
.page-home main { isolation: isolate; }
.page-sub main { min-height: 65vh; }
