:root {
  color: #171717;
  background: #ececea;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --seo-red: #ed2d24;
  --seo-ink: #171717;
  --seo-muted: #6f6e69;
  --seo-background: #ececea;
  --seo-surface: #fbfbf9;
  --seo-line: rgba(23, 23, 23, 0.12);
  --seo-line-strong: rgba(23, 23, 23, 0.2);
  --seo-shadow: rgba(25, 24, 19, 0.1);
}

:root[data-theme="dark"] {
  color: #f1efe9;
  background: #151514;
  color-scheme: dark;
  --seo-red: #f34a40;
  --seo-ink: #f1efe9;
  --seo-muted: #aaa79f;
  --seo-background: #151514;
  --seo-surface: #232321;
  --seo-line: rgba(243, 241, 234, 0.13);
  --seo-line-strong: rgba(243, 241, 234, 0.22);
  --seo-shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(237, 45, 36, 0.2);
  color: var(--seo-ink);
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.72), transparent 32rem),
    var(--seo-background);
  color: var(--seo-ink);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% 12%, rgba(82, 78, 70, 0.24), transparent 32rem),
    var(--seo-background);
}

a {
  color: inherit;
  text-decoration-color: rgba(237, 45, 36, 0.38);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid rgba(237, 45, 36, 0.28);
  outline-offset: 3px;
}

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

.seo-site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--seo-line);
}

.seo-wordmark {
  color: var(--seo-ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.seo-wordmark span {
  color: var(--seo-red);
}

.seo-site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seo-site-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--seo-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.seo-site-header nav a[aria-current="page"] {
  background: var(--seo-surface);
  box-shadow: 0 8px 24px var(--seo-shadow);
  color: var(--seo-ink);
}

.seo-main {
  padding-block: 70px 90px;
}

.seo-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 52px;
}

.seo-hero h1,
.seo-product-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.seo-hero p,
.seo-product-description {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--seo-muted);
  font-size: 18px;
  line-height: 1.55;
}

.seo-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.seo-button.is-primary {
  background: var(--seo-ink);
  box-shadow: 0 12px 28px var(--seo-shadow);
  color: var(--seo-background);
}

.seo-list-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 4px;
  border-top: 1px solid var(--seo-line-strong);
  border-bottom: 1px solid var(--seo-line);
  color: var(--seo-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-rank-row {
  display: grid;
  grid-template-columns: 56px 52px minmax(0, 1fr) 118px 104px;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--seo-line);
}

.seo-rank {
  color: var(--seo-red);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.seo-product-logo {
  width: 52px;
  height: 52px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--seo-line);
  border-radius: 14px;
  background: var(--seo-surface);
  font-size: 20px;
  font-weight: 900;
}

.seo-product-logo.is-large {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  font-size: 46px;
}

.seo-product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-rank-copy {
  min-width: 0;
}

.seo-rank-copy h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.seo-rank-copy h2 a {
  text-decoration: none;
}

.seo-rank-copy p {
  max-width: 68ch;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--seo-muted);
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-rank-bid {
  margin: 0;
  text-align: right;
}

.seo-rank-bid dt,
.seo-product-context dt {
  color: var(--seo-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-rank-bid dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.seo-row-action,
.seo-back-link {
  font-size: 13px;
  font-weight: 750;
}

.seo-disclosure {
  max-width: 76ch;
  margin: 30px 0 0;
  color: var(--seo-muted);
  font-size: 13px;
  line-height: 1.55;
}

.seo-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 48px;
  color: var(--seo-muted);
  font-size: 13px;
}

.seo-breadcrumbs a {
  font-weight: 750;
}

.seo-product-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--seo-line-strong);
}

.seo-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.seo-product-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--seo-line);
  border-radius: 999px;
  background: var(--seo-surface);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.seo-product-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  gap: 64px;
  padding-block: 52px;
  border-bottom: 1px solid var(--seo-line);
}

.seo-product-context h2,
.seo-empty-state h1,
.seo-empty-state h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.seo-product-context p,
.seo-empty-state p {
  max-width: 64ch;
  margin: 12px 0 0;
  color: var(--seo-muted);
  font-size: 15px;
  line-height: 1.6;
}

.seo-product-context dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.seo-product-context dl div {
  min-width: 0;
}

.seo-product-context dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.seo-back-link {
  display: inline-block;
  margin-top: 30px;
}

.seo-empty-state {
  padding: 70px 0;
  border-bottom: 1px solid var(--seo-line);
}

.seo-empty-state .seo-button {
  margin-top: 24px;
}

.seo-empty-state.is-not-found {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.seo-site-footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--seo-line);
  color: var(--seo-muted);
  font-size: 12px;
}

.seo-site-footer span:first-child {
  color: var(--seo-ink);
  font-weight: 850;
}

@media (max-width: 720px) {
  .seo-site-header,
  .seo-main,
  .seo-site-footer {
    width: min(100% - 24px, 1120px);
  }

  .seo-site-header {
    min-height: 64px;
  }

  .seo-site-header nav a {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .seo-main {
    padding-block: 48px 68px;
  }

  .seo-hero {
    display: block;
    padding-bottom: 38px;
  }

  .seo-hero h1,
  .seo-product-copy h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .seo-hero p,
  .seo-product-description {
    font-size: 16px;
  }

  .seo-hero .seo-button {
    margin-top: 26px;
  }

  .seo-list-header {
    align-items: flex-end;
    font-size: 10px;
  }

  .seo-list-header span:last-child {
    max-width: 18ch;
    text-align: right;
  }

  .seo-rank-row {
    grid-template-columns: 34px 46px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 102px;
  }

  .seo-product-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .seo-rank-copy h2 {
    font-size: 17px;
  }

  .seo-rank-copy p {
    font-size: 13px;
  }

  .seo-rank-bid {
    grid-column: 4;
    grid-row: 1;
  }

  .seo-row-action {
    grid-column: 3 / 5;
    font-size: 12px;
  }

  .seo-product-hero {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 42px;
  }

  .seo-product-logo.is-large {
    width: 78px;
    height: 78px;
    border-radius: 19px;
    font-size: 30px;
  }

  .seo-product-badges {
    margin-block: 22px;
  }

  .seo-product-context {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 40px;
  }

  .seo-product-context dl {
    gap: 12px;
  }

  .seo-product-context dd {
    font-size: 14px;
  }

  .seo-site-footer {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .seo-rank-row {
    grid-template-columns: 30px 42px minmax(0, 1fr);
  }

  .seo-rank-bid {
    display: none;
  }

  .seo-row-action {
    grid-column: 3;
  }

  .seo-product-hero {
    display: block;
  }

  .seo-product-logo.is-large {
    margin-bottom: 24px;
  }

  .seo-product-context dl {
    grid-template-columns: 1fr;
  }
}
