:root {
  color-scheme: light;
  --ink: #172a3a;
  --blue: #123f72;
  --link: #0645ad;
  --teal: #167e83;
  --lime: #d7ed78;
  --orange: #e87532;
  --paper: #fffef5;
  --rule: #a7b3b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 28px 16px 40px;
  color: var(--ink);
  background-color: #d8ded8;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(23, 42, 58, .045) 7px 8px);
  font: 16px/1.5 Georgia, "Times New Roman", serif;
}

a { color: var(--link); }
a:hover, a:focus-visible { color: #b34119; }

.site {
  width: min(100%, 900px);
  margin: 0 auto;
  border: 2px solid var(--blue);
  background: var(--paper);
  box-shadow: 5px 5px 0 rgba(23, 42, 58, .2);
}

.utility-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 5px 12px;
  color: #fff;
  background: var(--blue);
  font: bold 12px/1.4 "Courier New", monospace;
}

.current-date {
  margin-left: auto;
  text-align: right;
}

.masthead {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 18px;
  padding: 25px 28px 22px;
  border-bottom: 5px ridge #b9c9c1;
  background: #e8f0d7;
}

.monogram {
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  border: 3px double #fff;
  outline: 2px solid var(--teal);
  color: #fff;
  background: var(--teal);
  font: bold 24px/1 "Courier New", monospace;
  text-shadow: 2px 2px #174d56;
}

.phone-icon {
  font: 40px/1 "Segoe UI Symbol", sans-serif;
  text-shadow: none;
}

h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(27px, 6vw, 42px);
  line-height: 1.08;
}

.tagline {
  margin: 8px 0 0;
  color: #38594e;
  font: bold 15px/1.4 "Courier New", monospace;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid #728782;
  background: #d6e5e0;
  font: bold 14px "Courier New", monospace;
}

nav a {
  padding: 5px 10px;
  border: 2px outset #f7fff8;
  color: var(--blue);
  background: #f7fff8;
  text-decoration: none;
}

nav a[aria-current="page"] {
  border-style: inset;
  color: #fff;
  background: var(--blue);
}

nav a:active { border-style: inset; }

main { padding: 23px 28px 30px; }

.welcome {
  padding: 18px 20px;
  border: 1px solid #77918b;
  border-left: 7px solid var(--orange);
  background: #fff9db;
}

.welcome h2, .section-title {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 23px;
}

.welcome p { margin: 0; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 12px;
}

.section-heading::after {
  height: 3px;
  flex: 1;
  border-top: 1px solid var(--teal);
  border-bottom: 1px dotted var(--teal);
  content: "";
}

.section-title { margin: 0; }

.phone-intro { margin: -2px 0 12px; }

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.phone-card {
  margin: 0;
  overflow: hidden;
  border: 2px ridge #aec1b9;
  background: #fff;
}

.phone-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  object-fit: contain;
}

.phone-card figcaption {
  padding: 8px 6px;
  border-top: 1px solid #aec1b9;
  color: #175c58;
  background: #f0f5e7;
  font: bold 14px/1.4 "Courier New", monospace;
  text-align: center;
}

.phone-price {
  display: block;
  margin-top: 2px;
  color: var(--blue);
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service {
  min-height: 122px;
  padding: 14px;
  border: 2px ridge #aec1b9;
  background: #f0f5e7;
}

.service h3 {
  margin: 0 0 7px;
  color: #175c58;
  font-size: 17px;
}

.service h3 a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.service p { margin: 0; font-size: 14px; }

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px groove #bdc9c3;
  background: #eaf2f7;
}

.contact p { margin: 3px 0; }

.contact-link {
  display: inline-block;
  padding: 9px 13px;
  border: 3px outset #ffc072;
  color: #fff;
  background: var(--orange);
  font: bold 14px "Courier New", monospace;
  text-decoration: none;
  white-space: nowrap;
}

.contact-link:hover, .contact-link:focus-visible {
  color: #fff;
  background: #bd4d21;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 2px ridge #b9c9c1;
  color: #344f4c;
  background: #e8f0d7;
  font: 12px/1.5 "Courier New", monospace;
}

@media (max-width: 620px) {
  body { padding: 12px 8px 24px; }
  .masthead { grid-template-columns: 62px 1fr; gap: 14px; padding: 19px 16px; }
  .monogram { width: 56px; font-size: 18px; }
  main { padding: 18px 16px 22px; }
  .phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact-link { justify-self: start; }
  footer { flex-direction: column; }
}