@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #191522;
  --fg: #f4f4f6;
  --muted: #b1acbf;
  --green: #2dd4a0;
  --line: #443d52;
  --glow: #46c4a8;
  --glow-edge: #c59d42;
  --hero-gap: 14px;
  --main-gap: 28px;
  --shell-gap: 40px;
  --pad: 24px;
  --h1: 28px;
  --lead: 16px;
  --contact: 15px;
  --mail: 12px;
  --mail-leading: 17.4px;
  --logo: 148px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-weight: 400;
  font-synthesis: none;
}

p,
h1 {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dotgrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgb(214 229 225 / 0.1) 2.2px, transparent 2.3px);
  background-size: 56px 56px;
}

.dotgrid__edge,
.dotgrid__core {
  position: absolute;
  inset: 0;
  background-size: 56px 56px;
  opacity: 0;
}

.dotgrid__edge {
  background-image: radial-gradient(
    circle,
    var(--glow-edge) 0 2px,
    color-mix(in srgb, var(--glow-edge) 28%, transparent) 4px,
    transparent 9px
  );
  mask-image: radial-gradient(
    circle at var(--glow-x, -20rem) var(--glow-y, -20rem),
    #000 8rem,
    transparent 12.8rem
  );
}

.dotgrid__core {
  background-image: radial-gradient(
    circle,
    var(--glow) 0 2px,
    color-mix(in srgb, var(--glow) 28%, transparent) 4px,
    transparent 9px
  );
  mask-image: radial-gradient(
    circle at var(--glow-x, -20rem) var(--glow-y, -20rem),
    #000 2.6rem,
    transparent 9.5rem
  );
}

.dotgrid[data-active="true"] .dotgrid__edge,
.dotgrid[data-active="true"] .dotgrid__core {
  opacity: 0.5;
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--shell-gap);
  width: min(100%, 1440px);
  min-height: 100dvh;
  margin-inline: auto;
  padding: var(--pad);
  container-type: inline-size;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: block;
  width: var(--logo);
  height: auto;
  flex: 0 0 auto;
}

.header-mail {
  width: 120px;
  font-size: var(--mail);
  line-height: var(--mail-leading);
  color: var(--muted);
  text-align: right;
  text-decoration: none;
}

main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: var(--main-gap);
  outline: none;
}

.hero,
h1 {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap);
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.15;
}

.line--accent {
  color: var(--green);
}

.lead,
.contact p {
  color: var(--muted);
  line-height: 1.15;
}

.lead {
  font-size: var(--lead);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact p {
  font-size: var(--contact);
}

.contact a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 0.15em;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 16px;
  border-radius: 40px;
  background: var(--green);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

.site-footer {
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17.4px;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .dotgrid__edge,
  .dotgrid__core {
    transition: background-color 160ms ease, opacity 400ms ease;
  }
}

@media (any-hover: hover) {
  .button:hover {
    background: #3adbab;
  }

  .header-mail:hover,
  .contact a:not(.button):hover {
    text-decoration: underline;
  }
}

@media (min-width: 768px) {
  :root {
    --pad: 40px;
    --hero-gap: 16px;
    --main-gap: 32px;
    --shell-gap: 32px;
    --h1: 40px;
    --lead: 18px;
    --contact: 16px;
    --mail: 14px;
    --mail-leading: 20.3px;
    --logo: 168px;
  }

  .header-mail {
    width: 150px;
  }

  .button {
    width: min(100%, 420px);
  }

}

@media (min-width: 1100px) {
  :root {
    --hero-gap: 18px;
    --main-gap: 40px;
    --h1: 52px;
    --lead: 20px;
    --contact: 17px;
    --logo: 185px;
  }
}

@media (min-width: 1280px) {
  :root {
    --pad: 80px;
    --shell-gap: 0;
    --h1: 64px;
  }
}

@container (min-width: 1152px) {
  .contact {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .contact p {
    width: 840px;
    flex: 0 0 840px;
  }

  .button {
    width: 280px;
    flex: 0 0 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .dotgrid__edge,
  .dotgrid__core {
    transition: none;
  }
}
