:root {
  --ink: #191814;
  --paper: #f7f2e5;
  --surface: #fbf9f2;
  --line: #b9af9b;
  --city: #ff5a36;
  --work: #ef4b43;
  --wealth: #ffd83d;
  --muted: #71695f;
  --shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }

html {
  background: #e8e1d4;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(#1918140a 1px, transparent 1px),
    linear-gradient(90deg, #1918140a 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; }

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

.site-shell {
  min-height: calc(100vh - 112px);
  border: 3px solid var(--ink);
  border-top: 0;
  padding: 26px 36px 40px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.site-logo,
h1,
h2,
.product-name,
.footer-brand strong,
.hero-title,
.legal-page h1 {
  font-family: Georgia, "Songti SC", STSong, serif;
}

.site-logo {
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
}

.site-edition {
  border: 1px solid var(--ink);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.eyebrow {
  margin: 56px 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.04em;
}

.hero-copy {
  max-width: 540px;
  margin: 18px 0 20px;
  color: #645d53;
  font-size: 15px;
  line-height: 1.7;
}

.purchase-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  background: var(--wealth);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 17px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.purchase-link:hover,
.purchase-link:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.test-lab { margin-top: 42px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.product-card {
  position: relative;
  display: block;
  min-height: 274px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  padding: 15px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #c7bdac;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.product-icon {
  display: grid;
  min-width: 50px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 8px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.city-card .product-icon { background: var(--city); color: var(--ink); }
.work-card .product-icon { background: var(--work); color: var(--ink); }
.wealth-card .product-icon { background: var(--wealth); color: var(--ink); }

.product-name {
  display: block;
  margin-top: 32px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.product-description {
  display: block;
  margin-top: 9px;
  color: #625b51;
  font-size: 13px;
  line-height: 1.55;
}

.product-arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 16px 0 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.footer-brand,
.site-footer nav {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 14px;
}

.site-footer nav { gap: 12px; }

.site-footer nav a {
  text-decoration: none;
  border-bottom: 1px solid #a9a092;
}

.legal-page {
  width: min(760px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 0;
}

.legal-page h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 8vw, 64px);
}

.legal-page p {
  color: #625b51;
  line-height: 1.9;
}

.back-link {
  display: inline-block;
  margin-bottom: 42px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
    padding: 19px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 16px;
  }
  .site-logo { font-size: 25px; }
  .eyebrow { margin-top: 42px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 195px; }
  .product-name { margin-top: 24px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .site-footer {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
    gap: 9px;
  }

  .footer-brand { display: block; }
  .footer-brand > * { display: block; }
  .footer-brand > span:nth-child(even) { display: none; }
}
