/* Kūhaku website, the frame every page shares: type, paper and ink, the top row and the footer.
   The rules are those of "Kūhaku, the design of blank space" (/design/). */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root { --bg:#f7f4f1; --fg:#111111; --muted:#666666; --faint:rgba(17,17,17,.08); --rule:rgba(17,17,17,.18); --accent:#e0301e; --frame:#ffffff;
        --ease:cubic-bezier(.2,.7,.2,1); color-scheme: light; }
html.night { --bg:#121212; --fg:#ececec; --muted:#9a9a9a; --faint:rgba(236,236,236,.09); --rule:rgba(236,236,236,.2); --accent:#f0705a; --frame:#1b1b1b;
             color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Inter", system-ui, sans-serif; font-weight: 300;
       -webkit-font-smoothing: antialiased; transition: background .6s, color .6s; }
a { color: inherit; }
/* Emphasis is one step darker or one step larger, never bold and never red. */
em { font-style: normal; color: var(--fg); font-weight: 400; }
strong, b { font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

/* --- the top row, as on the home screen: the red line on the left, then a few words; Download and day or night on the right.
   It is the only bar on the page. About seven things, all grey at rest, ink where you are. --- */
.top { position: fixed; inset: 0 0 auto 0; height: 76px; display: flex; align-items: center; gap: 34px;
       padding: 0 clamp(20px, 4vw, 56px); z-index: 10; background: var(--bg); transition: background .6s; }
.top svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.status { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
/* Day, night or auto: the Choice of the design, a word and its square for each option; one square is filled. Never red. */
.theme { display: flex; gap: 16px; }
.opt { font: inherit; font-size: 13px; letter-spacing: .02em; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted);
       display: inline-flex; align-items: center; gap: .55em; transition: color .2s; }
.opt::after { content: ''; width: .8em; height: .8em; box-sizing: border-box; border: 1.5px solid var(--muted); transition: background .2s, border-color .2s; }
.opt:hover, .opt[aria-pressed="true"] { color: var(--fg); }
.opt[aria-pressed="true"]::after { background: var(--fg); border-color: var(--fg); }
/* Marks drawn elsewhere on the site: the hot stroke turns red only where that app is, or under the pointer. */
.mark.on .hot, .mark:hover .hot, .app:hover .hot { stroke: var(--accent); }

/* The name, as the design draws it: Kūhaku in ink, and the one red is its macron (the seal: "yours"). */
.wordmark { display: inline-block; font-size: 17px; font-weight: 300; letter-spacing: -.01em; line-height: 1; color: var(--fg); text-decoration: none; }
.wordmark .u { position: relative; display: inline-block; line-height: 1; }
.wordmark .u::after { content: 'ū'; position: absolute; left: 0; top: 0; line-height: 1; color: var(--accent); clip-path: inset(0 0 66% 0); }
.top .home { font-size: 17px; }

/* Words beside the marks. The page you are on is ink; the others are grey. */
.words { display: flex; gap: 22px; font-size: 13px; letter-spacing: .02em; }
.words a { color: var(--muted); text-decoration: none; transition: color .2s; }
.words a:hover, .words a[aria-current="page"] { color: var(--fg); }
@media (max-width: 860px) { .words { display: none; } }
@media (max-width: 520px) { .top { gap: 16px; } .theme { gap: 12px; } .status { gap: 16px; } }
/* Download in the top row is an ink word: the ink block belongs to the one action of each page. */
.topdl { color: var(--fg); text-decoration: none; letter-spacing: .02em; }
.topdl:hover { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.topdl .get-line { display: none; }

footer { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 40px 20px 50px;
         border-top: 1px solid var(--faint); color: var(--muted); font-size: 13px; letter-spacing: .02em; }
footer a { color: var(--fg); text-decoration: none; }
footer a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
footer .wordmark { font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
