@font-face {
  font-family: "COC Noto Sans SC";
  src: url("assets/fonts/noto-sans-sc-home.woff?v=20261006-home3") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "COC Noto Serif SC";
  src: url("assets/fonts/noto-serif-sc-home.woff?v=20261006-home3") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "COC Noto Serif SC";
  src: url("assets/fonts/noto-serif-sc-home-wang.woff?v=20261007-character-cards2") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+5F80;
}

:root {
  color-scheme: dark;
  --bg: #090a0b;
  --surface: #101214;
  --surface-raised: #151719;
  --ink: #eee7da;
  --muted: #9a958b;
  --faint: #68645d;
  --line: #2a2c2d;
  --line-strong: #3a3b3a;
  --ember: #b92f35;
  --ember-bright: #e15758;
  --brass: #bca16d;
  --serif: "COC Noto Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "COC Noto Sans SC", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); }
body[data-adventure="home"] :is(.community-dialog,.community-dialog *,.community-announcement-dialog,.community-announcement-dialog *) { font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif !important; }
body::before { position: fixed; z-index: -1; inset: 0; background: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size: 46px 46px; content: ""; mask-image: linear-gradient(to bottom,black,transparent 75%); }
a { color: inherit; }

.home-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 13px clamp(22px,5vw,80px); border-bottom: 1px solid rgba(188,161,109,.2); background: rgba(9,10,11,.88); backdrop-filter: blur(18px); }
.home-header-actions { display: flex; align-items: center; gap: 15px; }
.site-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.site-brand > span:last-child { display: grid; gap: 2px; }
.site-brand small { color: var(--faint); font-size: .64rem; letter-spacing: .19em; }
.site-brand strong { font: 600 1.08rem/1.1 var(--serif); letter-spacing: .14em; }
.site-mark { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--ember); color: var(--ember-bright); font: 700 1.28rem/1 Georgia,serif; transform: rotate(45deg); }
.site-mark::first-letter { transform: rotate(-45deg); }
.home-nav { display: flex; align-items: center; gap: clamp(18px,3vw,42px); }
.home-nav a { color: var(--muted); font-size: .84rem; letter-spacing: .06em; text-decoration: none; transition: color 160ms ease; }
.home-nav a:hover,.home-nav a:focus-visible { color: var(--ink); }

main { overflow: hidden; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.7fr); gap: clamp(54px,8vw,128px); align-items: end; width: min(1440px,100%); min-height: min(650px,calc(88vh - 78px)); margin: auto; padding: clamp(56px,7vh,88px) clamp(24px,7vw,104px) clamp(58px,7vh,86px); }
.hero::after { position: absolute; z-index: -1; top: 12%; right: -12%; width: 48%; aspect-ratio: 1; border: 1px solid rgba(185,47,53,.22); content: ""; transform: rotate(45deg); box-shadow: 0 0 120px rgba(185,47,53,.07) inset; }
.eyebrow,.section-heading > div > p { margin: 0 0 20px; color: var(--brass); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 38px; height: 1px; background: var(--ember); }
.hero h1 { margin: 0; font: 500 clamp(3.8rem,8vw,7.4rem)/.96 var(--serif); letter-spacing: -.05em; }
.hero h1 em { color: transparent; font-style: normal; white-space: nowrap; -webkit-text-stroke: 1px rgba(238,231,218,.62); }
.hero-intro { max-width: 650px; margin: 34px 0 0; color: #b6b0a5; font: 400 clamp(1.03rem,1.4vw,1.2rem)/1.9 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; margin-top: 38px; }
.primary-action { display: inline-flex; min-height: 48px; padding: 0 23px; align-items: center; justify-content: center; border: 1px solid #c34649; color: #fff4e8; background: #8f2026; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: background 160ms ease,border-color 160ms ease,transform 160ms ease; }
.primary-action:hover,.primary-action:focus-visible { border-color: var(--ember-bright); background: #a62930; transform: translateY(-2px); }
.text-action { color: var(--ink); font-size: .9rem; text-underline-offset: 6px; }
.link-icon { width: 1em; height: 1em; margin-left: 7px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; vertical-align: -.12em; }
.text-action .link-icon,.card-link .link-icon,.resource-link .link-icon { color: var(--ember-bright); }
.desk-index { position: relative; padding: 0 0 0 30px; border-left: 1px solid var(--line-strong); }
.desk-index::before { position: absolute; top: 0; left: -3px; width: 5px; height: 54px; background: var(--ember); content: ""; }
.desk-index > p { margin: 0 0 24px; color: var(--faint); font-size: .65rem; letter-spacing: .2em; }
.index-links { display: grid; margin: 0; }
.index-links a { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: center; padding: 19px 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding-left 160ms ease,color 160ms ease; }
.index-links a > span { color: var(--brass); font: 400 1.4rem/1 var(--serif); }
.index-links strong { font: 600 1rem/1.35 var(--serif); letter-spacing: .05em; }
.index-links a:hover,.index-links a:focus-visible { padding-left: 7px; color: #fff; }

.home-section { width: min(1280px,calc(100% - 48px)); margin: 0 auto; padding: 74px 0; }
.section-heading { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(360px,1fr); gap: clamp(40px,7vw,110px); align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--line-strong); }
.section-heading h2 { margin: 0; font: 500 clamp(2.2rem,4vw,4.1rem)/1 var(--serif); letter-spacing: -.03em; }
.section-heading > p { max-width: 610px; margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.9; }

.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.module-card { position: relative; isolation: isolate; display: flex; min-height: 510px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.module-card img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) saturate(.76) contrast(1.08); transition: transform 700ms cubic-bezier(.2,.7,.2,1),filter 300ms ease; }
.module-flames img { object-position: 50% 62%; }
.module-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg,rgba(8,9,10,.12),rgba(8,9,10,.93) 82%),linear-gradient(90deg,rgba(8,9,10,.38),transparent 60%); }
.module-card::after { position: absolute; z-index: -1; inset: 0; border: 1px solid transparent; content: ""; transition: border-color 180ms ease; }
.module-card-copy { display: flex; width: 100%; padding: 28px; align-self: flex-end; flex-direction: column; align-items: flex-start; }
.card-meta { display: flex; gap: 8px; margin-bottom: auto; position: absolute; top: 24px; left: 24px; }
.card-meta span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.22); color: #e2ddd4; background: rgba(8,9,10,.6); font-size: .68rem; letter-spacing: .08em; backdrop-filter: blur(8px); }
.module-card-copy > p { margin: 0 0 8px; color: var(--brass); font-size: .68rem; letter-spacing: .18em; }
.module-card h3 { margin: 0; font: 500 clamp(2rem,3.2vw,3.3rem)/1.1 var(--serif); }
.card-description { max-width: 530px; margin-top: 15px; color: #bdb7ac; font-size: .9rem; line-height: 1.7; }
.card-link { margin-top: 22px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.32); font-size: .82rem; font-weight: 700; letter-spacing: .07em; }
.module-card:hover img,.module-card:focus-visible img { filter: grayscale(.08) saturate(.9) contrast(1.08); transform: scale(1.035); }
.module-card:hover::after,.module-card:focus-visible::after { border-color: rgba(225,87,88,.75); }

