:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: rgba(17, 17, 18, 0.92);
  --panel-strong: rgba(30, 11, 12, 0.95);
  --text: #f8f5f2;
  --muted: #c9c0bc;
  --line: rgba(255, 255, 255, 0.16);
  --red: #c51222;
  --red-bright: #f03b49;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.82)),
    url("dark-pattern.jpg") center / cover fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(197, 18, 34, 0.28), transparent 24rem),
    radial-gradient(circle at 84% 70%, rgba(255, 255, 255, 0.08), transparent 20rem);
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(4, 4, 5, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: min(161px, 48vw);
  height: auto;
}

nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--text);
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.intro {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.intro img {
  width: min(300px, 70vw);
  margin-bottom: 1.2rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  text-align: center;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.intro p {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(1.1rem, 3vw, 1.65rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card.featured {
  background:
    linear-gradient(180deg, rgba(197, 18, 34, 0.18), transparent 42%),
    var(--panel-strong);
  border-color: rgba(240, 59, 73, 0.38);
}

.profile-card h2 {
  min-height: 3.1rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
}

.profile-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.6rem 0 2rem;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.profile-card li {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--red-bright);
}

.button.muted {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: default;
}

.site-footer {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 2.5rem;
  background: rgba(4, 4, 5, 0.9);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: min(260px, 70vw);
}

@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    justify-content: center;
  }

  .intro {
    text-align: center;
  }

  .intro img {
    margin-inline: auto;
  }

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

  .profile-card {
    min-height: auto;
  }
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

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