:root {
  --dark-blue: #052d4b;
  --light-blue: #78aad2;
  --graphite: #2d2d2d;
  --silver: #dcdcdc;
  --raspberry-red: #b42369;
  --ice-blue: #007eb3;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 14px/1.42857 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--dark-blue);
  color: var(--silver);
}

a {
  color: var(--light-blue);
  text-decoration: none;
  &:hover { text-decoration: underline; }
}

h1, h2, h3 { margin: 20px 0 10px; line-height: 1.1; font-weight: 500; color: white; }
h1 { font-size: clamp(28px, 6vw, 42px); }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
p { margin: 0 0 10px; }
b, strong { font-weight: 700; }

header img { display: block; height: 32px; margin: 9px; }

main { flex: 1; }

.hero {
  height: 30vh;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(_assets/lg/StockSnap_1QW7GWTYFF.jpg) 0 0 / cover;

  h1 {
    padding: 2px 6px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 32px #000;
  }
}

main > section > h2,
main > section > h3 {
  min-height: 10vh;
  margin: 0;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

article {
  width: 100%;
  max-width: 800px;
  justify-self: center;
  padding: 24px 48px;
  color: white;

  h3 {
    margin: 0 0 5px;
    font-weight: 300;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    b { font-weight: 800; }
  }

  p { font-weight: 300; }

  ul {
    margin: 0 0 10px;
    padding: 8px 0 0;
    list-style: none;
  }

  li { display: inline-block; line-height: 42px; }

  li a {
    margin: 4px 8px 4px 0;
    padding: 7px 14px;
    font-weight: 700;
    color: white;
    background: var(--ice-blue);
    &:hover, &:focus-visible {
      text-decoration: none;
      background: color-mix(in srgb, var(--ice-blue), white 10%);
    }
  }

  li:first-child a {
    background: var(--raspberry-red);
    &:hover, &:focus-visible { background: color-mix(in srgb, var(--raspberry-red), white 10%); }
  }
}

.guides {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px 2em;

  > h2, > h3 { justify-content: flex-start; }
}

.languages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

footer {
  padding: 12px 27px;
  text-align: right;
  color: #f0f0f0;
  background: var(--graphite);
  a { color: inherit; }
}

@media (max-width: 768px) {
  .hero { height: 20vh; }
  .cards { grid-template-columns: 1fr; }
  article { padding: 16px 24px; }
}

@media (max-width: 480px) {
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  article { padding: 12px 16px; }
}
