/*
 * Saint Dorothea's St. Vincent de Paul Society
 * Modern CSS for Eleventy v3 site
 */

:root {
  --svdp-blue: #1e73be;
  --svdp-blue-dark: #003572;
  --svdp-purple: #7639e2;
  --svdp-navy-dark: #121722;
  --svdp-navy-medium: #1c2538;
  --svdp-navy-light: #36425b;
  --white: #ffffff;
  --black: #000000;
}

body {
  background: var(--white);
  color: var(--black);
  font-size: 20px;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  background: var(--svdp-blue);
  line-height: 1.5;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-style: normal;
}

h1 {
  font-size: 3.052rem;
}

h2,
.lead {
  font-size: 1.953rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-block: 1rem;
}

img {
  width: 100%;
  height: auto;
}

header {
  padding: 2rem;
  background: var(--white);

  @media all and (min-width: 1024px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.logo a {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  text-decoration: none;
  font-size: 2.441rem;
  font-family: "Barlow Condensed", sans-serif;
  font-style: normal;
  line-header: 1;

  &:hover,
  &:focus {
    text-decoration: underline;
  }
}

.btn {
  background: var(--svdp-blue);
  color: var(--white);
  display: inline-block;
  font-weight: 700;
  padding: 1rem;
  text-decoration: none;

  &:hover,
  &:focus {
    background: var(--svdp-purple);
    text-decoration: underline;
    text-underline-offset: 0.35rem;
  }
}

.site-title {
  font-size: 3rem;
  line-height: 1;
  color: var(--svdp-blue);
  text-wrap: balance;
}

.menu-menu2 {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  list-style: none;
  font-weight: 500;
  font-style: normal;
  font-size: 1.25rem;

  a {
    color: var(--svdp-navy-dark);

    &:hover,
    &:focus {
      color: var(--svdp-purple);
    }
  }
}

main {
  background: var(--white);
}

/* Home Page */
.home {
  .hero {
    background: var(--svdp-blue);
    min-height: 50vh;
    background: var(--white);
    padding: 1rem 2rem;
  }

  .col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;

    & div:first-child {
      background: var(--svdp-blue-dark);
      color: white;
      padding: 2rem;
    }

    & div:last-child {
      background: var(--svdp-purple);
      color: white;
      padding: 2rem;
    }

    & .btn {
      background: var(--white);
      color: var(--svdp-blue);
      font-weight: 700;
      padding: 1rem;
      text-decoration: none;

      &:hover,
      &:focus {
        background: var(--white);
        color: var(--svdp-blue);
        text-decoration: underline;
        text-underline-offset: 0.35rem;
      }
    }
  }
}

/* Basic Pages */
.page .one-column {
  padding: 2rem;
  max-width: 80ch;
  margin: 0 auto;
}

footer {
  background: var(--svdp-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 2rem;

  a {
    color: var(--white);

    &:hover,
    &:focus {
    }
  }
}
