:root {
  --bg: #f4f1ff;
  --card: #fff;
  --ink: #16141f;
  --muted: #5b5770;
  --lime: #c6ff3d;
  --pink: #ff3d86;
  --blue: #4d5bff;
  --max: 42rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% -10%, #ffe3f0, transparent 32%),
    radial-gradient(circle at -10% 20%, #dfe3ff, transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--pink);
}

.wrap {
  width: min(var(--max), calc(100% - 1.4rem));
  margin-inline: auto;
}

.draft-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  padding: 0.7rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-switch a {
  color: var(--muted);
  text-decoration: none;
}

.draft-switch a.is-on,
.draft-switch a:hover {
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.55rem 0 0.7rem;
  background: color-mix(in srgb, var(--bg) 82%, white);
  backdrop-filter: blur(14px);
}

.topbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--lime);
  color: #111;
  font-size: 0.75rem;
}

.nav-toggle {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.6rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.2rem;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--pink);
}

.site-main {
  flex: 1;
  padding-bottom: 2.5rem;
}

.stories {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 4.6rem;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0 1.1rem;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  text-decoration: none;
  color: inherit;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
}

.story i {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 0.3rem;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--lime), var(--pink), var(--blue), var(--lime));
  color: #111;
  font-style: normal;
  font-family: Syne, sans-serif;
  font-weight: 800;
  padding: 3px;
}

.story i::after {
  content: attr(data-abbr);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
}

.hero-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(40, 20, 80, 0.08);
}

.hero-card__media {
  min-height: 13rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 255, 61, 0.7), transparent 36%),
    linear-gradient(140deg, #4d5bff, #ff3d86);
}

.hero-card__body {
  padding: 1rem 1.05rem 1.15rem;
}

.sticker {
  display: inline-block;
  background: var(--lime);
  color: #111;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card h1,
.page h1,
.feed h2 {
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-card h1 {
  margin: 0.45rem 0 0.4rem;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
}

.hero-card p,
.feed p,
.lede {
  margin: 0;
  color: var(--muted);
}

.feed {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.feed h2 {
  margin: 0;
  font-size: 1.4rem;
}

.post {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.8rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(40, 20, 80, 0.06);
}

.post:hover {
  color: inherit;
  transform: translateY(-2px);
}

.post__media {
  min-height: 5.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(160deg, #4d5bff, #c6ff3d);
}

.post--2 .post__media {
  background: linear-gradient(160deg, #ff3d86, #4d5bff);
}

.post--3 .post__media {
  background: linear-gradient(160deg, #c6ff3d, #ff3d86);
}

.post h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.chip {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.pill--lime {
  background: var(--lime);
  color: #111;
}

.pill--ink {
  background: var(--ink);
  color: #fff;
}

.pill:hover {
  color: inherit;
  filter: brightness(1.05);
}

.page {
  padding: 0.4rem 0 0;
}

.page h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 8vw, 3rem);
}

.lede {
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  gap: 0.7rem;
}

.team-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  background: var(--card);
  border-radius: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.team-pill b {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: var(--lime);
  color: #111;
  font-family: Syne, sans-serif;
}

.team-pill p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-pill h3 {
  margin: 0;
}

.article {
  padding-top: 0.3rem;
}

.article h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.back {
  display: inline-block;
  margin-bottom: 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.panel {
  background: var(--card);
  border-radius: 1.2rem;
  padding: 1rem;
  margin-top: 0.8rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.blob {
  min-height: 7rem;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, #4d5bff, #ff3d86);
}

.blob:nth-child(2n) {
  background: linear-gradient(145deg, #c6ff3d, #4d5bff);
}

.blob:nth-child(3n) {
  background: linear-gradient(145deg, #ff3d86, #c6ff3d);
}

.site-footer {
  padding: 1.2rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 720px) {
  .wrap {
    width: min(56rem, calc(100% - 2.4rem));
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    gap: 1rem;
    padding-top: 0;
  }

  .topbar__row {
    align-items: center;
  }

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

  .feed h2 {
    grid-column: 1 / -1;
  }

  .team-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
