@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700&family=DM+Sans:wght@500&display=swap');

:root {
  --color-red: #da1010;
  --color-white: #ffffff;
  --color-dark-grey: #1d1d1d;
  --color-light-grey: #999999;
  --color-black: #000000;
}

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

body {
  --grid-med: 85px;
  --grid-tiny: 17px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  background-color: var(--color-black);
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 0.68px, transparent 0.68px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 0.68px, transparent 0.68px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='85' height='85'%3E%3Cline x1='0' y1='0' x2='0' y2='4' stroke='rgba(255,255,255,0.15)' stroke-width='1.2'/%3E%3Cline x1='0' y1='85' x2='0' y2='81' stroke='rgba(255,255,255,0.15)' stroke-width='1.2'/%3E%3Cline x1='0' y1='0' x2='4' y2='0' stroke='rgba(255,255,255,0.15)' stroke-width='1.2'/%3E%3Cline x1='85' y1='0' x2='81' y2='0' stroke='rgba(255,255,255,0.15)' stroke-width='1.2'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size:
    100% var(--grid-med),
    var(--grid-med) 100%,
    var(--grid-med) var(--grid-med),
    100% var(--grid-tiny),
    var(--grid-tiny) 100%;
  background-position: 0 0;
  color: var(--color-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
  body {
    --grid-med: 50px;
    --grid-tiny: 10px;
    background-image:
      linear-gradient(rgba(255,255,255,0.14) 0.68px, transparent 0.68px),
      linear-gradient(90deg, rgba(255,255,255,0.14) 0.68px, transparent 0.68px),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Cline x1='0' y1='0' x2='0' y2='3' stroke='rgba(255,255,255,0.1)' stroke-width='0.9'/%3E%3Cline x1='0' y1='50' x2='0' y2='47' stroke='rgba(255,255,255,0.1)' stroke-width='0.9'/%3E%3Cline x1='0' y1='0' x2='3' y2='0' stroke='rgba(255,255,255,0.1)' stroke-width='0.9'/%3E%3Cline x1='50' y1='0' x2='47' y2='0' stroke='rgba(255,255,255,0.1)' stroke-width='0.9'/%3E%3C/svg%3E"),
      linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  }
}

h1, h2, h3, .card-name {
  font-family: "Plus Jakarta Sans", sans-serif;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1rem 1rem;
}

.logo {
  position: relative;
  display: inline-block;
}

.logo-img {
  display: block;
  width: 320px;
}

.logo-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.logo:hover .logo-alt {
  opacity: 1;
}

header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.025em;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
  color: var(--color-red);
}

nav {
  flex: 1;
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto repeat(3, 1fr);
  gap: 1rem 2rem;
}

.columns > section {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  gap: 1rem;
}

.column-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-light-grey);
  margin-bottom: 0.75rem;
}

.column-title::after {
  content: '';
  display: block;
  margin-top: -0.5em;
  margin-left: -0.5rem;
  width: 10px;
  height: 10px;
  background-image:
    linear-gradient(var(--color-red), var(--color-red)),
    linear-gradient(var(--color-red), var(--color-red));
  background-size: 1.5px 100%, 100% 1.5px;
  background-position: left top, left bottom;
  background-repeat: no-repeat;
}

nav ul {
  list-style: none;
  display: grid;
  grid-row: 2 / -1;
  grid-template-rows: subgrid;
  gap: 1rem;
}

nav ul li {
  display: flex;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding: 1.25rem;
  border: 1px solid var(--color-light-grey);
  border-radius: 0.5rem;
  background: var(--color-black);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--color-red);
  background: var(--color-dark-grey);
  box-shadow: 0 0 0 1px var(--color-red);
}

.card:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
}

.card-framework {
  font-size: 0.95rem;
  color: var(--color-red);
}

.card-description {
  font-size: 0.875rem;
  color: var(--color-light-grey);
  margin-top: 0.25rem;
  line-height: 1.5;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-light-grey);
  font-size: 0.8rem;
}

footer a {
  color: var(--color-red);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 479px) {
  .columns { grid-template-columns: 1fr; }
}

@media (min-width: 480px) {
  header { padding: 3.5rem 1.5rem 1.25rem; }
  nav { padding: 1.5rem; }
  .card { padding: 1.5rem; }
}

@media (min-width: 768px) {
  header { padding: 4rem 2rem 1.5rem; }
  nav { padding: 2rem; }
  .card-name { font-size: 1.125rem; }
  .card-description { font-size: 0.9rem; }
}
