/* Onsight Rocks additions to the home page (home.css stays as on greenpath.pl). */

/* The planner's top bar (topbar.css) over the sky, above the mountain's canvases; the account area
   is in it. home.css switches --ink at dusk and at night, so its text follows the sky. */
.home .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
body.dusk .topbar nav a:hover { background: rgba(255, 255, 255, .14); }

/* The about and privacy policy links, deliberately quiet: bottom-left, away from the campsite (bottom-right) */
.home-privacy { position: fixed; left: 18px; bottom: 12px; z-index: 2; display: flex; gap: 14px; font-size: .8rem; }
.home-privacy a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.home-privacy a:hover, .home-privacy a:focus-visible { color: var(--ink); border-bottom-color: currentColor; }

/* Tooltip of a protection point on the season route (route.js) */
.route-tip {
  position: fixed; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px;
  max-width: 260px; padding: 6px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(20, 40, 60, .18);
  font-size: .8rem; line-height: 1.3;
}
.route-tip[hidden] { display: none; }
.route-tip strong { font-weight: 600; }
.route-tip span { color: #56606a; }

/* Phones: the top bar has two lines (brand and account, then the menu: topbar.css) and is in the
   page's flow, so the text starts below it whatever its height (logged in, a larger text size),
   with some air between the menu and the big heading. main ends with its text (home.css makes it a
   whole screen high, which under the bar would run past the screen's bottom). */
@media (max-width: 800px) {
  .home .topbar { position: relative; }
  main { padding-top: 12px; height: auto; }
  /* a bigger campsite than on greenpath.pl (70vw there) */
  .camp { width: 85vw; }
}
/* Phones: the text starts clear of the sewn label on the left edge (22px wide there, with its
   shadow, and moved in by the notch: topbar.css), or it would cover the start of a line */
@media (max-width: 700px) {
  main { padding-left: calc(36px + env(safe-area-inset-left, 0px)); }
}

/* Dusk (the sun 1.5° to 6° below the horizon, mountain.js): the sky is already too dark for the dark
   text, so it turns light before the night mode, with a soft shadow while the sky is still bright */
body.dusk:not(.night) {
  --ink: #f4f6fa;
  --muted: #dde3ea;
  --line: rgba(220, 230, 240, .26);
}
body.dusk:not(.night) main, body.dusk:not(.night) .topbar { text-shadow: 0 1px 3px rgba(20, 30, 60, .45); }


/* Nothing follows the finger any more (home.css stops panning and zooming for the firefly of
   greenpath.pl): the page may be zoomed again */
body { touch-action: auto; }

/* The home page's heading carries the subtitle (one h1 for search engines), looking as the separate
   line of home.css did; the second paragraph and the sections' links sit closer than on greenpath.pl */
h1 .role { display: block; font-size: 1.15rem; letter-spacing: normal; line-height: 1.5; margin-top: 14px; }
.bio.more { margin-top: 12px; }
/* the call to action: a pill in the accent, like the top bar's login but filled */
.cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 24px;
  padding: 10px 20px; border-radius: 999px; background: #3f7f86; color: #fff;
  font-weight: 600; text-decoration: none; box-shadow: 0 2px 6px rgba(20, 40, 50, .18);
  transition: background .2s, transform .2s;
}
.cta:hover, .cta:focus-visible { background: #346b71; }
.cta:hover span { transform: translateX(2px); }
.cta span { transition: transform .2s; }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the tabs of "Wiedza": quieter and smaller than the call to action */
main ul.links { margin-top: 20px; padding-top: 12px; gap: 6px 16px; align-items: baseline; }
main .links a, main .links .label { font-size: .88rem; }
main .links a { color: var(--muted); }
main .links a:hover, main .links a:focus-visible { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cta, .cta span { transition: none; } }
/* short phones (iPhone SE): the page is one screen, so the second paragraph gives way to the links */
@media (max-width: 800px) and (max-height: 720px) {
  .bio.more { display: none; }
}
