@charset "utf-8";
/* nhiro.org living-layer stylesheet (2026).
   Applies to the profile / story / history pages only.
   Archive directories keep their original era styles on purpose. */

:root {
  --bg: #ffffff;
  --fg: #24292f;
  --muted: #667085;
  --link: #0b5cad;
  --rule: #d8dee4;
  --quote: #57606a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #dde2e8;
    --muted: #98a2b3;
    --link: #8ab4f8;
    --rule: #343b46;
    --quote: #aeb8c4;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  max-width: 42rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.4;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}

h1 {
  font-size: 1.6rem;
  margin-top: 0.4em;
}

h2 {
  font-size: 1.25rem;
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0.8em 0;
}

ul,
ol {
  margin: 0.8em 0;
  padding-left: 1.5em;
}

li {
  margin: 0.4em 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

blockquote {
  margin: 1em 0;
  padding: 0.2em 1.2em;
  border-left: 3px solid var(--rule);
  color: var(--quote);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0 1em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 0.5em;
  padding-left: 1.5em;
}

.indent {
  padding-left: 1em;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}

#footer {
  color: var(--muted);
  font-size: 0.875rem;
}

.face {
  float: left;
  margin: 0.3em 1em 0.5em 0;
  border-radius: 6px;
}

@media (max-width: 480px) {
  .face {
    width: 128px;
    height: auto;
  }
}

figure {
  margin: 1.5em 0;
}

figcaption {
  margin-top: 0.5em;
}
