@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-text-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f9fc;
  --ink: #19334a;
  --muted: #596c7e;
  --teal: #008d8b;
  --line: #dce4ec;
  font-family: "Golos Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-image: url("assets/human-lines.svg"), url("assets/machine-lines.svg");
  background-repeat: no-repeat;
  background-size: clamp(240px, 27vw, 440px) auto;
  background-position: left -12px top 65%, right -22px top 38%;
}
p { margin: 0; }

.page {
  width: min(100%, 1600px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 64px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
}

.header { justify-content: flex-end; }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.status span[aria-hidden] { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); }
.languages { display: flex; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); }
.languages[hidden] { display: none; }
.languages button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.languages button[aria-pressed="true"] { color: var(--teal); font-weight: 600; background: #e7f1f2; }
.languages button:hover { background: #e7f1f2; }
.languages button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(72px, 12vh, 144px);
}

.logo { display: block; width: min(100%, 880px); height: auto; }
h1 {
  margin: clamp(36px, 5vw, 64px) 0 20px;
  max-width: 100%;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(32px, 4.1vw, 59px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.intro { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); font-weight: 400; line-height: 1.8; letter-spacing: -0.01em; }
.footer { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); }
.signature { color: var(--teal); font-weight: 500; letter-spacing: -0.02em; }
.mobile-break { display: none; }

@media (max-width: 600px) {
  body { background-size: 130px auto; background-position: left -20px top 90px, right -20px top 80px; }
  .header { align-items: center; gap: 12px; flex-wrap: wrap; }
  .languages { padding-left: 8px; }
  .main { padding-block: 88px; }
  .footer { align-items: flex-start; gap: 16px; }
  .signature { max-width: 100px; text-align: right; }
  .mobile-break { display: initial; }
}

@media (max-height: 500px) and (min-width: 601px) {
  .main { padding-block: 48px; }
  .logo { width: min(65%, 600px); }
  h1 { margin-top: 24px; }
}
