/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500&display=swap");
/* CSS Variables */
:root {
    --bg-body: #fefefe;
    --bg-card: #fafbfc;
    --text-main: #3d3d3a;
    --text-heading: #1a1a18;
    --text-muted: 050607;
    --accent: #1d4ed8;
    --border: #e2e1db;

    /* Notice Box Colors */
    --notice-bg: #f0fdf4;
    --notice-border: #4ade80;
    --notice-text: #166534;
}

/* Base Reset & Layout */
body {
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Sticky Header Navigation */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 2.25rem;
    width: auto;
    display: block;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

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

/* Notice Box */
.notice-box {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    background-color: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--notice-border);
    color: var(--notice-text);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.notice-box p {
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

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

.notice-box .notice-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notice-date {
    color: #4a7c59;
    font-style: italic;
}

/* Main Document */
main {
    max-width: 800px;
    margin: 1.5rem auto 4rem auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    overflow: hidden;
}

/* Document Sections */
section {
    padding: 3rem 3.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

section:last-child {
    border-bottom: none;
}

/* Typography */
h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 2.5rem 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-main);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

/* Contact section — slightly different treatment */
#contact h1 {
    font-size: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    nav a {
        margin: 0 0.6rem;
        font-size: 0.8rem;
    }

    .notice-box {
        margin: 1.5rem 1rem 0 1rem;
    }

    main {
        margin: 1rem 0 0 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    section {
        padding: 2rem 1.5rem;
    }

    .section-label {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
