/* Shio Labs: one word, set like a dictionary entry beside its glyph. The glyph is filled to a
   water line that rises and falls very slowly, as the mark is. One dark look, on purpose. */
@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2-variations"), url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Shio Serif"; src: url(/fonts/noto-serif-jp-shio.woff2) format("woff2"); font-weight: 300; font-display: block; unicode-range: U+6642, U+6CE2, U+6F6E; }

@property --level { syntax: "<percentage>"; inherits: false; initial-value: 56%; }

:root {
  --bg: #0b0d12; --fg: #dfe3ea; --mid: #9aa2b2; --dim: #5d6576; --deep: #1c212b; --rule: rgb(223 227 234 / 0.09);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Shio Serif", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans);
  display: grid; grid-template-rows: auto 1fr auto;
  padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px));
  background-image: radial-gradient(ellipse 80% 60% at 30% 70%, rgb(69 87 122 / 0.16), transparent 70%);
}
[lang="ja"] { font-family: var(--serif); font-weight: 300; }
a { color: inherit; }

header { padding-top: max(28px, env(safe-area-inset-top, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mid); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; min-height: 44px; }
.brand:hover { color: var(--fg); }

main {
  width: 100%; max-width: 1080px; margin-inline: auto;
  display: grid; justify-items: center; align-content: center;
}

/* The glyph: dark above the water line, light below it; the line moves over half a minute. */
.glyph {
  font-size: clamp(140px, 23vw, 300px); line-height: 1; text-align: center; user-select: none;
  background: linear-gradient(to bottom, var(--deep) 0 var(--level), var(--fg) var(--level) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tide 16s ease-in-out infinite alternate;
}
@keyframes tide { from { --level: 50%; } to { --level: 62%; } }
@media (prefers-reduced-motion: reduce) { .glyph { animation: none; } }

.entry { width: 100%; max-width: 30em; }
h1 { margin: 0; display: flex; align-items: baseline; gap: 14px; font-weight: 400; }
h1 [lang="ja"] { font-size: 30px; }
.roman { font-size: 30px; letter-spacing: -0.01em; }
.kind { margin: 6px 0 22px; color: var(--dim); font-style: italic; font-size: 14px; }
ol { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 10px; color: var(--mid); }
ol li::marker { color: var(--dim); font-size: 13px; }
.note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--dim); font-size: 14px; }
.note [lang="ja"] { color: var(--mid); }

nav { display: flex; gap: 26px; margin-top: 34px; }
nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--mid); min-height: 44px; transition: color 0.2s ease-out; }
nav a span { border-bottom: 1px solid transparent; transition: border-color 0.2s ease-out; }
nav a:hover, nav a:focus-visible { color: var(--fg); }
nav a:hover span { border-color: var(--rule); }
a:focus-visible { outline: 1px solid var(--dim); outline-offset: 4px; border-radius: 4px; }

footer { padding-block: 24px max(28px, env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 12px; letter-spacing: 0.04em; }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; align-content: center; }
  .glyph { font-size: clamp(120px, 36vw, 180px); }
  .entry { justify-self: center; }
}

.missing { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
.missing h1 { font-size: 15px; color: var(--mid); }
.missing a { color: var(--dim); }
