@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+TC:wght@400;500;600&family=Noto+Serif+TC:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --canvas: #f1ede3;
  --surface: #fbf9f3;
  --surface-warm: #e9e3d5;
  --ink: #20241d;
  --muted: #77786d;
  --rule: #d7d2c5;
  --accent: #b6d33e;
  --accent-dark: #6f861c;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --content-max: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--canvas); }
body { min-height: 100%; color: var(--ink); background: var(--canvas); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: 5; inset: 0; opacity: .18; pointer-events: none; content: ""; 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='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
a { color: inherit; }
button, a { font: inherit; }

.site-shell { position: relative; overflow: clip; }
.site-header, .intro, .signal-line, .notes-section, .site-footer { width: min(var(--content-max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.site-header { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--rule); }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; width: max-content; text-decoration: none; }
.brand-mark { color: var(--ink); font: 600 clamp(25px, 3vw, 36px)/.85 var(--serif); letter-spacing: -.08em; }
.brand-caption { color: var(--muted); font: 400 9px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.site-nav, .social-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.site-nav { justify-content: center; }
.site-nav a, .social-link { color: var(--muted); font: 500 11px/1 var(--mono); text-decoration: none; transition: color .25s ease; }
.site-nav a span { margin-right: 7px; color: var(--accent-dark); font-size: 10px; }
.site-nav a:hover, .site-nav a.is-active, .social-link:hover { color: var(--ink); }
.site-nav a.is-active { text-decoration: underline; text-decoration-color: var(--accent-dark); text-underline-offset: 5px; }
.social-nav { justify-content: flex-end; }
.social-link { color: var(--ink); border-bottom: 1px solid transparent; padding-bottom: 4px; }
.social-link:hover { border-color: var(--accent-dark); }

.intro { min-height: clamp(500px, 72vh, 720px); display: grid; grid-template-columns: .18fr 1fr .42fr; align-items: end; gap: clamp(24px, 5vw, 80px); padding-block: clamp(92px, 13vw, 164px) clamp(72px, 9vw, 126px); }
.eyebrow, .section-number, .section-rail-label, .rail-year, .signal-line, .insight-index, .insight-card-copy small, .project-index, .project-copy small, .site-footer { font-family: var(--mono); }
.eyebrow { color: var(--accent-dark); font-size: 10px; font-weight: 500; letter-spacing: .13em; line-height: 1.35; }
.intro-rail { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding-top: 8px; }
.rail-year { color: var(--muted); font-size: 10px; line-height: 1.65; letter-spacing: .08em; }
.intro-kicker { margin-bottom: 25px; }
.intro-main h1 { max-width: 800px; font: 500 clamp(3.4rem, 8.3vw, 8.4rem)/.91 var(--serif); letter-spacing: -.075em; }
.intro-main h1 em, .games-heading em { color: var(--accent-dark); font-style: normal; }
.intro-note { max-width: 300px; justify-self: end; padding-left: 22px; border-left: 1px solid var(--ink); }
.intro-note p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); color: var(--ink); font: 500 11px/1 var(--mono); text-decoration: none; transition: gap .25s ease, border-color .25s ease; }
.text-link:hover { gap: 21px; border-color: var(--accent-dark); }

.signal-line { display: flex; align-items: center; gap: 15px; padding-block: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.signal-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.signal-line-end { margin-left: auto; color: var(--ink); }

.notes-section { display: grid; grid-template-columns: .18fr 1fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(96px, 12vw, 164px) clamp(120px, 15vw, 220px); }
.section-rail { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.section-number { color: var(--accent-dark); font-size: 13px; }
.section-rail-label { color: var(--muted); font-size: 10px; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }
.section-rail-rule { width: 1px; flex: 1; min-height: 80px; margin-left: 5px; background: var(--rule); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 31px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin-top: 17px; font: 500 clamp(2.6rem, 5vw, 5.1rem)/.95 var(--serif); letter-spacing: -.065em; }
.section-description { max-width: 260px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.notes-feature { display: grid; grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr); gap: clamp(26px, 5vw, 72px); padding-top: 44px; }
.cover-figure { align-self: start; }
.cover-figure img { display: block; width: 100%; aspect-ratio: 1 / .88; border: 1px solid var(--ink); border-radius: 2px 24px 2px 2px; background: #18251c; object-fit: cover; box-shadow: 17px 17px 0 var(--surface-warm); }
.cover-figure figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--muted); font: 400 9px/1.3 var(--mono); letter-spacing: .04em; }
.insight-list { border-top: 1px solid var(--rule); }
.insight-row { display: grid; grid-template-columns: 32px 76px minmax(0, 1fr) 24px; align-items: center; gap: 16px; min-height: 106px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color .25s ease, padding-inline .25s ease; }
.insight-row:hover { padding-inline: 10px; background: rgba(255,255,255,.42); }
.insight-index { align-self: start; padding-top: 20px; color: var(--accent-dark); font-size: 10px; }
.insight-card-image { display: block; width: 76px; height: 76px; border: 1px solid var(--rule); border-radius: 2px; object-fit: cover; filter: saturate(.78) sepia(.06); }
.insight-card-copy { display: grid; gap: 5px; min-width: 0; }
.insight-card-copy small { overflow: hidden; color: var(--muted); font-size: 9px; letter-spacing: .055em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.insight-card-copy strong { overflow: hidden; color: var(--ink); font: 600 16px/1.35 var(--sans); letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.insight-card-copy > span { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.insight-row i, .project-row i { color: var(--accent-dark); font: 400 21px/1 var(--serif); font-style: normal; transition: transform .25s ease; }
.insight-row:hover i, .project-row:hover i { transform: translate(3px, -3px); }

.games-section { color: var(--canvas); background: var(--ink); }
.games-inner { width: min(var(--content-max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; padding-block: clamp(92px, 12vw, 160px) clamp(100px, 13vw, 170px); }
.games-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; padding-bottom: 70px; }
.games-heading .eyebrow { color: var(--accent); grid-column: 1 / -1; }
.games-heading h2 { font: 500 clamp(2.8rem, 6vw, 6rem)/.97 var(--serif); letter-spacing: -.065em; }
.games-heading p { max-width: 230px; justify-self: end; color: rgba(241,237,227,.62); font-size: 13px; line-height: 1.8; }
.project-list { border-top: 1px solid rgba(241,237,227,.32); }
.project-row { display: grid; grid-template-columns: 10% minmax(0, 1fr) 28% 24px; align-items: center; gap: 22px; min-height: 196px; border-bottom: 1px solid rgba(241,237,227,.32); text-decoration: none; transition: background-color .3s ease, padding-inline .3s ease; }
.project-row:hover { padding-inline: 14px; background: rgba(255,255,255,.055); }
.project-index { align-self: start; padding-top: 26px; color: var(--accent); font-size: 13px; }
.project-copy { display: grid; gap: 9px; min-width: 0; }
.project-copy small { color: rgba(241,237,227,.56); font-size: 9px; letter-spacing: .1em; }
.project-copy strong { color: var(--canvas); font: 500 clamp(1.6rem, 3vw, 3.15rem)/1 var(--serif); letter-spacing: -.06em; }
.project-copy > span { max-width: 420px; color: rgba(241,237,227,.62); font-size: 13px; line-height: 1.7; }
.project-image { width: 100%; height: 142px; border: 1px solid rgba(241,237,227,.3); border-radius: 2px 18px 2px 2px; object-fit: cover; filter: grayscale(.35) sepia(.12); opacity: .84; transition: filter .3s ease, opacity .3s ease; }
.project-row:hover .project-image { filter: grayscale(0) sepia(0); opacity: 1; }
.project-row i { color: var(--accent); }

.site-footer { width: min(var(--content-max), calc(100% - (var(--gutter) * 2))); display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 88px; margin-inline: auto; color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }
.noscript-index { display: grid; gap: 12px; max-width: 600px; margin: 40px auto; padding: 24px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 5px; }

@media (max-width: 760px) {
  .site-header { min-height: 112px; grid-template-columns: 1fr auto; grid-template-areas: "brand social" "nav nav"; gap: 18px; padding-block: 18px; }
  .brand-lockup { grid-area: brand; }
  .social-nav { grid-area: social; gap: 14px; }
  .site-nav { grid-area: nav; justify-content: flex-start; gap: 22px; overflow-x: auto; padding-bottom: 2px; }
  .intro { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding-block: 80px 88px; }
  .intro-rail { display: flex; flex-direction: row; align-items: flex-start; }
  .rail-year { margin-left: auto; text-align: right; }
  .intro-kicker { margin-bottom: 20px; }
  .intro-main h1 { font-size: clamp(3.4rem, 14vw, 5.8rem); }
  .intro-note { max-width: 320px; justify-self: start; margin-left: 25%; }
  .signal-line { gap: 10px; overflow: hidden; white-space: nowrap; }
  .signal-line span:nth-of-type(3) { display: none; }
  .notes-section { grid-template-columns: 1fr; gap: 25px; padding-block: 86px 112px; }
  .section-rail { flex-direction: row; align-items: center; }
  .section-rail-label { writing-mode: initial; transform: none; }
  .section-rail-rule { width: auto; height: 1px; min-height: 0; margin: 0 0 0 4px; }
  .section-heading { display: block; padding-bottom: 26px; }
  .section-heading h2 { margin-top: 14px; }
  .section-description { max-width: 310px; margin-top: 24px; }
  .notes-feature { grid-template-columns: 1fr; gap: 46px; padding-top: 32px; }
  .cover-figure img { aspect-ratio: 1 / .68; box-shadow: 10px 10px 0 var(--surface-warm); }
  .insight-row { grid-template-columns: 28px 58px minmax(0, 1fr) 18px; gap: 10px; min-height: 98px; }
  .insight-row:hover { padding-inline: 5px; }
  .insight-card-image { width: 58px; height: 58px; }
  .insight-index { padding-top: 17px; font-size: 9px; }
  .insight-card-copy strong { font-size: 14px; }
  .insight-card-copy > span { font-size: 12px; }
  .insight-row i { font-size: 19px; }
  .games-inner { padding-block: 82px 102px; }
  .games-heading { display: block; padding-bottom: 48px; }
  .games-heading h2 { margin-top: 22px; font-size: clamp(2.8rem, 13vw, 5rem); }
  .games-heading p { margin-top: 24px; }
  .project-row { grid-template-columns: 32px minmax(0, 1fr) 80px 18px; gap: 11px; min-height: 154px; }
  .project-row:hover { padding-inline: 5px; }
  .project-index { padding-top: 21px; font-size: 10px; }
  .project-copy { gap: 7px; }
  .project-copy strong { font-size: 1.7rem; }
  .project-copy > span { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .project-image { height: 80px; border-radius: 2px 12px 2px 2px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; min-height: 110px; padding-block: 28px; }
  .site-footer span:nth-child(2) { order: 3; width: 100%; }
}

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