@font-face {
  font-family: Cinzel;
  src: url("/assets/cinzel.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #0a0b0d;
  --panel: #17191d;
  --charcoal: #26292e;
  --silver: #a8adb5;
  --ivory: #f0eee8;
  --line: #474a50;
  --display: Cinzel, Georgia, serif;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button {
  border: 1px solid #656971;
  background: transparent;
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  transition: background 0.15s;
}
button:hover:enabled {
  background: #33363b;
}
a {
  text-underline-offset: 0.25em;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid #ece9dd;
  outline-offset: 4px;
}
button.primary {
  background: var(--ivory);
  color: #141519;
  border-color: var(--ivory);
  font-weight: 600;
}
button.primary:hover:enabled {
  background: #d0d1ce;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #797d84;
  border-radius: 2px;
  background: #121418;
  color: var(--ivory);
  padding: 0.72rem 0.85rem;
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: #a2a5ad;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.025em;
  color: #d9d9d8;
}
label input,
label textarea,
label select {
  margin-top: 0.4rem;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
.entrance {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #101113;
}
.atrium-art,
.frame {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.atrium-art {
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 4, 6, 0.26),
      transparent 26%,
      transparent 70%,
      rgba(3, 4, 6, 0.62)
    ),
    url("/assets/atrium.webp") center center/cover no-repeat;
  background-color: #101113;
}
.frame {
  inset: 21px;
  border: 1px solid rgba(201, 202, 202, 0.32);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 25px;
  height: 3px;
  background: var(--silver);
}
.frame::before {
  left: 0;
}
.frame::after {
  right: 0;
}
.outerbar,
.inner-foot,
.dateline,
.eyebrow,
.page-kicker,
.brand small {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 500;
}
.outerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 3.7%;
  padding: 35px 10px;
  color: #e5e5e2;
  text-shadow: 0 1px 6px #000;
}
.outerbar .word {
  font: 1.5rem var(--display);
  letter-spacing: 0.15em;
}
.threshold {
  justify-self: center;
  align-self: center;
  width: min(340px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1.4rem 0;
}




.threshold h1 {
  font: clamp(4rem, 7.4vw, 7.8rem)/1.1 var(--display);
  letter-spacing: 0.13em;
  text-indent: 0.13em;
  margin: 1.1rem 0 0.14em;
  text-shadow: 0 3px 25px #050507;
}
.motto,
.quotation {
  font:
    italic 1.45rem Georgia,
    serif;
  letter-spacing: 0.04em;
  color: #e1e0db;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 62%;
  margin: 1.7rem 0;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #74777c;
}
.divider i {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: #cacecf;
}
#login {
  width: min(290px, 100%);
  text-align: left;
}
#login label {
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: #eeece6;
}
#password {
  height: 48px;
  background: rgba(12, 13, 15, 0.93);
}
#login button {
  margin-top: 0.7rem;
  width: 100%;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
}
#login button span {
  font-size: 1.35rem;
  line-height: 1;
}
#status {
  min-height: 1.55em;
  font-size: 0.78rem;
  margin-top: 0.55rem;
  text-align: center;
  color: #f1eae0;
  text-shadow: 0 1px 4px #000;
}
.inside {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.mast,
.inner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  padding: 1.1rem max(5vw, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 1.8rem var(--display);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.brand small {
  font: 0.62rem var(--ui);
  letter-spacing: 0.15em;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  margin-left: 0.45rem;
  vertical-align: middle;
  color: var(--silver);
}
.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2.8vw, 2.6rem);
  font-size: 0.85rem;
}
nav a {
  text-decoration: none;
  color: var(--silver);
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
}
nav a[aria-current] {
  color: var(--ivory);
  border-color: var(--silver);
}
#lock {
  font-size: 0.78rem;
  padding: 0.55rem 0.85rem;
}
#main {
  width: min(90%, 1200px);
  margin: 0 auto;
  flex: 1;
  padding: clamp(2.5rem, 6vw, 5.8rem) 0 5rem;
  min-width: 0;
}
.dateline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #c1c4ca;
}
#clock {
  color: #eeece7;
  margin: 0 0.25rem;
  font: 1.05rem var(--display);
  letter-spacing: 0.09em;
}
.page-kicker,
.eyebrow {
  color: var(--silver);
}
#main h1 {
  font: clamp(3.2rem, 6.7vw, 6.8rem)/1.14 var(--display);
  letter-spacing: -0.055em;
  margin: 0.26em 0 0.54em;
}
.command-grid {
  border-top: 1px solid #92959a;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 6vw, 6rem);
}
section {
  min-width: 0;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.45rem;
}
.command-grid > section:first-child,
.command-grid > div:first-child > section:first-child,
.command-grid > .capture,
.command-grid > .compass {
  border: 0;
}
.section-head,
.tools,
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
h2 {
  font: clamp(1.45rem, 2vw, 2.15rem)/1.3 var(--display);
  letter-spacing: -0.04em;
}
h3 {
  font:
    1.35rem Georgia,
    serif;
}
.section-head {
  margin-bottom: 1.2rem;
}
.text-btn,
.record,
.inner-foot button,
.tools button,
.section-head button,
.row-buttons button,
.herald button {
  background: none;
  color: #d1d3d7;
  border: 0;
  font-size: 0.8rem;
}
.section-head button,
.inner-foot button,
.tools button,
.herald button {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.empty,
.prose,
.charter > p,
.downloads + p {
  color: #b8bac0;
}
.empty {
  padding: 1.25rem 0;
  font-size: 0.92rem;
}
.rows,
.downloads {
  padding: 0;
  list-style: none;
}
.rows li {
  border-top: 1px solid #36393f;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.25rem 0;
}
.rows a,
.rows span,
.prose,
.markdown,
.downloads a {
  overflow-wrap: anywhere;
  min-width: 0;
}
.row-buttons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.row-buttons button {
  min-height: 38px;
  padding: 0.3rem 0.45rem;
}
.tick {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 2px;
  border-color: #a7aab0;
  padding: 0;
  line-height: 20px;
}
.priority > span {
  flex: 1;
}
.priority.done > span {
  text-decoration: line-through;
  color: var(--silver);
}
.capture {
  background: #15171a;
  padding: 1.45rem clamp(1rem, 2vw, 2rem) 1.7rem;
}
#quick textarea {
  margin: 0.45rem 0 0.75rem;
}
#quick button,
.form-actions button {
  font-size: 0.87rem;
}
.capture h3.eyebrow {
  font: 0.65rem var(--ui);
  letter-spacing: 0.18em;
  margin-top: 2.1rem;
  margin-bottom: 1rem;
}
.record {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.6rem 0.2rem;
  text-align: left;
  font-size: 0.97rem;
}
.record small,
.inner-foot,
small {
  color: var(--silver);
}
.record small {
  font-size: 0.72rem;
  white-space: nowrap;
}
.compass article {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.compass .section-head {
  margin-bottom: 0.4rem;
}
.prose {
  white-space: pre-wrap;
}
.charter {
  padding: 2rem clamp(1rem, 3vw, 3rem);
  border: 1px solid var(--line);
  background: #15171a;
}
.charter > p {
  max-width: 66ch;
  margin: 0.9rem 0;
}
.charter .quotation {
  font-size: 2rem;
  color: var(--ivory);
}
.hall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.herald {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #15171a;
  border: 1px solid var(--line);
  padding: 1.2rem;
  min-width: 0;
}
.herald h3 {
  font: 1.6rem var(--display);
}
.herald i {
  color: var(--silver);
  font:
    italic 1rem Georgia,
    serif;
}
.herald .eyebrow {
  font-size: 0.6rem;
  min-height: 2.2rem;
  line-height: 1.4;
}
.herald button {
  margin-top: auto;
  padding: 0.75rem 0 0;
}

.insignia-detail {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.inner-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.inner-foot button {
  font-family: var(--ui);
}
.notice:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  width: max-content;
  background: #282b30;
  color: #fff;
  padding: 0.55rem 1rem;
  border: 1px solid #777b81;
  font-size: 0.85rem;
  z-index: 3;
}
dialog {
  width: min(640px, 92vw);
  max-height: 85svh;
  color: var(--ivory);
  background: #191b1f;
  border: 1px solid #777b82;
  padding: clamp(1rem, 3vw, 2.3rem);
  border-radius: 3px;
}
dialog::backdrop {
  background: rgba(4, 5, 7, 0.84);
}
dialog h2 {
  margin-bottom: 0.4rem;
}
dialog form label {
  margin: 0.8rem 0;
}
dialog textarea {
  min-height: 115px;
}
textarea[name="markdown_body"] {
  min-height: 32vh;
  font:
    1rem/1.6 ui-monospace,
    monospace;
}
.form-actions {
  justify-content: flex-start;
  margin: 1rem 0;
}
.tools {
  justify-content: flex-start;
}
.tools a {
  font-size: 0.85rem;
}
.markdown {
  padding: 1rem;
  background: var(--ink);
  margin-top: 1rem;
}
.markdown > * {
  margin: 0.6em 0;
}
.markdown pre {
  white-space: pre-wrap;
}
.markdown table {
  display: block;
  overflow: auto;
}
.downloads a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  text-decoration: none;
}
.downloads + p {
  font-size: 0.85rem;
}
.skip {
  position: fixed;
  left: 0.5rem;
  top: -100px;
  background: var(--ink);
  padding: 0.5rem;
  z-index: 5;
}
.skip:focus {
  top: 0.5rem;
}
body.locked > *:not(#reauth) {
  visibility: hidden !important;
}
#reauth::backdrop {
  background: #0a0b0d;
}
.opening-gates {
  position: fixed;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 10;
}
.opening-gates i {
  width: 50%;
  height: 100%;
  background: #111216 url("/assets/atrium.webp") left center / 200% 100%
    no-repeat;
  animation: open-left 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.opening-gates i + i {
  background-position: right center;
  animation-name: open-right;
}
@keyframes open-left {
  to {
    transform: translateX(-100%);
  }
}
@keyframes open-right {
  to {
    transform: translateX(100%);
  }
}
@media (max-width: 760px) {
  .brand small {
    display: none;
  }
  .hall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .command-grid {
    grid-template-columns: 1fr;
  }
  .command-grid > .compass {
    border-top: 1px solid var(--line);
  }
  #main {
    width: 90%;
    padding-top: 2rem;
  }
  .outerbar {
    margin: 0 5%;
    padding: 25px 5px;
  }
  .frame {
    inset: 12px;
  }
  .atrium-art {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0.61) 12%,
        transparent 28%,
        transparent 70%,
        rgba(0, 0, 0, 0.7)
      ),
      url("/assets/atrium-mobile.webp");
  }
  .mast {
    flex-wrap: wrap;
  }
  .mast nav {
    gap: 0.8rem;
  }
  .insignia-detail {
    align-items: flex-start;
  }
  .row-buttons button,
  .tools button {
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .mast {
    gap: 0.55rem;
    padding: 0.75rem 5%;
  }
  .brand {
    font-size: 1.45rem;
  }
  .mast nav {
    justify-content: space-between;
    flex: 1 0 100%;
  }
  .dateline {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }
  .threshold h1 {
    font-size: clamp(3.6rem, 17vw, 5rem);
  }
  .threshold {
    margin: 0.35rem 0;
  }
  
  .divider {
    margin: 1.1rem 0;
  }
  .hall {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .herald {
    padding: 0.65rem;
  }
  .herald h3 {
    font-size: 1.13rem;
  }
  .record {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
  .section-head {
    align-items: baseline;
  }
  .outerbar {
    font-size: 0.55rem;
    letter-spacing: 0.13em;
  }
  .insignia-detail {
    flex-direction: column;
    gap: 1rem;
  }
  .inner-foot {
    font-size: 0.55rem;
  }
  .inner-foot button {
    font-size: 0.75rem;
  }
}
@media (max-height: 600px) {
  .threshold {
    margin: 0;
  }
  
  .threshold h1 {
    margin: 0.1em 0;
  }
  .divider {
    margin: 0.6rem 0;
  }
  .outerbar {
    padding-top: 17px;
    padding-bottom: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .opening-gates {
    display: none;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  #login label,
  #status:not(:empty) {
    background: #0a0b0d;
    width: fit-content;
    box-shadow: 0 0 5px 2px #0a0b0d;
  }
  #status:not(:empty) {
    margin-inline: auto;
  }
}

.entrance-crest { display: block; width: clamp(78px, 10vh, 116px); aspect-ratio: 1; object-fit: contain; }
.mast-crest { width: 32px; height: 32px; object-fit: contain; vertical-align: -.18em; margin-right: .45rem; }
.sector-crest { width: 100%; height: clamp(78px, 8vw, 118px); object-fit: contain; margin: .5rem 0 1.3rem; }
.herald .prose { font-size: .86rem; margin: .75rem 0; }
.codex-crest { width: min(160px, 40vw); height: auto; flex: none; }
@media (max-height: 600px) { .entrance-crest { width: 58px; } }
