:root {
    --paper: #f6f4ef;
    --paper-deep: #eeebe4;
    --ink: #18171b;
    --muted: #6f6c73;
    --line: #d9d5cd;
    --accent: #4e709c;
    --accent-dark: #385a84;
    --night: #1e1b29;
    --white: #fff;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
h1, h2, p, dl, dd { margin-top: 0; }
.site-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 16px;
    padding: 9px 14px;
    color: var(--white);
    background: var(--ink);
    border-radius: 5px;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.015em;
    text-decoration: none;
}
.brand img { display: block; width: 28px; height: 28px; }
.site-nav { font-size: 13px; }
.site-nav a, .site-footer a { color: var(--accent-dark); text-underline-offset: 3px; }

.utility { padding: 64px 0 72px; }
.utility-heading { max-width: 610px; margin-bottom: 28px; }
.utility-heading h1, .page-heading h1, .not-found h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 6vw, 42px);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.utility-heading p, .page-heading > p:last-child, .not-found > p:not(.error-code) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
}
.limit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
    border: 1px solid var(--line);
    background: var(--paper-deep);
}
.limit-list span {
    padding: 11px 13px;
    color: var(--muted);
    font-size: 11px;
}
.limit-list span + span { border-left: 1px solid var(--line); }
.limit-list strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; }

.upload-card {
    position: relative;
    min-height: 350px;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30, 27, 41, .045);
}
.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.upload-idle { width: 100%; height: 100%; }
.drop-zone {
    min-height: 308px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 28px;
    background: var(--paper);
    border: 1px dashed #aaa5ad;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.drop-zone:hover, .drop-zone.is-dragging, .file-input:focus + .drop-zone {
    background: #edf2f7;
    border-color: var(--accent);
}
.upload-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    color: var(--white);
    background: var(--accent);
    border-radius: 5px;
}
.upload-icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.drop-zone strong { font-size: 16px; }
.drop-zone > span:not(.upload-icon) { color: var(--muted); font-size: 13px; }
.drop-zone u { color: var(--accent-dark); font-weight: 600; text-underline-offset: 3px; }
.drop-zone small { margin-top: 18px; color: var(--muted); font-size: 11px; }
.upload-progress, .captcha-challenge {
    width: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 28px;
}
.captcha-challenge { align-items: start; }
.file-badge {
    width: 52px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--accent);
    border-radius: 4px 12px 4px 4px;
    font: 9px var(--mono);
}
.file-details, .captcha-details { min-width: 0; }
.file-details strong, .captcha-details > strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-details > span, .file-details small, .captcha-details > span {
    color: var(--muted);
    font-size: 11px;
}
.captcha-details > span { display: block; margin-bottom: 18px; }
.state-label {
    margin-bottom: 7px;
    color: var(--accent-dark);
    font: 600 10px/1.4 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.captcha-details cap-widget {
    display: block;
    margin-bottom: 16px;
    --cap-background: #f6f4ef;
    --cap-border-color: #d9d5cd;
    --cap-border-radius: 5px;
    --cap-color: #18171b;
    --cap-font: var(--sans);
}
.progress-track {
    height: 5px;
    margin: 16px 0 8px;
    overflow: hidden;
    background: var(--paper-deep);
    border-radius: 99px;
}
.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
    transition: width .12s linear;
}
.upload-complete { width: 100%; max-width: 540px; text-align: left; }
.success-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--white);
    background: var(--accent);
    border-radius: 50%;
    font-size: 17px;
}
.upload-complete h2 { margin-bottom: 6px; font-size: 23px; letter-spacing: -.025em; }
.upload-complete > p:not(.state-label) { color: var(--muted); font-size: 13px; }
.link-field { display: flex; gap: 8px; margin: 20px 0 14px; }
.link-field input {
    min-width: 0;
    flex: 1;
    padding: 10px 11px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    font: 11px var(--mono);
}
.upload-status {
    position: absolute;
    right: 20px;
    bottom: 8px;
    left: 20px;
    margin: 0;
    color: #96364f;
    font-size: 11px;
    text-align: center;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.button--dark { color: var(--white); background: var(--ink); }
.button--dark:hover { background: var(--night); }
.text-button {
    padding: 0;
    color: var(--accent-dark);
    background: none;
    border: 0;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.text-link { color: var(--accent-dark); font-size: 13px; text-underline-offset: 3px; }

.service-summary {
    padding: 54px 0 64px;
    border-top: 1px solid var(--line);
}
.service-summary h2, .information-section h2 {
    margin-bottom: 22px;
    font-size: 19px;
    letter-spacing: -.015em;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 22px;
}
.summary-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.summary-grid strong { display: block; margin-bottom: 4px; color: var(--ink); }

.information-page { padding: 64px 0 80px; }
.page-heading { max-width: 640px; margin-bottom: 42px; }
.service-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 56px;
    border: 1px solid var(--line);
}
.service-facts div { padding: 15px; }
.service-facts div + div { border-left: 1px solid var(--line); }
.service-facts dt { color: var(--muted); font-size: 11px; }
.service-facts dd { font-size: 14px; font-weight: 650; }
.information-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}
.information-section p { grid-column: 2; margin-bottom: 12px; color: var(--muted); }
.information-section h2 + p { margin-top: 0; }
.information-page > .button { margin-top: 28px; }

.not-found {
    min-height: calc(100vh - 178px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 0;
}
.error-code { margin-bottom: 12px; color: var(--accent); font: 600 12px var(--mono); }
.not-found > p:not(.error-code) { max-width: 520px; }
.button-row { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.site-footer {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 11px;
}

:focus-visible { outline: 3px solid rgba(78, 112, 156, .45); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 620px) {
    .site-shell { width: min(100% - 28px, 760px); }
    .site-header { min-height: 64px; }
    .brand img { width: 26px; height: 26px; }
    .site-nav { font-size: 12px; }
    .utility, .information-page { padding-top: 44px; }
    .limit-list, .service-facts { grid-template-columns: 1fr; }
    .limit-list span + span, .service-facts div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .upload-card { min-height: 330px; padding: 12px; }
    .drop-zone { min-height: 304px; padding: 20px; }
    .upload-progress, .captcha-challenge { padding: 18px 10px; }
    .summary-grid { grid-template-columns: 1fr; gap: 18px; }
    .information-section { display: block; }
    .information-section h2 { margin-bottom: 12px; }
    .link-field, .button-row { align-items: stretch; flex-direction: column; }
    .link-field .button { width: 100%; }
    .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

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