@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: oklch(0.19 0.012 235);
  --panel: oklch(0.235 0.014 235);
  --panel-2: oklch(0.27 0.016 235);
  --line: oklch(0.34 0.016 235);
  --text: oklch(0.94 0.008 235);
  --muted: oklch(0.74 0.02 235);
  --cyan: oklch(0.82 0.12 205);
  --cyan-ink: oklch(0.2 0.03 215);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; scrollbar-color: var(--line) var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
::selection { background: var(--cyan); color: var(--cyan-ink); }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }

.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--cyan); color: var(--cyan-ink); padding: .5rem .9rem; font-weight: 600; z-index: 10; }
.skip:focus { top: .5rem; }

/* utility bar */
.util { background: oklch(0.15 0.01 235); border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.util-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.util p { margin: 0; }
.dot { display: inline-block; width: .5rem; height: .5rem; background: var(--cyan); border-radius: 50%; margin-right: .5rem; vertical-align: .05em; }

/* masthead */
.masthead { background: var(--panel); border-bottom: 1px solid var(--line); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cyan); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.wordmark b { font-weight: 700; color: var(--cyan); }
.primary { display: flex; gap: .25rem; }
.primary a { padding: .45rem .8rem; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--muted); border-radius: 3px; }
.primary a:hover { color: var(--text); background: var(--panel-2); }

/* department strip */
.dept-strip { background: var(--panel-2); border-bottom: 1px solid var(--line); }
.dept-strip ul { display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dept-strip a { display: block; white-space: nowrap; padding: .6rem .9rem; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.dept-strip a:hover { color: var(--cyan); }

/* layout */
.layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 15rem; gap: 1.25rem; padding-block: 1.5rem 2.5rem; flex: 1; align-items: start; }
.rail, .status, .board { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.rail h2, .status h2, .board h2 { font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase; padding: .6rem .9rem; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.rail a { display: block; padding: .5rem .9rem; font-size: .9375rem; text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); }
.rail li:last-child a { border-bottom: 0; }
.rail a:hover { color: var(--cyan); background: var(--panel-2); }

.content { display: grid; gap: 1.25rem; min-width: 0; }

/* coming soon panel */
.soon { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.5rem, 4vw, 3rem); overflow: hidden; }
.soon-rule { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cyan); transform-origin: left; animation: draw 1.1s var(--ease) both; }
.soon h1 { font-size: clamp(3.25rem, 11vw, 6rem); line-height: .92; letter-spacing: .01em; text-transform: uppercase; margin-top: .5rem; }
.soon h1 span { color: var(--cyan); }
.soon-lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.4; max-width: 38ch; margin: 1.5rem 0 0; }
.soon-sub { color: var(--muted); margin: .75rem 0 0; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* departments board */
.board h2 { border-top-left-radius: 3px; border-top-right-radius: 3px; }
.board table { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.board thead th { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.board tbody th { font-family: var(--display); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.board td { color: var(--muted); }
.board tbody tr:last-child > * { border-bottom: 0; }
.board tbody tr:target { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--cyan); }
.board .st { color: var(--cyan); font-weight: 600; font-size: .875rem; white-space: nowrap; }

/* status rail */
.status dl { margin: 0; }
.status dl div { padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.status dl div:last-child { border-bottom: 0; }
.status dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status dd { margin: .1rem 0 0; font-weight: 500; }

.foot { border-top: 1px solid var(--line); background: oklch(0.15 0.01 235); color: var(--muted); font-size: .875rem; }
.foot p { margin: 0; padding-block: 1rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1rem; }
.foot .ver { font-size: .75rem; font-variant-numeric: tabular-nums; }

/* upload / file manager */
.admin { display: grid; gap: 1.25rem; padding-block: 1.5rem 2.5rem; flex: 1; align-content: start; }
.primary a[aria-current="page"] { color: var(--cyan); }
.upload form { display: grid; gap: .75rem; justify-items: start; padding: 1rem .9rem 1.1rem; }
.upload label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.upload input[type="file"] { max-width: 100%; padding: .5rem; background: var(--ground); border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: inherit; }
.upload input[type="file"]::file-selector-button { margin-right: .75rem; padding: .35rem .75rem; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 3px; font: 600 .875rem var(--body); cursor: pointer; }
.upload input[type="file"]::file-selector-button:hover { border-color: var(--cyan); }
.upload input[type="text"] { width: min(100%, 28rem); padding: .5rem; background: var(--ground); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font: inherit; }
.files .del { margin-left: auto; flex: none; }
.files .del button { padding: .3rem .75rem; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; font: 600 .875rem var(--body); cursor: pointer; }
.files .del button:hover, .files .del button:focus-visible { color: #ff8a80; border-color: #ff8a80; }
.upload input:focus-visible, .upload button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.upload button { padding: .55rem 1.25rem; background: var(--cyan); color: var(--cyan-ink); border: 0; border-radius: 3px; font: 700 1.0625rem var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: filter .2s var(--ease); }
.upload button:hover { filter: brightness(1.1); }
.files li { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); min-width: 0; }
.files li:last-child { border-bottom: 0; }
.files li:hover { background: var(--panel-2); }
.files a { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.files a:hover { color: var(--cyan); }
.files .thumb { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; background: var(--ground); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.files .thumb:empty { height: 2.5rem; }
.files .thumb img { max-width: 100%; max-height: 100%; }
.files .empty { display: block; padding: 1rem .9rem; color: var(--muted); }
.files .empty:hover { background: none; }

@media (max-width: 62rem) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .status { order: 2; }
}
@media (max-width: 40rem) {
  .util-note { display: none; }
  .primary { display: none; }
  .board thead { display: none; }
  .board tr { display: grid; grid-template-columns: 1fr auto; padding: .7rem .9rem; border-bottom: 1px solid var(--line); gap: 0 .75rem; }
  .board tbody tr:last-child { border-bottom: 0; }
  .board th, .board td { padding: 0; border: 0; }
  .board td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; }
  .board .st { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soon-rule { animation: none; }
}
