@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --paper: #f4efdf;
  --paper-deep: #ebe3cd;
  --ink: #191b18;
  --muted: #71736b;
  --yellow: #f5c847;
  --blue: #aec7d6;
  --coral: #e47f69;
  --lilac: #c5b7dc;
  --line: rgba(25, 27, 24, 0.18);
  --display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --shell: min(1240px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  height: 96px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.04em; }
.brand-mark { width: 30px; height: 30px; fill: var(--ink); }
.brand-name { font-size: 1.02rem; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.site-nav a { position: relative; padding-block: 8px; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ''; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; border: 0; color: var(--ink); background: transparent; font-family: var(--mono); }

.hero { position: relative; display: grid; min-height: 690px; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; padding-block: 82px 60px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 28px; }
.hero-index, .section-index, .card-topline, .hero-footer, .footer-meta, .footer-copyright { font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.hero-index, .section-index { margin: 0 0 24px; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 710px; margin-bottom: 34px; font-size: clamp(4rem, 8vw, 7.3rem); font-weight: 900; letter-spacing: -.11em; line-height: .98; }
h1 em, h2 span { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--ink); }
.hero-intro { max-width: 440px; margin-bottom: 34px; color: #5c5e57; font-size: 1rem; line-height: 1.95; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 156px; padding: 15px 18px 15px 20px; border: 1px solid var(--ink); font-family: var(--mono); font-size: .7rem; letter-spacing: .03em; transition: transform .25s ease, box-shadow .25s ease; }
.button:hover { box-shadow: 5px 5px 0 var(--ink); transform: translate(-3px, -3px); }
.button-primary { background: var(--yellow); }
.button-dark { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { box-shadow: 5px 5px 0 var(--yellow); }
.hero-art { position: relative; min-height: 470px; }
.hero-mark { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(360px, 64%); fill: var(--yellow); transform: translate(-45%, -50%) rotate(-8deg); filter: drop-shadow(12px 13px 0 rgba(25, 27, 24, .9)); }
.hero-orbit { position: absolute; border: 1px solid var(--ink); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.hero-orbit-one { top: 50%; left: 51%; width: 70%; height: 55%; }
.hero-orbit-two { top: 50%; left: 51%; width: 82%; height: 73%; border-style: dashed; }
.hero-note { position: absolute; z-index: 3; font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; }
.hero-note-top { top: 5%; right: 4%; transform: rotate(8deg); }
.hero-note-bottom { bottom: 4%; left: 4%; color: var(--muted); transform: rotate(-5deg); }
.hero-stamp { position: absolute; right: 12%; bottom: 15%; display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 1.2rem; line-height: .75; transform: rotate(12deg); }
.hero-stamp span { font-size: .8rem; }
.hero-footer { position: absolute; right: 0; bottom: 8px; left: 0; display: flex; align-items: center; gap: 16px; color: var(--muted); }
.hero-footer-line { width: 60px; height: 1px; background: var(--line); }

.category-section { padding-block: 130px 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; }
.section-heading h2, .community-copy h2, .about-content h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 900; letter-spacing: -.1em; line-height: .98; }
.section-description { margin: 0 3% 7px 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { position: relative; display: flex; min-height: 420px; flex-direction: column; justify-content: space-between; padding: 18px; overflow: hidden; border: 1px solid var(--ink); transition: transform .3s ease, box-shadow .3s ease; }
.category-card:hover { box-shadow: 8px 8px 0 var(--ink); transform: translate(-4px, -4px); }
.card-yellow { background: var(--yellow); }
.card-blue { background: var(--blue); }
.card-coral { background: var(--coral); }
.card-lilac { background: var(--lilac); }
.card-topline { display: flex; justify-content: space-between; font-size: .61rem; }
.card-symbol { position: absolute; top: 32%; left: 50%; font-family: Georgia, serif; font-size: 7rem; line-height: 1; transform: translate(-50%, -50%); }
.card-symbol-d20 { display: grid; width: 102px; height: 102px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 1.7rem; transform: translateX(-50%) rotate(-18deg); }
.card-symbol-dice { transform: translate(-50%, -50%) rotate(-12deg); }
.card-symbol-quote { top: 34%; font-size: 11rem; }
.card-symbol-clock { width: 94px; height: 94px; border: 1px solid var(--ink); border-radius: 50%; transform: translateX(-50%) rotate(-12deg); }
.card-symbol-clock::before, .card-symbol-clock::after { position: absolute; bottom: 50%; left: 50%; width: 1px; height: 30px; content: ''; background: var(--ink); transform-origin: bottom; }
.card-symbol-clock::before { transform: rotate(32deg); }
.card-symbol-clock::after { height: 22px; transform: rotate(-55deg); }
.card-symbol-clock span { position: absolute; inset: -6px; border: 1px dashed var(--ink); border-radius: 50%; }
.card-content { position: relative; z-index: 1; }
.card-content h3 { margin-bottom: 10px; font-size: 2rem; font-weight: 900; letter-spacing: -.08em; }
.card-content p { margin: 0; font-size: .88rem; line-height: 1.8; }
.card-arrow { position: absolute; right: 18px; bottom: 18px; font-size: 1.5rem; line-height: 1; }

.community-section { padding-block: 45px 135px; }
.community-panel { display: grid; min-height: 460px; grid-template-columns: .95fr 1.05fr; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.community-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 7vw, 90px); }
.community-copy .section-index { color: #9e9f96; }
.community-copy h2 { margin-bottom: 25px; }
.community-copy h2 span { -webkit-text-stroke-color: var(--paper); }
.community-copy p:not(.section-index) { margin-bottom: 34px; color: #b9b9ac; line-height: 1.9; }
.community-graphic { position: relative; overflow: hidden; background: var(--yellow); }
.community-graphic::before, .community-graphic::after { position: absolute; width: 80vw; height: 80vw; border: 1px solid var(--ink); border-radius: 50%; content: ''; }
.community-graphic::before { top: -35%; left: -15%; }
.community-graphic::after { top: 10%; left: 20%; border-style: dashed; }
.graphic-path { position: absolute; top: 50%; left: 15%; width: 65%; height: 1px; background: var(--ink); transform: rotate(-24deg); }
.graphic-path::after { position: absolute; top: -4px; right: 0; width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; content: ''; background: var(--yellow); }
.graphic-label { position: absolute; right: 13%; bottom: 14%; font-family: var(--mono); font-size: 1.5rem; line-height: 1; transform: rotate(-10deg); }
.graphic-dot { position: absolute; z-index: 1; display: block; width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.dot-one { top: 28%; left: 22%; }.dot-two { top: 48%; right: 23%; }.dot-three { bottom: 22%; left: 37%; }

.about-section { display: grid; grid-template-columns: 1.2fr 1fr .6fr; gap: 30px; align-items: start; padding-block: 0 140px; }
.about-line { width: 100%; height: 1px; margin-top: 22px; background: var(--ink); }
.about-content .section-index { margin-bottom: 22px; }
.about-content h2 { margin-bottom: 24px; }
.about-content > p:last-child { max-width: 230px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.9; }
.about-mark { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 5px; font-family: var(--mono); font-size: .62rem; line-height: 1.25; text-align: center; }
.about-mark svg { width: 100px; fill: var(--coral); }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: end; padding-block: 28px 34px; border-top: 1px solid var(--line); }
.footer-brand { font-size: .9rem; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: .58rem; text-align: center; text-transform: none; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copyright { justify-self: end; color: var(--muted); font-size: .58rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.category-card:nth-child(2) { transition-delay: .08s; }.category-card:nth-child(3) { transition-delay: .16s; }.category-card:nth-child(4) { transition-delay: .24s; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 40px, 680px); }
  .site-header { height: 78px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
  .menu-toggle-label { font-size: .68rem; }
  .menu-icon { display: grid; gap: 4px; width: 20px; }.menu-icon i { display: block; width: 20px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded='true'] .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }.menu-toggle[aria-expanded='true'] .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 10; top: 78px; right: 20px; left: 20px; display: none; padding: 12px 20px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
  .site-nav.is-open { display: grid; }.site-nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }.site-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 720px; grid-template-columns: 1fr; padding-top: 72px; }.hero-art { min-height: 330px; }.hero-mark { width: 230px; }.hero-orbit-one { width: 55%; height: 62%; }.hero-orbit-two { width: 68%; height: 80%; }
  h1 { font-size: clamp(3.6rem, 13vw, 6rem); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }.category-card { min-height: 360px; }
  .community-panel { grid-template-columns: 1fr; }.community-graphic { min-height: 310px; }
  .about-section { grid-template-columns: 1fr 1fr; }.about-line { grid-column: 1 / -1; }.about-mark { grid-column: 2; grid-row: 2; }
  .site-footer { grid-template-columns: 1fr 1fr; }.footer-meta { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; text-align: left; }.footer-copyright { align-self: center; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  .hero { min-height: 680px; padding-block: 58px 30px; }.hero-intro { font-size: .92rem; }.hero-intro br { display: none; }.hero-art { min-height: 275px; }.hero-stamp { right: 11%; bottom: 7%; transform: scale(.78) rotate(12deg); }.hero-note-top { top: 0; right: 0; }
  .category-section { padding-block: 90px 75px; }.section-heading { display: block; }.section-description { margin-top: 24px; }.category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.category-card { min-height: 300px; padding: 13px; }.card-topline { font-size: .49rem; }.card-symbol { top: 32%; font-size: 5rem; }.card-symbol-d20, .card-symbol-clock { width: 70px; height: 70px; font-size: 1.1rem; }.card-symbol-clock::before { height: 22px; }.card-symbol-clock::after { height: 16px; }.card-content h3 { font-size: 1.5rem; }.card-content p { font-size: .72rem; line-height: 1.7; }.card-arrow { right: 13px; bottom: 13px; font-size: 1.1rem; }
  .community-section { padding-bottom: 90px; }.community-copy { padding: 42px 25px 48px; }.community-copy h2, .about-content h2 { font-size: 3.6rem; }.community-graphic { min-height: 240px; }.graphic-label { font-size: 1rem; }
  .about-section { grid-template-columns: 1fr; padding-bottom: 90px; }.about-mark { grid-column: auto; grid-row: auto; justify-self: start; flex-direction: row; }.about-mark svg { width: 70px; }
  .site-footer { display: flex; flex-wrap: wrap; }.footer-meta { order: 3; width: 100%; }.footer-copyright { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
