:root {
  color-scheme: light;
  --navy: #1f3864;
  --blue: #2f5496;
  --light-blue: #a6cdf4;
  --ink: #152843;
  --muted: #526176;
  --line: #dce3ec;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f4f6fa;
  color: var(--ink);
}

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

body {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  border-radius: .25rem;
  background: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.sidebar {
  padding: 1.75rem .75rem;
  background: var(--navy);
  color: white;
}

.sidebar a:focus-visible {
  outline-color: var(--light-blue);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  margin: 0 .65rem 2rem;
  text-decoration: none;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand-product {
  padding-left: .7rem;
  border-left: 1px solid #7186a7;
  color: #dbe7f8;
  font-size: .85rem;
}

nav {
  display: grid;
  gap: .3rem;
}

.nav-link {
  display: block;
  padding: .7rem .75rem;
  border-left: 3px solid transparent;
  border-radius: .35rem;
  color: #e5edf9;
  font-size: .9rem;
  text-decoration: none;
}

.nav-link[aria-current], .nav-link:hover {
  background: var(--blue);
  color: white;
}

.nav-link[aria-current] {
  border-left-color: var(--light-blue);
  font-weight: 650;
}

main {
  width: min(100%, 78rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4.5vw, 4.75rem);
}

.page-header {
  margin-bottom: 2rem;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  font-weight: 690;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.page-header p {
  margin-top: .8rem;
  color: var(--muted);
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  height: 100%;
  min-height: 8.1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: white;
  text-decoration: none;
}

.tool-card:hover {
  border-color: #8ca9cf;
  box-shadow: 0 3px 12px rgb(31 56 100 / 8%);
}

.tool-card h2 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.tool-card p {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.tool-arrow {
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1.2;
}

.sign-in-page {
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 1.25rem;
  background: var(--navy);
}

.sign-in-panel {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: .65rem;
  background: white;
}

.sign-in-panel h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.sign-in-panel p {
  margin-top: .8rem;
  color: var(--muted);
  line-height: 1.55;
}

.sign-in-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  border-radius: .35rem;
  background: var(--blue);
  color: white;
  font-weight: 650;
  text-decoration: none;
}

.sign-in-button:hover {
  background: var(--navy);
}

@media (max-width: 42rem) {
  body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    padding: 1rem 1rem .7rem;
  }

  .brand {
    margin: 0 .25rem .75rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: .55rem .55rem;
  }
}
