@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f8f5;
  --ink: #202321;
  --muted: #626864;
  --rule: #dedfda;
  --signal: #b83d32;
  --page-gutter: clamp(24px, 5.5vw, 72px);
  --font-sans: "Geist", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 5px;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, 1344px);
  margin-inline: auto;
  padding: 32px var(--page-gutter) 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.language {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.language a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 4px;
}

.language a:hover,
.language a[aria-current="page"] {
  color: var(--ink);
}

.language a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.main-content {
  display: flex;
  align-items: center;
  padding-block: 64px;
}

.message {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-mark {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: var(--signal);
}

h1 {
  max-width: 440px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.explanation {
  max-width: 530px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.65;
}

.contact {
  margin-top: 34px;
}

.contact-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.email {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration-line: underline;
  text-decoration-color: #a6aaa5;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.email:hover,
.email:focus-visible {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.copyright {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.coordinates {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

@media (min-width: 761px) {
  .message {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    grid-template-areas:
      "status explanation"
      "headline explanation"
      ". contact";
    column-gap: clamp(64px, 8vw, 112px);
    row-gap: 10px;
    align-items: center;
  }

  .status {
    grid-area: status;
    margin: 0;
  }

  h1 {
    grid-area: headline;
  }

  .explanation {
    grid-area: explanation;
    max-width: 480px;
    margin: 0;
    align-self: center;
  }

  .contact {
    grid-area: contact;
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 24px;
  }

  .page-shell {
    padding-top: 24px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .main-content {
    align-items: center;
    padding-block: 48px;
  }

  .status {
    margin-bottom: 18px;
    font-size: 10px;
  }

  h1 {
    max-width: 540px;
    font-size: clamp(40px, 10vw, 52px);
    letter-spacing: -0.05em;
    line-height: 1.1;
  }

  .explanation {
    max-width: 460px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
  }

  .contact {
    margin-top: 29px;
  }

  .footer {
    min-height: 62px;
    gap: 16px;
  }

  .copyright {
    font-size: 10px;
  }

  .coordinates {
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  :root {
    --page-gutter: 20px;
  }

  .brand-name {
    font-size: 9px;
  }

  .footer {
    gap: 10px;
  }
}
