/* @link https://utopia.fyi/type/calculator?c=360,24,1.2,1240,30,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --fs--2: clamp(1.0417rem, 0.9769rem + 0.2879vw, 1.2rem);
  --fs--1: clamp(1.25rem, 1.1477rem + 0.4545vw, 1.5rem);
  --fs-0: clamp(1.5rem, 1.3466rem + 0.6818vw, 1.875rem);
  --fs-1: clamp(1.8rem, 1.5776rem + 0.9886vw, 2.3438rem);
  --fs-2: clamp(2.16rem, 1.8451rem + 1.3994vw, 2.9297rem);
  --fs-3: clamp(2.592rem, 2.1542rem + 1.9457vw, 3.6621rem);
  --fs-4: clamp(3.1104rem, 2.5102rem + 2.6677vw, 4.5776rem);
  --fs-5: clamp(3.7325rem, 2.9186rem + 3.6174vw, 5.722rem);

  --clr-white: hsl(0deg 0% 100%);
  --clr-gray: hsl(0deg 0% 92%);
  --clr-black: hsl(0deg 0% 15%);
  --clr-yellow: hsl(50deg 100% 75%);
  --clr-red: hsl(0deg 85% 59%);
  --clr-red-dark: hsl(0deg 75% 49%);
}

*:not(dialog) {
  margin: 0;
}

html {
  scrollbar-gutter: stable;
  interpolate-size: allow-keywords;
  -webkit-text-size-adjust: none;

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--clr-white);
  color: var(--clr-black);
  font-family:
    "Akrobat", "Oswald", "Barlow Condensed", "Roboto Condensed", "Arial Narrow",
    sans-serif;
  font-size: var(--fs-0);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--fs-4);
  line-height: 1.1;
}

h2 {
  font-size: var(--fs-2);
  line-height: 1.2;
}

p,
li {
  text-wrap: pretty;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

::selection {
  background: var(--clr-yellow);
  color: var(--clr-black);
}

[role="list"] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline-offset: 0.2rem;
}

a {
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.25em;

  &:not(:is(:hover, :focus-visible)) {
    text-decoration-color: color-mix(in srgb, currentColor, transparent 75%);
  }
}

.wrapper {
  max-inline-size: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vi, 2rem);
}

.link {
  color: var(--clr-red);
  font-weight: 700;
}

.primary-header {
  padding-block: 1.5rem;
  border-block-end: 0.25rem solid var(--clr-gray);
}

.primary-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  max-inline-size: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vi, 2rem);

  @media (width > 40rem) {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
}

.primary-nav ul {
  display: flex;
  gap: 2rem;

  @media (width > 40rem) {
    gap: 2.75rem;
  }
}

.primary-nav a {
  color: inherit;
  line-height: 1;

  &:not(:is(:hover, :focus-visible)) {
    text-decoration: none;
  }
}

.hero {
  padding-block-start: 5rem;
  padding-block-end: 6rem;
  text-align: center;

  @media (width > 40rem) {
    padding-block-start: 6rem;
    padding-block-end: 7rem;
  }
}

.hero h1 {
  margin-block-end: 2rem;
}

.hero li + li {
  margin-block-start: 1rem;
}

.marker {
  color: var(--clr-red);
  -webkit-user-select: none;
  user-select: none;
}

.cta {
  display: block;
  background: var(--clr-red);
  color: var(--clr-white);
  border-radius: 0.5rem;
  padding: 0.75em 1.5em;
  text-decoration: none;
  font-weight: 700;
  margin-block-start: 3rem;
  transition: background 200ms;

  @media (width > 40rem) {
    display: inline-block;
  }

  &:hover,
  &:focus-visible {
    background: var(--clr-red-dark);
  }
}

.about {
  background: var(--clr-gray);
  padding-block: 6rem;
}

.about img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  box-shadow: 5px 5px 0 var(--clr-red);
  align-self: center;
}

.about p {
  margin-block: 1.5rem;
}

.two-column-layout {
  display: grid;
  gap: 4rem;

  @media (width > 40rem) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.services {
  padding-block: 6rem;
  text-align: center;
}

.services h2 {
  margin-block-end: 1.5rem;
}

.services li + li {
  margin-block-start: 1rem;
}

.contact {
  background: var(--clr-gray);
  padding-block: 6rem;
}

.contact h2 {
  margin-block-end: 2rem;
}

.contact address {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  font-style: normal;
}

.contact img {
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 5px 5px 0 var(--clr-red);
  align-self: center;
}

.primary-footer {
  font-size: var(--fs--1);
  padding-block: 4rem;
  text-align: center;
}
