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

/* Page */
body {
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero section */
.hero {
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #bbb;
    margin-bottom: 2rem;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #45a049;
}

/* =============================================================
   Multi-page additions.
   Everything below is scoped to `.page-body` (set on <body> of
   every non-landing page) or its own classes, so the landing
   page (index.html, plain <body>) is entirely unaffected.
   ============================================================= */

/* Undo the landing page's flex centering on content pages. */
body.page-body {
    display: block;
}

/* --- Skip-to-content link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #4CAF50;
    color: #111;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 6px 0;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* --- Visible keyboard focus indicator (site-wide) --- */
:focus-visible {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

/* --- Site header + nav --- */
.site-header {
    border-bottom: 1px solid #333;
    padding: 1rem 1.5rem;
}

.site-nav {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-nav a {
    color: #bbb;
    text-decoration: none;
    padding: 0.25rem 0;
}

.site-nav a:hover {
    color: white;
}

/* --- Site footer --- */
.site-footer {
    border-top: 1px solid #333;
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    color: #bbb;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: #4CAF50;
}

/* --- Reading column for prose pages (about, contact, docs, guides) --- */
.page {
    max-width: 44rem;              /* ~70–78 chars at 1.125rem Arial */
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-size: 1.125rem;           /* 18px base — long-read comfort */
    line-height: 1.6;
}

.page h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.page p,
.page li {
    margin-bottom: 1rem;
}

.page ul,
.page ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page a {
    color: #4CAF50;
    text-decoration: underline;
}

.page a:hover {
    color: #45a049;
}

.page code {
    background: #222;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.95em;
}

.page pre {
    background: #222;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page pre code {
    background: none;
    padding: 0;
}

/* --- Wider layout for grid-of-cards pages (tools) --- */
.page-wide {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-wide h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-wide > p {
    color: #bbb;
    max-width: 44rem;
    margin-bottom: 1rem;
}

/* --- Tool cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: #bbb;
    margin-bottom: 1rem;
}

.card a {
    color: #4CAF50;
    text-decoration: underline;
}

/* --- Doc index lists (docs.html) --- */
.doc-list {
    list-style: none;
    margin: 1rem 0 2rem;
}

.doc-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
}

.doc-list a {
    color: #4CAF50;
    text-decoration: underline;
    font-size: 1.1rem;
}

.doc-list .desc {
    display: block;
    color: #bbb;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* --- Respect prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}