:root {
  color: #19221e;
  background: #f5f0e5;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #19221e;
  --paper: #fffdf7;
  --line: rgba(25, 34, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(244, 190, 76, 0.18), transparent 25rem),
    radial-gradient(circle at 88% 90%, rgba(80, 112, 85, 0.13), transparent 28rem),
    #f5f0e5;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 42px;
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: #e7b23c;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 5px 0 0 #6f8e69;
}

.header-note {
  color: #777f7a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

main {
  padding: 70px 0 72px;
}

.intro {
  margin-bottom: 54px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #b2742f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.intro h1 {
  margin: 0;
  font-size: clamp(45px, 5.7vw, 82px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(200px, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(47, 40, 26, 0.08);
  isolation: isolate;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(47, 40, 26, 0.14);
}

.project-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.personality-card {
  background: #f2d273;
}

.square-card {
  background: #d8d3ff;
}

.card-copy {
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 0 30px 32px;
}

.card-number,
.card-kind {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.card-number {
  width: fit-content;
  padding: 7px 10px;
  color: rgba(25, 34, 30, 0.67);
  background: rgba(255, 253, 247, 0.5);
  border: 1px solid rgba(25, 34, 30, 0.12);
  border-radius: 999px;
}

.card-kind {
  margin: 0 0 12px;
  color: rgba(25, 34, 30, 0.6);
}

.card-copy h2 {
  margin: 0;
  font-size: clamp(34px, 3.1vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.personality-card .card-copy h2 {
  font-size: clamp(32px, 2.8vw, 42px);
}

.card-description {
  max-width: 290px;
  margin: 20px 0 0;
  color: rgba(25, 34, 30, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.card-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

.card-link span {
  font-size: 17px;
  transition: transform 180ms ease;
}

.project-card:hover .card-link span {
  transform: translate(3px, -3px);
}

.card-art {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}

.art-number {
  z-index: 2;
  color: var(--ink);
  font-size: clamp(105px, 11vw, 162px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.09em;
  opacity: 0.9;
  transition: transform 240ms ease;
}

.personality-art .art-number {
  z-index: 2;
  color: #516039;
  text-shadow: 0 20px 35px rgba(52, 65, 31, 0.18);
  transform: rotate(4deg);
}

.project-card:hover .personality-art .art-number {
  transform: rotate(1deg) scale(1.04);
}

.sun-disc {
  position: absolute;
  width: 310px;
  height: 310px;
  background: rgba(255, 250, 216, 0.58);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  width: 325px;
  height: 185px;
  border: 1px solid rgba(25, 34, 30, 0.25);
  border-radius: 50%;
}

.orbit-one {
  transform: rotate(25deg);
}

.orbit-two {
  transform: rotate(72deg);
}

.square-art .art-number {
  color: #322561;
  text-shadow: 0 20px 35px rgba(52, 37, 92, 0.18);
  transform: rotate(-4deg);
}

.project-card:hover .square-art .art-number {
  transform: rotate(0) scale(1.035);
}

.ink-spot {
  position: absolute;
  border-radius: 48% 52% 58% 42% / 44% 55% 45% 56%;
  opacity: 0.72;
}

.ink-one {
  width: 280px;
  height: 280px;
  background: #8c6cff;
  transform: rotate(18deg);
}

.ink-two {
  top: 48px;
  right: -45px;
  width: 155px;
  height: 155px;
  background: #26c4df;
  transform: rotate(-22deg);
}

.ink-three {
  right: 20px;
  bottom: 22px;
  width: 105px;
  height: 105px;
  background: #cbe529;
  transform: rotate(32deg);
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #747c77;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.16em;
}

@media (max-width: 1080px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 430px;
    grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1.2fr);
  }

  .card-copy h2 {
    font-size: 48px;
  }

  .personality-card .card-copy h2 {
    font-size: 42px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0 16px;
  }

  .site-header {
    height: 68px;
  }

  .header-note {
    display: none;
  }

  main {
    padding: 44px 0 50px;
  }

  .intro {
    margin-bottom: 34px;
  }

  .eyebrow {
    margin: 0 0 -6px;
  }

  .intro h1 {
    font-size: clamp(41px, 12vw, 54px);
  }

  .project-grid {
    gap: 16px;
  }

  .project-card {
    min-height: 570px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 270px;
    border-radius: 23px;
  }

  .card-copy {
    padding: 23px 23px 0;
  }

  .card-copy h2 {
    font-size: 38px;
  }

  .personality-card .card-copy h2 {
    font-size: 36px;
  }

  .card-description {
    margin-top: 14px;
  }

  .card-link {
    position: absolute;
    right: 23px;
    bottom: 24px;
    z-index: 4;
  }

  .art-number {
    font-size: 124px;
  }

  .sun-disc {
    width: 240px;
    height: 240px;
  }

  .orbit {
    width: 270px;
    height: 150px;
  }

  .ink-one {
    width: 230px;
    height: 230px;
  }

  footer {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

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