/*
 * kufudesign.com の共通スタイル。
 *
 * Kufuのブランドカラーは未決なので、ここでは色を発明せずインクと罫線だけで組む。
 * 決まったらアクセント1色を --accent に入れて、リンクと罫に効かせる。
 */

:root {
    --paper: #ffffff;
    --ink: #1b1b1b;
    --muted: #6a6a6a;
    --rule: #e4e4e4;
    --code-bg: #f4f4f4;
    --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #151515;
        --ink: #e8e6e3;
        --muted: #9a9694;
        --rule: #2e2e2e;
        --code-bg: #202020;
    }
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3rem;
}

/* 製品名までのパンくず。字間を空けた小さな英字ラベル。 */
.eyebrow {
    margin: 0 0 3.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow a { color: inherit; }

h1 {
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h2 {
    margin: 3rem 0 0.75rem;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

h3 {
    margin: 2rem 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

p { margin: 0 0 1.1rem; }

/* 「Last updated」の行。本文より一段引く。 */
h1 + p {
    color: var(--muted);
    font-size: 0.88rem;
}

ul {
    margin: 0 0 1.1rem;
    padding-left: 1.1rem;
}

li { margin-bottom: 0.4rem; }

li::marker { color: var(--muted); }

strong { font-weight: 600; }

code {
    padding: 0.1em 0.35em;
    background: var(--code-bg);
    border-radius: 3px;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--muted);
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

/* 位置は動かさず、下線の濃さだけで反応させる。 */
a:hover { text-decoration-color: var(--ink); }

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.foot {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.85rem;
}

.foot p { margin: 0; }

/* ---- ルートページ ---- */

.lede {
    margin: 0 0 2.5rem;
    font-size: 1.28rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.tools {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.tools li {
    margin: 0;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
}

.tools h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.tools p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.tools .links {
    margin-top: 0.5rem;
    font-size: 0.82rem;
}
