/* The Converter how-to pages. Same palette, type and nav as /apps/the-converter/. */
:root {
    --bg: #ffffff;
    --surface: #f5f7fa;
    --border: #e0e4ea;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-dim: #1d4ed8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400; }

a { color: var(--accent-dim); }

/* ============ NAV ============ */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 2rem;
}
nav .nav-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}
nav .logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}
nav .nav-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
nav .logo:hover, nav .nav-back:hover { color: var(--accent); }

/* ============ ARTICLE ============ */
article {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
}
.crumbs {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.lede {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.lede strong { color: var(--text); font-weight: 500; }

article section {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding-top: 2.5rem;
}
h2 {
    font-size: 1.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.6rem;
}
article p, article li { font-size: 1rem; }
article p + p { margin-top: 0.9rem; }
article ul, article ol { padding-left: 1.4rem; margin: 0.6rem 0 0.4rem; }
article li { margin: 0.35rem 0; }
article li::marker { color: var(--accent); }
kbd, .menu {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 0.85em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.05em 0.35em;
}
kbd { white-space: nowrap; }
.note {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ============ DOWNLOAD CARD ============ */
.get-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.get-card img { width: 64px; height: 64px; flex-shrink: 0; }
.get-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 0.8rem; }
.get-card p strong { color: var(--text); font-weight: 600; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-dim); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.get-card .more-link { margin-left: 1rem; font-size: 0.9rem; }

/* ============ FAQ ============ */
.faq-item { border-top: 1px solid var(--border); padding: 1.2rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}
.faq-item p { font-size: 0.95rem; color: var(--text-muted); }

/* ============ OTHER GUIDES ============ */
.guide-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.guide-list li { margin: 0; }
.guide-list a {
    display: block;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}
.guide-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .sig { font-family: 'Instrument Serif', serif; font-weight: 700; font-size: 1.1rem; }

@media (max-width: 640px) {
    nav { padding: 0 1rem; }
    article { padding: 2.5rem 1rem 1.5rem; }
    .get-card { flex-direction: column; align-items: flex-start; }
    .get-card .more-link { display: inline-block; margin: 0.8rem 0 0; }
    .guide-list { grid-template-columns: 1fr; }
}
