@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/instrument-serif-latin.woff2) format('woff2');
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/instrument-serif-italic.woff2) format('woff2');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F8F6F1;
    color: #1A1A1A;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #E8B000;
    color: #1A1A1A;
}

a { color: inherit; }

.top-accent {
    height: 3px;
    background: linear-gradient(90deg, #E8B000 0%, #D4A000 40%, transparent 100%);
}

/* --- Header --- */
.header {
    padding: 24px 0;
    border-bottom: 1px solid #E5E2DC;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(250, 250, 248, 0.92);
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1A1A1A;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo span {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #E8B000;
    letter-spacing: 0.02em;
}

.header-back {
    font-size: 0.875rem;
    font-weight: 500;
    color: #595959;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-back::before {
    content: '\2190';
    font-size: 1rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-back:hover {
    color: #1A1A1A;
}

.header-back:hover::before {
    transform: translateX(-3px);
}

/* --- Main content --- */
.content {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.page-title {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.page-subtitle {
    font-size: 0.95rem;
    color: #595959;
    margin-bottom: 48px;
    line-height: 1.7;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E2DC;
}

.section {
    margin-bottom: 40px;
    padding: 28px 32px;
    background: #FFFEFA;
    border: 1px solid #E5E2DC;
    border-radius: 12px;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section:hover {
    border-color: rgba(232, 176, 0, 0.4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.section:last-of-type {
    margin-bottom: 0;
}

.section h2 {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1A1A1A;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(232, 176, 0, 0.3);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.section h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #E8B000;
    border-radius: 2px;
    flex-shrink: 0;
    transform: rotate(45deg);
}

.section p {
    font-size: 0.95rem;
    color: #595959;
    line-height: 1.85;
    margin-bottom: 12px;
}

.section p:last-child {
    margin-bottom: 0;
}

.section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.section ul li {
    font-size: 0.95rem;
    color: #595959;
    line-height: 1.85;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: #E8B000;
    border-radius: 50%;
}

.section a {
    color: #8B6D00;
    text-decoration: underline;
    text-decoration-color: rgba(232, 176, 0, 0.4);
    text-underline-offset: 3px;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.section a:hover {
    color: #1A1A1A;
    text-decoration-color: #E8B000;
}

.section strong {
    font-weight: 600;
    color: #1A1A1A;
}

.update-date {
    margin-top: 48px;
    padding: 20px 24px;
    background: #F0EDE6;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6B6F77;
    text-align: center;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid #E5E2DC;
    background: #F8F6F1;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-size: 1rem;
    color: #1A1A1A;
    text-decoration: none;
}

.footer-logo .logo-name {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.1rem;
}

.footer-logo .logo-accent {
    color: #E8B000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.footer-tagline {
    font-size: 0.78rem;
    color: #6B6F77;
}

.footer-credit {
    font-size: 0.75rem;
    color: #6B6F77;
    font-weight: 500;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .content {
        padding: 48px 24px 64px;
    }

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

    .page-subtitle {
        margin-bottom: 36px;
    }

    .section {
        margin-bottom: 24px;
        padding: 24px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.4rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
