@font-face{font-family:"Nami Serif";src:url(/fonts/nami-serif-400.23817ff8.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Nami Serif";src:url(/fonts/nami-serif-600.d0a83441.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
/* heidanami.com: one stylesheet for every page (build spec §7-§10).
   First working version by the engine builder; the front-end builder refines look and motion.
   No inline styles anywhere (CSP style-src 'self'): pages change look only through classes
   and data-state, and draw.js only through classes and CSSOM. */

/* ---------- 1. Tokens (§7.1) ---------- */
:root {
  color-scheme: only light;
  --snow: #F3F2EE;
  --ink: #1F3A33;
  --ink-soft: #4A5D57;
  --gold: #B08D4A;
  --gold-hi: #E2CC94;
  --gold-lo: #8C6A2F;
  --carve: #5E4A22;
  --birch: #DCDDD8;
  --velvet: #1F3A33;
  --velvet-hi: #294A40;
  --velvet-lo: #172C26;
  --rule: #D5D6D0;
  --card: #F8F7F4;
  --stone-line: #868880;
  --btn-hover: #172C27;
  --btn-busy: #3A524B;

  --font: "Nami Serif", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho",
    "Noto Serif CJK JP", "Noto Serif JP", "Source Han Serif JP", serif;

  --gutter: 20px;
  --column: 34rem;
  --wide: 1040px;
}

@media (max-width: 374.98px) {
  :root { --gutter: 16px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (prefers-contrast: more) {
  :root { --ink-soft: #1F3A33; }
}

/* ---------- 2. Base and type (§7.2) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--snow);
  /* Visit counter (W7.3 review A30): where scrollbars always take room (Windows), the
     scrollbar is there whether or not the page scrolls, so the page never moves sideways
     when the result makes it taller (that move would be counted, sized by the rune's text).
     Phones and overlay scrollbars show no difference. (scrollbar-gutter: stable did not
     hold the room in the test's simulated scrollbar, so it is not relied on.) */
  overflow-y: scroll;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .03em;
  line-break: strict;
  overflow-wrap: anywhere;
  text-autospace: normal;
  text-spacing-trim: normal;
  text-wrap: pretty;
  padding-bottom: env(safe-area-max-inset-bottom, env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, h3, .theme {
  font-feature-settings: "palt";
  text-wrap: balance;
  word-break: auto-phrase;
}

/* Short lines (centred notes, captions, the lead, the footer's AI line): balanced lines and,
   in Chrome, breaks at Japanese phrase boundaries (auto-phrase; others wrap normally). */
.lead,
.under-button,
.again-note,
.wyrd-note,
.footer-ai,
p.centered {
  text-wrap: balance;
  word-break: auto-phrase;
}

.heritage { word-break: auto-phrase; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.centered { text-align: center; }

/* ---------- 3. Layout (§7.3) ---------- */
.header-inner,
.footer-inner,
.main {
  width: 100%;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.header-inner,
.footer-inner { max-width: calc(var(--wide) + 2 * var(--gutter)); }

.main {
  flex: 1 0 auto;
  max-width: calc(var(--column) + 2 * var(--gutter));
}

/* ---------- 4. Skip link, header (§7.4) ---------- */
.skip-link {
  position: absolute;
  left: max(8px, env(safe-area-inset-left));
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--snow);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: .875rem;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner {
  display: flex;
  flex-wrap: wrap; /* only with very large text: the nav link moves under the name */
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: 60px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: 12px;
}

.brand {
  flex: 1 1 10rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--snow), 0 0 0 2px var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  white-space: nowrap;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .06em;
}

.header-nav { flex: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: .875rem;
  white-space: nowrap;
}

/* ---------- 5. Buttons and targets (§7.6) ---------- */
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  max-width: 100%;
  padding: 6px 28px;
  text-align: center;
  line-height: 1.4;
  border-radius: 8px; /* W7.1 review L6: a quiet small radius instead of an app-like pill */
  font-family: inherit;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  min-height: 52px;
  min-width: min(13.5rem, 100%); /* holds any label of 8 characters, so the busy label never changes the width (L7) */
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--snow);
  font-size: 1.0625rem;
  font-weight: 600;
}

.btn-primary:active { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-primary[aria-disabled="true"],
.btn-primary[aria-disabled="true"]:hover { background: var(--btn-busy); border-color: var(--btn-busy); cursor: progress; }

.btn-secondary {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 400;
}

.btn-secondary:active { background: var(--card); }

/* Hover only where a pointer can hover (no sticky hover after a tap on phones). */
@media (hover: hover) {
  .btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
  .btn-secondary:hover { background: var(--card); }
}

/* ---------- 6. Home: intro (§8.1) ---------- */
.intro {
  padding-top: 24px;
  text-align: center;
}

.home-h1 {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .06em;
}

/* The lead sits right under the title (decision 98 (4), 2026-10-29: no AI line at the top). */
.lead {
  max-width: 26em;
  margin: 12px auto 0;
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------- 7. Home: stage, cloth and stone (§8.2, §9) ---------- */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.cloth {
  position: relative;
  flex: none;
  width: clamp(13rem, min(78vw, calc(100vh - 22.5rem)), 18.75rem);
  width: clamp(13rem, min(78vw, calc(100svh - 22.5rem)), 18.75rem);
  max-width: 100%; /* large text settings make 13rem wider than a phone */
  aspect-ratio: 1;
}

.cloth-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stone {
  position: absolute;
  left: 19%;
  top: 12.8%;
  width: 62%;
  height: 74.4%;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* The stone looks clickable only when draw.js has wired it (it adds .is-ready to the
   stage), and only while idle: no pointer or lift without JavaScript (F6). */
.stage.is-ready[data-state="idle"] .stone { cursor: pointer; }

.stone-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stone-shadow,
.stone-body,
.flip,
.rim,
.face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stone-shadow {
  transform-origin: 54% 54%;
  transition: transform 160ms cubic-bezier(.2, .7, .3, 1), opacity 160ms cubic-bezier(.2, .7, .3, 1);
}

.stone-body {
  transition: transform 160ms cubic-bezier(.2, .7, .3, 1);
}

.stone.is-lifted .stone-body { transform: translateY(-6px) scale(1.03); }
.stone.is-lifted .stone-shadow { transform: scale(1.1); opacity: .6; }

.stage[data-state="returning"] .stone-body,
.stage[data-state="returning"] .stone-shadow { transition-duration: 120ms; }

/* The single-element turn (§10.1): rotateY 0 → 90, swap faces, −90 → 0.
   No preserve-3d and no backface-visibility (webapp_mobile.md R5). */
.flip {
  --ry: 0deg;
  transform: perspective(900px) rotateY(var(--ry));
}

.flip.turn-in {
  --ry: 90deg;
  transition: transform 400ms cubic-bezier(.55, .05, .85, .35);
}

.flip.turn-swap {
  --ry: -90deg;
  transition: none;
}

.flip.turn-out {
  --ry: 0deg;
  transition: transform 400ms cubic-bezier(.15, .65, .45, 1);
}

.stage[data-state="busy"] .flip,
.stage[data-state="returning"] .flip { will-change: transform; }

/* The stone's thickness (§9.2 item 2). At rest the side band sits 5 units below the top
   surface (5/240 of the height). During the turn it slides out, with the turn's own timing,
   on the side that turns toward the viewer (left while turning 0 → 90°, right while coming
   back from −90°), so the flat face reads as a pebble with an edge. It is a separate
   element, so this moves a layer and never repaints the textured faces. */
.rim { transform: translate(0, 2.0833%); }

.flip.turn-in .rim {
  transform: translate(-7%, 2.0833%);
  transition: transform 400ms cubic-bezier(.55, .05, .85, .35);
}

.flip.turn-swap .rim {
  transform: translate(7%, 2.0833%);
  transition: none;
}

.flip.turn-out .rim {
  transform: translate(0, 2.0833%);
  transition: transform 400ms cubic-bezier(.15, .65, .45, 1);
}

.stage[data-state="returning"] .flip.turn-in,
.stage[data-state="returning"] .flip.turn-out,
.stage[data-state="returning"] .flip.turn-in .rim,
.stage[data-state="returning"] .flip.turn-out .rim { transition-duration: 350ms; }

.stage[data-state="busy"] .rim,
.stage[data-state="returning"] .rim { will-change: transform; }

.rim-front { opacity: 0; }
.flip.show-front .rim-front { opacity: 1; }
.flip.show-front .rim-back { opacity: 0; }

.face-front { opacity: 0; }
.flip.show-front .face-front { opacity: 1; }
.flip.show-front .face-back { opacity: 0; }

/* Reduced motion (§10.2): the two faces cross-fade, nothing moves. */
.stage.is-reduced .face,
.stage.is-reduced .rim { transition: opacity 200ms linear; }

/* Test frames and instant states: no transitions at all. */
.is-instant,
.is-instant * { transition: none !important; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stage.is-ready[data-state="idle"] .stone:hover .stone-body {
    transform: translateY(-2px);
    transition: transform 200ms ease-out;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stage.is-ready[data-state="idle"] .stone:active .stone-body {
    transform: scale(.985);
    transition: transform 100ms ease-out;
  }
}

/* ---------- 8. The carved rune (§9.4) ---------- */
/* draw.js builds one group per layer (bottom → top: lip, cut, floor, edge, gold, glint),
   each holding one polyline per stroke (data-s 0, 1, 2). Opacity sits on the layer
   group, so strokes that meet do not double up where they overlap. */

/* Visit counter (W7.3 review A30): Cloudflare's beacon names the element a visitor taps.
   The carved rune, the small symbol in the name line and the Wyrd note exist only for some
   runes, so a tap passes through them to an element every rune has (the stone's face, the
   name line, the result's head). They look exactly the same. */
.rune,
.rune-mark,
.wyrd-note { pointer-events: none; }
.rune polyline,
.rune-mark polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rune .l-lip { stroke: #FBFAF5; opacity: .85; stroke-width: 6.6; }
.rune .l-cut { stroke: #2E3B34; opacity: .55; stroke-width: 6.4; }
.rune .l-floor { stroke: #8E9188; stroke-width: 5.6; }
.rune .l-edge { stroke: var(--carve); stroke-width: 6; }
.rune .l-gold { stroke-width: 3.6; } /* stroke="url(#rune-gold)" is an SVG attribute set by draw.js */
.rune .l-glint { stroke: var(--gold-hi); stroke-width: 1.3; opacity: 0; }

/* Edge and gold flow in by dash (pathLength="1"); "1 2" leaves no dot at the far end. */
.rune .l-edge polyline,
.rune .l-gold polyline {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  opacity: 0;
}

.rune .l-edge .is-carving {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 420ms cubic-bezier(.45, 0, .2, 1);
}

.rune .l-gold .is-carving {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 420ms cubic-bezier(.45, 0, .2, 1) 80ms, opacity 0ms linear 80ms;
}

.rune.is-glinting .l-glint {
  opacity: .7;
  transition: opacity 240ms ease-out;
}

/* The final look is set statically, never dependent on an animation finishing, nor on
   the browser's dash support (pathLength on polylines): no dash at all once carved (F4). */
.rune.carved .l-edge polyline,
.rune.carved .l-gold polyline {
  opacity: 1;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

.rune.carved .l-glint { opacity: .7; }

/* ---------- 9. Under the stone ---------- */
.draw-button { margin-top: 20px; }

.under-button,
.noscript-note {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
}

.under-button { transition: opacity 150ms linear; }
.under-button.is-fading { opacity: 0; }

/* ---------- 10. Result (§8.4) ---------- */
.result {
  padding-top: 16px;
  text-align: center;
}

.rune-name {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 .3em;
  border-radius: 6px;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
}

/* Focus arrives here by script after the reveal: a ring only for keyboard users, hugging
   the name (fit-content) instead of a box across the column. */
.rune-name:focus { outline: none; }
.rune-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.rune-mark {
  display: inline-block;
  vertical-align: -0.14em;
  margin-right: .3em;
}

.rune-mark:empty { display: none; } /* Wyrd: no symbol */

.rune-mark svg {
  display: inline-block;
  width: .62em;
  height: 1.04em;
}

.rune-mark polyline { stroke: var(--ink); stroke-width: 8; }

.rune-la {
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.wyrd-note {
  margin-top: 4px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.theme {
  margin-top: 8px;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: .04em;
}

.gold-rule {
  width: 40px;
  height: 1px;
  margin: 20px auto;
  background: var(--gold);
}

/* The rune text: one block, set solid with even edges (Japanese 両端揃え); the last line
   stays at the start. */
.body {
  font-size: 1.0625rem;
  line-height: 2;
  text-align: justify;
  text-align-last: start;
}

.about-text {
  margin-top: 28px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: .875rem;
  line-height: 1.85;
  text-align: left;
}

.about-text-label { font-weight: 600; letter-spacing: .06em; }
.about-text-body { color: var(--ink-soft); }

.about-text-more a,
.teaser-more a,
.rune-year-link a,
.page-links a,
.line-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.line-link {
  margin-top: 24px;
  font-size: .9375rem;
}

/* Decision 75 (2): the visible line that readings are personal. Quiet but not hidden: ink, not
   ink-soft; a short gold rule above it. */
.personal-line {
  margin-top: 24px;
  font-size: .875rem;
  line-height: 1.85;
  text-align: left;
}

.personal-line::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--gold);
}

.again { margin-top: 28px; }

.again-note {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Result reveal (§10.1): name and theme rise 6 px; the rest follows 100 ms later. */
.result-head {
  opacity: 0;
  transform: translateY(6px);
}

.result-rest { opacity: 0; }

.result.is-in .result-head {
  opacity: 1;
  transform: none;
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

.result.is-in .result-rest {
  opacity: 1;
  transition: opacity 360ms ease-out 100ms;
}

.result.is-in.is-reduced .result-head,
.result.is-in.is-reduced .result-rest {
  transform: none;
  transition: opacity 200ms linear;
}

.result.is-out {
  opacity: 0;
  transition: opacity 200ms linear;
}

/* Put back (§10.3): the faded result keeps its place until the stone is back. */
.result.is-gone { visibility: hidden; }

/* Visit counter (W7.3 review A30): while the result comes or goes, the page below it (the
   teaser and the footer) moves by the height of the rune's text. draw.js fades it out
   (html.is-moving) at the tap, makes sure it is hidden at the very moment it moves
   (html.is-moving-now, no transition), and fades it back in, with the reading's timing,
   once it has been drawn at its new place, so a browser never counts that move as a
   layout shift. Once faded it is also hidden, so its links cannot be tapped or tabbed to
   unseen; it shows again at once when it fades in. */
.teaser,
.site-footer { transition: opacity 360ms ease-out 100ms, visibility 0s; }
.is-moving .teaser,
.is-moving .site-footer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms linear, visibility 0s linear 150ms;
}
.is-moving-now .teaser,
.is-moving-now .site-footer {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

/* ---------- 11. Home teaser (§8.1 item 5) ---------- */
.teaser {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.teaser-h {
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
}

.teaser-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
}

.teaser-figure {
  flex: none;
  width: max(64px, 4rem); /* 64 px at default text; grows with larger text (A11Y-4) */
  text-align: center;
}

.teaser-avatar { margin: 0 auto; }

.teaser-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--snow), 0 0 0 2px var(--gold);
}

.heritage { font-size: .9375rem; line-height: 1.9; }

/* A quiet link that draw.js shows on its days (decision 329). is-off hides it with visibility,
   never display: its space stays, so showing it shifts nothing; without JavaScript it stays hidden. */
.rune-year-link {
  margin-top: 16px;
  font-size: .9375rem;
  text-align: center;
}

.rune-year-link.is-off { visibility: hidden; }

/* ---------- 12. Inner pages (§12-§14) ---------- */
.page { padding-bottom: 48px; }

.page-h1 {
  padding-top: 32px;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .06em;
}

.page-date {
  margin-top: 4px;
  font-size: .8125rem;
  color: var(--ink-soft);
}

.portrait {
  width: min(100%, 18.75rem);
  margin: 24px auto 0;
}

.portrait-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--snow), 0 0 0 2px var(--gold);
}

/* The caption wraps greedily (not balanced) at phrase boundaries: balance broke round 2's caption
   right after 「見て、」, so its first line read on its own; greedy breaks after 「関わってきた」 in the
   288-300 px figure (session 89 screenshots, 2026-10-29). Safari has no auto-phrase, so the box is
   22em wide: 21 characters fit (21 x 1.03em), 22 do not, and every browser breaks after 「関わってきた」
   (character 21) instead of splitting 「北欧」. text-wrap: wrap keeps Safari's pretty from moving it.
   Re-check the width if the caption's text changes (session 90, 2026-10-29). */
.portrait-caption {
  max-width: 22em;
  margin: 8px auto 0;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
  word-break: auto-phrase;
  text-wrap: wrap;
}

.prose { margin-top: 32px; }
.prose p + p { margin-top: 12px; }

.section { margin-top: 40px; }
.section p + p { margin-top: 12px; }
/* A quiet link after a list of steps keeps its own 24 px, so it never reads as one more step
   (W7.2 review). */
.section .line-link { margin-top: 24px; }

.section-h {
  margin-bottom: 12px;
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .06em;
}

.sub-h {
  margin: 20px 0 6px;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.25rem; /* 36 px at default text; rem so it grows with the numeral (A11Y-4) */
  counter-increment: step;
}

.steps li + li { margin-top: 12px; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .35em;
  width: 1.375rem;   /* 22 px at default text */
  height: 1.375rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.25rem; /* 20 px */
  text-align: center;
  letter-spacing: 0;
}

.note {
  margin-top: 16px;
  font-size: .875rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-actions {
  margin-top: 40px;
  text-align: center;
}

/* The about page's AI notice (decision 98 (11), 2026-10-29): small print at the page's foot, after
   the draw button and right above the footer, in the footer line's size and colour; its heading is
   a small label. A short gold rule (as above the personal line) marks it as the page's own note.
   The page then ends at the note (page-noted), so the footer's 48 px is the only gap below it.
   [2026-10-30, decision 100 (4): the label is regular (never an AI word in bold).] */
.page-noted { padding-bottom: 0; }

.page-note {
  margin-top: 56px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-note::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--gold);
}

.page-note-h {
  font-size: .8125rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .06em;
}

.page-note p { margin-top: 2px; }

.page-links { margin-top: 16px; }

.summary-card {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.summary-h {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: .06em;
}

.summary-list,
.link-list {
  margin-top: 8px;
  padding-left: 1.2em;
}

.summary-list li + li,
.link-list li + li { margin-top: 6px; }

.toc { margin-top: 32px; }

.toc-label {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.toc-list { padding-left: 1.4em; }

.toc-list a,
.link-list a,
.summary-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* A contents list (decision 326): no outer numbers beside the numbered sections it lists; they
   sit indented under their own row. */
.toc-plain {
  padding-left: 0;
  list-style: none;
}

.toc-sub {
  padding-left: 1em;
  list-style: none;
}

/* The policy's headings (decision 100 (4)): every heading under the page title regular, so no AI
   word is bold; size and spacing keep the levels apart. */
.policy h2 { margin: 32px 0 8px; font-size: 1.1875rem; line-height: 1.5; font-weight: 400; }
.policy h3 { margin: 20px 0 6px; font-size: 1rem; line-height: 1.6; font-weight: 400; }
.page-policy h2,
.page-policy h3 { font-weight: 400; }
.policy ul { padding: 0; list-style: none; }

/* .notice (decisions 321-322): its rows are one definition list, each row a small label above its
   text, between thin rules, in the policy's type sizes; the list under a row's text hangs its bullet.
   The label's weight comes from the class .notice-label, so the font step draws its characters from
   the 600 file; no label holds an AI word (decision 100 (4): never an AI word in bold). */
.notice h2 { margin: 32px 0 8px; font-size: 1.1875rem; line-height: 1.5; font-weight: 600; }
.notice > h2:first-child { margin-top: 24px; }

.notice-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.notice-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.notice-label {
  font-size: .875rem;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: .06em;
}

.notice-row dd { margin: 2px 0 0; }

.notice ul {
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.notice li {
  padding-left: 1em;
  text-indent: -1em;
}

.notice li + li { margin-top: 4px; }

/* A title that breaks only at its ideographic space (keep-all; overflow-wrap still breaks a part
   too long), in every browser (Safari has no auto-phrase); re-check it when the title changes
   (decisions 329, 100 (2): the site's own look). On phones narrower than about 350 px the size
   steps down so that a part of 12 characters still fits one line (the look check of 2026-11-18:
   at 1.5rem and 320 px the last character wrapped alone); wider screens keep 1.5rem. */
.rune-year-h1 {
  word-break: keep-all;
  font-size: min(1.5rem, calc((100vw - 2 * var(--gutter)) / 13));
}
.rune-year-facts p + p { margin-top: 12px; }

/* Text that starts right under this page's title: some room, so the title reads as one (the look
   check of 2026-11-02). The policy pages keep their date lines close under theirs. */
.page-line .page-h1 + p { margin-top: 16px; }

/* The sample reading /sample/ (Heida Nami decision 116 (2); session 117, 2026-11-14): one reading
   as LINE delivers it, in a card. The reading's blank lines are the paragraphs, a little wider
   apart than a section's; its rune line stands alone in the middle, like the home page's
   rune-name line (the same small drawing, .rune-mark). The closing line and the line about LINE
   stay quiet: the page's one button follows them. */
.sample-reading p + p { margin-top: 16px; }

.sample-reading .sample-rune {
  margin: 20px 0;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
}

.sample-end {
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: center;
}

.sample-after { margin-top: 32px; }

/* The button's label carries 18歳以上 and is longer than a phone under about 340 px is wide: where
   it wraps, in two even lines, never one word alone on the second. */
.page-sample .page-actions .btn { text-wrap: balance; }

.page-lost { text-align: center; }

.lost-stone {
  width: auto;
  height: 92px;
  margin: clamp(2rem, 10vh, 6rem) auto 0;
  margin: clamp(2rem, 10svh, 6rem) auto 0;
}

.page-lost .page-h1 { padding-top: 24px; }
.page-lost .centered { margin-top: 12px; text-wrap: balance; }

/* ---------- 13. Footer (§7.5) ---------- */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  padding-top: 24px;
  padding-bottom: 32px; /* the body carries the bottom safe area (§7.3; review L3) */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0;
  list-style: none;
  font-size: .875rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a[aria-current="page"] { text-decoration-thickness: 2px; }

/* 「波はAIです。」「波の画像も、AIでつくったものです。」: the site's AI line, at the bottom of every
   page (decision 98 (7), 2026-10-29). */
.footer-ai {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 14. Wider screens (§7.2) ---------- */
@media (min-width: 768px) {
  .home-h1, .page-h1 { font-size: 1.875rem; }
  .rune-name { font-size: 1.75rem; }
  .theme { font-size: 1.25rem; }
  .body { font-size: 1.125rem; }
  .lead { font-size: 1.0625rem; }
}

/* ---------- 15. Forced colours (§7.1) ---------- */
@media (forced-colors: active) {
  .cloth-svg, .face, .rim, .stone-shadow, .rune-mark svg, .lost-stone { forced-color-adjust: none; }
  .cloth-disc { fill: Canvas; stroke: CanvasText; stroke-width: 2; }
  .cloth-sheen, .stone-shadow { display: none; }
  .cloth-stitch, .cloth-hairline { stroke: CanvasText; }
  .s-top, .s-side, .s-polish { fill: Canvas; }
  .s-tex, .s-shade, .s-highlight, .s-vein, .s-vein-halo { display: none; }
  .s-line { stroke: CanvasText; stroke-opacity: 1; }
  .rune .l-gold, .rune .l-glint, .rune .l-floor { stroke: CanvasText; }
  .rune .l-edge, .rune .l-lip, .rune .l-cut { stroke: Canvas; }
  .rune-mark polyline { stroke: CanvasText; }
  .lost-stone path { stroke: CanvasText; }
  .gold-rule { background: CanvasText; }
}
