/**
 * Base Styles - Foundation CSS
 * Variables, typography, global styles, and basic layout
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties */
:root {
    --red-color: #b71c1c;
    --white-color: #ffffff;
    --text-color: #111;
    --background-color: #faf8f7;
    --muted-color: #666666;
}

/* Global Styles - High Priority */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif !important;
    background-color: #faf8f7 !important;
    color: #111 !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Override UIKit defaults */
.uk-container {
    background-color: transparent !important;
}

.uk-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.uk-section-default {
    background-color: #faf8f7 !important;
}

.uk-section-muted {
    background-color: #ffffff !important;
}

.uk-section-secondary {
    background-color: #3c1414 !important;
    color: #ffffff !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Serif JP', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Background Overrides */
.uk-section-default {
    background-color: #faf8f7;
}

.uk-section-muted {
    background-color: #ffffff;
}

.uk-section-secondary {
    background-color: #b71c1c;
}

/* Japanese Typography Support */
.jp-text {
    font-family: 'Noto Sans JP', sans-serif;
}

.jp-heading {
    font-family: 'Noto Serif JP', serif;
}

/* Enhanced Cards and Content Areas */
.uk-card {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
    border: 1px solid rgba(183, 28, 28, 0.1);
}

.uk-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Content areas with warm background */
.site-content,
.entry-content,
.page-content {
    background-color: #faf8f7;
}

/* White content blocks */
.uk-article,
.comment-content,
.search-result {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Widget styling */
.widget {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #b71c1c;
}

.widget-title {
    color: #111;
    font-family: 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Typography color adjustments */
.uk-text-meta {
    color: #666666;
}

.uk-text-muted {
    color: #999999;
}

/* Link styling */
a {
    color: #b71c1c;
    transition: color 0.3s ease;
}

a:hover {
    color: #111;
    text-decoration: none;
}