@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&display=swap');
:root {
  --ink: #081d20;
  --ink-light: #113138;
  --paper: #e7dec4;
  --paper-muted: #b8ae91;
  --gold: #c49d58;
  --red: #b44131;
  --line: rgba(207, 174, 105, 0.38);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button, a { font: inherit; }
a { color: inherit; }

.site-shell {
  overflow: clip;
  background:
    linear-gradient(rgba(6, 23, 27, 0.96), rgba(7, 24, 28, 0.98)),
    url("../assets/vaesen-hero-background.webp") center top / 1800px auto repeat-y;
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.brand, .back-link { text-decoration: none; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { color: var(--gold); font-size: 1.2rem; }
.coordinates { margin: 0; color: var(--paper-muted); font-size: 0.64rem; }
.back-link { justify-self: end; color: var(--gold); }
.back-link:hover, .footer a:hover { color: #f3d68a; }

.hero { position: relative; min-height: 664px; isolation: isolate; }
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("../assets/vaesen-hero-background.webp") center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 19, 21, 0.93) 0%, rgba(5, 21, 24, 0.72) 54%, rgba(5, 21, 24, 0.4) 100%);
}
.hero-content { padding-block: 90px 76px; }
.eyebrow, .section-index, .case-file-label, .dossier-number {
  margin: 0;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--red); font-size: 1rem; margin-right: 5px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: end; margin-top: 38px; }
