@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --accent: #a21d34;
  --ink: #171717;
  --muted: #595959;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  --illustration-base-size: clamp(7rem, min(29vh, 60vw), 19rem);
  --illustration-growth: clamp(0.55rem, 1.75vh, 1.075rem);
  --illustration-size: calc(var(--illustration-base-size) + var(--illustration-growth));
  --illustration-gap-reduction: 0rem;
  --illustration-extra-gap: clamp(0.45rem, 1vh, 0.7rem);
  --major-text-size: clamp(1.25rem, min(3.8vh, 7.5vw), 2.25rem);
  width: min(100%, 48rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(0.8rem, 2.8vh, 1.8rem) clamp(1.15rem, 5vw, 3rem);
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-rows: auto var(--illustration-size) auto auto auto minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: clamp(0.35rem, 1.25vh, 0.9rem);
}

.identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.5vw, 0.85rem);
  margin-bottom: var(--illustration-extra-gap);
}

.identity-copy {
  text-align: left;
}

.logo {
  display: block;
  width: clamp(3rem, 7vh, 4rem);
  height: auto;
  margin: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: var(--major-text-size);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.profession {
  margin-top: 0;
  color: var(--accent);
  font-size: clamp(0.95rem, 2.2vh, 1.18rem);
  line-height: 1.25;
  font-weight: 600;
}

.identity-copy h1 {
  margin-top: -0.32rem;
}

.illustration {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
}

.illustration img {
  display: block;
  width: auto;
  height: var(--illustration-size);
  max-width: 100%;
  object-fit: contain;
}

.services {
  --service-item-gap: clamp(0.08rem, 0.4vh, 0.28rem);
  width: 100%;
  min-height: min-content;
  margin-top: clamp(0.9rem, 2vh, 1.4rem);
  align-self: center;
}

.services h2 {
  width: min(100%, 42rem);
  margin-inline: auto;
  margin-bottom: clamp(0.3rem, 0.8vh, 0.65rem);
  text-align: center;
  font-size: clamp(0.95rem, 2vh, 1.1rem);
  line-height: 1.25;
  font-weight: 700;
}

.service-columns {
  width: min(100%, 42rem);
  margin: 0 auto;
}

@media (max-width: 39.99rem) {
  .services h2 {
    width: min(100%, 20rem);
  }

  .service-columns {
    width: min(100%, 18rem);
  }

  .service-columns ul + ul {
    margin-top: var(--service-item-gap);
  }
}

.services ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.86rem, 1.75vh, 1rem);
  line-height: 1.28;
}

.services li {
  position: relative;
  padding-left: 1rem;
}

.services li + li {
  margin-top: var(--service-item-gap);
}

.services li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--accent);
}

.services li span {
  color: var(--muted);
}

.copyright {
  grid-row: 7;
  margin-top: 0;
  padding-top: clamp(2.2rem, 5.6vh, 4rem);
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.68rem, 1.35vh, 0.78rem);
  line-height: 1.25;
}

.experience,
.closing {
  color: var(--ink);
  font-size: clamp(0.95rem, 2vh, 1.1rem);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: normal;
}

.closing {
  margin-top: clamp(0.9rem, 2vh, 1.4rem);
  text-align: center;
}

.closing-followup {
  display: inline;
}

@media (max-width: 30rem) {
  .closing-followup {
    display: block;
  }
}

.contact {
  margin-top: var(--illustration-extra-gap);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  color: var(--ink);
  font-size: var(--major-text-size);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-style: normal;
}

.phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  text-decoration: none;
  white-space: normal;
}

.phone-number {
  white-space: nowrap;
}

.phone-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}

.phone-number {
  color: var(--accent);
}

.phone:focus-visible {
  outline: 0.16rem solid var(--accent);
  outline-offset: 0.25rem;
  border-radius: 0.12rem;
}

address {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.35em;
  margin-top: 0.22rem;
  color: inherit;
  font-size: 0.68em;
  line-height: inherit;
  font-style: normal;
}

address span {
  white-space: normal;
}

.experience {
  max-width: 42rem;
  margin: clamp(0.7rem, 1.5vh, 1rem) auto 0;
}

.experience span {
  display: block;
}

.experience .experience-primary {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-top: clamp(0.7rem, 1.5vh, 1rem);
  border-top: 2px solid var(--ink);
}

@media (min-width: 40rem) and (min-height: 45rem) {
  .service-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    align-items: start;
  }
}

@media (max-height: 44rem) {
  .page {
    --illustration-base-size: clamp(6.5rem, calc(100svh - 27.5rem), 13rem);
    --illustration-growth: 0.325rem;
    --illustration-gap-reduction: 0rem;
    --illustration-extra-gap: 0.25rem;
    padding-block: 0.55rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 0.75rem;
  }

  .logo {
    width: 2.65rem;
  }

  .contact {
    margin-top: var(--illustration-extra-gap);
  }

  .services ul {
    font-size: 0.78rem;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
