@font-face {
  font-family: "Geist";
  font-display: swap;
  src: url("/assets/geist-variable.woff2") format("woff2");
}

:root {
  --ink: #17181a;
  --muted: #777a80;
  --paper: #f6f5f1;
  --card: #fff;
  --rule: #dcdcd7;
}

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

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 30px clamp(22px, 5vw, 72px) 34px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 74% 10%, rgba(31, 95, 191, .055), transparent 25rem),
    radial-gradient(circle at 17% 58%, rgba(181, 36, 47, .045), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.market-header,
main,
footer {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.market-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.back-link img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  object-fit: cover;
}

.section-label,
.eyebrow,
.market-card__status,
.market-card__number,
footer {
  text-transform: uppercase;
  letter-spacing: .1em;
}

.section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

main {
  flex: 1;
}

.market-intro {
  padding: clamp(64px, 9vw, 118px) 0 clamp(48px, 7vw, 82px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #b5242f;
  font-size: 12px;
  font-weight: 750;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(58px, 9vw, 112px);
  font-weight: 620;
  letter-spacing: -.065em;
  line-height: .84;
}

.lede {
  max-width: 590px;
  margin-bottom: 0;
  color: #50535a;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.35;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.market-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 38px);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 55px rgba(20, 20, 20, .045);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.market-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--card-rule);
  content: "";
}

.market-card--politics {
  --card-rule: linear-gradient(90deg, #b5242f 0 42%, #e8e9eb 42% 58%, #1f5fbf 58%);
}

.market-card--stocks {
  --card-rule: linear-gradient(90deg, #18191b 0 46%, #a7f3d0 46% 54%, #2f855a 54%);
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: #c4c5c1;
  box-shadow: 0 28px 68px rgba(20, 20, 20, .09);
}

.market-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  color: #307d59;
  font-size: 10px;
  font-weight: 750;
}

.market-card__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36a36c;
  box-shadow: 0 0 0 4px rgba(54, 163, 108, .11);
}

.market-card__status--planned {
  color: var(--muted);
}

.market-card__number {
  position: absolute;
  top: 29px;
  right: 32px;
  color: #a3a5aa;
  font-size: 11px;
}

.market-card__body {
  margin-top: auto;
}

.market-card h2 {
  margin-bottom: 15px;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 610;
  letter-spacing: -.045em;
  line-height: .98;
}

.market-card p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.market-card__action {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-size: 13px;
  font-weight: 700;
}

.market-card__action b {
  font-size: 18px;
  font-weight: 400;
}

footer {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  body {
    padding: 20px 18px 28px;
  }

  .market-header {
    padding-bottom: 18px;
  }

  .section-label {
    display: none;
  }

  .market-intro {
    padding: 62px 0 46px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

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

  .market-card {
    min-height: 315px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
