:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --band: #f2f4f6;
  --ink: #17191d;
  --muted: #5d6872;
  --line: #d9dde1;
  --accent: #2463eb;
  --focus: #b6482c;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a,
.skip-link {
  transition: color 180ms ease, background-color 180ms ease;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  min-height: calc(100svh - 72px);
  padding: clamp(64px, 9vh, 110px) max(5vw, 24px) 36px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
  max-width: 900px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}

h1 {
  margin: 14px 0 20px;
  font-size: 76px;
  line-height: 0.95;
}

.hero-description {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.next-section {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.next-section strong {
  color: var(--ink);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 7vw;
  padding: 96px max(5vw, 24px);
  background: var(--band);
}

.project-copy {
  align-self: center;
  max-width: 560px;
}

.project-logo {
  display: block;
  margin-top: 28px;
}

.project h2 {
  margin: 16px 0 18px;
  font-size: 48px;
}

.project-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 7px 10px;
  border: 1px solid #c7ced5;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.qr-block img {
  width: 112px;
  height: 112px;
  background: #fff;
}

.qr-block figcaption {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.qr-block strong {
  color: var(--ink);
}

.product-shot {
  align-self: end;
  justify-self: center;
  width: min(100%, 480px);
  margin: 0;
  overflow: hidden;
  border: 7px solid #20252b;
  border-bottom: 0;
  border-radius: 38px 38px 0 0;
  background: #fff;
  box-shadow: 0 24px 48px rgb(23 31 40 / 14%);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 64px max(5vw, 24px);
}

.contact h2 {
  margin: 0;
  font-size: 34px;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(5vw, 24px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 800px) {
  .site-header {
    min-height: 64px;
    padding-inline: 18px;
  }

  .brand {
    font-size: 17px;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: calc(100svh - 64px);
    padding: 64px 20px 24px;
  }

  h1 {
    max-width: 340px;
    margin-block: 14px 20px;
    font-size: 56px;
    line-height: 0.94;
  }

  .hero-description {
    font-size: 16px;
  }

  .next-section {
    margin-top: 72px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 72px 20px 0;
  }

  .project h2 {
    font-size: 40px;
  }

  .project-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .qr-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-block figcaption {
    font-size: 14px;
  }

  .product-shot {
    width: min(82vw, 390px);
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 48px 20px;
  }

  .contact h2 {
    font-size: 30px;
  }

  .contact a {
    font-size: 16px;
  }

  .site-footer {
    flex-direction: column;
    padding: 20px;
  }
}

@media (max-width: 380px) {
  nav {
    gap: 10px;
  }

  h1 {
    font-size: 48px;
  }

  .next-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .skip-link {
    transition: none;
  }
}
