@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", Arial, sans-serif;
  --surface: #f5f9fa;
  --ink: #0b181c;
  --muted: #3c4a4f;
  --line: #d0e2e3;
  --teal: #008586;
  --teal-dark: #006464;
  --deep: #102b34;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.shell {
  width: min(calc(100% - 3rem), 70rem);
  margin-inline: auto;
}

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  min-height: 5rem;
}

.logo {
  display: block;
  width: 8.75rem;
  height: 4.75rem;
  object-fit: cover;
}

.dashboard {
  padding-block: clamp(1.5rem, 4vw, 3.25rem) 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  min-height: 19.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(110deg, var(--deep) 16%, #104245 100%);
  color: #fff;
}

.hero-copy {
  align-self: center;
  padding: clamp(2rem, 5.6vw, 4.25rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.4vw, 4.55rem);
  font-weight: 720;
  letter-spacing: -.058em;
  line-height: .99;
}

.hero h1 span {
  display: block;
  color: #a8e1dc;
}

.hero p {
  max-width: 30ch;
  margin: 1.25rem 0 0;
  color: #e1f1f2;
  font-size: 1.0625rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.hero-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 46%;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 53, 60, .55), transparent 38%);
  content: "";
  pointer-events: none;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.375rem 0 0;
  padding: 0;
  list-style: none;
}

.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.625rem;
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 43, 52, .035);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.tool:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(16, 43, 52, .085);
}

.tool:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
}

.tool-icon {
  display: grid;
  width: 3.125rem;
  height: 3.125rem;
  place-items: center;
  border-radius: .875rem;
  background: #e2f3f1;
  color: var(--teal-dark);
}

.agreements .tool-icon {
  background: #f6eedb;
  color: #775011;
}

.accounting .tool-icon {
  background: #e5eff4;
  color: #295665;
}

.glyph {
  position: relative;
  display: block;
}

.glyph::before, .glyph::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.glyph-website {
  width: 1.5rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-radius: .25rem;
}

.glyph-website::before {
  inset: .25rem 0 auto;
  height: 2px;
}

.glyph-website::after {
  top: 1px;
  left: 3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: 4px 0 currentColor;
}

.glyph-agreements {
  width: 1.0625rem;
  height: 1.4375rem;
  border: 2px solid currentColor;
  border-radius: .1875rem;
}

.glyph-agreements::before {
  inset: 4px 2px auto;
  height: 2px;
  box-shadow: 0 4px currentColor;
}

.glyph-agreements::after {
  right: -4px;
  bottom: 3px;
  width: .625rem;
  height: 2px;
  border-radius: 2px;
  transform: rotate(-39deg);
  box-shadow: 0 1px #f6eedb;
}

.glyph-accounting {
  width: 1.4375rem;
  height: 1.375rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-bottom-left-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) left .25rem bottom .1875rem / .1875rem .375rem no-repeat,
    linear-gradient(currentColor, currentColor) left .5625rem bottom .1875rem / .1875rem .625rem no-repeat,
    linear-gradient(currentColor, currentColor) left .875rem bottom .1875rem / .1875rem .875rem no-repeat;
}

.glyph-accounting::before, .glyph-accounting::after {
  content: none;
}

.tool h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -.032em;
  line-height: 1.2;
}

.tool p {
  margin: .5rem 0 0;
  color: var(--muted);
}

.tool-action {
  margin-top: auto;
  padding: .475rem .8rem;
  border-radius: .45rem;
  background: #eaf5f4;
  color: var(--teal-dark);
  font-size: .9375rem;
  font-weight: 750;
  transition: background-color 160ms ease, color 160ms ease;
}

.tool:hover .tool-action, .tool:focus-visible .tool-action {
  background: var(--teal-dark);
  color: #fff;
}

@media (max-width: 52rem) {
  .hero-copy { padding: 2.375rem; }
  .tool { padding: 1.25rem; }
  .tool h2 { font-size: 1.25rem; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4.25rem; }
  .logo { width: 7.75rem; height: 4.125rem; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; border-radius: 1.125rem; }
  .hero-copy { padding: 1.75rem; }
  .hero h1 { font-size: clamp(2.375rem, 9vw, 3.5rem); }
  .hero p { margin-top: .875rem; font-size: 1rem; }
  .hero-image { display: none; }
  .tool-grid { grid-template-columns: 1fr; gap: .75rem; margin-top: 1rem; }
  .tool {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: .75rem .875rem;
    padding: 1rem;
  }
  .tool-icon { grid-row: span 2; width: 2.75rem; height: 2.75rem; }
  .tool-action { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .tool, .tool-action { transition: none; }
}
