:root {
  --paper: #fffdf8;
  --paper-warm: #fff7e9;
  --ink: #2c302f;
  --muted: #6e736f;
  --line: #eadfce;
  --orange: #e96f38;
  --orange-deep: #b94421;
  --orange-soft: #fff0e5;
  --green: #426f5a;
  --shadow: 0 18px 55px rgba(77, 55, 28, .09);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, serif;
  --sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(246, 178, 111, .18), transparent 30rem),
    linear-gradient(180deg, #fffaf1 0, var(--paper) 32rem);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(233, 111, 56, .55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--orange-deep);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(206, 182, 148, .55);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 14px 14px 14px 5px;
  color: #fff;
  background: linear-gradient(145deg, #ffad51, var(--orange));
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(185, 68, 29, .19);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #505652;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.site-nav a:not(:hover) { text-decoration: none; }

.nav-games {
  padding: .35rem .85rem;
  border: 1px solid #e8cbae;
  border-radius: 999px;
  color: var(--orange-deep);
  background: #fff8ef;
}

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

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  min-height: 590px;
  align-items: center;
  gap: clamp(46px, 7vw, 96px);
  padding: 72px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.home-hero h1 {
  max-width: 750px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.home-hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 630px;
  margin: 25px 0 0;
  color: #616763;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.hero-note {
  margin: 26px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  overflow: hidden;
  border-radius: 46% 46% 22px 22px;
  box-shadow: var(--shadow);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(35, 36, 29, .32));
  content: "";
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 18px 21px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 18px;
  color: #fff;
  background: rgba(34, 40, 34, .45);
  backdrop-filter: blur(10px);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.content-section { padding: 68px 0 95px; }

.section-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
}

.section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 65px rgba(77, 55, 28, .14);
}

