/* Duplet Technologies: one small stylesheet. System fonts only, no external requests. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f21;
  --muted: #5a5f66;
  --line: #e2dfd8;
  --accent: #1f5fa8;
  --accent-visited: #6a3d9a;
  --notice-bg: #fff6dc;
  --notice-line: #e7c76a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --text: #e8e6e1;
    --muted: #a5abb3;
    --line: #33373d;
    --accent: #8cbcf2;
    --accent-visited: #c3a4ec;
    --notice-bg: #2c2717;
    --notice-line: #7a6522;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans CJK JP", "Noto Sans CJK KR", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Korean reads better when lines break between words, not inside them. */
:lang(ko) { word-break: keep-all; }

.site-header, main, .site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header { padding-top: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
.brand:hover { text-decoration: underline; }

main { padding-top: 1.25rem; padding-bottom: 2rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.0625rem; line-height: 1.35; margin: 1.5rem 0 0.4rem; }
p, ul { margin: 0 0 0.9rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.92em; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:visited { color: var(--accent-visited); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.langs ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.langs li { margin: 0; }
.langs a, .langs span {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 2.25rem;
  line-height: 1.6;
}
.langs span[aria-current] { background: var(--surface); color: var(--text); font-weight: 600; border-color: var(--muted); }

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem 0.3rem;
  margin: 0;
}
.app h3 { margin: 0 0 0.25rem; }
.app .alt { font-weight: 400; color: var(--muted); margin-left: 0.35rem; }
.app .desc { margin-bottom: 0.25rem; }
.app .data, .app .also { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.policy-link { font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 0.4rem; }

@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
}

@media print {
  .langs, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
