:root {
  --orange: #ff5b16;
  --orange-dark: #d93408;
  --blue: #1387ff;
  --green: #17b979;
  --dark: #1f2024;
  --muted: #6b625f;
  --soft: #fff7f1;
  --line: #e8ddd5;
  --card: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at 4% 14%, rgb(255 91 22 / 0.18), transparent 27rem),
    radial-gradient(circle at 92% 54%, rgb(19 135 255 / 0.16), transparent 26rem),
    linear-gradient(180deg, #fff7f0 0%, #fffaf6 42%, #fffdfb 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(255 91 22 / 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgb(19 135 255 / 0.035) 0 1px, transparent 1px 100%);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.topbar {
  height: 4.4rem;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgb(232 221 213 / 0.75);
  background: rgb(255 250 246 / 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  color: var(--orange);
  font-size: 1.18rem;
  font-weight: 950;
}

.brand strong::after {
  content: '✦';
  margin-left: 0.35rem;
}

.brand span {
  color: #9a8b84;
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.topbar__actions span {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  background: rgb(255 91 22 / 0.1);
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.home-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4.8rem) 1.4rem 5rem;
}

.hero {
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

h1 {
  max-width: 720px;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 950;
}

h1 strong {
  color: var(--orange);
}

.hero p {
  max-width: 600px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  font-weight: 560;
}

.metrics {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.metrics div {
  min-width: 4.6rem;
}

.metrics div + div {
  padding-left: 1.7rem;
  border-left: 1px solid var(--line);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.metrics div:nth-child(2) strong {
  color: var(--blue);
}

.metrics span {
  margin-top: 0.35rem;
  color: #9a8b84;
  font-size: 0.78rem;
  font-weight: 800;
}

.toolbar {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.search {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1rem;
  border: 1px solid #d7ccc4;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 10px 28px rgb(31 32 36 / 0.05);
}

.search span {
  color: var(--dark);
  font-size: 1.25rem;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-size: 0.96rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.filters button {
  min-height: 3rem;
  border: 1px solid #d7ccc4;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: rgb(255 255 255 / 0.82);
  color: var(--dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(31 32 36 / 0.05);
}

.filters button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ff742c, var(--orange));
  color: #ffffff;
  box-shadow: 0 14px 30px rgb(255 91 22 / 0.22);
}

.presentation-list {
  margin-top: 1.45rem;
  display: grid;
  gap: 1.4rem;
}

.presentation-card {
  min-height: 17.8rem;
  display: grid;
  grid-template-columns: minmax(16rem, 0.52fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8ccc4;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.9);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 24px 70px rgb(31 32 36 / 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.presentation-card:hover,
.presentation-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--orange) 34%, #d8ccc4);
  box-shadow: 0 30px 78px rgb(31 32 36 / 0.14);
  outline: 0;
}

.presentation-card__visual {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #ffffff;
}

.presentation-card--red .presentation-card__visual {
  background: linear-gradient(145deg, #ff6b1d, #ef3b2d);
}

.presentation-card--blue .presentation-card__visual {
  background: linear-gradient(145deg, #1387ff, #0f5ac6);
}

.presentation-card__visual::before,
.presentation-card__visual::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  z-index: -1;
}

.presentation-card__visual::before {
  width: 56%;
  aspect-ratio: 1;
  right: -14%;
  top: -8%;
}

.presentation-card__visual::after {
  width: 44%;
  aspect-ratio: 1;
  left: -16%;
  bottom: -18%;
}

.presentation-card__visual small {
  position: absolute;
  left: 1.2rem;
  top: 1.15rem;
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  background: rgb(255 255 255 / 0.22);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-card__visual b {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.presentation-card__content {
  padding: clamp(1.55rem, 3vw, 2.4rem);
}

.presentation-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-card__meta::before {
  content: '';
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.presentation-card h2 {
  max-width: 16ch;
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  line-height: 1.02;
  font-weight: 950;
}

.presentation-card p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.5;
  font-weight: 560;
}

.tag-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row span {
  min-height: 1.65rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  background: #f0e9e4;
  color: #6c625d;
  font-size: 0.74rem;
  font-weight: 850;
}

.presentation-card strong {
  width: fit-content;
  min-height: 3rem;
  margin-top: 1.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  background: linear-gradient(135deg, #ff742c, var(--orange));
  color: #ffffff;
  box-shadow: 0 16px 34px rgb(255 91 22 / 0.24);
  font-size: 0.92rem;
  font-weight: 950;
}

.empty-state {
  min-height: 8rem;
  display: grid;
  place-items: center;
  border: 1px dashed #d8ccc4;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.7);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 4.2rem;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-block: 0.8rem;
  }

  .brand span {
    display: none;
  }

  .home-shell {
    padding-inline: 1rem;
  }

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

  .filters {
    justify-content: flex-start;
  }

  .presentation-card {
    grid-template-columns: 1fr;
  }

  .presentation-card__visual {
    min-height: 11rem;
  }
}
