:root {
  font-family: system-ui, sans-serif;
  color: #111733;
  background: #f5f8fd;
  line-height: 1.55;
  --cream: #fff8ed;
  --night: #19244f;
  --amber: #ffad28;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #365fb1; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.frame {
  width: min(1160px, calc(100% - clamp(32px, 10vw, 144px)));
  margin-inline: auto;
}
.opening {
  color: var(--cream);
  background:
    linear-gradient(90deg, #151f4b 0%, #18234fe8 35%, #1b2a6340 85%),
    #263777 url(main-street.webp) center / cover no-repeat;
}
.opening a:focus-visible, footer a:focus-visible { outline-color: var(--amber); }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
}
.brand {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1;
  text-decoration: none;
}
.brand span { color: var(--amber); }
nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 36px); font-weight: 660; }
.hero {
  padding-block: clamp(48px, 8vw, 106px) clamp(88px, 15vw, 182px);
}
h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.hero p {
  max-width: 30ch;
  margin-block: 20px 26px;
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  color: #18162b;
  background: var(--amber);
  font-weight: 730;
  text-decoration: none;
}
.button:hover { background: #ffbf52; }
.services { padding-block: clamp(40px, 7vw, 82px); }
h2 { font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 16px;
  margin-top: 25px;
}
article {
  padding: 23px;
  border: 1px solid #d7e1ef;
  border-radius: 16px;
  background: white;
}
h3 { font-size: 1.23rem; }
article p { margin-top: 7px; color: #465676; }
footer { padding-block: 40px; color: var(--cream); background: var(--night); }
footer a { display: inline-block; margin-block: 12px; }
footer p { color: #d2e7f9; }

@media (max-width: 560px) {
  .opening {
    background-image: linear-gradient(#18234fed 0%, #18234fd9 56%, #18234f80), url(main-street.webp);
    background-position: 64% center;
  }

  .hero { padding-bottom: 94px; }
}
