@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --background: #FFF;
    --primary: #1E6FBA;
    --secondary: #fafafa;
    --tertiary: #e4e4e4;
    --accent: #D6E9F8;
    --text-color: #000;
    --black: #000;
    --white: #fff;
    --font-primary: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #000;
        --primary: #7bb4ea;
        --secondary: #333333;
        --tertiary: #e4e4e4;
        --accent: #1a6299;
        --text-color: #e6e6e6;
        --black: #000;
        --white: #FFF;
    }
}

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

body {
    background-color: var(--background);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile_photo {
    border-radius: 20px;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.site-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: bold;
}

.site-title a {
    color: var(--text-color);
}

/* Navigation — two rows of buttons */
.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 64rem;
    margin: 0 auto;
}

.site-nav a {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--primary);
    border-radius: 20px;
}

.site-nav a:hover {
    background: var(--accent);
    text-decoration: none;
}

/* Content */
.page-content-wrapper {
    margin-top: 40px;
}

.post-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.post-content {
    margin-bottom: 80px;
}

h2,
h3,
h4 {
    font-family: var(--font-secondary);
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

h3 {
    font-size: 1.3rem;
}

p,
ul {
    margin-bottom: 1.5rem;
}

ul {
    padding-left: 20px;
    list-style-type: square;
}

li {
    margin-bottom: 0.8rem;
}

blockquote,
.manual-card,
.step-box {
    background: var(--secondary);
    padding: 20px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.step-box {
    border-left: 6px solid var(--primary);
}

.manual-card h3 {
    margin-top: 0;
}

/* App Icon / Intro */
.intro-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.gitzy-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    margin-top: 100px;
    margin-bottom: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

.attribution {
    margin-top: 10px;
}

/* Sidebar behavior for help site (transformed to inline/scrolling for mobile-first feel) */
.manual-layout {
    display: block;
}

.sidebar {
    display: none;
    /* Keep it focused on the content scroll for this minimalist theme */
}

/* Badges/Buttons */
.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Table of contents */
.toc {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    border-radius: 12px;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.toc li {
    margin-bottom: 0.35rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.toc a {
    font-size: 0.95rem;
}

/* Inline code */
code {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    border-radius: 4px;
}

.download-button img {
    height: 40px;
    width: auto;
}

@media (max-width: 600px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .gitzy-icon {
        width: 100px;
        height: 100px;
    }

    .post-title {
        font-size: 1.6rem;
    }
}
