:root {
  --background: #0b111a;
  --background-alt: #101723;
  --card: #141d2b;
  --border: #1f2a3b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --shadow: 0 16px 40px rgba(5, 8, 15, 0.35);
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--background), var(--background-alt));
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px;
}

.site-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

#profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 8px 20px rgba(3, 6, 12, 0.45);
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #0b0f16;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.main-content {
  padding-block: 40px 56px;
}

.cards {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative;
  padding: 26px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(5, 8, 15, 0.45);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.highlight {
  padding-top: 30px;
}

.highlight::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 26px;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.highlight h2 {
  color: var(--accent);
}

#second {
  position: relative;
  padding-top: 35px;
}

#second::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 26px;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.link {
  color: var(--accent);
  text-decoration: underline;
}

.link:hover {
  text-decoration: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1rem;
  background: rgba(21, 29, 43, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  background: rgba(33, 43, 59, 0.9);
  border-color: var(--accent);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.news-list li {
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(20, 29, 43, 0.85), rgba(25, 34, 47, 0.85));
  border: 1px solid rgba(31, 42, 59, 0.85);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-list li:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.news-list a {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
}

.news-list a:hover {
  color: var(--accent);
}

.news-list time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Breakpoints */

@media (min-width: 800px) {
  .cards > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 800px) {
  .cards > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 520px);
  }
}
