/* Srebrne Tarasy. Retro-utilitarian: Polish trail signposts and the real
   enamel price board, on a photographic world. Two grounds (forest, paper),
   one accent hue (waymark red) at two lightnesses. */

@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  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 {
  --sc-canvas: #0E1A15;  --sc-surface: #16261F;
  --sc-ink:    #EEF0EA;  --sc-ink-soft: #AEBBB3;
  --sc-accent: #E8573F;  --sc-accent-ink: #13110F;
  --sc-font-display: "Archivo Variable", "Archivo", system-ui, sans-serif;
  /* One signage family: Archivo condensed for boards and headings, at
     normal width for reading. */
  --sc-font-text:    "Archivo Variable", "Archivo", system-ui, sans-serif;
  --sc-font-mono:    var(--sc-font-text);
  --sc-shadow-color: 150 40% 4%;

  --board: #F7F6F1;      /* signpost white */
  --board-ink: #14201A;
  --board-soft: #3E4C45;
  --blaze: #C8341F;      /* waymark red */
  --forest: #0E1A15;
  --post-w: 14.5rem;
  color-scheme: dark;
}

.ground--light {
  --sc-canvas: #F1F0EA;  --sc-surface: #FFFFFF;
  --sc-ink:    #13201A;  --sc-ink-soft: #4B5A52;
  --sc-accent: #B8301C;  --sc-accent-ink: #FFFFFF;
  --sc-shadow-color: 80 12% 28%;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  color-scheme: light;
}

body { background: var(--forest); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sc-display { font-weight: 760; font-stretch: 80%; letter-spacing: -0.012em; }
.sc-display--lg { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); }
.sc-body { color: var(--sc-ink-soft); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--board); color: var(--board-ink); font-weight: 600; border-radius: 4px; transform: translateY(-160%); transition: transform 160ms var(--sc-ease-out); }
.skip:focus-visible { transform: none; }

:target { scroll-margin-top: 0; }

