/* RION Project: change the brand text in each page if you rename the site.
   Fixed-width desktop composition, with a narrow-screen fallback. */
:root { --ink: #141414; --wine: #481a16; --blue: #454b80; --width: 647px; }
* { box-sizing: border-box; }
html { background: #fff; color: var(--ink); }
body { margin: 8px; font: 13px/1.21 Arial, Helvetica, sans-serif; }
a { color: #0000ee; text-decoration: underline; }
a:visited { color: #551a8b; }
a:focus-visible { outline: 1px dotted currentColor; outline-offset: 3px; }
.site { width: var(--width); max-width: 100%; }
.masthead { height: 39px; border-bottom: 1px solid #444; display: flex; align-items: flex-start; justify-content: flex-end; padding: 4px 13px 0 0; }
.wordmark { color: #111; text-decoration: none; font-size: 28px; line-height: 1; letter-spacing: 1.2px; white-space: nowrap; }
.wordmark:visited { color: #111; }
.wordmark strong { font-weight: 700; }
.wordmark span { color: var(--blue); font-size: .74em; font-weight: 400; letter-spacing: .7px; }
.layout { display: grid; grid-template-columns: 192px minmax(0, 1fr); column-gap: 18px; padding: 36px 8px 40px 0; align-items: start; }
.sidebar { padding: 55px 0 0 18px; font-size: 12px; line-height: 1.7; font-weight: bold; }
.sidebar a { display: block; width: fit-content; color: var(--ink); text-decoration: none; }
.sidebar a:visited { color: var(--ink); }
.sidebar a.current, .sidebar a.section-link { color: var(--wine); }
.sidebar a:hover { text-decoration: underline; }
.sidebar .secondary { margin-top: 24px; }
.page-header { margin: 0 0 14px; }
h1 { font: 400 34px/1.12 Arial, Helvetica, sans-serif; letter-spacing: 1.7px; color: var(--wine); margin: 0 0 14px; overflow-wrap: break-word; }
h2 { font: bold 17px/1.15 Arial, Helvetica, sans-serif; margin: 0 0 4px; }
p { margin: 0 0 16px; }
.subtitle { margin-bottom: 16px; }
.record { margin-bottom: 18px; }
.record p:last-child { margin-bottom: 0; }
.site-footer { margin: 24px 0 0; text-align: center; }
.site-footer .metadata { font-size: 11px; margin: 0 0 14px; text-align: left; }
.footer-links { line-height: 1.35; }
.entry-list { list-style: none; margin: 10px 0 0; padding: 0; }
.entry-list li { margin: 0 0 8px; }
.entry-list time { display: inline-block; width: 73px; }
.entry-navigation { margin-bottom: 15px; font-size: 12px; }
.entry-navigation > * { margin-right: 7px; }
.entry-navigation span { color: #777; }
.entry-header h1 { font-size: 29px; letter-spacing: 1px; margin-bottom: 7px; }
.entry-header { margin-bottom: 22px; }
.entry-image { margin: 16px 0; }
.entry-image img, .content img { max-width: 100%; height: auto; }
.entry-image figcaption { font-size: 11px; }
/* The poem is the cover illustration, rather than a borrowed archive image. */
.cover { width: var(--width); max-width: 100%; position: relative; padding: 14px 0 40px; }
.cover-main { width: 384px; max-width: 100%; margin-left: 146px; text-align: center; }
.cover-header { width: max-content; max-width: 100%; margin: 0 auto 27px; }
.cover-header .wordmark { display: inline-block; font-size: 49px; letter-spacing: 2px; }
.cover-header .wordmark span { letter-spacing: 1.7px; }
.cover-tagline { border-top: 1px solid #555; margin: 2px auto 0; width: 100%; max-width: 100%; padding: 3px 1px 0; font-size: 12px; font-weight: bold; letter-spacing: .4px; text-align: right; }
.cover-nav { text-align: left; position: absolute; left: 18px; top: 167px; font-size: 12px; line-height: 1.7; font-weight: bold; }
.cover-nav a { color: var(--wine); text-decoration: none; display: block; }
.cover-nav a:hover { text-decoration: underline; }
.inscription { margin: 0; padding: 22px 10px 18px; min-height: 342px; }
.poem-japanese { display: inline-flex; align-items: flex-start; gap: 24px; margin: 0 0 25px; font: 20px/1.65 "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; }
.japanese-line { display: block; min-width: 1.2em; }
.japanese-line:nth-child(1) { order: 3; }
.japanese-line:nth-child(2) { order: 2; }
.japanese-line:nth-child(3) { order: 1; }
.poem-english { margin: 0 0 22px; padding: 0; }
.poem-english p { line-height: 1.45; }
.attribution { font-size: 11px; line-height: 1.45; margin: 0; }
.cover-links { display: flex; justify-content: center; gap: 27px; font-size: 12px; font-weight: bold; margin-top: 22px; flex-wrap: wrap; }
.cover-links a { text-decoration: none; color: var(--ink); }
.cover-links a:hover { text-decoration: underline; }
.enter-link { margin: 20px 0 0; font-size: 12px; }
@media (max-width: 560px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 22px 5px 30px; }
  .sidebar { display: flex; flex-wrap: wrap; gap: 5px 16px; padding: 0; margin-bottom: 22px; }
  .sidebar .secondary { display: contents; }
  .cover { padding-top: 14px; }
  .cover-main { margin: 0 auto; }
  .cover-header .wordmark { font-size: clamp(31px, 10vw, 49px); }
  .cover-nav { position: static; display: flex; justify-content: center; gap: 18px; margin-bottom: 20px; }
  .cover-header { margin-bottom: 15px; }
  .inscription { min-height: auto; padding-top: 12px; }
  .cover-links { gap: 17px; }
}

.cover-header h1.wordmark { color: #111; margin: 0; font-weight: normal; }

/* Archive additions */
.month-index { font-size: 13px; margin: 14px 0 6px; }
.year-index { margin-bottom: 22px; }
.subject-index { list-style: none; padding: 0; margin: 12px 0 22px; }
.subject-index li { margin: 0 0 6px; }
.subject-count, .record-number { color: #666; font-size: 11px; }
.subject-group { margin: 22px 0; }
.entry-meta { border-top: 1px solid #aaa; margin-top: 24px; padding-top: 9px; font-size: 12px; }
.entry-meta p { margin-bottom: 6px; }
.entry-body { overflow-wrap: anywhere; }


/* Journal: untitled notes, reverse chronological, with permanent anchors. */
.journal-archive { margin: 0 0 26px; padding: 0 0 10px; border-bottom: 1px solid #aaa; }
.journal-archive h2 { margin: 0 0 8px; }
.journal-archive p { margin: 0 0 6px; line-height: 1.7; }
.journal-month { margin: 0 0 30px; scroll-margin-top: 12px; }
.journal-month > h2 { color: var(--wine); margin: 0 0 15px; padding-bottom: 5px; border-bottom: 1px solid #aaa; }
.journal-day { margin: 0 0 20px; }
.journal-day h3 { font: bold 13px/1.3 Arial, Helvetica, sans-serif; margin: 0 0 8px; }
.journal-note { position: relative; margin: 0 0 10px; scroll-margin-top: 12px; }
.journal-note p { margin: 0 0 8px; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-note:target { outline: 1px dotted #999; outline-offset: 4px; }
.archive-return { font-size: 11px; margin: 0; }

/* Senryu: a quiet, three-line poetry archive. */
.senryu-epigraph { margin: 0 0 28px; padding: 0 0 18px; border-bottom: 1px solid #aaa; }
.senryu-inscription { min-height: 0; padding: 22px 0 0; text-align: center; }
.senryu-epigraph h2, .senryu-collection h2 { color: var(--wine); }
.senryu-context { font-size: 12px; line-height: 1.5; margin: 8px 0 26px; }
.senryu-poem { margin: 0 0 28px; }
.senryu-poem p { line-height: 1.55; margin: 0; }
.senryu-line { display: inline-block; max-width: 100%; }
.senryu-line:nth-of-type(2) { margin-left: 1.1em; max-width: calc(100% - 1.1em); }
.senryu-line:nth-of-type(3) { margin-left: 2.2em; max-width: calc(100% - 2.2em); }
