/* ========================================
   EC&S Design System
   ======================================== */

/* ========================================
   Font Faces
   ======================================== */

/* IBM Plex Sans */
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/static/fonts/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/static/fonts/IBMPlexSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/static/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Berkeley Mono */
@font-face {
    font-family: 'Berkeley Mono';
    src: url('/static/fonts/TX-02-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Berkeley Mono';
    src: url('/static/fonts/TX-02-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Berkeley Mono';
    src: url('/static/fonts/TX-02-Oblique.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Berkeley Mono';
    src: url('/static/fonts/TX-02-Bold-Oblique.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* --- Color Palette (from Design Bible) --- */
:root {
    --color-harbor: #236192;
    --color-ice: #DFE6EB;
    --color-mist: #DAE1E2;
    --color-slate: #587489;
    --color-void: #2D036E;
    --color-paper: #FCFDFE;
    --color-ink: #111111;
}

/* --- Spectrum Bar --- */
.spectrum-bar {
    display: flex;
    width: 100%;
    height: 8px;
}

.spectrum-bar .block {
    flex: 1;
    height: 100%;
}

.spectrum-bar .block:nth-child(1)  { background: #8B0000; }
.spectrum-bar .block:nth-child(2)  { background: #9A0000; }
.spectrum-bar .block:nth-child(3)  { background: #B00000; }
.spectrum-bar .block:nth-child(4)  { background: #D00000; }
.spectrum-bar .block:nth-child(5)  { background: #F00000; }
.spectrum-bar .block:nth-child(6)  { background: #FF2000; }
.spectrum-bar .block:nth-child(7)  { background: #FF4000; }
.spectrum-bar .block:nth-child(8)  { background: #FF6000; }
.spectrum-bar .block:nth-child(9)  { background: #FF8400; }
.spectrum-bar .block:nth-child(10) { background: #FFA000; }
.spectrum-bar .block:nth-child(11) { background: #FFB500; }
.spectrum-bar .block:nth-child(12) { background: #FFD000; }
.spectrum-bar .block:nth-child(13) { background: #FFE800; }
.spectrum-bar .block:nth-child(14) { background: #FFFF00; }
.spectrum-bar .block:nth-child(15) { background: #CFFF00; }
.spectrum-bar .block:nth-child(16) { background: #8FFF00; }
.spectrum-bar .block:nth-child(17) { background: #4FFF00; }
.spectrum-bar .block:nth-child(18) { background: #00FF00; }
.spectrum-bar .block:nth-child(19) { background: #00FF60; }
.spectrum-bar .block:nth-child(20) { background: #00FFB0; }
.spectrum-bar .block:nth-child(21) { background: #00FFFF; }
.spectrum-bar .block:nth-child(22) { background: #00CFFF; }
.spectrum-bar .block:nth-child(23) { background: #008FFF; }
.spectrum-bar .block:nth-child(24) { background: #004FFF; }
.spectrum-bar .block:nth-child(25) { background: #0000FF; }
.spectrum-bar .block:nth-child(26) { background: #3000FF; }
.spectrum-bar .block:nth-child(27) { background: #7000FF; }
.spectrum-bar .block:nth-child(28) { background: #9800FF; }
.spectrum-bar .block:nth-child(29) { background: #4800AA; }

/* --- Typography Scale --- */
:root {
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Berkeley Mono', ui-monospace, 'Consolas', monospace;
    
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Base --- */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-paper);
    color: var(--color-ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

a {
    color: var(--color-void);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code, pre {
    font-family: var(--font-mono);
    background-color: var(--color-mist);
    border-radius: 3px;
}

code {
    padding: 0.125em 0.25em;
    font-size: var(--text-sm);
}

/* --- Layout --- */
header {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-mist);
}

header nav a {
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--color-harbor);
}

header nav a:hover {
    color: var(--color-void);
    text-decoration: none;
}

main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 64rem;
    width: 100%;
    margin: 0 auto;
}

footer {
    padding: 2rem;
    border-top: 1px solid var(--color-mist);
    color: var(--color-slate);
    font-size: var(--text-sm);
    text-align: center;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.seal-placeholder {
    width: 150px;
    height: 150px;
    border: 3px solid var(--color-ink);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--color-paper);
}

.hero h1 {
    margin-bottom: 0.25rem;
}

.hero .location {
    font-size: var(--text-sm);
    color: var(--color-slate);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: var(--text-lg);
    color: var(--color-slate);
}

/* --- Main Navigation --- */
.main-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
}

.main-nav a {
    font-size: var(--text-lg);
    color: var(--color-ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav a:hover {
    color: var(--color-void);
}

.nav-divider {
    width: 3rem;
    height: 1px;
    background: var(--color-mist);
    margin: 0.5rem 0;
}

/* --- Header Nav --- */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--color-harbor);
}

.wordmark:hover {
    color: var(--color-void);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: var(--text-sm);
    color: var(--color-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--color-void);
    text-decoration: none;
}

/* --- Page Styles --- */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

.page-header .subtitle {
    color: var(--color-slate);
    font-size: var(--text-lg);
}

.page-content {
    line-height: 1.7;
}

.page-content .notice {
    color: var(--color-slate);
    font-style: italic;
}

.page-content .status-ok {
    color: #1a7f37;
    font-weight: 500;
}

/* --- Footer --- */
.seal-small {
    width: 60px;
    height: 60px;
    border-width: 2px;
    margin: 0 auto 1rem;
}