/* FLJP API public site.
   Identity comes from the operator, "FLJP🐟 ぶり" (yellowtail): the steel-blue back, the silver belly and the
   single yellow lateral line. The yellow line is the one bold device (under the masthead); headings use the
   pixel face DotGothic16 for the game context, and everything people read is in the UD family. */
:root {
  --belly: #f3f5f7;     /* page */
  --paper: #ffffff;     /* raised surfaces */
  --back: #1e3a56;      /* steel blue back of the fish */
  --line: #f2c21b;      /* the yellow lateral line */
  --ink: #102030;
  --ink-2: #44525f;
  --ink-3: #5f6c78;
  --rule: #d4dbe2;
  --link: #1d5c99;
  --term: #0f2133;
  --term-ink: #e6edf4;
  --term-dim: #93a6b8;
  --display: "DotGothic16", "BIZ UDPGothic", sans-serif;
  --body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --code: "BIZ UDGothic", ui-monospace, Consolas, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --belly: #0d1924; --paper: #13222f; --back: #0a1520; --ink: #e8eef3; --ink-2: #bfccd7; --ink-3: #93a3b1;
    --rule: #24384a; --link: #8cc0f0; --term: #08121b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--belly); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.8; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--line); color: #102030; }
code, pre { font-family: var(--code); }
.wrap { display: block; width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* masthead: the steel-blue back with the yellow lateral line underneath */
.disclaimer { margin: 0; padding: 7px 0; background: var(--belly); color: var(--ink-3); font-size: 12.5px; line-height: 1.6; border-bottom: 1px solid var(--rule); }
.masthead { background: var(--back); color: #fff; border-bottom: 6px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; min-height: 64px; }
.wordmark { font-family: var(--display); font-size: 24px; color: #fff; text-decoration: none; letter-spacing: 0.04em; }
.masthead ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 14.5px; }
.masthead nav a { color: #dbe6f0; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: #fff; border-bottom-color: rgb(255 255 255 / 0.5); }
.masthead nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--line); }

main { display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h3 { font-size: 18px; font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 4px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--back); border-color: var(--back); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--line); border-color: var(--line); color: #102030; } }
.btn:hover { filter: brightness(1.1); }

/* ---------- home ---------- */
.intro { padding: 64px 0 72px; }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.intro h1 { font-size: clamp(56px, 8.5vw, 104px); letter-spacing: 0.02em; line-height: 1; margin-bottom: 24px; }
.lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.7; margin: 0 0 28px; font-weight: 700; max-width: 22em; }
.facts { display: grid; grid-template-columns: repeat(3, max-content); gap: 6px 32px; margin: 0 0 32px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 18px; font-weight: 700; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.intro-note { margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }

.term { background: var(--term); color: var(--term-ink); border-radius: 6px; overflow: hidden; font-size: 13.5px; }
.term-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.1); font-size: 13px; color: var(--term-dim); }
.term-bar label { display: flex; align-items: center; gap: 8px; }
.term-bar select { font: inherit; color: var(--term-ink); background: transparent; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 4px; padding: 3px 6px; }
.term-bar select option { color: #102030; }
.term-body { padding: 18px 18px 20px; min-height: 320px; }
.term-cmd { margin: 0 0 12px; font-family: var(--code); overflow-wrap: anywhere; }
.term-cmd .prompt { color: var(--line); user-select: none; }
.term-status { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--term-dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--term-dim); flex: none; }
.dot.ok { background: #46d18c; } .dot.bad { background: #ff8080; }
.term-out { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: #c9d6e2; max-height: 340px; overflow: auto; }
.term-out .k { color: #8fc3f5; } .term-out .s { color: #f2d36b; } .term-out .n { color: #9ee6b8; } .term-out .b { color: #ffa3a3; }
.term-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 13px; color: var(--term-dim); }
.term-foot a { color: var(--term-ink); }

.band { padding: 64px 0; border-top: 1px solid var(--rule); }
.band:nth-of-type(even) { background: var(--paper); }
.band h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; }
.band-lead { margin: 0 0 28px; color: var(--ink-2); max-width: 38em; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.band-head .band-lead { margin: 0; }

.scroll-x { overflow-x: auto; }
.endpoints { width: 100%; border-collapse: collapse; }
.endpoints th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 400; padding: 0 12px 8px; border-bottom: 2px solid var(--ink); }
.endpoints td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.endpoints td:first-child { width: 46%; }
.endpoints code { font-size: 14.5px; overflow-wrap: anywhere; }
.endpoints .try { font-weight: 700; white-space: nowrap; }

.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; }
.uses div { padding: 18px 0; border-top: 1px solid var(--rule); }
.uses h3 { margin-bottom: 4px; }
.uses p { margin: 0; color: var(--ink-2); }

.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news li { border-bottom: 1px solid var(--rule); }
.news summary, .news .plain { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 15px 2px; }
.news summary { cursor: pointer; list-style: none; }
.news summary::-webkit-details-marker { display: none; }
.news time { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.news .title { font-weight: 700; }
.news .more { color: var(--link); font-size: 14px; }
.news details[open] .more { color: var(--ink-3); }
.news .body { margin: 0; padding: 0 2px 18px calc(7em + 18px); color: var(--ink-2); white-space: pre-wrap; }
.empty { color: var(--ink-3); margin: 0; }

/* ---------- reading pages (terms, privacy, about) ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 40em); gap: 56px; align-items: start; }
.doc-title h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.doc-title p { margin: 0 0 32px; color: var(--ink-3); font-size: 14px; }
.toc { position: sticky; top: 24px; font-size: 14px; }
.toc p { margin: 0 0 8px; color: var(--ink-3); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 4px 12px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--line); }
.prose section { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 24px; }
.prose h2 { font-size: 22px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 1.4em; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- contact ---------- */
.form { display: grid; gap: 22px; max-width: 40em; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .opt { color: var(--ink-3); font-weight: 400; font-size: 14px; margin-left: 6px; }
.hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.input, .select, .textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #9aa8b5; border-radius: 4px; padding: 10px 12px; width: 100%; }
.textarea { min-height: 220px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--line); outline-offset: 1px; border-color: var(--back); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 4px; border: 2px solid; margin: 0 0 24px; max-width: 40em; }
.alert-ok { border-color: #2e9e64; background: color-mix(in srgb, #2e9e64 10%, var(--paper)); }
.alert-bad { border-color: #c0392b; background: color-mix(in srgb, #c0392b 9%, var(--paper)); }
.alert p { margin: 0; }
.alert strong { display: block; margin-bottom: 2px; }
.counter { font-size: 13px; color: var(--ink-3); text-align: right; margin: 0; font-variant-numeric: tabular-nums; }

/* footer */
.sitefoot { background: var(--back); color: #c7d4df; border-top: 6px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.sitefoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.sitefoot p { margin: 0; }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sitefoot a { color: #fff; }

@media (max-width: 900px) {
  .intro { padding: 44px 0 56px; }
  .intro .wrap, .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .band { padding: 52px 0; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, max-content); }
  .news summary, .news .plain { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .news time { grid-column: 1 / -1; }
  .news .body { padding-left: 2px; }
  .endpoints td:first-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