.resource-section { padding-top: 84px; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.resource-card { position: relative; display: grid; min-height: 310px; padding: 30px; border: 1px solid var(--line); background: rgba(16,18,20,.82); text-decoration: none; transition: border-color 180ms ease,background 180ms ease,transform 180ms ease; }
.resource-card::before { position: absolute; top: 0; left: 0; width: 70px; height: 3px; background: var(--ember); content: ""; }
.resource-number { position: absolute; z-index: 0; top: 28px; right: 30px; color: #35383a; font: 500 clamp(2.6rem,4vw,4.2rem)/1 var(--serif); pointer-events: none; user-select: none; }
.resource-card > :not(.resource-number) { position: relative; z-index: 1; }
.resource-card > div:nth-child(2) { align-self: center; }
.resource-card p { margin: 0 0 12px; color: var(--brass); font-size: .67rem; letter-spacing: .17em; }
.resource-card h3 { margin: 0 0 18px; font: 500 clamp(1.45rem,2.2vw,2.1rem)/1.25 var(--serif); }
.resource-card h3 + span { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.resource-link { align-self: end; justify-self: start; padding-bottom: 5px; border-bottom: 1px solid var(--line-strong); font-size: .78rem; letter-spacing: .06em; }
.resource-card:hover,.resource-card:focus-visible { border-color: #5c4a3e; background: var(--surface-raised); transform: translateY(-3px); }

.tabletop-section { padding-top: 84px; }
.tabletop-card { grid-template-columns: minmax(0,1fr) auto; min-height: 310px; margin-top: 30px; }
.tabletop-card > div:nth-child(2) { max-width: 850px; }
.tabletop-card ul { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.tabletop-card li { position: relative; padding-left: 15px; color: #d4cec3; font-size: .83rem; }
.tabletop-card li::before { position: absolute; top: .5em; left: 0; width: 5px; height: 5px; background: var(--ember); content: ""; transform: rotate(45deg); }
.tabletop-card .resource-link { align-self: end; justify-self: end; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; width: min(1440px,100%); margin: auto; padding: 50px clamp(24px,5vw,80px); }
.footer-brand .site-mark { width: 32px; height: 32px; font-size: 1rem; }
.footer-brand strong { font-size: .9rem; }
footer > p { margin: 0; color: var(--faint); font: italic .82rem/1.5 var(--serif); text-align: center; }
footer nav { display: flex; gap: 18px; justify-content: flex-end; }
footer nav a { color: var(--muted); font-size: .75rem; text-decoration: none; }
footer nav a:hover,footer nav a:focus-visible { color: var(--ink); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .desk-index { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .module-card { min-height: 470px; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .home-header { display: flex; grid-template-columns: none; min-height: 78px; padding: 12px 20px; }
  .home-header-actions { display: flex; }
}

@media (max-width: 700px) {
  .home-header { min-height: 68px; padding: 10px 16px; }
  .home-nav { display: none; }
  .site-brand { gap: 10px; }
  .site-mark { width: 34px; height: 34px; }
  .site-brand small { font-size: .52rem; }
  .site-brand strong { font-size: .92rem; }
  .hero { padding: 76px 22px 68px; }
  .hero::after { top: 16%; right: -43%; width: 90%; }
  .hero h1 { font-size: clamp(2.75rem,13.2vw,4rem); }
  .hero-intro { font-size: 1rem; line-height: 1.8; }
  .desk-index { padding-left: 21px; }
  .home-section { width: calc(100% - 32px); padding: 55px 0; }
  .section-heading { padding-bottom: 27px; }
  .section-heading > p { font-size: .9rem; }
  .module-grid,.resource-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 450px; }
  .module-card-copy { padding: 23px; }
  .card-meta { top: 20px; left: 20px; }
  .resource-card { min-height: 290px; padding: 25px; }
  .resource-number { top: 24px; right: 24px; opacity: .8; }
  .tabletop-card { grid-template-columns: 1fr; min-height: 0; }
  .tabletop-card > div:nth-child(2) { max-width: 100%; padding-top: 22px; }
  .tabletop-card .resource-link { justify-self: start; margin-top: 28px; }
  footer { grid-template-columns: 1fr; padding: 42px 22px; }
  footer > p { text-align: left; }
  footer nav { flex-wrap: wrap; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; }
}
