/* Podzbiory latin i latin-ext z Google Fonts; źródła i sumy w assets/fonts/manifest.json. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --page: #e5e9f0;
  --surface: #eceff4;
  --line: #d8dee9;
  --text: #2e3440;
  --muted: #4c566a;
  --accent: #5e81ac;
  --active: #4c6e99;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 15px/1.5 var(--sans);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--active);
  outline-offset: 4px;
}
button {
  border: 0;
}
svg {
  display: block;
}
svg:not(#map) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 50;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.layout {
  max-width: 1920px;
  padding: 32px 24px 48px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
main {
  min-width: 0;
}
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  min-height: 80px;
}
.brand {
  min-width: 0;
}
.brand h1 {
  font-size: clamp(26px, 3.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  white-space: nowrap;
}
.accent {
  color: var(--accent);
}
.brand-sub {
  font: 17px/1.5 var(--mono);
  color: var(--muted);
  margin-top: 7px;
}
.statistics {
  display: flex;
  gap: 26px;
  flex-shrink: 0;
}
.statistics > div {
  display: flex;
  flex-direction: column;
}
.statistics strong {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}
.statistics span {
  font-size: 13px;
  color: var(--muted);
}
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.continents {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.continent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  color: #3b4252;
  font-size: 14px;
  font-weight: 500;
}
.continent:hover {
  background: var(--page);
}
.continent[aria-pressed='true'] {
  background: var(--text);
  color: var(--surface);
}
.badge {
  font: 11px/20px var(--mono);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--line);
  color: var(--text);
}
.continent[aria-pressed='true'] .badge {
  background: #88c0d0;
}
.map-area {
  position: relative;
  aspect-ratio: 1600/820;
  overflow: hidden;
  background: #e9eef4;
}
#map {
  width: 100%;
  height: 100%;
}
.base-land {
  fill: #c9d2de;
  stroke: none;
}
.base-borders {
  fill: none;
  stroke: #eef2f6;
  stroke-width: 0.55;
}
.base-borders path,
.place-shape,
.small-marker {
  vector-effect: non-scaling-stroke;
}
.place-shape {
  fill: #a3cfda;
  stroke: rgba(94, 129, 172, 0.55);
  stroke-width: 0.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition:
    fill 0.25s,
    stroke 0.25s;
}
.place-shape.home {
  fill: #5e81ac;
}
.place-shape.hovered,
.place-shape:hover {
  fill: #88c0d0;
  stroke: var(--active);
  stroke-width: 1.2;
}
.place-shape.selected {
  fill: #81a1c1;
  stroke: var(--active);
  stroke-width: 1.2;
}
.place-shape.home.selected {
  fill: #5e81ac;
}
.small-marker {
  fill: rgba(136, 192, 208, 0.12);
  stroke: var(--accent);
  stroke-width: 1;
  cursor: pointer;
}
.small-marker.selected,
.small-marker.hovered {
  stroke: var(--active);
  stroke-width: 2;
}
.legend {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 12px;
  background: rgba(236, 239, 244, 0.92);
  border-radius: 10px;
  font-size: 12px;
  color: #3b4252;
  pointer-events: none;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  display: inline-block;
  width: 16px;
  height: 11px;
  border-radius: 3px;
}
.visited-dot {
  background: #a3cfda;
  border: 1px solid rgba(94, 129, 172, 0.55);
}
.home-dot {
  background: #5e81ac;
}
.future-dot {
  background: #c9d2de;
}
.places {
  padding: 16px 18px 18px;
}
.places > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.places h2 {
  font-size: 17px;
  font-weight: 600;
}
.places > header > span {
  font: 12px var(--mono);
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  min-height: 44px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
}
.chip::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
  background: #a3cfda;
}
.chip.home::before {
  background: #5e81ac;
}
.chip:hover,
.chip.hovered {
  background: var(--line);
}
.chip[aria-pressed='true'] {
  background: var(--line);
  border-color: var(--accent);
}
.tooltip {
  position: absolute;
  z-index: 3;
  max-width: 250px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 8px 24px rgba(46, 52, 64, 0.25);
  font-size: 13px;
  pointer-events: none;
}
.tooltip strong {
  display: block;
  font-size: 15px;
}
.tooltip .tip-sub {
  color: var(--line);
}
.tooltip .tip-date {
  font: 12px/1.6 var(--mono);
  color: #88c0d0;
  margin-top: 4px;
}
.details {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 340px;
  max-width: calc(100% - 28px);
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(46, 52, 64, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.detail-header h2 {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.detail-header p {
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
}
.icon-button {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--page);
}
.icon-button svg {
  width: 19px;
  height: 19px;
}
#detail-body {
  display: grid;
  gap: 16px;
}
.thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.thumbnails img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--line);
}
.eyebrow {
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.visit {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}
.visit time {
  font: 12px/1.7 var(--mono);
}
.visit p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.visit .visit-meta {
  color: var(--muted);
  font-size: 13px;
}
.note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--page);
  font-size: 14px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.detail-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--page);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  flex: 1;
}
.detail-links a.photo-link {
  background: var(--active);
  color: #fff;
}
.sidebar {
  display: grid;
  gap: 16px;
  padding-top: 4px;
  min-width: 0;
}
.main-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
}
.main-menu > .eyebrow {
  padding: 8px 12px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 8px 12px;
  border-radius: 14px;
  text-decoration: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.nav-item:hover {
  background: var(--page);
}
.nav-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.nav-item strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}
.nav-item small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
}
.gallery-icon {
  background: #dcebf0;
  color: var(--accent);
}
.blog-icon {
  background: #e9e2ec;
  color: #8e6a8a;
}
.work-icon {
  background: #f2ead9;
  color: #a0793a;
}
.contact-icon {
  background: #e6eedf;
  color: #6e8f57;
}
.activity-icon {
  background: #d08770;
  color: var(--text);
}
.map-icon {
  background: var(--accent);
  color: #fff;
}
.chevron {
  font-size: 25px;
  color: var(--muted);
}
.strava-card {
  display: grid;
  gap: 16px;
  background: #3b4252;
  color: var(--surface);
  border-radius: 20px;
  padding: 20px;
}
.strava-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.strava-card h2 {
  font-size: 18px;
  font-weight: 600;
}
.strava-card header p {
  font-size: 13px;
  color: var(--line);
}
.strava-slot {
  width: 300px;
  max-width: 100%;
  height: 454px;
  border-radius: 12px;
  overflow: hidden;
  background: #434c5e;
  display: grid;
  place-items: center;
}
.strava-slot iframe {
  display: block;
  border: 0;
  width: 300px;
  height: 454px;
  background: transparent;
}
.strava-consent {
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
.strava-help {
  font-size: 12px;
  color: var(--line);
  margin: 12px 0;
}
.strava-consent button {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  margin-top: 4px;
}
.strava-forget {
  justify-self: center;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--line);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.strava-forget:hover {
  color: var(--surface);
}
.strava-follow {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fc5200;
  color: #fff;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  font:
    11px Helvetica,
    Arial,
    sans-serif;
}
.strava-follow img {
  height: 13px;
  width: 51px;
  vertical-align: text-bottom;
}
.strava-follow .echelon {
  height: 20px;
  width: 14px;
}
.strava-wordmark {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 15px;
}
footer {
  padding: 0 8px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}
footer a {
  text-underline-offset: 3px;
}
footer a:hover {
  color: var(--text);
}
.noscript {
  margin-top: 16px;
}
.sheet-handle {
  display: none;
}
.menu-toggle,
.map-nav {
  display: none;
}
@media (min-width: 801px) and (max-width: 1250px) {
  .masthead {
    flex-wrap: wrap;
    gap: 12px;
  }
  .statistics {
    gap: 24px;
  }
  .brand h1 {
    font-size: clamp(26px, 4vw, 42px);
  }
  .statistics strong {
    font-size: 26px;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
    padding: 16px 0 28px;
  }
  .masthead {
    padding: 0 16px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 5px 8px;
    min-height: 0;
  }
  .brand h1 {
    font-size: clamp(21px, 5.4vw, 36px);
    letter-spacing: -0.035em;
  }
  .brand-sub {
    font-size: 12px;
    margin-top: 5px;
  }
  .statistics {
    grid-column: 1;
    grid-row: 2;
    gap: 6px;
    font: 12px var(--mono);
    color: var(--muted);
  }
  .statistics > div {
    display: block;
  }
  .statistics strong {
    font: inherit;
  }
  .statistics span {
    font: inherit;
    margin-left: 4px;
  }
  .statistics > div + div::before {
    content: '·';
    margin-right: 6px;
  }
  .statistics .percentage {
    display: none;
  }
  .menu-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1/3;
    border: 1px solid var(--line);
    border-radius: 14px;
    width: 46px;
    height: 46px;
    align-self: start;
  }
  .menu-toggle svg {
    width: 21px;
    height: 21px;
  }
  .map-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .continents {
    border: 0;
    padding: 0 16px 12px;
    gap: 6px;
  }
  .continent {
    border: 1px solid var(--line);
    border-radius: 24px;
    min-height: 44px;
    padding: 0 15px;
    font-size: 15px;
  }
  .continent .badge {
    display: none;
  }
  .map-area {
    aspect-ratio: auto;
    height: 64svh;
    min-height: 370px;
    max-height: 720px;
  }
  .legend {
    left: 12px;
    bottom: 12px;
    gap: 9px;
    font-size: 10px;
    padding: 7px 9px;
  }
  .legend i {
    width: 12px;
    height: 9px;
  }
  .places {
    padding: 18px 16px;
  }
  .chip {
    font-size: 13px;
  }
  .sidebar {
    padding: 0 16px;
    display: grid;
    gap: 16px;
  }
  .js .sidebar {
    display: none;
  }
  .js .menu-open .sidebar {
    display: grid;
  }
  .menu-open .map-card,
  .menu-open .statistics,
  .menu-open .noscript {
    display: none;
  }
  .menu-open .masthead {
    margin-bottom: 22px;
  }
  .main-menu {
    padding: 8px;
  }
  .main-menu > .eyebrow {
    display: none;
  }
  .nav-item {
    min-height: 82px;
  }
  .map-nav {
    background: var(--page);
  }
  .strava-slot {
    justify-self: center;
  }
  .strava-follow {
    justify-self: center;
  }
  .strava-card {
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .main-menu {
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .details {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 70svh;
    min-height: 240px;
    border-radius: 24px 24px 0 0;
    padding: 0 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(46, 52, 64, 0.18);
  }
  .sheet-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    touch-action: none;
    cursor: grab;
  }
  .sheet-handle span {
    width: 40px;
    height: 5px;
    border-radius: 4px;
    background: var(--line);
  }
  .detail-header h2 {
    font-size: 28px;
  }
  .detail-header p {
    font-size: 14px;
  }
  .detail-header {
    margin-bottom: 18px;
  }
  .tooltip {
    display: none;
  }
  footer {
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .js:not(.menu-open) main {
    display: block;
  }
  .detail-open {
    overflow: hidden;
  }
}
@media (max-width: 800px) {
  .map-nav {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
