/* PERAPERA: brand colors from the Nihongoism guidelines (signature Brick), rounded Japanese face per the word cloud. */
:root {
  --brick: #98342c;
  --ink: #2b2420;
  --ink-2: #5c534d;
  --ink-3: #b9b0a8;
  --paper: #fbf8f3;
  --paper-2: #f3ece2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ece6de; --ink-2: #bdb4aa; --ink-3: #5a524c; --paper: #1d1917; --paper-2: #2a2421; }
}
html { background: var(--paper); color: var(--ink); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.5; }
body { margin: 0; }
main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
a { color: var(--brick); }
h1, h2 { font-family: Alegreya, Georgia, serif; font-weight: 700; line-height: 1.15; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
[lang="ja"] { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; }
.small { font-size: .85rem; opacity: .7; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; opacity: .7; margin: 0 0 .3rem; }

.site-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--paper-2); }
.brand { text-decoration: none; color: inherit; font-size: 1.3rem; }
.brand-ja { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }
.brand-en { font-family: Alegreya, serif; font-weight: 700; letter-spacing: .12em; }
.brand-en em { font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--brick); }
.site-header nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-header nav a, .site-header nav pp-random { color: inherit; text-decoration: none; font-weight: 600; }
.site-footer { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--paper-2); font-size: .95rem; }

.hero { text-align: center; padding: 1rem 0 2rem; }
.wotd { display: block; text-decoration: none; color: inherit; margin: .5rem auto 1.2rem; }
.wotd-kana { display: block; font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1.1; color: var(--brick); }
.wotd-romaji { display: block; font-size: 1.2rem; opacity: .7; }
.wotd-gloss { display: block; font-family: Alegreya, serif; font-size: 1.4rem; }
.lede { max-width: 34rem; margin: 0 auto 1.2rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.button { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--brick); color: var(--brick); text-decoration: none; font-weight: 600; cursor: pointer; }
.button:hover { background: var(--brick); color: #fff; }

.word-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.word-grid a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border-radius: .6rem; text-decoration: none; color: inherit; background: var(--paper-2); border: 1px solid transparent; }
.word-grid a:hover { border-color: var(--brick); }
.word-grid .kana { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 1.35rem; }
.word-grid .romaji { font-size: .85rem; opacity: .7; }
.word-grid .gloss { font-size: .9rem; }
.word-grid .relation { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brick); margin-top: .2rem; }
.word-list { columns: 2; font-size: .95rem; }

.word-header { margin-bottom: 1.5rem; }
.word-kana { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: clamp(3rem, 12vw, 5rem); margin: 0; line-height: 1.1; color: var(--brick); }
.word-kana .alt { font-size: .45em; opacity: .5; font-weight: 500; }
.word-romaji { font-size: 1.3rem; margin: .2rem 0 0; opacity: .7; }
.word-gloss { font-family: Alegreya, serif; font-size: 1.6rem; margin: .3rem 0 .8rem; }
.post-card { background: var(--paper-2); border-left: 4px solid var(--brick); padding: .8rem 1rem; border-radius: .4rem; margin: 1.2rem 0; }
.post-card.pending { border-left-color: var(--ink-3); font-size: .95rem; }
.post-card a { font-family: Alegreya, serif; font-size: 1.15rem; }
.senses ol { padding-left: 1.4rem; }
.senses li { margin: .35rem 0; }
.senses li.non-mimetic { opacity: .65; }
.senses .info { opacity: .7; margin-left: .3rem; }
.senses .tags { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-left: .5rem; }
.example p { margin: .15rem 0; }
.example p[lang="ja"] { font-size: 1.3rem; }
.example .romaji { font-style: italic; opacity: .75; }
