/* Yubigaki site. Colours from the app: paper, ink, hanamaru red; grafit in dark mode. */
:root {
  color-scheme: light dark;
  --paper: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #1C1C1E;
  --muted: #5E5C58;
  --rule: #E1DDD4;
  --link: #A8322F;        /* hanamaru red darkened for 4.5:1 text contrast on paper */
  --red: #DB5454;         /* hanamaru */
  --kanji: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1C1E;     /* grafit, never pure black */
    --surface: #2C2C2E;
    --ink: #F2F2F7;
    --muted: #A1A1A6;
    --rule: #3A3A3C;
    --link: #F08080;
    --red: #E86A6A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
main, header.site, footer.site { max-width: 40rem; margin: 0 auto; padding: 0 20px; }

header.site { display: flex; align-items: center; gap: 12px; padding-top: 28px; padding-bottom: 8px; }
header.site a { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
header.site img { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 0 0 0.5px var(--rule); }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.6rem 0 0.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.4rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 0.2rem; }
p, ul, ol, table { margin: 0.6rem 0; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.25rem 0; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.muted, small { color: var(--muted); }
.ja { font-family: var(--kanji); font-weight: 300; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }

.summary { background: var(--surface); border-radius: 12px; padding: 14px 18px; margin: 1.2rem 0; }
.summary p:first-child { margin-top: 0; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
td code { white-space: nowrap; overflow-wrap: normal; }

/* home: one screen */
.hero { text-align: center; padding: 6vh 0 2rem; }
.hero img { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 0 0 0.5px var(--rule), 0 6px 24px rgb(0 0 0 / 0.08); }
.hero h1 { margin-top: 1.2rem; }
.hero .ja { font-size: 1.25rem; color: var(--muted); margin: 0; }
.hero .lead { font-size: 1.12rem; max-width: 32rem; margin: 1rem auto 0; }
.points { list-style: none; padding: 0; max-width: 28rem; margin: 1.6rem auto 0; text-align: left; }
.points li { padding-left: 1.4rem; position: relative; }
.points li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }
.store { display: inline-block; margin-top: 1.8rem; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); font-weight: 600; }

footer.site { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2.5rem; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 0.6rem; }
footer.site nav a { color: var(--ink); text-decoration: none; }
footer.site nav a:hover, footer.site nav a[aria-current="page"] { text-decoration: underline; }
footer.site p { margin: 0.3rem 0; }
