:root {
  color-scheme: light;
  --paper: #f7efdf;
  --paper-strong: #fffaf0;
  --ink: #432b2f;
  --muted: #806b68;
  --wine: #7d3141;
  --wine-dark: #5f2230;
  --sage: #b9d9c0;
  --mint: #dff2e1;
  --peach: #f1c8b5;
  --gold: #d9a64a;
  --line: rgba(84, 48, 52, 0.14);
  --shadow: 0 24px 70px rgba(80, 52, 42, 0.12);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Hiragino Sans", "PingFang TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(241, 200, 181, 0.38), transparent 29rem),
    radial-gradient(circle at 88% 12%, rgba(185, 217, 192, 0.48), transparent 27rem),
    var(--paper);
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.cat-mark {
  position: relative;
  width: 42px;
  height: 38px;
  border-radius: 16px 16px 18px 18px;
  background: var(--wine);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.cat-mark::before,
.cat-mark::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 17px;
  height: 19px;
  border-radius: 5px 12px 3px 3px;
  background: var(--wine);
  z-index: -1;
}

.cat-mark::before { left: 2px; transform: rotate(-18deg); }
.cat-mark::after { right: 2px; transform: rotate(18deg); }

.cat-mark span::before,
.cat-mark span::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff4dc;
}

.cat-mark span::before { left: 10px; }
.cat-mark span::after { right: 10px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 700; }
.nav a:hover { color: var(--wine); }

.language-picker {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 62px;
  align-items: center;
  min-height: 610px;
  padding: 58px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 850;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", "YuMincho", serif; }
h1 { margin: 18px 0; font-size: clamp(3.25rem, 7vw, 6.6rem); line-height: 0.94; letter-spacing: -0.055em; }
h2 { margin: 0 0 18px; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: 1.45rem; margin: 0 0 8px; }

.lead { max-width: 650px; color: var(--muted); font-size: 1.15rem; line-height: 1.72; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 820;
  background: var(--wine);
  color: white;
  box-shadow: 0 12px 26px rgba(125, 49, 65, 0.22);
}
.button.secondary { color: var(--wine); background: rgba(255, 250, 240, 0.76); border: 1px solid var(--line); box-shadow: none; }

.board-art {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 0.9;
  margin-inline: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 44px;
  background: rgba(255, 250, 240, 0.76);
  box-shadow: var(--shadow);
  transform: rotate(2.4deg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 4px solid var(--wine-dark);
  border-radius: 18px;
  background: white;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 48, 52, .18);
  font-size: clamp(1rem, 3vw, 1.65rem);
}
.cell:nth-child(6n+1), .cell:nth-child(6n+2) { background: #f7ccd0; }
.cell:nth-child(6n+3), .cell:nth-child(6n+4) { background: #dce8ff; }
.cell:nth-child(6n+5), .cell:nth-child(6n+6) { background: #d8efdc; }
.cell:nth-child(n+19):nth-child(-n+30) { background: #f9e4ad; }
.cell.paw::after { content: "•"; color: rgba(125,49,65,.5); font-size: 2rem; }
.cell.cat::after { content: "●"; color: var(--wine); font-size: 1.8rem; filter: drop-shadow(0 4px 0 rgba(255,255,255,.7)); }

.art-note {
  margin-top: 23px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 750;
}

.section { padding: 92px 0; }
.section-intro { max-width: 720px; margin-bottom: 38px; }
.section-intro p, .card p, .legal-copy p, .legal-copy li { color: var(--muted); line-height: 1.72; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  min-height: 245px;
  padding: 27px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 14px 38px rgba(80,52,42,.07);
}
.card .number { color: var(--gold); font-weight: 900; letter-spacing: .12em; font-size: .8rem; }
.card.featured { background: var(--wine); color: #fff8e9; }
.card.featured p { color: rgba(255,248,233,.76); }

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.proof { padding: 31px; background: var(--paper-strong); }
.proof strong { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--wine); }
.proof span { color: var(--muted); }

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  margin: 70px 0 100px;
  padding: 40px;
  border-radius: 34px;
  background: var(--mint);
  border: 1px solid rgba(255,255,255,.8);
}
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.site-footer { padding: 36px 0 52px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.footer-row nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-row a { text-decoration: none; }

.legal-hero { padding: 64px 0 42px; max-width: 800px; }
.legal-hero h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
.legal-copy {
  max-width: 830px;
  margin-bottom: 100px;
  padding: 40px clamp(22px, 5vw, 58px);
  border-radius: 32px;
  background: rgba(255,250,240,.76);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.legal-copy h2 { margin-top: 42px; font-size: 1.8rem; }
.legal-copy h2:first-child { margin-top: 0; }
.notice { padding: 16px 18px; border-left: 4px solid var(--gold); background: #fff4d6; border-radius: 8px 14px 14px 8px; }

[data-copy] { display: none; }
html[data-lang="en"] [data-copy="en"],
html[data-lang="ja"] [data-copy="ja"],
html[data-lang="zh-Hant"] [data-copy="zh-Hant"] { display: block; }

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; padding: 16px 0; }
  .nav { width: 100%; order: 3; overflow-x: auto; padding-bottom: 4px; }
  .language-picker { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 38px; }
  .board-art { max-width: 430px; }
  .cards, .proof-band { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .button { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(80,52,42,.11); }
  .button:hover { transform: translateY(-2px); }
}
