/* Modern site foundation shared by index.html, company.html and gamepub.html. */
:root {
  --paper: #f8f7f3;
  --ink: #242a28;
  --muted: #626964;
  --gold: #84652f;
  --line: #deded5;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid #9b712d; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 72px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .15em; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 16px; padding: 8px 16px; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Brand and the six approved navigation items. */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 100px; }
.brand { display: flex; flex-direction: column; flex-shrink: 0; text-decoration: none; line-height: 1.2; }
.brand-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 700; letter-spacing: -.055em; }
.brand-name { margin-top: 7px; font-size: 11px; letter-spacing: .22em; }
#navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 23px; margin: 0; padding: 0; list-style: none; }
#navigation a { display: inline-flex; align-items: center; gap: 7px; padding-block: 12px; font-size: 13px; font-weight: 500; text-decoration: none; }
#navigation a:hover, #navigation a[aria-current="page"] { color: var(--gold); }
#navigation a[aria-current="page"] { box-shadow: inset 0 -2px var(--gold); }
#navigation .nav-external { padding-inline: 14px; border: 1px solid var(--line); border-radius: 2px; }
#navigation .nav-external:hover { border-color: var(--gold); }

/* Typographic company introduction. */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-top: 76px; padding-bottom: 64px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.hero h1 { margin-top: 22px; font-family: var(--serif); font-size: clamp(36px, 4vw, 54px); font-weight: 500; letter-spacing: .025em; line-height: 1.5; }
.hero h1 span { display: block; color: var(--gold); }
.hero-description { margin-top: 22px; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 2px; font-size: 14px; font-weight: 500; text-decoration: none; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #3d4942; }
.text-link { display: inline-flex; align-items: center; gap: 16px; color: var(--gold); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-note { padding: 4px 0 8px 40px; border-left: 1px solid var(--line); }
.hero-year { display: block; color: #dfdace; font-family: Georgia, serif; font-size: clamp(72px, 8vw, 112px); line-height: 1; letter-spacing: -.06em; }
.hero-note-title { margin-top: 20px; font-family: var(--serif); font-size: 25px; line-height: 1.6; }
.hero-note > p:last-child { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Full-composition artwork and readable, independent game text. */
.featured { padding-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
h2 { margin-top: 8px; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 34px); font-weight: 500; letter-spacing: .025em; }
.section-intro { color: var(--muted); font-size: 14px; }
.game-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.featured-game { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; }
.game-image-link { display: flex; align-items: center; position: relative; aspect-ratio: 7 / 4; background: #252b28; }
.game-image-link img { width: 100%; height: 100%; object-fit: contain; }
.image-arrow { display: flex; align-items: center; justify-content: center; position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; box-shadow: 0 2px 12px #0002; }
.game-image-link:hover .image-arrow { background: #eee5d1; }
.game-copy { display: flex; flex-direction: column; flex-grow: 1; padding: 25px 28px 28px; }
.game-type { color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.game-copy h3 { margin-top: 8px; font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.game-copy > p:not(.game-type) { margin-top: 14px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.game-copy .text-link { align-self: flex-start; margin-top: auto; }

.focus-band { border-block: 1px solid var(--line); background: #eeeee6; }
.focus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 80px; }
.focus-grid h2 { margin-top: 18px; line-height: 1.65; }
.focus-copy > p { color: var(--muted); }
.focus-copy .lead { margin-bottom: 16px; color: var(--ink); font-size: 20px; font-weight: 500; }
.focus-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px; }
.focus-topics span { padding: 4px 13px; border: 1px solid #d1d2c5; border-radius: 2px; font-size: 12px; }

.classic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.classic-image { display: flex; align-items: center; justify-content: center; height: 230px; padding: 16px; border: 1px solid #303633; border-radius: 3px; background: #1b211e; }
.classic-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.classic-caption { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.classic-caption p { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.classic-caption h3 { margin-top: 5px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.classic-caption h3 a { text-decoration: none; }
.classic-caption h3 a:hover { color: var(--gold); }
.classic-genre { padding-bottom: 3px; color: var(--gold); font-size: 12px; }

.past-projects { padding-block: 32px 56px; border-top: 1px solid var(--line); }
.past-projects h2 { font-size: 26px; }
.past-project { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 28px; margin-top: 24px; }
.past-game-image { display: flex; align-items: center; aspect-ratio: 7 / 4; background: #252b28; border-radius: 3px; overflow: hidden; }
.past-game-image img { width: 100%; height: 100%; object-fit: contain; }
.past-project h3 { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.past-project p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.past-project .text-link { margin-top: 12px; font-size: 13px; }

.history-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; border-top: 1px solid var(--line); }
.history-heading h2 { margin-top: 18px; line-height: 1.65; }
.history-heading .text-link { margin-top: 28px; }
.history-copy > p { color: var(--muted); }
.history-notice { margin-top: 26px; padding: 22px 25px; border-left: 2px solid #aa8951; background: #f0ede5; }
.notice-label { margin-bottom: 10px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.history-notice > p:last-child { color: #555d55; font-size: 14px; }
.history-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }
.history-links a { color: var(--muted); font-size: 13px; }
.history-links a:hover { color: var(--gold); }

.contact-band { padding-block: 56px; background: #242e29; color: #fff; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; }
.contact-band .eyebrow { color: #dcc28f; }
.contact-band h2 { margin-top: 12px; font-size: clamp(24px, 2.5vw, 32px); }
.contact-band h2 + p { margin-top: 10px; color: #d1d7d2; font-size: 14px; }
.button-light { color: var(--ink); background: #f3efdf; }
.button-light:hover { background: #fff; }
.site-footer { padding-block: 30px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.footer-company { font-size: 13px; font-weight: 600; }
.footer-company span { margin-left: 12px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.site-footer address, .copyright { margin-top: 6px; color: var(--muted); font-size: 11px; font-style: normal; }

@media (min-width: 1500px) {
  .hero { padding-top: 96px; padding-bottom: 80px; }
}
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .header-inner { flex-wrap: wrap; gap: 22px; padding-block: 24px; }
  .header-inner nav { width: 100%; }
  #navigation { justify-content: space-between; gap: 8px 18px; }
  .hero { gap: 40px; }
  .focus-grid, .history-section { gap: 48px; }
  .classic-image { height: 190px; }
  .game-copy { padding: 22px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .section-space { padding-block: 48px; }
  .header-inner { gap: 20px; padding-block: 20px 12px; }
  .brand-wordmark { font-size: 29px; }
  #navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; align-items: stretch; }
  #navigation a { display: flex; justify-content: center; height: 100%; min-height: 44px; padding: 8px 2px; font-size: 12px; }
  #navigation .nav-external { padding-inline: 3px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 36px; }
  .hero h1 { margin-top: 18px; font-size: clamp(30px, 6.2vw, 44px); }
  .hero-description { font-size: 15px; }
  .hero-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-year { align-self: center; grid-row: span 2; font-size: 66px; }
  .hero-note-title { margin: 0; font-size: 19px; }
  .hero-note > p:last-child { margin: 0; font-size: 12px; }
  .featured { padding-top: 20px; }
  .section-heading { align-items: flex-start; gap: 16px; }
  .focus-grid, .history-section { grid-template-columns: 1fr; gap: 30px; }
  .featured-game { grid-template-columns: 1fr; }
  .past-projects { padding-block: 28px 40px; }
  .past-project { grid-template-columns: 1fr; gap: 18px; }
  .past-game-image { width: min(100%, 280px); }
  .game-copy h3 { font-size: 20px; }
  .focus-grid h2 br, .history-heading h2 br { display: none; }
  .classic-grid { grid-template-columns: 1fr; gap: 32px; }
  .classic-image { height: auto; min-height: 180px; aspect-ratio: 16 / 9; }
  .classic-image img { max-height: 260px; }
  .history-heading .text-link { margin-top: 18px; }
  .contact-band { padding-block: 40px; }
  .footer-company span { display: block; margin: 5px 0 0; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 32px); }
  .hero-note { column-gap: 16px; }
  .hero-year { font-size: 54px; }
  .desktop-break { display: none; }
  .game-copy { padding: 20px; }
}
