/* cgu.edu.pl - przewodnik po Polwyspie Helskim */
:root {
  --ink: #0e2a31;
  --deep: #082830;
  --sea: #135466;
  --sea-mid: #1b6c80;
  --sea-soft: #dcebee;
  --mist: #eef5f6;
  --sand: #e9d6ad;
  --amber: #f6a623;
  --paper: #ffffff;
  --muted: #4d646a;
  --rule: #d5e2e5;
  --display: "Bricolage Grotesque", "Arial Narrow", "Segoe UI", sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --measure: 41rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--deep); padding: 0.6rem 1rem; z-index: 10; font-family: var(--display); }
.skip:focus { left: 0; }

/* ---------- naglowek ---------- */
.top { background: var(--deep); color: #fff; }
.top__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0 0.9rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; color: #fff; text-decoration: none; line-height: 1; }
.brand span { color: var(--amber); }
.brand:hover { color: var(--sand); }
.top__tag { font-family: var(--display); font-size: 0.85rem; color: #a9c6cc; letter-spacing: 0.02em; text-align: right; }

/* kilometraz: polwysep jako linia, ktora grubieje w strone Helu */
.spit { position: relative; padding: 0.4rem 0 1.1rem; }
.spit__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.spit__list::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: var(--sand);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
}
.spit__item { position: relative; padding-top: 1.35rem; font-family: var(--display); text-align: center; flex: 1 1 0; }
.spit__item:first-child { text-align: left; }
.spit__item:last-child { text-align: right; }
.spit__item::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--deep); border: 2px solid var(--sand);
}
.spit__item:first-child::before { left: 0; margin-left: 0; }
.spit__item:last-child::before { left: auto; right: 0; }
.spit__item a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; display: inline-block; padding: 0.15rem 0; }
.spit__item a:hover { color: var(--amber); }
.spit__km { display: block; font-size: 0.72rem; font-weight: 400; color: #8fb1b8; letter-spacing: 0.04em; }
.spit__item.is-here::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgb(246 166 35 / 0.25); }
.spit__item.is-here a { color: var(--amber); }

/* ---------- strona glowna ---------- */
.hero { background: var(--deep); color: #fff; padding: 2.5rem 0 0; overflow: hidden; }
.hero__grid { display: grid; gap: 1.5rem; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 1.2rem; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--sand); }
.hero p { max-width: 34rem; color: #cfe0e3; margin: 0 0 1rem; }
.map { margin: 0 -1.25rem; }
.map svg { width: 100%; height: auto; }
.map text { font-family: var(--display); }
.map a text { fill: #fff; font-weight: 700; font-size: 25px; }
.map a:hover text, .map a:focus text { fill: var(--amber); }
.map a circle { fill: var(--deep); stroke: var(--amber); stroke-width: 4; }
.map a:hover circle { fill: var(--amber); }
.map .water { fill: #5f8b94; font-size: 19px; letter-spacing: 0.32em; text-transform: uppercase; }
.map .km { fill: #8fb1b8; font-size: 15px; font-weight: 400; }

.town { padding: 3.2rem 0; border-top: 1px solid var(--rule); }
.town:nth-of-type(even) { background: var(--mist); }
.town__grid { display: grid; gap: 1.5rem; }
.town__km { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea-mid); margin: 0 0 0.3rem; }
.town h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.8rem; }
.town h2 a { color: var(--ink); text-decoration: none; }
.town h2 a:hover { color: var(--sea); }
.town__lead { margin: 0; color: var(--muted); max-width: 26rem; font-size: 1.05rem; }

.reads { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.reads li { border-bottom: 1px solid var(--rule); }
.reads a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.2rem 1rem; align-items: baseline; padding: 0.95rem 0; text-decoration: none; color: var(--ink); }
.reads a:hover .reads__t { color: var(--sea); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.reads__k { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea-mid); }
.reads__t { font-family: var(--display); font-weight: 600; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.015em; }

.about { padding: 3.2rem 0; border-top: 1px solid var(--rule); }
.about h2 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; margin: 0 0 0.8rem; }
.about p { max-width: var(--measure); margin: 0 0 1rem; }

/* ---------- artykul ---------- */
.crumbs { font-family: var(--display); font-size: 0.85rem; padding: 1.4rem 0 0; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #9db3b8; }
.crumbs a { color: var(--muted); }

.art__head { padding: 1.6rem 0 2rem; max-width: 52rem; }
.kicker { font-family: var(--display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sea-mid); margin: 0 0 0.8rem; }
.kicker b { color: var(--ink); font-weight: 600; }
.art h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.03; letter-spacing: -0.04em; margin: 0 0 1.2rem; text-wrap: balance; }
.lead { font-size: 1.3rem; line-height: 1.55; color: #24454d; margin: 0; max-width: 44rem; }
.meta { font-family: var(--display); font-size: 0.85rem; color: var(--muted); margin: 1.2rem 0 0; }

.facts { margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); background: var(--mist); border-top: 4px solid var(--sand); }
.facts div { padding: 1rem 1.2rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sea-mid); }
.facts dd { margin: 0.2rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }

.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.03em; margin: 2.6rem 0 0.8rem; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; margin: 1.8rem 0 0.4rem; }
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose ul li::marker { color: var(--amber); }
.prose ol li::marker { font-family: var(--display); font-weight: 600; color: var(--sea-mid); }
.prose a { font-weight: 600; background: linear-gradient(transparent 62%, #fbe2b3 62%); text-decoration: none; }
.prose a:hover { background: #fbe2b3; }

.more { margin: 3.5rem 0 0; padding: 2.5rem 0 3.5rem; background: var(--mist); border-top: 1px solid var(--rule); }
.more h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin: 0 0 1rem; }
.more .reads { max-width: 52rem; }
.next { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; margin-top: 1.6rem; font-family: var(--display); font-size: 0.95rem; max-width: 52rem; }

/* ---------- stopka ---------- */
.foot { background: var(--deep); color: #a9c6cc; padding: 2.5rem 0; font-family: var(--display); font-size: 0.92rem; line-height: 1.6; }
.foot__grid { display: grid; gap: 1.5rem; }
.foot a { color: #fff; }
.foot a:hover { color: var(--amber); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; }
.foot p { margin: 0; max-width: 34rem; }
.foot .brand { font-size: 1.3rem; display: inline-block; margin-bottom: 0.6rem; }

.lost { padding: 5rem 0; }
.lost h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 1rem; }

@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .map { margin: -3rem 0 0; }
  .town__grid { grid-template-columns: 20rem 1fr; gap: 3rem; }
  .town__side { position: sticky; top: 1.5rem; align-self: start; }
  .foot__grid { grid-template-columns: 1.3fr 1fr; }
}
@media (max-width: 36rem) {
  body { font-size: 1.06rem; }
  .top__tag { display: none; }
  .spit__item a { font-size: 0.8rem; }
  .spit__km { font-size: 0.64rem; }
  .reads a { grid-template-columns: 1fr; }
  .lead { font-size: 1.15rem; }
  .map text.km, .map .water { display: none; }
  .map a text { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .foot, .more { display: none; } }