.post-card-cover {
  min-height: 350px;
  overflow: hidden;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-copy {
  display: flex;
  padding: clamp(30px, 5vw, 58px);
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.post-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.28;
}

.post-card p:not(.post-meta) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.read-more {
  margin-top: 24px;
  color: var(--orange-deep);
  font-weight: 800;
}

.coming-soon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.coming-soon div {
  min-height: 120px;
  padding: 20px;
  border: 1px dashed #dcc7aa;
  border-radius: 18px;
  color: #726e67;
  background: rgba(255, 249, 239, .72);
}

.coming-soon strong {
  display: block;
  margin-bottom: 6px;
  color: #4a4c48;
  font-family: var(--serif);
  font-size: 18px;
}

.article-page { background: var(--paper); }

.article-hero {
  width: min(980px, calc(100% - 40px));
  margin: auto;
  padding: 82px 0 44px;
  text-align: center;
}

.article-hero .eyebrow { justify-content: center; }

.article-hero h1 {
  margin: 8px auto 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -.045em;
  line-height: 1.18;
}

.article-deck {
  max-width: 760px;
  margin: 24px auto 0;
  color: #656a66;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.75;
}

.article-info {
  display: flex;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.article-info span + span::before {
  margin-right: 12px;
  color: #c4ad92;
  content: "•";
}

.article-cover {
  width: min(1120px, calc(100% - 40px));
  height: min(68vw, 650px);
  margin: 0 auto 48px;
  overflow: hidden;
  border-radius: 28px;
  background: #eadbc9;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.article-layout {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  grid-template-columns: 220px minmax(0, 700px);
  justify-content: center;
  gap: 64px;
  padding-bottom: 100px;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-top: 8px;
}

.toc-title {
  margin: 0 0 12px;
  color: #90938f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li { margin-top: 8px; }

.toc a {
  display: block;
  padding: 3px 0 3px 13px;
  border-left: 2px solid #e9dfd2;
  color: #747873;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.article-body {
  min-width: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
}

.article-body > p:first-child {
  margin-top: 0;
  font-size: 20px;
}

.article-body p { margin: 0 0 1.45em; }

.article-body strong {
  color: #3a4b42;
  font-weight: 700;
}

.article-body h2 {
  margin: 3.1em 0 1em;
  padding-top: 20px;
  color: #29372f;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.42;
  scroll-margin-top: 90px;
}

.article-body h2::before {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 15px;
  border-radius: 4px;
  background: var(--orange);
  content: "";
}

.article-body ol {
  margin: 0 0 1.55em;
  padding: 1.1em 1.2em 1.1em 3em;
  border: 1px solid #ecdfcd;
  border-radius: 18px;
  background: #fffaf2;
}

.article-body li { padding-left: .3em; }
.article-body li + li { margin-top: .3em; }

.article-body figure {
  margin: 2.45em 0 2.7em;
}

.article-body figure img {
  width: 100%;
  max-height: 660px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 40px rgba(58, 42, 26, .1);
}

.article-body figcaption {
  margin-top: 9px;
  color: #92918d;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}

.takeaway {
  margin: 3em 0 2em;
  padding: 28px 30px;
  border: 1px solid #f0caa7;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5e8, #fffaf2);
  font-size: 21px;
  line-height: 1.8;
}

.sources {
  margin-top: 3.5em;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: #737771;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}

.sources h2 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 25px;
}

.sources h2::before { display: none; }

.sources a {
  color: var(--green);
  text-underline-offset: 3px;
}

.article-next {
  margin-top: 58px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  background: #3e6653;
}

.article-next p { margin: 0; }

.article-next a {
  font-family: var(--sans);
  font-weight: 800;
  text-underline-offset: 5px;
}

.article-next button {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: 800 1em var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.site-footer {
  padding: 38px 20px 44px;
  border-top: 1px solid var(--line);
  color: #777a75;
  background: #f7efe3;
  font-size: 14px;
  text-align: center;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: #454943;
  font-family: var(--serif);
  font-size: 18px;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 58px;
  }

  .hero-photo { min-height: 460px; }

  .article-layout {
    grid-template-columns: minmax(0, 700px);
    gap: 0;
  }

  .toc {
    position: static;
    margin-bottom: 36px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffaf2;
  }

  .toc ol { columns: 2; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .nav-wrap,
  .page-shell,
  .article-hero,
  .article-cover,
  .article-layout {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap { min-height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: 15px; }
  .site-nav { gap: 13px; font-size: 13px; }

  .home-hero {
    gap: 34px;
    padding: 46px 0 38px;
  }

  .home-hero h1 {
    font-size: clamp(42px, 13vw, 60px);
    letter-spacing: -.06em;
  }

  .hero-lead { font-size: 18px; }

  .hero-photo {
    min-height: 390px;
    border-radius: 43% 43% 18px 18px;
  }

  .hero-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 14px 16px;
    font-size: 16px;
  }

  .content-section { padding: 48px 0 68px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }

  .post-card { grid-template-columns: 1fr; }
  .post-card-cover { min-height: 260px; max-height: 320px; }
  .post-card-copy { padding: 28px 24px 32px; }
  .post-card h3 { font-size: 31px; }

  .coming-soon { grid-template-columns: 1fr; }

  .article-hero { padding: 56px 0 32px; }
  .article-hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .article-deck { font-size: 17px; }

  .article-cover {
    height: 70vw;
    min-height: 300px;
    margin-bottom: 34px;
    border-radius: 18px;
  }

  .article-body { font-size: 17px; line-height: 1.95; }
  .article-body > p:first-child { font-size: 18px; }
  .article-body h2 { margin-top: 2.45em; font-size: 28px; }
  .article-body ol { padding: 1em 1em 1em 2.5em; }
  .article-body figure { margin: 2em 0 2.2em; }
  .article-body figure img { max-height: 480px; border-radius: 14px; }
  .toc ol { columns: 1; }
  .takeaway { padding: 22px; font-size: 18px; }
}

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