/* /assets/style.css */
:root {
    --bg-color: #ffffff;
    --text-color: #171717;
    --text-muted: #525252;
    --border-color: #e5e5e5;
    --card-bg: #fafafa;
    --card-border: #e5e5e5;
    --primary-color: #000000;
    --nav-hover: #f5f5f5;
    --radius: 8px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0a0a0a;
        --text-color: #ededed;
        --text-muted: #a3a3a3;
        --border-color: #262626;
        --card-bg: #171717;
        --card-border: #262626;
        --primary-color: #ffffff;
        --nav-hover: #1f1f1f;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: var(--nav-hover);
    color: var(--text-color);
}

nav a.active {
    color: var(--primary-color);
    background-color: var(--nav-hover);
}

/* Main Content */
main {
    flex: 1;
    padding: 56px 0 80px;
}

/* Typography */
h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s;
}

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

ul, ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

.muted {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Meta information */
.metadata {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 32px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Cards (Apps) */
.app {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
    box-shadow: var(--shadow);
}

.app h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.app p:last-child,
.app ul:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    nav {
        gap: 2px;
    }
    nav a {
        padding: 6px 8px;
        font-size: 0.875rem;
    }
    main {
        padding: 40px 0 64px;
    }
}
