/* ==============================
   CSS Variables
   ============================== */
:root {
  --bg: #404040;
  --card-bg: #FEFADE;
  --accent: #BB3031;
  --radius: 10px;
  --padding: 20px 30px;
  --gap: 20px;
  --max-width: 630px;
}

/* ==============================
   Reset & Base
   ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  font-family: "Fixel Variable", sans-serif;
  margin: 0;
  min-height: 100dvh;
}

/* ==============================
   Layout
   ============================== */
#wrap {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 16px;
}

/* ==============================
   Top / Hero
   ============================== */
.top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.top_title {
  background-color: var(--card-bg);
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
}

.top_title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.top_title p {
  margin: 0;
  font-weight: 300;
  line-height: 1.5;
}

.top_links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.top_title a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.top_title a:hover {
  opacity: 0.75;
}

/* ==============================
   Cards
   ============================== */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--padding);
  margin-bottom: var(--gap);
}

.card h2,
.card_title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

.card p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.card_link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  word-break: break-word;
  transition: opacity 0.2s ease;
}

.card_link:hover {
  opacity: 0.75;
}

/* ==============================
   Mobile — max-width: 600px
   ============================== */
@media (max-width: 600px) {
  #wrap {
    margin: 20px auto;
    padding: 0 12px;
  }

  .top {
    grid-template-columns: 1fr;
  }

  .top img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
  }

  .top_title {
    padding: 16px 20px;
  }

  .top_title h1 {
    font-size: 20px;
  }

  .card {
    padding: 16px 20px;
  }

  .card h2,
  .card_title {
    font-size: 18px;
  }
}