/* Font imports */
/* Online Web Fonts - already linked in HTML */

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --spacing: 2rem;
    --font-main: 'NudMotoyaExMincho W2b', serif;
    --font-title: 'Clemente Rotunda W00 Regular', serif;
    --animation-duration: 1s;
}

/* Hide all text initially */
.title-saihaj, .title-law, h2, .content-fade {
    opacity: 0;
}

/* Letter-by-letter animation */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.letter.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in animation for body text */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fade-animation {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Dark mode variables */
.dark-mode {
    --bg-color: #000000;
    --text-color: #ffffff;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
    perspective: 1000px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5% 2rem;
}

header {
    margin-bottom: var(--spacing);
}

.site-title {
    font-weight: normal;
    margin-bottom: 1.5rem;
    font-size: 5rem;
    width: 100%;
}

.title-line {
    display: flex;
    align-items: center;
}

.title-saihaj, .title-law {
    font-family: var(--font-title);
}

.icon {
    margin-left: 0.5rem;
    font-size: 4rem;
    font-family: var(--font-main);
}

.title-law {
    margin-left: 1.5rem;
}

.pronunciation {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section {
    margin-bottom: calc(var(--spacing) * 2);
}

h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: var(--spacing);
}

.heading-word {
    display: inline-block;
    margin-right: 0.8rem;
}

.post-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 1rem;
    display: flex;
}

.numeral {
    margin-right: 1rem;
    display: inline-block;
    min-width: 2rem;
}

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

a:hover {
    text-decoration: underline;
}

.theme-toggle {
    margin-top: calc(var(--spacing) * 2);
}

#themeToggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-main);
    cursor: pointer;
}

#themeToggle:hover {
    opacity: 0.8;
}

.post-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
    display: inline-block;
    position: relative;
}

.post-list li a:hover {
    transform: translateX(5px);
    opacity: 0.8;
}

.post-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.post-list li a:hover::after {
    width: 100%;
} 