/*
  Домбай — заметки о тропах.
  Палитра снята с горного пейзажа: снег, ледник, осыпь, сосна, лишайник.
*/
:root {
  --snow: #eef2f3;
  --ice: #b7c9d0;
  --glacier: #6d8592;
  --scree: #5b666b;
  --pine: #2f4a3a;
  --slate: #1d2a2f;
  --lichen: #c9a227;

  --serif: "Charter", "Bitstream Charter", "Sitka Text", "Iowan Old Style", "Cambria", Georgia, serif;
  --measure: 38rem;

  /* модульная шкала 1.25 */
  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: 2.07rem;
  --step-5: clamp(3.2rem, 9vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--slate);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  font-kerning: normal;
  hyphens: auto;
}

a {
  color: var(--pine);
  text-decoration-color: var(--lichen);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--slate); text-decoration-color: var(--pine); }
:focus-visible { outline: 3px solid var(--lichen); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--slate); color: var(--snow); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ——— шапка ——— */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: 72rem; margin: 0 auto; padding: 1.1rem 1.5rem;
}
.site-name {
  font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em;
  color: var(--slate); text-decoration: none;
}
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.site-head nav a { color: var(--scree); text-decoration: none; }
.site-head nav a:hover { color: var(--slate); }
.site-head nav a[aria-current="page"] { color: var(--slate); text-decoration: underline; text-decoration-color: var(--lichen); text-decoration-thickness: 2px; }

/* ——— панорама: единственный «громкий» элемент сайта ——— */
.panorama { display: block; width: 100%; height: auto; }
.panorama--strip { height: clamp(5rem, 14vw, 11rem); object-fit: cover; object-position: center bottom; }

.title-band {
  background: var(--slate); color: var(--snow);
  margin-top: -1px;
}
.title-band .inner { max-width: 72rem; margin: 0 auto; padding: 0.5rem 1.5rem 3rem; }
.title-band h1 {
  margin: 0; font-size: var(--step-5); line-height: 0.95; letter-spacing: -0.035em; font-weight: 700;
}
.title-band p { max-width: var(--measure); margin: 1.2rem 0 0; font-size: var(--step-1); line-height: 1.45; color: var(--ice); }
.title-band--page h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
.title-band--page p { font-size: var(--step-0); }

/* ——— текст ——— */
main { max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.prose { max-width: var(--measure); }
.prose h2 {
  font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.015em;
  margin: 3rem 0 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); line-height: 1.3; margin: 2rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose .lead { font-size: var(--step-1); line-height: 1.5; }

/* список разделов на главной */
.sections { list-style: none; padding: 0; margin: 1rem 0 0; }
.sections li { padding: 1rem 0; border-top: 1px solid var(--ice); }
.sections li:last-child { border-bottom: 1px solid var(--ice); }
.sections a { font-size: var(--step-1); font-weight: 700; }
.sections p { margin: 0.25rem 0 0; color: var(--scree); }

/* маршрут: короткие факты перед описанием */
.route { margin-top: 3.5rem; }
.route:first-of-type { margin-top: 2rem; }
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1.25rem;
  margin: 0 0 1.25rem; padding: 0.9rem 1rem;
  background: #fff; border-left: 4px solid var(--glacier);
  font-size: var(--step--1); line-height: 1.5;
}
.facts dt { color: var(--scree); }
.facts dd { margin: 0; }

/* сезоны: месяцы как реальная последовательность */
.season { display: grid; grid-template-columns: 9rem 1fr; gap: 0 2rem; padding: 1.5rem 0; border-top: 1px solid var(--ice); }
.season:last-of-type { border-bottom: 1px solid var(--ice); }
.season h2 { margin: 0; font-size: var(--step-1); }
.season .months { display: block; font-weight: 400; font-style: italic; color: var(--scree); font-size: var(--step--1); }
.season p { margin: 0 0 0.75em; }
.season p:last-child { margin-bottom: 0; }

.note { font-style: italic; color: var(--scree); }

/* ——— подвал ——— */
.site-foot { border-top: 1px solid var(--ice); }
.site-foot .inner {
  max-width: 72rem; margin: 0 auto; padding: 1.5rem;
  font-size: var(--step--1); color: var(--scree);
}
.site-foot p { margin: 0 0 0.3rem; }

@media (max-width: 40rem) {
  .season { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media print {
  .site-head nav, .panorama, .skip { display: none; }
  .title-band { background: none; color: var(--slate); }
  .title-band p { color: var(--scree); }
}

.title-band a { color: inherit; }
