/* Shared stylesheet for yohanobi.com (hand-written; site/build.mjs does not touch it). */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1c1e21;
  --muted: #5b616b;
  --border: #dde1e6;
  --link: #0b57d0;
  --accent: #0b57d0;
  --accent-text: #ffffff;
  --focus: #f9ab00;
  --radius: 10px;
  --wrap: 52rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a;
    --surface: #1f2226;
    --text: #e8eaed;
    --muted: #a7adb5;
    --border: #353a40;
    --link: #8ab4f8;
    --accent: #8ab4f8;
    --accent-text: #0d1117;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a;
  --surface: #1f2226;
  --text: #e8eaed;
  --muted: #a7adb5;
  --border: #353a40;
  --link: #8ab4f8;
  --accent: #8ab4f8;
  --accent-text: #0d1117;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  overflow-wrap: break-word;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
a { color: var(--link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px; }
.skip:focus { left: 8px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; line-height: 1.3; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
h2, h3, h4, .anchor { scroll-margin-top: 16px; }
.permalink { color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; margin-left: 4px; }
h2:hover .permalink, h3:hover .permalink, h4:hover .permalink, .permalink:focus { opacity: 1; }
.lead { font-size: 1.1rem; color: var(--muted); }
.small, .note { font-size: 0.9rem; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border-left: 4px solid var(--border); color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; min-width: 9rem; }

.cards, .plans { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card, .plans li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.card p { margin: 0.3rem 0; }
.app { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.plans h3 { margin: 0; }
.price { font-size: 1.6rem; font-weight: 700; margin: 0.3rem 0; }
.price span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.button:hover { filter: brightness(1.08); }

.doc h2 { border-top: 1px solid var(--border); padding-top: 1.4rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin: 0.25rem 0; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { padding-top: 16px; padding-bottom: 24px; }
.site-footer a { color: var(--muted); }

@media (max-width: 30rem) {
  h1 { font-size: 1.55rem; }
  th, td { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.button.disabled { opacity: .55; cursor: default; pointer-events: none; }
