/* Aludelix website: shared styles for every page.
   No external fonts or scripts (the Content-Security-Policy in _headers allows only this site).
   Colors follow the app icon: navy-violet background, cyan "A", orange liquid. */
:root {
  color-scheme: light dark;
  --bg: #fbfaff; --fg: #1d1733; --muted: #5d5873; --border: #dcd8ea;
  --panel: #f2f0fa; --accent: #0a6fa8; --accent-fg: #ffffff;
  --brand: #140b26; --cyan: #1caffe; --orange: #9a5b00; --orange-bg: #fdf3e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140b26; --fg: #ece9f5; --muted: #a9a3bf; --border: #352a52;
    --panel: #1d1336; --accent: #4cc2ff; --accent-fg: #0b0618;
    --orange: #eeb354; --orange-bg: #2a1d2a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.7;
  font-family: "Segoe UI", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--bg); padding: 6px 12px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--panel); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.15em; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-left: auto; font-size: .95em; }
.site-nav a { color: var(--fg); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.lang-switch { border: 1px solid var(--border); border-radius: 999px; padding: 0 10px; }

/* Main */
main { padding: 28px 0 56px; }
h1 { font-size: 1.9em; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 1.3em; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.08em; margin: 26px 0 6px; }
.lead { color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: .9em; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; word-break: break-word; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--panel); white-space: nowrap; }
.note, .draft {
  border-left: 4px solid var(--orange); background: var(--orange-bg);
  padding: 10px 14px; margin: 16px 0; border-radius: 0 6px 6px 0;
}
.draft { font-weight: 600; }
dl.faq dt { font-weight: 700; margin-top: 22px; }
dl.faq dd { margin: 4px 0 0; }

/* Home */
.hero { text-align: center; padding: 40px 0 24px; }
.hero img { width: 128px; height: 128px; }
.hero h1 { font-size: 2.6em; margin: 12px 0 4px; }
.hero .tagline { font-size: 1.15em; margin: 0 0 18px; }
.badge {
  display: inline-block; border: 1px solid var(--cyan); color: var(--accent);
  border-radius: 999px; padding: 2px 14px; font-weight: 700; font-size: .95em;
}
.hero .status { margin: 0 0 8px; }
.hero .muted { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.links a {
  display: inline-block; padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--panel); color: var(--fg); text-decoration: none; font-weight: 600;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9em; padding: 20px 0 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 2px 0; }

/* Phones */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-nav { margin-left: 0; width: 100%; }
  h1 { font-size: 1.55em; }
  .hero h1 { font-size: 2.1em; }
  th { white-space: normal; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  tr { margin-bottom: 10px; }
  th { border-bottom: 0; }
}
