/* Nurdigital dark gold-on-black system. Text and controls meet WCAG 2.1 AA contrast. */
@font-face { font-family: Cinzel; font-weight: 500; font-display: swap; src: url("fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Raleway; font-weight: 400; font-display: swap; src: url("fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Raleway; font-weight: 600; font-display: swap; src: url("fonts/raleway-latin-600-normal.woff2") format("woff2"); }
:root { --gold: #C9A84C; --black: #0D0D0D; --panel: #1A1A1A; --text: #F5EDD6; --muted: #C4BCA6; --line: #7A6A38; --error: #FFB4A8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--text); font: 16px/1.55 Raleway, system-ui, sans-serif; }
header, main, footer { max-width: 54rem; margin: 0 auto; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
nav { display: flex; gap: 1rem; align-items: center; }
h1, h2, .brand { font-family: Cinzel, Georgia, serif; color: var(--gold); line-height: 1.25; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; margin-top: 0; }
.brand { margin: 0; font-weight: 700; } .brand span { color: var(--text); font-weight: 500; }
a { color: var(--gold); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; margin: 1rem 0; }
.narrow { max-width: 28rem; margin: 3rem auto; }
label, legend { display: block; margin: .75rem 0 .25rem; font-weight: 600; }
.inline { display: inline-block; margin-right: 1.5rem; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; }
input:not([type=radio]):not([type=file]), textarea { width: 100%; background: var(--black); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: .65rem; font: inherit; }
.grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
button, .button { display: inline-block; margin-top: .75rem; background: var(--gold); color: var(--black); border: 1px solid var(--gold); border-radius: 4px; padding: .65rem 1.2rem; font: 600 1rem Raleway, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
button.plain { background: transparent; color: var(--gold); }
button.danger { background: transparent; color: var(--error); border-color: var(--error); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.drop { border: 2px dashed var(--line); border-radius: 6px; padding: 1.75rem 1rem; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--gold); background: #231F12; }
.drop input { display: block; margin: .75rem auto 0; max-width: 100%; color: var(--text); }
.files, .queue { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .75rem 0; border-bottom: 1px solid #333; }
.files li > span, .queue li { min-width: 0; overflow-wrap: anywhere; }
.files .button { margin-top: 0; }
.queue li { padding: .75rem 0; border-bottom: 1px solid #333; }
progress { width: 100%; height: .8rem; accent-color: var(--gold); }
.hint, small { color: var(--muted); font-size: .9rem; }
.message { white-space: pre-line; }
.flash { border: 1px solid var(--gold); border-radius: 4px; padding: .75rem 1rem; }
.flash.error { border-color: var(--error); color: var(--error); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid #333; vertical-align: top; }
summary { cursor: pointer; margin-top: 1rem; color: var(--gold); }
code { overflow-wrap: anywhere; }
footer { color: var(--muted); font-size: .85rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: var(--black); padding: .5rem; }
nav button { margin-top: 0; padding: .35rem .9rem; }
