@font-face {
    font-family: "NeoDunggeunmo";
    src: url("/assets/qnuri/fonts/neodgm.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --blue: #0000a8;
    --white: #ffffed;
    --cyan: #55ffff;
    --yellow: #ffff55;
    --quiet: #a9beff;
    --portal-max-width: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; background: var(--blue); }
body {
    margin: 0;
    color: var(--white);
    background: var(--blue);
    font: 24px/1.5 "NeoDunggeunmo", "Apple SD Gothic Neo", monospace;
    font-synthesis: none;
    -webkit-font-smoothing: none;
}
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button { border-radius: 0; }
button { border: 0; background: transparent; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
}
::selection { color: var(--blue); background: var(--yellow); }
h1, h2, p { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.portal-shell { width: min(var(--portal-max-width), calc(100% - 48px)); margin: 24px auto 0; }
.terminal { border: 7px double var(--cyan); }
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 24px;
    border-bottom: 3px solid var(--cyan);
}
.status-bar a { letter-spacing: 2px; }
.status-bar .admin-entry { color: var(--yellow); letter-spacing: 0; margin-left: auto; margin-right: 16px; white-space: nowrap; }
.screen-code { color: var(--quiet); }
.masthead { text-align: center; padding: 16px 16px 24px; }
.masthead h1 { font-size: 160px; line-height: 1; letter-spacing: 8px; }
.wordmark { display: inline-block; text-shadow: 5px 5px 0 var(--cyan); padding-left: 8px; }
.masthead p { margin-top: 8px; }
.masthead p span { color: var(--cyan); padding: 0 8px; }
.main-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px 24px;
    border-block: 3px solid var(--cyan);
    gap: 16px;
}
.menu-item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0; font-size: 32px; line-height: 1.5; }
.menu-number { color: var(--yellow); }
.menu-label { padding: 0 8px; white-space: nowrap; }
.menu-item-primary .menu-label, .menu-item:hover .menu-label, .menu-item:focus-visible .menu-label { color: var(--blue); background: var(--cyan); }
.news-section { padding: 16px 24px 20px; scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2px solid var(--cyan); padding-bottom: 8px; }
.section-heading h2 { color: var(--yellow); font-size: 32px; line-height: 1.5; }
.news-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; min-width: 0; }
.subreddit, .more-link, .section-note { color: var(--cyan); }
.more-link { white-space: nowrap; }
.more-link:hover { color: var(--yellow); }
.news-list { padding: 8px 0; }
.news-link { display: grid; grid-template-columns: 64px minmax(0, 1fr) 120px 88px; align-items: baseline; gap: 16px; padding: 9px 8px; }
.news-views { text-align: right; color: var(--quiet); font-size: 16px; white-space: nowrap; }
.row-number { overflow-wrap: anywhere; }
.news-link:hover, .news-link:focus-visible { color: var(--blue); background: var(--cyan); }
.news-link:hover .news-date, .news-link:focus-visible .news-date { color: var(--blue); }
.news-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-date { color: var(--quiet); text-align: right; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.section-note { margin-top: 4px; }
.portal-links { display: grid; grid-template-columns: 1.1fr 1fr; border-top: 3px solid var(--cyan); }
.link-section { min-width: 0; padding: 12px 24px 24px; }
.link-section + .link-section { border-left: 3px solid var(--cyan); }
.link-section .section-heading { gap: 8px; }
.link-section h2 { font-size: 24px; }
.section-status { color: var(--quiet); font-size: 16px; white-space: nowrap; }
.shortcut-list { margin-top: 12px; }
.shortcut-list :is(button, a) { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; text-align: left; font-size: 20px; }
.shortcut-list :is(button, a):hover .shortcut-name { color: var(--yellow); }
.shortcut-name { white-space: nowrap; }
.link-arrow { margin-right: 10px; color: var(--cyan); font-size: 16px; }
.shortcut-address { color: var(--white); font-size: 16px; overflow-wrap: anywhere; }
.navigation-note { min-height: 64px; border-top: 7px double var(--cyan); padding: 12px 24px; color: var(--cyan); font-size: 20px; }
.outside-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--quiet); font-size: 16px; padding: 12px 8px 20px; }
.identity-footer { border-top: 1px solid var(--quiet); padding: 20px 8px 28px; font-size: 16px; color: var(--quiet); line-height: 1.8; }
.identity-footer p a { color: var(--cyan); }
.identity-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.identity-footer a:hover { color: var(--yellow); }
.empty-state { padding: 48px 8px; }
.muted { color: var(--quiet); font-size: 20px; margin-top: 8px; }
.skip-link { position: absolute; left: 24px; top: -100px; z-index: 2; background: var(--yellow); color: var(--blue); padding: 8px 16px; }
.skip-link:focus { top: 8px; }
.service-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 7px double var(--cyan); color: var(--white); background: var(--blue); font: inherit; }
.service-dialog::backdrop { background: rgb(0 0 64 / 76%); }
.dialog-topline { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-size: 20px; border-bottom: 2px solid var(--cyan); }
.dialog-x { color: var(--yellow); padding: 4px; }
.dialog-content { padding: 28px 24px; }
.dialog-eyebrow { color: var(--cyan); font-size: 16px; margin-bottom: 12px; }
.dialog-content h2 { color: var(--yellow); font-size: 32px; margin-bottom: 16px; }
.dialog-content p { overflow-wrap: anywhere; }
.dialog-address { color: var(--cyan); margin-top: 20px; }
.dialog-note { color: var(--quiet); font-size: 16px; margin-top: 8px; }
.dialog-confirm { display: block; margin: 28px auto 0; padding: 4px 8px; background: var(--cyan); color: var(--blue); }
@media (max-width: 1050px) {
    body { font-size: 20px; }
    .menu-item, .section-heading h2 { font-size: 24px; }
    .link-section h2 { font-size: 24px; }
    .shortcut-list :is(button, a) { flex-direction: column; gap: 0; }
    .shortcut-address { padding-left: 26px; }
    .navigation-note { font-size: 16px; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .portal-shell { width: calc(100% - 24px); margin-top: 12px; }
    .terminal { border-width: 6px; }
    .status-bar { min-height: 40px; padding-inline: 12px; border-bottom-width: 2px; }
    .screen-code { display: none; }
    .masthead { padding: 24px 8px 20px; }
    .masthead h1 { font-size: 112px; letter-spacing: 4px; }
    .wordmark { text-shadow: 3px 3px 0 var(--cyan); padding-left: 4px; }
    .masthead p { font-size: 16px; line-height: 1.75; }
    .masthead p span { padding-inline: 2px; }
    .main-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 8px; gap: 8px; border-width: 2px; }
    .menu-item { font-size: 24px; min-height: 44px; gap: 8px; }
    .news-section { padding: 16px 12px; }
    .section-heading { align-items: center; gap: 8px; padding-bottom: 10px; }
    .section-heading h2 { font-size: 24px; }
    .news-heading { display: block; }
    .subreddit { font-size: 16px; }
    .more-link { font-size: 16px; }
    .news-list { padding: 4px 0 8px; }
    .news-link { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 4px 8px; padding: 12px 0; }
    .news-title { grid-column: 2 / -1; }
    .news-date { grid-column: 2; text-align: left; }
    .news-views { grid-column: 3; }
    .news-title { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.5; }
    .news-date { font-size: 16px; }
    .section-note { font-size: 16px; }
    .portal-links { grid-template-columns: 1fr; border-top-width: 2px; }
    .link-section { padding: 16px 12px; }
    .link-section + .link-section { border-left: 0; border-top: 2px solid var(--cyan); }
    .link-section h2 { font-size: 24px; }
    .shortcut-list { margin-top: 8px; }
    .shortcut-list :is(button, a) { flex-direction: column; align-items: flex-start; min-height: 44px; gap: 2px; padding-block: 8px; font-size: 16px; }
    .shortcut-address { padding-left: 24px; font-size: 16px; }
    .link-arrow { margin-right: 8px; }
    .navigation-note { min-height: 0; padding: 12px; }
    .outside-footer { font-size: 16px; gap: 8px; flex-wrap: wrap; }
    .dialog-content h2 { font-size: 24px; }
    .dialog-topline { font-size: 16px; }
}
@media (max-width: 380px) {
    .portal-shell { width: calc(100% - 16px); margin-top: 8px; }
    .masthead h1 { font-size: 96px; }
    .masthead p { max-width: 240px; margin-inline: auto; }
    .shortcut-list :is(button, a) { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 8px; }
    .shortcut-address { padding-left: 24px; }
    .section-heading h2 { font-size: 20px; }
}
