/* Sealwright: one page for the game, screenshots, and development notes. */
:root {
  color-scheme: light;
  --bg: #181512;
  --paper: #f4e7c7;
  --paper2: #ece0c0;
  --paper3: #e3d2ac;
  --ink: #2b2620;
  --ink2: #544a3e;
  --ink3: #6a5e4e;
  --line: #b9a887;
  --red: #b4281e;
  --gold: #c9a227;
  --gold-ink: #8a6a20;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebgaramond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebgaramond-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
.language-page[lang="en"] { font-family: "EB Garamond", "Times New Roman", serif; font-size: 1.2rem; }
a { color: var(--ink); text-decoration-color: var(--gold-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink2); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(100% - 1.25rem, 78rem); margin: 0 auto; }
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: #fff;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
.masthead-inner { display: contents; }
.top-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.top-links a { text-decoration: none; }
.language-switch { display: flex; gap: .3rem; }
.language-switch button {
  border: 1px solid rgba(244, 231, 199, .65);
  background: transparent;
  color: #fff;
  padding: .25rem .55rem;
  cursor: pointer;
  font-size: .88rem;
}
.language-switch button:hover { background: rgba(244, 231, 199, .12); }
.language-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.page {
  margin: 0 auto 2rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.edition { min-height: 70vh; }
.hero { display: grid; gap: 1.4rem; align-items: center; padding: .5rem 0 2rem; }
.hero-art { margin: 0; border: 1px solid var(--line); background: #100f0d; }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.eyebrow { margin: 0 0 .65rem; color: var(--gold-ink); font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.15; }
.game-title-en { margin: .2rem 0 1.25rem; color: var(--ink3); font-family: "EB Garamond", Georgia, serif; font-size: 1.4rem; }
.lead { max-width: 42rem; margin: 0 0 1rem; font-size: 1.05em; }
.tagline { margin: 1.25rem 0 0; color: var(--gold-ink); font-family: "EB Garamond", Georgia, serif; font-size: 1.2rem; font-style: italic; }
.status-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 0; }
.status-chip { display: inline-block; padding: .25rem .65rem; border: 1px solid var(--line); background: var(--paper2); font-size: .82rem; }
.store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  max-width: 100%;
  padding: .55rem .95rem;
  border: 1px solid #731b15;
  border-radius: .35rem;
  background: var(--red);
  color: #fff;
  box-shadow: 0 3px 0 #731b15, 0 5px 12px rgba(43, 38, 32, .2);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.store-cta:hover {
  background: #941f17;
  color: #fff;
  box-shadow: 0 2px 0 #731b15, 0 4px 10px rgba(43, 38, 32, .2);
  transform: translateY(1px);
}
.store-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #731b15; }
.section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin: 0 0 1rem; }
.section-heading h2 { margin: 0; font-size: 1.45rem; }
.section-heading p { margin: 0; color: var(--ink3); font-size: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; }
.feature { padding: .9rem 1rem; border: 1px solid var(--line); background: var(--paper2); }
.feature h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--ink2); font-size: .94rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.media-grid figure { margin: 0; min-width: 0; }
.media-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: var(--paper3); }
.media-grid figcaption { margin-top: .4rem; color: var(--ink3); font-size: .88rem; }
.trailer-card { display: grid; min-height: 12rem; place-items: center; margin-top: 1rem; padding: 1.5rem; border: 1px dashed var(--line); background: var(--paper2); text-align: center; }
.trailer-link { color: var(--ink); text-decoration: none; }
.trailer-link:hover { background: var(--paper); color: var(--ink); }
.trailer-card strong { display: block; font-size: 1.1rem; }
.trailer-card span { display: block; color: var(--ink3); font-size: .9rem; }
.trailer-card .play-icon { display: inline; color: var(--red); font-size: .85rem; }
.about-copy { max-width: 50rem; }
.about-copy p { margin: 0 0 .7rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink3); font-size: .88rem; }
.site-footer p { margin: 0; }
.page-jump {
  position: fixed;
  z-index: 20;
  right: max(.65rem, env(safe-area-inset-right));
  bottom: max(.7rem, env(safe-area-inset-bottom));
  display: grid;
  gap: .45rem;
}
.page-jump button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 5rem;
  min-height: 2.7rem;
  padding: .4rem .65rem;
  border: 1px solid rgba(244, 231, 199, .7);
  border-radius: 999px;
  background: rgba(24, 21, 18, .94);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.2;
}
.page-jump button:hover { background: #302920; }
.jump-icon { font-size: 1.15rem; line-height: 1; }
[hidden] { display: none !important; }
@media (min-width: 760px) {
  .shell { width: min(100% - 3rem, 78rem); }
  .masthead { padding: 1.25rem 0; }
  .masthead-inner { display: flex; align-items: center; gap: 1.4rem; }
  .page { margin-top: 1.5rem; padding: 2.25rem 2.5rem; }
  .hero { grid-template-columns: minmax(18rem, .88fr) minmax(0, 1.12fr); gap: clamp(2rem, 6vw, 5rem); padding: .5rem 0 2.5rem; }
  .hero-art img { max-height: 35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
