/* =========================================================
   Archive777 Public Design System
   Accounts-inspired public/editorial variant
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #e8f0f7;
    background: #08111a;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
    text-align: center;
    overflow-x: hidden;
}

/* Background video */
.video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(4, 9, 14, 0.58),
        rgba(4, 9, 14, 0.82)
    );
}

.video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,.3);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main layout */
.main-content {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 56px 20px;
}

/* Branding */
h1,
.site-name-link {
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 26px rgba(77,166,255,.28);
}

h1 {
    margin-bottom: 14px;
    font-size: 44px;
}

.slogan {
    margin-bottom: 34px;
    color: #4da6ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-style: italic;
    text-shadow: 0 0 14px rgba(77,166,255,.22);
}

.welcome-text {
    margin-bottom: 34px;
    padding: 28px 30px;
    color: #b7cadb;
    background: rgba(18,31,44,.90);
    border: 1px solid rgba(126,171,210,.30);
    border-left: 3px solid #4da6ff;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0,0,0,.30);
    backdrop-filter: blur(8px);
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

/* Buttons */
.primary-actions,
.donation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.primary-actions {
    margin-bottom: 38px;
}

.primary-actions .btn,
.donation-actions .btn {
    width: min(100%, 420px);
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn-primary {
    color: #08111a;
    background: #4da6ff;
    border-color: #4da6ff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #08111a;
    background: #7fc0ff;
    border-color: #7fc0ff;
    transform: translateY(-1px);
}

.btn-secondary {
    color: #e8f0f7;
    background: rgba(27,42,58,.92);
    border-color: #36516a;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    color: #ffffff;
    background: rgba(35,56,76,.95);
    border-color: #4da6ff;
}

.btn-donate {
    color: #ffffff;
    background: rgba(120,15,15,.28);
    border-color: #ff5c5c;
}

.btn-donate:hover,
.btn-donate:focus-visible {
    background: rgba(170,20,20,.42);
    border-color: #ff7a7a;
}

/* Homepage catalogue */
.file-list {
    margin-top: 42px;
    padding: 26px;
    color: #e8f0f7;
    background: rgba(18,31,44,.90);
    border: 1px solid rgba(126,171,210,.30);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0,0,0,.30);
    backdrop-filter: blur(8px);
    text-align: left;
}

.file-list h3 {
    margin-bottom: 18px;
    padding-bottom: 7px;
    color: #ffffff;
    border-bottom: 1px solid rgba(77,166,255,.25);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.file-item {
    margin-bottom: 10px;
    padding: 15px 17px;
    background: rgba(9,18,27,.68);
    border: 1px solid rgba(126,171,210,.16);
    border-left: 3px solid #4da6ff;
    border-radius: 5px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.file-item:hover {
    background: rgba(27,42,58,.82);
    border-color: rgba(77,166,255,.35);
    transform: translateX(3px);
}

.file-name {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.file-meta {
    color: #8298ad;
    font-size: 11px;
    letter-spacing: .45px;
    line-height: 1.55;
}

/* Forms / modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(4,9,14,.90);
}

.modal.active { display: flex; }

.modal-content {
    position: relative;
    width: min(500px, 100%);
    padding: 32px;
    color: #e8f0f7;
    background: rgba(18,31,44,.96);
    border: 1px solid rgba(126,171,210,.35);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0,0,0,.42);
    backdrop-filter: blur(8px);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #4da6ff;
    font-size: 28px;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus { color: #ffffff; }

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #b7cadb;
    font-size: 11px;
    letter-spacing: .3px;
}

.form-input {
    width: 100%;
    padding: 12px 13px;
    color: #ffffff;
    background: rgba(9,18,27,.94);
    border: 1px solid #36516a;
    border-radius: 5px;
    outline: none;
    font: inherit;
}

.form-input:focus {
    border-color: #4da6ff;
    box-shadow: 0 0 0 2px rgba(77,166,255,.12);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Legal / informational pages — consolidated tight spacing v1.4 */
.legal-page {
    width: min(100%, 1040px);
}

.legal-page-header {
    margin-bottom: 24px;
}

.site-name-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 36px;
    text-decoration: none;
}

.site-name-link:hover,
.site-name-link:focus-visible {
    color: #4da6ff;
}

.legal-page-header .slogan {
    margin-bottom: 0;
}

.legal-content {
    padding: 30px 34px;
    color: #e8f0f7;
    background: rgba(18,31,44,.90);
    border: 1px solid rgba(126,171,210,.30);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0,0,0,.34);
    backdrop-filter: blur(8px);
    text-align: left;
}

.legal-content > h1 {
    margin-bottom: 6px;
    font-size: 30px;
    letter-spacing: 3px;
    text-align: center;
}

.legal-updated {
    margin-bottom: 20px;
    color: #8298ad;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .8px;
    text-align: center;
    text-transform: uppercase;
}

.legal-content section {
    margin-bottom: 7px;
    padding: 16px 18px;
    background: rgba(9,18,27,.58);
    border: 1px solid rgba(126,171,210,.18);
    border-radius: 6px;
}

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

.legal-content h2 {
    margin-bottom: 8px;
    padding-bottom: 12px;
    color: #ffffff;
    border-bottom: 1px solid rgba(77,166,255,.24);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .6px;
    line-height: 1.45;
}

.legal-content p {
    margin-bottom: 6px;
    color: #b7cadb;
    font-size: 14px;
    line-height: 1.5;
}

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

.legal-content ul {
    list-style: none;
    margin: 8px 0 9px;
    padding: 0;
}

.legal-content li {
    margin-bottom: 5px;
    padding: 9px 12px;
    color: #b7cadb;
    background: rgba(18,31,44,.68);
    border: 1px solid rgba(126,171,210,.14);
    border-left: 3px solid #4da6ff;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

.legal-content li:last-child { margin-bottom: 0; }

.legal-content strong { color: #ffffff; }

.legal-content code {
    padding: 2px 6px;
    color: #dcecff;
    background: rgba(9,18,27,.94);
    border: 1px solid rgba(126,171,210,.20);
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
}

.legal-page-actions {
    margin-top: 16px;
}

/* Mission / About */
.mission-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 22px !important;
    background:
        linear-gradient(135deg, rgba(77,166,255,.10), rgba(9,18,27,.70)) !important;
    border-color: rgba(77,166,255,.34) !important;
    border-left: 3px solid #4da6ff !important;
}

.mission-kicker {
    margin-bottom: 6px !important;
    color: #8ec8ff !important;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.mission-lead {
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px !important;
    line-height: 1.5 !important;
}

.mission-statement {
    margin: 8px 0;
    padding: 12px 15px;
    color: #ffffff;
    background: rgba(4,9,14,.45);
    border-left: 3px solid #4da6ff;
    border-radius: 0 5px 5px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
}

.mission-question {
    margin: 5px 0;
    padding: 14px 16px;
    color: #a9bdd0;
    background: rgba(9,18,27,.52);
    border: 1px solid rgba(126,171,210,.16);
    border-radius: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.mission-question.primary {
    color: #ffffff;
    border-color: rgba(77,166,255,.34);
}

.mission-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 5px;
    margin: 8px 0;
}

.mission-principles div {
    padding: 8px 11px;
    color: #dfeaf3;
    background: rgba(9,18,27,.62);
    border: 1px solid rgba(126,171,210,.16);
    border-left: 3px solid #4da6ff;
    border-radius: 5px;
    font-size: 14px;
}

.mission-closing {
    margin-top: 9px !important;
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px !important;
    line-height: 1.5 !important;
    text-align: center;
}

.practice-intro {
    margin: 12px 0 8px;
    color: #8ec8ff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-align: center;
    text-transform: uppercase;
}

/* Donation graphics */
.gofundme-link {
    display: block;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    text-decoration: none;
}

.gofundme-ad {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 8px;
}

.gofundme-qr-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-decoration: none;
}

.gofundme-qr {
    display: block;
    width: 180px;
    max-width: 55vw;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}

/* Footer */
footer,
.site-footer {
    margin-top: 46px;
    padding: 28px 20px;
    background: rgba(0,0,0,.74);
    border-top: 1px solid rgba(77,166,255,.21);
    border-radius: 6px 6px 0 0;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
}

.footer-navigation a {
    margin: 0;
    color: #4da6ff;
    border: 0;
    background: transparent;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible {
    color: #ffffff;
}

.footer-navigation a[aria-current="page"] {
    color: #ffffff;
}

footer p,
.site-footer p {
    margin: 0 0 10px;
    color: #656565;
    font-size: 13px;
    text-align: center;
}

footer p:last-child,
.site-footer p:last-child { margin-bottom: 0; }

.system-status { font-size: 12px; }

/* Motion */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content > * {
    animation: fadeInUp .55s ease both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Responsive */
@media (max-width: 700px) {
    .main-content,
    .legal-page {
        width: 100%;
        padding: 28px 12px;
    }

    h1 {
        font-size: 30px;
        letter-spacing: 3px;
        overflow-wrap: anywhere;
    }

    .slogan {
        margin-bottom: 28px;
        font-size: 20px;
        line-height: 1.4;
    }

    .welcome-text {
        padding: 22px 18px;
        font-size: 15px;
        line-height: 1.7;
    }

    .primary-actions,
    .donation-actions {
        width: 100%;
    }

    .primary-actions .btn,
    .donation-actions .btn {
        width: 100%;
        max-width: 100%;
    }

    .file-list {
        margin-top: 32px;
        padding: 18px 14px;
    }

    .file-name,
    .file-meta {
        overflow-wrap: anywhere;
    }

    .legal-page-header {
        margin-bottom: 20px;
    }

    .site-name-link {
        margin-bottom: 16px;
        font-size: 29px;
        letter-spacing: 4px;
    }

    .legal-content {
        padding: 16px 11px;
    }

    .legal-content > h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .legal-updated {
        margin-bottom: 16px;
    }

    .legal-content section {
        margin-bottom: 8px;
        padding: 15px 13px;
    }

    .legal-content h2 {
        margin-bottom: 8px;
        padding-bottom: 6px;
        font-size: 16px;
        line-height: 1.35;
    }

    .legal-content p {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.5;
    }

    .legal-content li {
        margin-bottom: 4px;
        padding: 8px 10px;
        font-size: 14px;
        line-height: 1.5;
    }

    .mission-hero {
        padding: 17px 14px !important;
    }

    .mission-lead,
    .mission-statement,
    .mission-closing {
        font-size: 18px !important;
    }

    .mission-principles {
        grid-template-columns: 1fr;
    }

    .footer-navigation {
        flex-direction: column;
    }

    .footer-navigation span {
        display: none;
    }

    footer,
    .site-footer {
        padding: 24px 12px;
    }

    .gofundme-qr {
        width: 150px;
        max-width: 50vw;
    }
}
