/* ==========================================================================
   Inoue Museum - Global Design System
   Minimalist, content-first, Japanese literary aesthetic
   ========================================================================== */

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

/* Typography */
:root {
    --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Source Han Serif JP", Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
    --font-mono: "SF Mono", "Hiragino Kaku Gothic ProN", "Yu Gothic", monospace;

    --color-bg: #ffffff;
    --color-bg-alt: #f9f9f9;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-accent: #333333;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-xxl: 120px;

    --max-width: 800px;
    --max-width-wide: 1080px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.4;
}

h1 {
    font-size: 32px;
    letter-spacing: 6px;
}

h2 {
    font-size: 24px;
    letter-spacing: 3px;
}

h3 {
    font-size: 18px;
    letter-spacing: 2px;
}

/* Links */
a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section spacing */
.section {
    padding: var(--spacing-xl) 0;
}

.section + .section {
    border-top: 1px solid var(--color-border-light);
}

/* Page header */
.page-header {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.page-header h1 {
    margin-bottom: var(--spacing-sm);
}

.page-header .subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 2px;
    font-weight: 300;
}

/* Divider */
.divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: var(--spacing-md) auto;
}

/* Separator line */
.sep {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

/* List navigation pattern */
.nav-list {
    list-style: none;
}

.nav-list-item {
    border-bottom: 1px solid var(--color-border-light);
}

.nav-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    transition: opacity 0.2s;
}

.nav-list-item a:hover {
    opacity: 0.6;
}

.nav-list-title {
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: 2px;
}

.nav-list-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
    letter-spacing: 1px;
}

.nav-list-arrow {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Tag */
.tag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    padding: 2px 8px;
    border: 1px solid var(--color-border);
}

/* Button (minimal) */
.btn {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 12px 32px;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border-light);
}

.site-footer p {
    font-size: 12px;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* Fade-in animation (subtle) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 48px;
        --spacing-xxl: 64px;
    }

    h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    h3 {
        font-size: 16px;
    }
}