/* -------------------------------------------------------------- waymark -- */
.blaze { display: inline-flex; flex-direction: column; flex: none; width: 1.55rem; height: 1.05rem; box-shadow: 0 0 0 1px rgb(20 32 26 / .22); border-radius: 1px; overflow: hidden; }
.blaze i { flex: 1; background: #FFFFFF; }
.blaze i:nth-child(2) { background: var(--blaze); }

/* ------------------------------------------------------------------ cta -- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.35rem;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-display); font-weight: 720; font-stretch: 86%;
  font-size: var(--sc-t-base); letter-spacing: .035em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; border-radius: 4px;
  box-shadow: var(--sc-e2);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: color-mix(in oklab, var(--sc-accent) 86%, #000); transform: translateY(-1px); }
}
.cta:active { transform: translateY(1px) scale(.98); }

/* ============================================================ SIGNPOST ==
   The only chrome on the page. A trail signpost: boards with destinations
   and real walking times, a clock that reads them as you walk, and a pole
   that fills with waymark red. */
.post {
  position: fixed; z-index: 60;
  right: clamp(.75rem, 1.6vw, 1.75rem); top: 50%; transform: translateY(-50%);
  width: var(--post-w);
  display: grid; gap: 6px;
  font-family: var(--sc-font-display); color: var(--board-ink);
}
.post__head, .post__clock, .post__boards a, .post__langs {
  background: var(--board); border-radius: 3px;
  box-shadow: 0 1px 2px rgb(5 12 9 / .28), 0 8px 18px -6px rgb(5 12 9 / .45);
}
.post__head {
  display: flex; align-items: center; gap: .6rem; padding: .62rem .8rem;
  text-decoration: none; text-transform: uppercase; font-weight: 800; font-stretch: 76%;
  font-size: .95rem; letter-spacing: .03em; color: var(--board-ink);
  transition: background-color 160ms var(--sc-ease-out);
}
.post__clock { margin: 0; padding: .55rem .8rem .5rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.post__from { font-family: var(--sc-font-text); font-size: .74rem; font-weight: 600; color: var(--board-soft); }
.post__min { font-weight: 800; font-stretch: 72%; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--blaze); }
.post__panel { display: grid; gap: 6px; }
.post__boards { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.post__boards a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 2.5rem; padding: .45rem 1.55rem .45rem .8rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  text-decoration: none; text-transform: uppercase; font-weight: 650; font-stretch: 82%;
  font-size: .82rem; letter-spacing: .03em; color: var(--board-ink);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.post__t { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post__boards a[aria-current] { background: var(--blaze); color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .post__boards a:not([aria-current]):hover { background: #E7E5DC; }
}
.post__boards a:focus-visible, .post__head:focus-visible, .post__langs a:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; }
.post__langs { list-style: none; margin: 0; padding: .45rem .6rem; display: flex; flex-wrap: wrap; gap: .15rem .55rem; font-size: .76rem; font-weight: 700; font-stretch: 85%; }
.post__langs a { color: var(--board-soft); text-decoration: none; padding: .2rem .1rem; }
.post__langs a[aria-current] { color: var(--blaze); text-decoration: underline; text-underline-offset: .25em; }
@media (hover: hover) and (pointer: fine) { .post__langs a:hover { color: var(--board-ink); } }
.post__pole {
  position: absolute; left: -12px; top: 4px; bottom: 4px; width: 4px; border-radius: 2px;
  background: rgb(150 160 154 / .38); overflow: hidden;
}
.post__fill { position: absolute; inset: 0; background: var(--blaze); transform-origin: 50% 0; transform: scaleY(0); }
.post__toggle { display: none; }

/* Desktop: keep flow content clear of the signpost. */
@media (min-width: 861px) {
  .prices .sc-wrap, .close .sc-wrap, .foot { padding-right: calc(var(--sc-gutter) + var(--post-w)); }
}

/* =============================================================== HERO ==
   Four planes: a clean sky (gradient sampled from the photograph), the name,
   the land with its sky cut away, and low mist. The land rises faster than
   the name, so the name sinks behind the ridge. */
.hero__stage { background: var(--forest); }
.hero__sky, .hero__land {
  position: absolute; left: 0; top: -140px; width: 100%; height: calc(100% + 280px);
}
.hero__sky {
  background: linear-gradient(180deg, #A5C6EE 0%, #BCD4EF 8%, #D4E1EF 15%, #DEDEE1 22%, #E2DDD6 30%, #D8D2CA 44%);
}
.hero__land { z-index: 2; max-width: none; object-fit: cover; object-position: 50% 50%; }
.hero__title {
  position: absolute; z-index: 1; left: 0; right: 0; margin: 0;
  top: clamp(4.5rem, 11vh, 8rem);
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .22em;
  padding-inline: var(--sc-gutter);
  font-family: var(--sc-font-display); font-weight: 820; font-stretch: 70%;
  font-size: clamp(3.6rem, 12.6vw, 12.5rem); line-height: .84; letter-spacing: -.005em;
  text-transform: uppercase; text-align: center; color: #13201A;
}
.hero__mist {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: -140px; height: 72%; pointer-events: none;
  background:
    radial-gradient(55% 42% at 18% 88%, rgb(236 236 228 / .30), transparent 72%),
    radial-gradient(48% 36% at 84% 92%, rgb(236 236 228 / .24), transparent 72%),
    linear-gradient(to top, rgb(14 26 21 / .55), transparent 38%);
}
.hero__scrim { z-index: 4; }
.hero__copy { max-width: min(34rem, 80vw); }
.hero__copy .sc-lede { color: var(--sc-ink); margin-bottom: var(--sc-5); font-weight: 450; }
.hero__stage::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px; z-index: 5; pointer-events: none;
  background: linear-gradient(to top, var(--forest), transparent);
}
@media (prefers-reduced-motion: reduce) {
  /* Parallax is zeroed, so hold the planes where the scroll would have
     started them: the name fully above the ridge. */
  .hero__land { translate: 0 130px; }
  .hero__mist { translate: 0 170px; }

  /* A static page with no extra pinned scroll: each act is one screen (or
     its natural height), and every cue that would have faded is simply on. */
  .hero, .view { height: 100svh !important; }
  .hero__copy, .view__copy h2, .view__copy .sc-split__i { opacity: 1 !important; transform: none !important; }
  .view__greet { display: none; }
  .walk { height: auto !important; }
  .walk .sc-stage, .walk [data-sc-stage] { position: relative; height: auto; overflow: visible; padding-block: var(--sc-section); }
  .walk__rail { flex-wrap: wrap; row-gap: clamp(1.25rem, 3vw, 2rem); transform: none !important; }
  .walk__lead { flex-basis: 100%; }
  .walk__rail > .way { flex: 1 1 20rem; }
  .walk__note { flex: 1 1 100%; }
}

/* ============================================================= PRICES == */
.prices { padding-block: var(--sc-section); }
.prices__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.prices__intro .sc-body { font-size: var(--sc-t-lg); line-height: 1.45; }
.prices__currency { font-size: var(--sc-t-base) !important; }
/* The one real photograph on the page: the cashier hut (and its dog),
   mounted like a print. Shown at its native 408px so it never upscales. */
.sc-stack > .hut { margin: var(--sc-7) 0 0; }
.hut {
  width: min(100%, 408px); padding: .5rem .5rem .65rem;
  background: #FBFBF8; border-radius: 3px; box-shadow: var(--sc-e2);
  rotate: -1.2deg;
}
.hut img { width: 100%; height: auto; border-radius: 2px; }
.hut figcaption { margin-top: .5rem; font-size: var(--sc-t-sm); color: #3E4C45; }
.board {
  background: #FBFBF8; color: var(--board-ink);
  border-top: 14px solid var(--blaze); border-radius: 0 0 6px 6px;
  box-shadow: var(--sc-e3), inset 0 -1px 0 rgb(20 32 26 / .08);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.75rem);
}
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.8rem, 2vw, 1.35rem); }
.board__row, .board__night {
  display: grid; grid-template-columns: clamp(3.2rem, 6.5vw, 5rem) auto minmax(1rem, 1fr) auto;
  align-items: center; column-gap: clamp(.6rem, 1.4vw, 1rem); margin: 0;
}
.board__icon svg { width: 100%; height: auto; fill: var(--board-ink); }
.board__icon .win { fill: #FBFBF8; }
.board__icon--moon { width: 1.9rem; justify-self: center; }
.board__name { font-weight: 560; line-height: 1.25; }
.board__name em { font-weight: 450; color: var(--board-soft); }
.board__dots { align-self: end; margin-bottom: .55em; border-bottom: 3px dotted rgb(20 32 26 / .38); }
.board__price {
  font-family: var(--sc-font-display); font-weight: 820; font-stretch: 72%;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap;
}
.board__night { margin-top: clamp(1.1rem, 2.4vw, 1.6rem); padding-top: clamp(1rem, 2.2vw, 1.4rem); border-top: 1px solid rgb(20 32 26 / .14); }
.board__night .board__price { font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--blaze); }

/* =============================================================== WALK == */
.walk, .walk__stage { background: #10201A; }
.walk__stage { display: flex; align-items: center; }
.walk__rail {
  position: relative; align-items: stretch;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-inline: var(--sc-gutter) calc(var(--sc-gutter) + var(--post-w) + 1rem);
}
.walk__lead, .walk__note { flex: 0 0 clamp(18rem, 30vw, 30rem); align-self: center; }
.walk__note { flex-basis: clamp(16rem, 22vw, 21rem); }
.walk__lead .sc-body { margin-top: var(--sc-4); font-size: var(--sc-t-lg); line-height: 1.45; }
.way {
  flex: 0 0 clamp(17.5rem, 33vw, 32rem);
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--board); color: var(--board-ink);
  border-top: 10px solid var(--blaze);
  clip-path: polygon(0 0, calc(100% - 2.4rem) 0, 100% 50%, calc(100% - 2.4rem) 100%, 0 100%);
  padding: clamp(1.25rem, 2.4vw, 2rem) calc(clamp(1.25rem, 2.4vw, 2rem) + 2.4rem) clamp(1.25rem, 2.4vw, 2rem) clamp(1.25rem, 2.4vw, 2rem);
}
.way__min {
  margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .35rem;
  font-family: var(--sc-font-display); font-weight: 820; font-stretch: 70%; line-height: .9;
}
.way__n { font-size: clamp(3.6rem, 7vw, 6.2rem); font-variant-numeric: tabular-nums; color: var(--blaze); }
.way__approx, .way__u { font-size: var(--sc-t-sm); font-weight: 700; font-stretch: 88%; text-transform: uppercase; letter-spacing: .04em; color: var(--board-soft); }
.way__short { margin: .15rem 0 0; font-family: var(--sc-font-display); font-weight: 820; font-stretch: 74%; text-transform: uppercase; font-size: var(--sc-t-2xl); line-height: .95; }
.way__name { margin: 0; font-weight: 640; }
.way__text { margin: 0; color: var(--board-soft); text-wrap: pretty; }
.way__link { margin-top: auto; padding-top: .6rem; font-weight: 650; color: #A82A18; text-underline-offset: .22em; transition: color 140ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .way__link:hover { color: var(--board-ink); text-decoration-thickness: 2px; }
  .post__head:hover { background: #E7E5DC; }
}
.way__link:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  /* A drawer being pulled, not a slideshow: each board settles in turn. The
     opening content is exempt so the act never opens on a half-faded rail. */
  .walk__rail > :nth-child(n + 2) {
    --k: clamp(0, calc((var(--sc-p, 0) - (var(--i) - 1) * .2) * 4.5), 1);
    opacity: calc(.55 + .45 * var(--k));
    transform: translate3d(0, calc((1 - var(--k)) * 22px), 0);
  }
}

/* =============================================================== VIEW ==
   The peak. The trail ends, an iris opens onto the valley, one line. */
.view, .view__stage { background: var(--forest); }
.view__greet {
  position: absolute; inset: 0; z-index: 1; margin: 0;
  display: grid; place-content: center; text-align: center; gap: .1em;
  font-family: var(--sc-font-display); font-weight: 820; font-stretch: 70%; text-transform: uppercase;
  font-size: var(--sc-t-3xl); line-height: .9; color: var(--sc-ink);
}
.view__greet-min { font-size: 1.7em; color: var(--sc-accent); font-variant-numeric: tabular-nums; }
.view__fig { position: absolute; inset: 0; margin: 0; z-index: 2; }
.view__fig picture, .view__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.view__copy { position: absolute; z-index: 3; left: var(--sc-gutter); top: clamp(5rem, 15vh, 10rem); width: min(40rem, 52vw); }
.view__copy h2 { color: #13201A; }

/* ============================================================== CLOSE == */
.close { min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--sc-section); }
.close__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.close__text .sc-lede { color: var(--sc-ink-soft); }
.close__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.close__maps { font-weight: 620; color: var(--sc-ink); text-underline-offset: .25em; padding-block: .6rem; }
@media (hover: hover) and (pointer: fine) { .close__maps:hover { color: var(--sc-accent); } }
.close__coords { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.close__coords span:first-child { font-weight: 650; margin-right: .4rem; }
.close__map { margin: 0; background: #FBFBF8; border-radius: 6px; box-shadow: var(--sc-e2); padding: clamp(.75rem, 2vw, 1.25rem); }
.close__map figcaption { margin-top: .5rem; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.map { width: 100%; height: auto; }
.map__route { fill: none; stroke: var(--blaze); stroke-width: 3.5; stroke-dasharray: 1 10; stroke-linecap: round; }
.map__lbl { font: 600 16px var(--sc-font-text); fill: #2E3B35; }
.map__lbl--min { font: 820 20px var(--sc-font-display); font-stretch: 74%; fill: #A82A18; }
.map__lbl--strong { font-weight: 750; fill: #13201A; }
.map__fort, .map__spitz { fill: #13201A; }
.map__p { fill: #13201A; }
.map__pchar { font: 820 22px var(--sc-font-display); fill: #FBFBF8; }
.map__scale path { stroke: #4B5A52; stroke-width: 2; fill: none; }
.map__scale text, .map__north text { font: 600 13px var(--sc-font-text); fill: #4B5A52; }
.map__north path { fill: #4B5A52; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem;
  margin-top: var(--sc-9); padding-block: var(--sc-6) calc(var(--sc-6) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sc-hairline);
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.foot p { margin: 0; }
.foot__mark { display: flex; align-items: center; gap: .6rem; font-weight: 650; color: var(--sc-ink); }
.foot__langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.foot__langs a { text-decoration: none; padding-block: .35rem; display: inline-block; }
.foot__langs a[aria-current] { color: var(--sc-ink); font-weight: 650; text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .foot__langs a:hover { color: var(--sc-ink); } }

/* ============================================================= MOBILE ==
   The signpost becomes a bar at the bottom: the brand board, the walking
   clock, and a button that opens the boards. */
@media (max-width: 860px) {
  .post {
    top: auto; right: 0; left: 0; bottom: 0; transform: none; width: auto;
    grid-template-columns: auto 1fr auto; align-items: stretch; gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgb(14 26 21 / .92); backdrop-filter: blur(10px);
  }
  .post__head { gap: .5rem; padding: .5rem .65rem; font-size: .82rem; border-radius: 3px 0 0 3px; box-shadow: none; }
  .post__clock { border-radius: 0; box-shadow: none; padding: .4rem .6rem; border-left: 1px solid rgb(20 32 26 / .12); justify-content: flex-end; }
  .post__from { font-size: .68rem; }
  .post__min { font-size: 1.35rem; }
  .post__toggle {
    display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 .9rem;
    border: 0; border-radius: 0 3px 3px 0; background: var(--blaze); color: #FFFFFF;
    font-family: var(--sc-font-display); font-weight: 750; font-stretch: 84%; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em;
  }
  .post__toggle:active { transform: translateY(1px); }
  .post__toggle-close, .post.is-open .post__toggle-open { display: none; }
  .post.is-open .post__toggle-close { display: inline; }
  .post__panel {
    display: none; position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px);
    max-height: 70svh; overflow: auto; overscroll-behavior: contain;
    padding: 6px; border-radius: 4px; background: rgb(14 26 21 / .96);
  }
  .post.is-open .post__panel { display: grid; }
  .post__boards a { min-height: 3rem; font-size: .9rem; }
  .post__pole { display: none; }

  .hero__title { font-size: 21.5vw; top: clamp(3.5rem, 9svh, 6rem); flex-direction: column; align-items: center; }
  /* The copy spans the full width here, so the density goes in a band, not
     a corner. */
  .hero__scrim {
    background: linear-gradient(to top,
      color-mix(in oklab, var(--sc-canvas) 96%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 84%, transparent) 30%,
      color-mix(in oklab, var(--sc-canvas) 40%, transparent) 50%,
      transparent 64%);
  }
  .hero__copy { bottom: calc(clamp(2rem, 8svh, 5rem) + 3.75rem); max-width: none; }
  .prices__grid, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .walk__rail { padding-inline: var(--sc-gutter); }
  .walk__lead, .walk__note, .way { flex-basis: min(84vw, 26rem); }
  .walk__stage { align-items: center; padding-bottom: 3.5rem; }
  .view__copy { right: var(--sc-gutter); width: auto; top: clamp(4.5rem, 12svh, 7rem); }
  .view__copy h2 { font-size: var(--sc-t-2xl); }
  .foot { padding-bottom: calc(var(--sc-6) + 4.5rem + env(safe-area-inset-bottom)); }
}
