/* Velagia — заглушка. Цвета из 07_Лого_Velagia/05_Цвета. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.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 {
  --velagia-green: #14201C; /* Ночной зелёный */
  --velagia-oat: #F3EEE4;   /* Овёс */
  --velagia-amber: #D98E2B; /* Янтарь — только точка */

  --bg: var(--velagia-oat);
  --ink: var(--velagia-green);
  --far: #5C6661;         /* дальние ноги и ухо */
  --straw: #CDB67C;
  --straw-line: #A8915A;
  --rule: rgba(20, 32, 28, 0.16);
  --pad: clamp(20px, 4.5vw, 64px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--velagia-green);
    --ink: var(--velagia-oat);
    --far: #A9A9A0;
    --straw: #9A8650;
    --straw-line: #C4AE72;
    --rule: rgba(243, 238, 228, 0.18);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.top,
main,
.bottom {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Шапка */

.top {
  padding-block: var(--pad) 0;
}

.logo {
  display: inline-block;
  border-radius: 4px;
}

.logo img {
  display: block;
  width: clamp(128px, 12vw, 164px);
  height: auto;
}

.logo:focus-visible {
  outline: 2px solid var(--velagia-amber);
  outline-offset: 8px;
}

/* Сцена */

main {
  display: grid;
  align-content: center;
  gap: clamp(20px, 3.5vh, 36px);
  padding-block: clamp(24px, 4.5vh, 48px);
}

.stall {
  display: block;
  width: 100%;
  height: auto;
  max-height: 43vh;
  overflow: visible;
}

.status {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.status::before {
  content: '';
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--velagia-amber);
}

.horse {
  visibility: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.is-ready .horse {
  visibility: visible;
}

.horse path {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
}

.horse .far path {
  fill: var(--far);
  stroke: var(--far);
}

.horse .cut {
  fill: var(--bg);
}

.horse .hay-strands path,
.hay-strands {
  fill: none;
  stroke: var(--straw-line);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.wall path {
  fill: none;
  stroke: var(--rule);
  stroke-width: 2;
}

.wall .seams {
  stroke-width: 1.5;
}

.floor {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.straw {
  fill: none;
  stroke: var(--straw-line);
  stroke-width: 2;
  stroke-linecap: round;
}

.hay-pile {
  fill: var(--straw);
  stroke: var(--straw);
  stroke-width: 4;
  stroke-linejoin: round;
}

.dust circle {
  fill: var(--ink);
}

/* Текст */

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.875rem, 3.8vw, 3.25rem);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0.9em 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
}

/* Подвал */

.bottom {
  padding-block: 0 var(--pad);
  font-size: 0.875rem;
}

.bottom p {
  margin: 0;
  opacity: 0.66;
}
