/* ==========================================================================
   PROPHOTOTRAVEL — архив фототуров
   Общие токены, сброс, типографика. Страницы: home.css, iceland.css
   ========================================================================== */

@import url("fonts.css");

:root {
  /* Цвет: чёрный кинозала + бумага + две краски со стрелки компаса в логотипе */
  --ink: #0b0b0c;
  --ink-soft: #141416;
  --ink-line: #2a2a2d;
  --bone: #efebe3;
  --bone-dim: #b8b3a9;
  --ash: #85807a;
  --signal: #ee4a3c;
  --cobalt: #2b4be2;
  --rule: rgba(239, 235, 227, 0.16);

  /* Шрифты */
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Размеры */
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: 3.25rem;
  --step-hero: clamp(2.5rem, 6.2vw, 5.75rem);

  --gutter: clamp(20px, 4.5vw, 72px);
  --page-max: 1360px;
  --measure: 33rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Сброс ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: var(--bone);
}

/* --- Общая сетка ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Шапка ---------------------------------------------------------------- */

.masthead {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
}

.masthead__logo {
  display: block;
  width: auto;
  height: 22px;
  opacity: 0.95;
}

.masthead__logo img {
  width: auto;
  height: 22px;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.masthead__nav a {
  text-decoration: none;
  color: var(--bone-dim);
  padding-block: 0.35em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
  color: var(--bone);
  border-bottom-color: var(--signal);
}

/* --- Подвал --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(34px, 5vw, 64px);
  margin-top: clamp(60px, 9vw, 130px);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  font-size: var(--step--1);
  color: var(--ash);
}

.footer__mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bone-dim);
}

.footer__mark img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) brightness(3.4);
  opacity: 0.75;
}

.footer a {
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer a:hover {
  color: var(--bone);
  border-bottom-color: var(--signal);
}

/* --- Утилиты -------------------------------------------------------------- */

.skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.7em 1.1em;
  background: var(--bone);
  color: var(--ink);
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s var(--ease);
}

.skip:focus-visible {
  transform: none;
  outline-offset: -6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
