/********************************************
General
********************************************/
:root {
  --ink: #17202a;
  --muted: #6b7280;
  --paper: #fffaf2;
  --panel: rgba(255, 255, 255, 0.86);
  --coral: #e66f6f;
  --teal: #2f8f9d;
  --navy: #1f2a44;
  --gold: #f0b95a;
  --shadow: 0 22px 55px rgba(31, 42, 68, 0.14);
}

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

body {
  min-height: 100vh;
  color: var(--ink) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(230, 111, 111, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(47, 143, 157, 0.24), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #f7fbff 48%, #fffaf2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 42, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 68, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

a {
  color: var(--teal) !important;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.red {
  border: 1px solid red;
}

.green {
  border: 1px solid green;
}

/********************************************
Big title
********************************************/
.title {
  position: relative;
  padding: 28px 20px 34px;
  color: var(--ink);
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.subtitle::before,
.subtitle::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.title h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.92;
  text-wrap: balance;
}

.title h1::after {
  content: "";
  display: block;
  width: min(220px, 42vw);
  height: 10px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

/********************************************
Themes
********************************************/
.box {
  padding: 18px 0;
  animation: rise-in 0.7s ease both;
}

.box:nth-of-type(2) {
  animation-delay: 0.05s;
}

.box:nth-of-type(3) {
  animation-delay: 0.1s;
}

.box:nth-of-type(4) {
  animation-delay: 0.15s;
}

.box:nth-of-type(5) {
  animation-delay: 0.2s;
}

.box:nth-of-type(6) {
  animation-delay: 0.25s;
}

.theme,
.list {
  min-height: 150px;
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid rgba(47, 143, 157, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 242, 0.74)),
    linear-gradient(135deg, rgba(230, 111, 111, 0.18), rgba(47, 143, 157, 0.18));
  box-shadow: 0 16px 34px rgba(31, 42, 68, 0.1);
}

.theme::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(47, 143, 157, 0.3);
  border-radius: 18px;
}

.theme::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: -20px 24px 0 rgba(230, 111, 111, 0.58);
}

.theme h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1.05;
  text-wrap: balance;
}

.box:hover .theme,
.box:hover .list {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/********************************************
Articles list
********************************************/
.list {
  color: #ffffff;
  position: relative;
  padding: 1.35rem 1.45rem;
  background:
    linear-gradient(145deg, rgba(31, 42, 68, 0.98), rgba(37, 63, 94, 0.96)),
    var(--navy);
  box-shadow: 0 16px 34px rgba(31, 42, 68, 0.16);
}

.list::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(240, 185, 90, 0.62));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.list ul {
  display: grid;
  gap: 0.95rem;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.55rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 0 0 5px rgba(240, 185, 90, 0.13);
}

.bold {
  display: inline-block;
  margin-bottom: 0.12rem;
  color: #ffffff;
  font-weight: 800;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    width: min(100% - 20px, 640px);
    padding: 28px 0 44px;
  }

  .title {
    padding-inline: 0;
  }

  .box {
    padding: 12px 0;
  }

  .theme,
  .list {
    min-height: auto;
    border-radius: 18px;
  }

  .theme {
    padding: 1.45rem 1rem;
  }

  .list {
    padding: 1.2rem;
  }
}
