@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/rebrand-assets/montserrat-latin.woff2') format('woff2');
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/rebrand-assets/montserrat-cs-sk.woff2') format('woff2');
  unicode-range: U+010C-010F, U+011A-011B, U+0139-013A, U+013D-013E, U+0147-0148, U+0154-0155, U+0158-0159, U+0160-0161, U+0164-0165, U+016E-016F, U+017D-017E;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/rebrand-assets/roboto-latin.woff2') format('woff2');
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/rebrand-assets/roboto-cs-sk.woff2') format('woff2');
  unicode-range: U+010C-010F, U+011A-011B, U+0139-013A, U+013D-013E, U+0147-0148, U+0154-0155, U+0158-0159, U+0160-0161, U+0164-0165, U+016E-016F, U+017D-017E;
}

:root {
  color-scheme: light;
  --linen: #f9ede5;
  --paper: #fffaf7;
  --ink: #4a3528;
  --brown: #7c5a43;
  --body: #65564d;
  font-family: Roboto, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: var(--linen);
  color: var(--body);
}

* { box-sizing: border-box; }

body {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 64px 32px;
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.rebrand {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(100%, 1208px);
  padding: 38px 40px 36px;
  border: 1.5px solid var(--brown);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
}

.rebrand__logo {
  display: block;
  width: 420px;
  max-width: 70%;
  height: auto;
}

h1 {
  margin: 34px 0 23px;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(32px, 4.8vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 span { white-space: nowrap; }

.rebrand__message {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  text-wrap: pretty;
}

.rebrand__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  width: min(100%, 432px);
  min-height: 74px;
  margin-top: 29px;
  padding: 18px 28px;
  border-radius: 16px;
  background: var(--brown);
  color: var(--paper);
  font-size: 24px;
  line-height: 1.3;
  text-decoration: none;
}

.rebrand__button svg { flex-shrink: 0; }

.rebrand__website {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 24px;
}

.rebrand__contacts {
  margin-top: 23px;
  font-size: 21px;
  font-style: normal;
}

.rebrand__contacts::before {
  display: block;
  width: 72px;
  height: 1px;
  margin: 0 auto 14px;
  background: var(--brown);
  content: '';
}

.rebrand__contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 32px;
}

.rebrand__contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.rebrand__contacts p {
  margin: 0;
  font-size: 20px;
}

@media (min-width: 641px) and (max-height: 800px) {
  body { padding: 24px 32px; }
  .rebrand { width: min(100%, 1000px); padding: 26px 32px; }
  .rebrand__logo { width: 240px; }
  h1 { margin: 24px 0 18px; font-size: 46px; }
  .rebrand__message { font-size: 18px; }
  .rebrand__button { width: 320px; min-height: 56px; margin-top: 22px; padding: 14px 24px; font-size: 18px; border-radius: 12px; }
  .rebrand__website { font-size: 18px; }
  .rebrand__contacts { margin-top: 14px; font-size: 17px; }
  .rebrand__contacts p { font-size: 16px; }
}

@media (max-width: 640px) {
  body { padding: 20px 14px; }

  .rebrand {
    padding: 32px 20px 28px;
    border-width: 1px;
    border-radius: 18px;
  }

  .rebrand__logo {
    width: 240px;
    max-width: 83%;
  }

  h1 {
    margin-top: 32px;
    margin-bottom: 20px;
    font-size: clamp(25px, 6.65vw, 40px);
    letter-spacing: -0.05em;
    line-height: 1.18;
  }

  .rebrand__message {
    max-width: 32ch;
    font-size: 17px;
    line-height: 1.6;
  }

  .rebrand__button {
    min-height: 58px;
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 18px;
  }

  .rebrand__website { font-size: 18px; }

  .rebrand__contacts {
    width: 100%;
    margin-top: 18px;
    font-size: 16px;
  }

  .rebrand__contact-links {
    flex-direction: column;
    row-gap: 0;
  }

  .rebrand__separator { display: none; }

  .rebrand__contacts p {
    max-width: 25ch;
    margin: 8px auto 0;
    font-size: 15px;
    line-height: 1.6;
  }
}
