:root {
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --soft: #f5f5f5;
    --soft-hover: #eeeeee;
    --page-width: 780px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.55;
}

.site-header {
    height: 96px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.page-shell {
    width: min(var(--page-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 68px;
}

h1,
h2,
h3 {
    line-height: 1.12;
    color: var(--text);
}

h1 {
    margin: 0 0 28px;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    letter-spacing: -0.02em;
}

.content-page h1 {
    margin-bottom: 28px;
}

.content-page h2 {
    margin: 34px 0 10px;
    font-size: 1.35rem;
}

p {
    margin: 0 0 18px;
}

.legal-text {
    font-size: 1.04rem;
}

.legal-text .strong {
    font-weight: 700;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.button {
    appearance: none;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 0.8rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
}

.button-secondary {
    color: var(--text);
    background: #ffffff;
}

.button:hover,
.back-button:hover,
.back-link:hover,
.site-footer a:hover,
.content-page a:hover {
    text-decoration: underline;
}

.visual-separator {
    display: block;
    width: 100%;
    height: 96px;
    margin: 10px 0 40px;
    object-fit: cover;
}

.publications {
    scroll-margin-top: 32px;
}

.publication-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    margin-top: 18px;
    color: inherit;
    text-decoration: none;
    background: var(--soft);
    border: 1px solid transparent;
}

.publication-card:hover {
    background: var(--soft-hover);
    border-color: #dddddd;
}

.document-icon {
    width: 32px;
    flex: 0 0 32px;
    color: #111827;
}

.document-icon svg {
    display: block;
    width: 32px;
    height: 32px;
}

.document-copy {
    display: block;
}

.document-title {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.45;
}

.document-meta {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
}

.access-panel {
    padding: 48px 0 140px;
}

.access-title {
    margin-bottom: 22px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0;
}

.back-form {
    margin: 0;
}

.back-button,
.back-link {
    appearance: none;
    border: 0;
    padding: 0;
    color: #000000;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
}

.content-page {
    max-width: 760px;
}

.content-page a {
    color: #000000;
}

.muted {
    color: var(--muted);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 24px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.site-footer a {
    color: #111827;
    text-decoration: none;
}

@media (max-width: 640px) {
    .site-header {
        height: 72px;
    }

    .page-shell {
        width: min(100% - 32px, var(--page-width));
        padding: 44px 0 52px;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .publication-card {
        padding: 18px;
    }
}
