/* Shared style for the text pages (guides, about, contact, privacy, my phrases). The game page has its own CSS. */
:root { --ink: #17212b; --soft: #586674; --brand: #13896b; --brand-2: #f29b2e; --wall: #eef4f2; --paper: #fff; --tip: #fff6df; }
* { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 16px/1.75 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Segoe UI', system-ui, sans-serif; }
a { color: var(--brand); }
.top { position: sticky; top: 0; z-index: 5; background: var(--ink); }
.top::after { content: ''; display: block; height: 6px; background: linear-gradient(var(--brand) 0 4px, var(--brand-2) 4px); }
.top nav { max-width: 760px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.logo { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; letter-spacing: .02em; flex: 1; white-space: nowrap; }
.logo small { color: #9fd9c6; font-weight: 500; font-size: 12px; margin-left: 6px; }
.top a.nav { color: #dfe7ea; text-decoration: none; font-size: 14px; }
.play { background: var(--brand); color: #fff !important; border-radius: 99px; padding: 4px 14px; font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.crumb { font-size: 13px; color: var(--soft); margin: 0 0 6px; }
.crumb a { color: var(--soft); }
h1 { font-size: 27px; line-height: 1.3; margin: 0 0 6px; }
.lead { color: var(--soft); margin: 0 0 16px; }
section, .box { background: var(--paper); border-radius: 14px; padding: 6px 18px 16px; margin-top: 16px; }
h2 { font-size: 19px; margin: 16px 0 6px; padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.4; }
h3 { font-size: 16px; margin: 14px 0 4px; }
p, li, td, th { font-size: 15.5px; }
ul, ol { padding-left: 1.3em; margin: 6px 0; }
.tip { background: var(--tip); border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: 15px; }
.cta { display: block; text-align: center; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; border-radius: 14px; padding: 14px; margin: 22px 0 6px; box-shadow: 0 4px 0 #0c5f4a; }
.cta small { display: block; font-weight: 500; opacity: .9; }
.sources { font-size: 13px; color: var(--soft); }
.sources li { font-size: 13px; }
/* phrase table with audio */
.ph { width: 100%; border-collapse: collapse; margin: 6px 0; }
.ph th { text-align: left; font-size: 12.5px; color: var(--soft); font-weight: 700; border-bottom: 2px solid var(--wall); padding: 4px 6px; }
.ph td { border-bottom: 1px solid var(--wall); padding: 8px 6px; vertical-align: top; }
.ph .ja { font-weight: 700; font-size: 16.5px; }
.ph .ro { display: block; color: var(--soft); font-size: 13px; }
.ph .en { font-size: 14.5px; }
.ph.lines .en { display: block; margin-top: 2px; }
.say { border: 2px solid var(--ink); background: #fff; border-radius: 99px; width: 34px; height: 34px; font-size: 15px; cursor: pointer; flex: none; box-shadow: 0 2px 0 var(--ink); }
.say:active { transform: translateY(2px); box-shadow: none; }
.say.playing { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 0 #0c5f4a; }
.who { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; margin-bottom: 2px; }
.who.c { background: #e3f4ee; color: var(--brand); }
.who.k { background: #fdecd6; color: #a35a00; }
/* guide list */
.cards { display: grid; gap: 12px; margin-top: 14px; }
.card { display: block; background: var(--paper); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.card:hover { border-color: var(--brand); }
.card b { display: block; font-size: 17px; line-height: 1.4; }
.card span { color: var(--soft); font-size: 14px; }
footer.site { max-width: 760px; margin: 0 auto; padding: 0 16px 34px; text-align: center; font-size: 13px; color: var(--soft); }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
footer.site a { color: var(--soft); }
@media (max-width: 420px) { .top a.nav { display: none; } h1 { font-size: 24px; } }
