/* mouse it&design — coming soon. Макет: Figma zt0QYDWT50VyQJPWUqPAQQ, фреймы 5:56 (1440×900) и 7:138 (390). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --ink: #000;
  --muted: #595959;
  --divider: #d9d9d9;
  --bg: #fff;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(24px, 4.445vw, 64px);
  /* правая колонка десктопа: в ней мышь и блок почты, одна ширина — мышь всегда над почтой */
  --aside: clamp(340px, 27.92vw, 402px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; display: flex; flex-direction: column; }
p, h1 { margin: 0; }
img { display: block; }
.mono { font-family: var(--mono); font-weight: 400; }

/* ---------- desktop (≥ 900px) ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  padding: 32px var(--gutter) 16px;
}
.wordmark { width: 139.88px; height: 57.46px; }
.status { display: flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap; }
.status__marker { width: 7px; height: 7px; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px var(--gutter) 60px;
}
.announcement { flex: 1 1 0; max-width: 830px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.eyebrow { font-size: 12px; }
.headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(64px, 9.167vw, 132px);
  line-height: 1.02;
}
/* колонка мыши совпадает с колонкой почты (макет 1440: почта 974–1376, мышь 968–1342) */
.mascot {
  flex: 0 0 var(--aside);
  margin-left: auto;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
/* в исходном SVG мышь смотрит вправо, в макете — отражена влево */
.mascot__mouse { width: 93.14%; margin-left: -1.5%; height: auto; transform: scaleX(-1); }

.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 12px var(--gutter) 24px;
}
.intro__text { flex: 0 1 623px; font-size: 20px; line-height: 1.45; }
.contact { flex: 0 0 var(--aside); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact__label { font-size: 12px; text-transform: uppercase; }

.email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}
.email__text {
  min-width: 0;
  font-size: 32px;          /* максимум; main.js уменьшает, если адрес не влезает */
  font-weight: 400;
  white-space: nowrap;
}
.email__arrow { flex: none; width: 24px; height: 24px; transition: transform .2s ease; }
.email:hover .email__arrow, .email:focus-visible .email__arrow { transform: translate(3px, -3px); }
.email:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.footer { display: flex; flex-direction: column; gap: 22px; padding: 0 var(--gutter) 47px; }
.footer__divider { height: 1px; background: var(--divider); }
.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.colophon__copyright { font-size: 13px; }

/* ---------- mobile (< 900px) ---------- */

@media (max-width: 899.98px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    height: auto;
    padding: 28px var(--gutter) 0;
  }
  .wordmark { width: 139.9px; }
  .status { gap: 10px; font-size: 11px; }
  .status__marker { width: 6px; height: 6px; }

  .hero {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 40px var(--gutter) 32px;
  }
  .announcement { flex: none; max-width: none; gap: 22px; }
  .eyebrow { font-size: 11px; }
  .headline { font-size: clamp(40px, 16.41vw, 96px); }
  .mascot { flex: none; margin-left: 0; height: 252px; justify-content: center; }
  .mascot__mouse { width: min(269.568px, 100%); margin-left: 0; }

  .intro { flex-direction: column; align-items: stretch; gap: 40px; padding: 0 var(--gutter); }
  .intro__text { flex: none; font-size: 16px; line-height: 1.5; }
  .contact { flex: none; }
  .contact__label { font-size: 11px; line-height: 1.5; }
  .email { padding-bottom: 10px; }
  .email__text { font-size: 28px; }

  .footer { gap: 20px; padding: 40px var(--gutter) 28px; }
  .colophon { flex-wrap: wrap; align-items: flex-start; row-gap: 20px; font-size: 10px; }
  .colophon__copyright { flex-basis: 100%; font-size: 12px; }
}
