:root {
  --cream: #fff0b8;
  --ink: #050505;
  --red: #b83d3f;
  --blue: #082891;
  --line: rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
}

.topbar {
  height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.brand {
  padding-left: 12px;
  font-family: "Cooper Black", "Rockwell Extra Bold", Georgia, serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.page {
  min-height: calc(100vh - 50px);
  display: grid;
  grid-template-columns: 48% 52%;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(70px, 10vh, 118px) clamp(38px, 5vw, 96px) 76px;
  background: var(--cream);
}

h1 {
  margin: 0;
  text-align: center;
  font-family: "Cooper Black", "Rockwell Extra Bold", Georgia, serif;
  font-size: clamp(64px, 6vw, 102px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.details {
  width: min(620px, 100%);
  margin-top: clamp(125px, 17vh, 200px);
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: center;
  gap: clamp(35px, 4vw, 76px);
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.services,
.contact {
  text-align: center;
}

.services {
  display: grid;
  gap: 16px;
}

.contact {
  display: grid;
  gap: 19px;
}

.contact a {
  color: inherit;
  text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

.arch {
  width: 76px;
  height: 112px;
  background: var(--red);
  border-radius: 38px 38px 0 0;
}

.signup {
  width: min(425px, 100%);
  margin-top: auto;
  padding-top: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 123px;
  gap: 16px;
}

.signup input,
.signup button {
  min-height: 64px;
  border: 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.signup input {
  width: 100%;
  padding: 0 33px;
  color: var(--ink);
  background: #fff;
  outline: 1px solid #e2dfdc;
}

.signup input::placeholder {
  color: #b1aab2;
  opacity: 1;
}

.signup input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.signup button {
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.signup button:hover,
.signup button:focus-visible {
  filter: brightness(1.1);
}

.photo {
  min-height: calc(100vh - 50px);
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .content {
    min-height: calc(100vh - 50px);
    padding-top: 74px;
  }

  h1 {
    font-size: clamp(58px, 13vw, 94px);
  }

  .details {
    margin-top: 100px;
  }

  .photo {
    min-height: 72vh;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 23px;
  }

  .content {
    padding: 58px 24px 42px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
    letter-spacing: -0.055em;
  }

  .details {
    margin-top: 72px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .arch {
    justify-self: center;
  }

  .signup {
    margin-top: 74px;
    padding-top: 0;
    grid-template-columns: 1fr;
  }

  .signup button {
    width: 123px;
    justify-self: center;
  }

  .photo {
    min-height: 58vh;
  }
}
