:root {
  color-scheme: light;
  --ink: #21243b;
  --muted: #6d6f7f;
  --paper: #fffaf1;
  --white: #ffffff;
  --line: #d9d8d1;
  --coral: #ff766c;
  --blue: #7ea8ff;
  --yellow: #ffd966;
  --green: #3e9b74;
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgb(33 36 59 / 7%) 1.5px, transparent 1.8px) 0 0 / 36px 36px,
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.site-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(62 155 116 / 14%);
}

.hero {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 84px clamp(0px, 5vw, 70px);
}

.eyebrow,
.section-heading p {
  margin: 0 0 16px;
  color: #5b61d6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 630px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.works {
  padding: 70px 0 100px;
  border-top: 2px solid var(--ink);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.work-card-coral { background: var(--coral); }
.work-card-blue { background: var(--blue); }
.work-card-yellow { background: var(--yellow); }

.card-number {
  margin-bottom: auto;
  font-size: 13px;
  font-weight: 900;
}

.work-card h3 {
  margin: 26px 0 10px;
  font-size: 28px;
}

.work-card p {
  margin: 0;
  line-height: 1.7;
}

.notice {
  margin-bottom: 80px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
}

.notice > span {
  font-size: 36px;
  color: #5b61d6;
}

.notice h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  min-height: 100px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-status {
    font-size: 12px;
  }

  .hero {
    min-height: 530px;
    padding: 70px 4px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
    letter-spacing: -0.06em;
  }

  .hero-copy {
    margin-top: 24px;
  }

  .works {
    padding: 56px 0 76px;
  }

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

  .work-card {
    min-height: 230px;
  }

  .notice {
    align-items: flex-start;
    padding: 26px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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