.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  color: #f0e5be;
  font-size: clamp(5.4rem, 15vw, 10.6rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.78;
}
.lead { max-width: 660px; margin: 40px 0 24px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 7px 10px; border: 1px solid rgba(225, 208, 157, 0.4); background: rgba(7, 28, 29, 0.46); color: #e8d9af; font: 0.68rem Arial, sans-serif; letter-spacing: 0.045em; }

.case-file { padding: 22px; border: 1px solid var(--line); background: rgba(6, 23, 26, 0.78); box-shadow: var(--shadow); backdrop-filter: blur(7px); }
.case-file dl { margin: 18px 0; }
.case-file dl div { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(207, 174, 105, 0.2); }
.case-file dt { color: var(--paper-muted); font-size: 0.88rem; }
.case-file dd { margin: 0; text-align: right; font-size: 0.88rem; }
.signal-group { display: grid; gap: 10px; margin-top: 22px; }
.signal { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 12px; font: 0.69rem Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.signal i { display: block; height: 5px; background: linear-gradient(90deg, var(--gold) 0 calc(var(--level) * 20%), rgba(196, 157, 88, 0.2) calc(var(--level) * 20%) 100%); }

.reading-line { display: flex; flex-wrap: wrap; gap: 20px 34px; padding-block: 19px; border-block: 1px solid var(--line); }
.reading-line a { color: var(--paper-muted); text-decoration: none; font: 0.68rem Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.reading-line a:hover { color: var(--gold); }

.story-section { padding-block: 125px 88px; }
.split-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 70px; }
h2 { margin: 12px 0 0; color: #efe0b7; font-size: clamp(2.35rem, 5vw, 4.45rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; }
.prose { color: #dad1b6; font-size: 1.05rem; line-height: 1.75; }
.prose p { margin: 0 0 22px; }
.prose .large-copy { color: #f0e4c0; font-size: 1.36rem; line-height: 1.56; }

.dossier-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 15px; padding-bottom: 116px; }
.dossier-card { position: relative; min-height: 242px; padding: 26px; overflow: hidden; border: 1px solid var(--line); background: rgba(9, 35, 38, 0.78); }
.dossier-card::after { position: absolute; right: 18px; bottom: 17px; width: 62px; height: 62px; border: 1px solid rgba(196, 157, 88, 0.35); content: ""; transform: rotate(45deg); }
.dossier-card h3 { margin: 45px 0 13px; color: var(--paper); font-size: 1.45rem; font-weight: 400; }
.dossier-card p { position: relative; z-index: 1; margin: 0; color: #c8c1aa; font-size: 0.95rem; line-height: 1.6; }
.card-compass { position: absolute; right: 17px; bottom: 12px; z-index: 1; color: var(--gold); font-size: 2rem; }

.quote-block { padding-block: 48px; text-align: center; border-block: 1px solid var(--line); }
.quote-glyph { color: var(--red); font-size: 3.2rem; }
.quote-block p { max-width: 720px; margin: 15px auto 11px; color: #eddfb7; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.24; }
.quote-block small { color: var(--paper-muted); font: 0.64rem Arial, sans-serif; letter-spacing: 0.13em; }

.gallery-section { padding-block: 115px; background: rgba(4, 18, 21, 0.7); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.gallery-heading > p { max-width: 270px; margin: 0; color: var(--paper-muted); font-size: 0.93rem; line-height: 1.55; }
.gallery-grid { display: grid; grid-template-columns: 1.05fr 0.95fr 0.95fr; grid-auto-rows: 265px; gap: 16px; }
.art-card { position: relative; padding: 0; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: #0d2427; }
.art-card-cover { grid-row: span 2; }
.art-card:last-child { grid-column: span 2; }
.art-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease, filter 500ms ease; }
.art-card:hover img { filter: brightness(1.15); transform: scale(1.04); }
.art-card span { position: absolute; right: 0; bottom: 0; padding: 8px 11px; background: rgba(7, 26, 29, 0.86); color: #e9d8aa; font: 700 0.65rem Arial, sans-serif; letter-spacing: 0.12em; }

.warning-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 90px; border-bottom: 1px solid var(--line); }
.warning-section p:last-child { margin: 0; color: #d9cbb0; font-size: 1.18rem; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 18px; padding-block: 26px; color: var(--paper-muted); font: 0.65rem Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.footer a { color: var(--gold); }

.lightbox { width: min(1100px, calc(100% - 32px)); max-height: 92vh; padding: 18px; overflow: auto; border: 1px solid var(--gold); background: #071b1e; color: var(--paper); box-shadow: 0 20px 80px #000; }
.lightbox::backdrop { background: rgba(1, 9, 11, 0.86); backdrop-filter: blur(5px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 77vh; margin: auto; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--paper-muted); }
.lightbox-close { position: fixed; top: 22px; right: 26px; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%; background: #0b2629; color: var(--paper); cursor: pointer; font-size: 1.5rem; }

@media (max-width: 820px) {
  .wrap { width: min(620px, calc(100% - 32px)); }
  .topbar { grid-template-columns: 1fr auto; min-height: 70px; }
  .coordinates { display: none; }
  .hero { min-height: auto; }
  .hero-content { padding-block: 70px 55px; }
  .hero-grid, .split-layout, .warning-section { grid-template-columns: 1fr; gap: 36px; }
  .case-file { max-width: 450px; }
  .dossier-grid { grid-template-columns: 1fr; padding-bottom: 76px; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .art-card-cover { grid-row: span 2; }
  .art-card:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .brand { font-size: 0.68rem; }
  .back-link { font-size: 0.6rem; }
  .hero-copy h1 { font-size: 4.5rem; }
  .case-file dl div { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .case-file dd { overflow-wrap: anywhere; }
  .lead { margin-top: 28px; font-size: 1.1rem; }
  .tags span { font-size: 0.58rem; }
  .story-section, .gallery-section { padding-block: 76px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .art-card-cover { grid-row: auto; }
  .footer { align-items: start; flex-direction: column; }
}

/* --- Typografia: Rzeźbiony gotyk (Cinzel + Cormorant Garamond) --- */
body,.lead,.dossier-card p,.quote-block p,p{font-family:'Cormorant Garamond',Georgia,serif!important}
.hero-copy h1,h2,.dossier-card h3{font-family:'Cinzel',serif!important}
.eyebrow,.section-index,.case-file-label,.dossier-number,.tags span,.quote-block small{font-family:'Cinzel',serif!important}

/* --- suwaki-dodane --- */
[data-scale]{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:baseline}
[data-scale] dd{font-weight:700}

/* ---- Trigery: notatka Towarzystwa z pieczecia ---- */
.warning-section { display: block !important; padding-block: 62px 74px !important; }
.warning-section > div { margin: 0 !important; }
.warning-section > p {
  position: relative;
  max-width: 660px;
  margin: 0 !important;
  padding: 26px 30px 24px 34px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: rgba(9, 35, 38, 0.55);
  color: #ece0c2 !important;
  font-size: 1.02rem !important;
  line-height: 1.62 !important;
}
.warning-section h2 {
  margin: 0 0 12px !important;
  color: var(--gold) !important;
  font-size: 1.3rem !important;
  line-height: 1.24 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}
.warning-section h2::after {
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 10px;
  background: var(--red);
  content: "";
}
@media (max-width: 800px) {
  .warning-section { padding-block: 46px 56px !important; }
  .warning-section > p { max-width: 100%; padding: 22px 20px 20px 24px; }
}
