/* The website around the game: rice paper, ink and a vermilion seal, the same colours as the game's scrolls. */
:root {
  --ink: #1d231f;
  --ink-soft: #4a4a40;
  --paper: #efe7d4;
  --paper-deep: #e4d8bc;
  --rule: #c9b98f;
  --night: #17211e;
  --gold: #b8893a;
  --seal: #a8322a;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  --brush: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Iowan Old Style', Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 var(--serif); }
:lang(zh-Hans) body, body:lang(zh-Hans) { font-size: 16.5px; line-height: 1.9; }
a { color: var(--seal); text-underline-offset: 3px; }
a:hover { color: #7d2119; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }
h1, h2, h3 { font-family: var(--brush); font-weight: 600; line-height: 1.25; letter-spacing: .02em; }
h2 { font-size: 30px; margin: 0 0 22px; }
h3 { font-size: 21px; margin: 0 0 6px; }

/* header: a band of night ink */
.top { background: var(--night); color: #e8dcc0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.brand { color: #e8dcc0; text-decoration: none; font: 600 24px var(--brush); letter-spacing: .08em; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: #d9cba8; text-decoration: none; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; }
.go { display: inline-block; background: var(--seal); color: #fbf3e2 !important; text-decoration: none; padding: 7px 18px; border: 2px solid #5e1a14; border-radius: 3px; font-family: var(--brush); letter-spacing: .1em; }
.go:hover { background: #8f2a23; }
.go.big { font-size: 22px; padding: 12px 34px; }

/* the hero and the game */
.hero { padding: 40px 0 26px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 10px; letter-spacing: .06em; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 46em; margin: 0 0 24px; }
.stage { aspect-ratio: 1280 / 760; background: var(--night); border: 6px solid var(--night); box-shadow: 0 0 0 1px var(--gold), 0 14px 30px rgba(29, 35, 31, .28); }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
/* a phone held upright gets a tall box: the game has its own portrait layout */
@media (max-aspect-ratio: 1/1) { .stage { aspect-ratio: auto; height: min(78svh, 900px); } }
.hint { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.hint span { flex: 1 1 260px; }
.full { order: 2; background: var(--night); color: #e8dcc0 !important; text-decoration: none; border: 1px solid var(--gold); padding: 5px 14px; font: 14px var(--serif); }
.full:hover { background: #24312c; }

/* sections */
section { padding: 46px 0; }
.shots { border-top: 1px solid var(--rule); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
figure { margin: 0; }
figure img { border: 4px solid var(--night); }
figcaption { padding-top: 14px; }
figcaption p { margin: 0; color: var(--ink-soft); }
.road { background: var(--paper-deep); }
.road dl { margin: 0; display: grid; gap: 0; }
.road dl > div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.road dl > div:first-child { border-top: 1px solid var(--rule); }
.road dt { font: 600 19px var(--brush); }
.road dd { margin: 0; color: var(--ink-soft); }
.more { margin: 20px 0 0; }
.faq h3 { margin-top: 26px; }
.faq p { margin: 0; color: var(--ink-soft); max-width: 46em; }
.cta { text-align: center; border-top: 1px solid var(--rule); }
.cta p { font: 600 24px var(--brush); margin: 0 0 16px; }

/* arts, paths and tips */
.sublead { color: var(--ink-soft); max-width: 46em; margin: -10px 0 20px; }
.gap { margin-top: 44px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px; margin: 0; }
.cards > div { border-top: 2px solid var(--night); padding-top: 10px; }
.cards dt { font: 600 20px var(--brush); }
.cards dd { margin: 4px 0 0; color: var(--ink-soft); }
.tips ol { margin: 0; padding-left: 1.4em; max-width: 50em; }
.tips li { margin: 0 0 10px; padding-left: 4px; }
.tips li::marker { color: var(--seal); font-family: var(--brush); font-weight: 600; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* text pages */
.doc main { padding-top: 40px; }
article h1 { font-size: 44px; margin: 0 0 12px; }
article h2 { font-size: 25px; margin: 34px 0 8px; }
article p { margin: 0 0 12px; }
.updated { color: var(--ink-soft); font-size: 14px; }
.keys { border-collapse: collapse; width: 100%; margin: 6px 0 16px; }
.keys th, .keys td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); font-weight: normal; vertical-align: top; }
.keys th { width: 34%; white-space: nowrap; }
kbd { font: 14px/1 var(--serif); background: #fbf6ea; border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 4px; padding: 3px 8px; }
.lost { text-align: center; padding: 80px 0; }

.foot { background: var(--night); color: #a99d80; font-size: 14px; padding: 26px 0; margin-top: 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: #d9cba8; }

@media (max-width: 720px) {
  .top nav { gap: 14px; }
  .top nav a:not(.go) { font-size: 14px; }
  .hero { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .road dl > div { grid-template-columns: 1fr; gap: 4px; }
  h2 { font-size: 26px; }
}

/* changelog */
.release { padding: 0; border-top: 1px solid var(--rule); margin-top: 26px; }
.release h2 { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 6px; }
.release h2 span { font-size: 26px; }
.release time { font: 15px var(--serif); color: var(--ink-soft); }
.release ul { margin: 0; padding-left: 1.3em; }
.release li { margin: 0 0 6px; }

/* ask the maker, under the FAQ */
.ask { border-top: 1px solid var(--rule); background: var(--paper-deep); }
.askform textarea, .askform input[type='email'] { display: block; box-sizing: border-box; width: 100%; margin: 0 0 12px; padding: 10px 12px; font: 16px var(--serif); color: var(--ink); background: #fbf6ea; border: 1px solid var(--rule); border-radius: 4px; }
.askform textarea { height: 140px; resize: vertical; }
.askrow { display: flex; align-items: center; gap: 16px; margin: 0; }
.askrow button { background: var(--seal); color: #fbf3e2; border: 2px solid #5e1a14; border-radius: 3px; padding: 7px 26px; font: 18px var(--brush); letter-spacing: .1em; cursor: pointer; }
.askrow button:disabled { opacity: .6; cursor: default; }
.askmsg { color: var(--ink-soft); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.howimg { margin: 6px 0 22px; }
.howimg img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .25); }
