:root {
    color-scheme: light;
    --blue: #142b55;
    --deep-blue: #0e2041;
    --blue-tint: #eff3fa;
    --red: #c52638;
    --dark-red: #a31d2d;
    --white: #fff;
    --muted: #425475;
    --line: #d8e0ef;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--blue); background: var(--white); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
h1 { font-size: clamp(2.75rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.container { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; inset: .75rem auto auto .75rem; padding: .75rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .official-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 5rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .375rem; text-decoration: none; font-size: 1.125rem; font-weight: 650; white-space: nowrap; }
.brand strong { color: var(--red); }
.brand-mark { width: 1.25rem; height: 1.25rem; margin-right: .375rem; background: linear-gradient(90deg, var(--blue) 0 43%, var(--white) 43% 57%, var(--red) 57%); border-radius: 2px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-size: .9rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; }
.nav-action { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 4px; }

.hero { background: var(--blue-tint); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { color: var(--dark-red); font-size: .9rem; font-weight: 750; }
.hero h1, .status-page h1 { margin-top: .75rem; }
.hero-description, .status-page p:not(.eyebrow) { max-width: 34rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.button { display: inline-block; padding: .8rem 1.2rem; border-radius: 4px; color: var(--white); background: var(--red); font-weight: 720; text-decoration: none; }
.button:hover { background: var(--dark-red); }
.text-link { font-weight: 700; }

.invoice-frame { min-width: 0; display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 2.5rem); background: var(--blue); border-top: 4px solid var(--red); border-radius: 6px; }
.invoice { padding: clamp(1rem, 3vw, 1.75rem); background: var(--white); box-shadow: 0 8px 20px #0e204145; }
.invoice-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.invoice-sample { color: var(--dark-red); font-weight: 750; }
.invoice-type { font-family: var(--serif); color: var(--blue); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.invoice-title { margin-top: .75rem; font-size: 1.2rem; font-weight: 750; line-height: 1.25; }
.invoice-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; font-size: .875rem; }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; font-weight: 700; }
.invoice table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.invoice th, .invoice td { padding: .5rem .3rem; border-bottom: 1px solid var(--line); text-align: left; }
.invoice tr > :last-child { text-align: right; white-space: nowrap; }
.invoice tfoot th, .invoice tfoot td { border: 0; padding-top: .75rem; font-weight: 760; color: var(--dark-red); }
.invoice-frame figcaption { color: #e8efff; font-size: .875rem; }

.content-section { padding-block: clamp(3.5rem, 7vw, 6.5rem); scroll-margin-top: 1rem; }
.section-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem 3rem; }
.section-lead p, .official p { max-width: 39rem; font-size: 1.125rem; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.flow article { padding-block: 1rem; border-top: 2px solid var(--red); }
.flow p { margin-top: .5rem; color: var(--muted); }
.official { padding-block: 3.5rem; color: var(--white); background: var(--deep-blue); }
.official p { margin-top: .75rem; color: #dbe5f7; }
.official .button { flex-shrink: 0; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem 3rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding-block: 1rem; cursor: pointer; font-weight: 720; }
details p { padding: 0 1rem 1rem 0; color: var(--muted); }

.status-page { min-height: 64vh; padding-block: clamp(4rem, 10vw, 8rem); }
.status-page h1 { max-width: 65rem; }
.status-page .button { margin-top: 1.75rem; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { min-height: 5rem; font-size: .9rem; }

@media (max-width: 52rem) {
    .hero-inner, .section-lead, .faq { grid-template-columns: 1fr; }
    .invoice-frame { max-width: 36rem; }
}

@media (max-width: 40rem) {
    .container { width: calc(100% - 2rem); }
    .header-inner, .official-inner { align-items: flex-start; flex-direction: column; gap: .75rem; }
    .flow { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 22rem) {
    .invoice-frame, .invoice { padding: .75rem; }
    .invoice td, .invoice th { padding-inline: 0; }
}
