:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #777777;
  --line: #eeeeee;
  --red: #d7000f;
  font-family:
    Inter,
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.hero {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(38px, 6vw, 64px);
}

.kicker,
h2 {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
  font-weight: 820;
  letter-spacing: 0;
}

h1 span {
  color: var(--red);
}

.summary {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.domain-panel {
  width: 100%;
}

.panel-head {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.domain-list {
  display: grid;
}

.domain-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name price"
    "desc price";
  align-items: start;
  gap: 8px 24px;
  min-height: 88px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.domain-title {
  grid-area: name;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.domain-name {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.domain-name span {
  color: var(--red);
}

.domain-expiry {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.domain-desc {
  grid-area: desc;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.domain-purchase {
  grid-area: price;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.price-original {
  color: var(--muted);
  font-size: 13px;
}

.price-original del {
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.domain-price {
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
  white-space: nowrap;
}

.purchase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.purchase-link:hover,
.purchase-link:focus-visible {
  color: var(--bg);
  background: var(--red);
  outline: none;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 32px, 980px);
  }

  .domain-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "desc"
      "price";
    align-items: start;
    gap: 8px;
    min-height: 0;
    padding: 18px 0;
  }

  .domain-purchase {
    justify-self: start;
    justify-items: start;
    text-align: left;
  }

  .price-row {
    justify-content: flex-start;
  }
}
