/* The stylesheet of the plain pages (/hiragana/, /about/, 404). The app has its own, bundled by Vite; this one is for pages that are
   just HTML, so they load at once and can be read by anything. Same colours and fonts as the app. Written by scripts/build-static-pages.mjs. */
@font-face { font-family: 'Sora'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/sora-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Honey Basil'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/HoneyBasil-Regular.otf') format('opentype'); }
:root { --pink: #eb97e4; --yellow: #f4d839; --cream: #f2e9c9; --teal: #3bc6d0; --black: #000; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--yellow); color: var(--black); font-family: 'Sora', system-ui, sans-serif; font-weight: 700; line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }
.site-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; padding: 0.75rem 1.25rem; background: var(--pink); border-bottom: 3px solid var(--black); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'Honey Basil', 'Sora', sans-serif; font-weight: 400; font-size: 1.7rem; text-decoration: none; }
.brand img { image-rendering: pixelated; border: 2px solid var(--black); border-radius: 8px; }
.site-top nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.site-top nav a { text-decoration: none; padding: 0.25rem 0.1rem; border-bottom: 3px solid transparent; }
.site-top nav a:hover, .site-top nav a:focus-visible { border-bottom-color: var(--black); }
.site-top nav .join { background: var(--cream); border: 3px solid var(--black); border-radius: 12px; padding: 0.3rem 0.8rem; box-shadow: 3px 3px 0 var(--black); }
main { max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
h1 { font-family: 'Honey Basil', 'Sora', sans-serif; font-weight: 400; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.lead { font-size: 1.15rem; max-width: 44rem; }
.howto { background: var(--cream); border: 3px solid var(--black); border-radius: 18px; box-shadow: 6px 6px 0 var(--black); padding: 0.4rem 1.4rem 1.2rem; margin: 1.6rem 0; }
.howto h2 { margin-top: 1rem; }
.button { display: inline-block; background: var(--pink); border: 3px solid var(--black); border-radius: 14px; box-shadow: 4px 4px 0 var(--black); padding: 0.55rem 1.2rem; text-decoration: none; margin: 0.3rem 0.4rem 0.3rem 0; }
.button.alt { background: var(--teal); }
.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }
.kana-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; }
.kana-card { margin: 0; background: var(--cream); border: 3px solid var(--black); border-radius: 16px; box-shadow: 5px 5px 0 var(--black); overflow: hidden; display: flex; flex-direction: column; }
.kana-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fffaf0; border-bottom: 3px solid var(--black); }
.kana-card figcaption { padding: 0.7rem 0.9rem 0.9rem; }
.kana { font-size: 2rem; font-weight: 800; }
.romaji { font-size: 1.1rem; margin-left: 0.4rem; background: var(--pink); border: 2px solid var(--black); border-radius: 8px; padding: 0 0.5rem; }
.story { display: block; margin-top: 0.4rem; font-weight: 600; font-size: 0.9rem; line-height: 1.4; }
.row-kana { font-weight: 800; letter-spacing: 0.15em; margin-left: 0.5rem; }
.set-title { font-family: 'Honey Basil', 'Sora', sans-serif; font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; margin: 3.2rem 0 0.4rem; padding-top: 1.2rem; border-top: 3px solid var(--black); }
.kana-row h3 { font-size: 1.15rem; margin: 1.6rem 0 0.7rem; }
.hint { display: block; margin-top: 0.4rem; font-weight: 600; font-size: 0.82rem; line-height: 1.35; }
.faq dt { font-size: 1.1rem; margin-top: 1.1rem; }
.faq dd { margin: 0.2rem 0 0; font-weight: 600; max-width: 46rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.4rem 0; font-weight: 600; max-width: 46rem; }
.site-bottom { background: var(--black); color: var(--cream); padding: 1.5rem 1.25rem; text-align: center; font-weight: 600; }
.site-bottom p { margin: 0.3rem 0; }
@media (prefers-reduced-motion: reduce) { .button:hover, .button:focus-visible { transform: none; } }
