/* The download site of RongLen: three plain pages (download, help, not found). No script.
   Colours and type are the same as the game's own pages (src/styles/app.css), so the site and the
   program read as one thing. Fonts are served from this site: nothing is fetched from anywhere else. */

@font-face { font-family: "Mitr"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/mitr-thai-600-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Mitr"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/mitr-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/bai-jamjuree-thai-400-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/bai-jamjuree-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/bai-jamjuree-thai-600-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/bai-jamjuree-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #101012;        /* page */
  --ink-2: #1a1a1d;      /* raised surface */
  --ink-3: #2b2b30;      /* borders of controls */
  --paper: #f6f3ec;      /* text */
  --dim: #a9a59c;        /* secondary text */
  --acc: #ffd338;        /* the one thing to press on a page; text on it is ink */
  --line: #2f2f35;
  --font-display: "Mitr", "Noto Sans Thai", "Leelawadee UI", "Thonburi", sans-serif;
  --font-body: "Bai Jamjuree", "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.75; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.3; text-wrap: balance; }
p, ol, ul, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--paper); text-underline-offset: 3px; }
a:hover { color: var(--acc); }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
code { padding: 1px 6px; border-radius: 5px; background: var(--ink-2); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans Thai", monospace; font-size: 0.9em; overflow-wrap: anywhere; }

.skip { position: absolute; left: 16px; top: -60px; padding: 8px 14px; border-radius: 8px; background: var(--acc); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- top ---- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 15px; }
.nav a { display: inline-block; padding: 6px 0; color: var(--dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- the download ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 56px 0 48px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.25; }
.eyebrow { margin-bottom: 10px; color: var(--dim); font-size: 15px; }
.lead { margin-top: 16px; max-width: 52ch; font-size: 17px; }
.get { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--ink-3); border-radius: 10px; background: transparent; color: var(--paper);
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.btn:hover { border-color: var(--dim); color: var(--paper); }
.btn.primary { min-height: 58px; padding: 12px 28px; border-color: var(--acc); border-radius: 12px; background: var(--acc); color: var(--ink); font-family: var(--font-display); font-size: 19px; }
.btn.primary:hover { filter: brightness(1.08); color: var(--ink); }
.btn svg { flex: none; }
.meta { color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.meta b { color: var(--paper); }
.try { font-size: 15px; }
.shot { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); overflow: hidden; }
.shot figcaption { padding: 8px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; line-height: 1.6; }

/* ---- sections ---- */
.sec { padding: 40px 0; border-top: 1px solid var(--line); }
.sec > h2 { font-size: 25px; }
.sec > h2 + p { margin-top: 10px; max-width: 68ch; }
.sec p { max-width: 70ch; }
.note { margin-top: 18px; padding: 2px 0 2px 14px; border-left: 3px solid var(--acc); max-width: 70ch; font-size: 15px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.steps h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; }
.steps h3::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--acc); color: var(--ink); font-family: var(--font-display); font-size: 18px; line-height: 1;
}
.steps p { font-size: 15px; line-height: 1.7; }
.steps .shot { margin-top: auto; border-radius: 8px; background: var(--ink); }
.more { margin-top: 20px; }

.need { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); margin-top: 20px; max-width: 880px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.need dt, .need dd { padding: 12px 16px; border-top: 1px solid var(--line); }
.need dt { font-weight: 600; }
.need dd { color: var(--dim); }
.need dt:first-of-type, .need dt:first-of-type + dd { border-top: 0; }

.list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-left: 22px; max-width: 70ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

details { margin-top: 18px; max-width: 880px; border: 1px solid var(--line); border-radius: 10px; }
summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
summary:hover { color: var(--acc); }
details > div { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; font-size: 15px; }
.hash { display: block; padding: 10px 12px; border-radius: 8px; background: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ---- help ---- */
.page { padding: 40px 0 16px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); }
.page > p { margin-top: 12px; max-width: 70ch; }
.toc { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; padding: 16px 20px 16px 40px; max-width: 880px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); font-size: 15px; }
.fix { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.fix:first-of-type { margin-top: 32px; }
.fix h2 { font-size: 21px; max-width: 34em; }
.fix h2 code { font-family: inherit; font-size: inherit; padding: 0 6px; }
.fix p, .fix ol, .fix ul { margin-top: 12px; max-width: 70ch; }
.fix ol, .fix ul { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; }
.fix .shot { margin-top: 16px; max-width: 728px; }
.fix:target h2 { color: var(--acc); }

/* ---- foot ---- */
.foot { margin-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; line-height: 1.7; }
.foot .wrap { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; padding-bottom: 40px; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--paper); }

.lost { padding: 96px 0; }
.lost h1 { font-size: 34px; }
.lost p { margin-top: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px 0 36px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .shot { margin-top: 4px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .get { align-items: stretch; }
  .btn.primary { width: 100%; }
  .need { grid-template-columns: minmax(0, 1fr); }
  .need dd { border-top: 0; padding-top: 0; }
  .need dt:first-of-type + dd { border-top: 0; }
  .sec { padding: 32px 0; }
}
