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

@font-face {
  font-family: "Syncopate";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/syncopate-700.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-400.woff2") format("woff2");
}

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

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/sora-600.woff2") format("woff2");
}

:root {
  --ink: #0e0c0a;
  --ivory: #f4ecdf;
  --gold: #c4a574;
  --gold-soft: rgba(196, 165, 116, 0.55);
  --bronze: #8a7560;
  --jewel: #14685a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.deco-stage {
  --side: 3.1rem;
  position: fixed;
  inset: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 1.7rem var(--side) 1.15rem;
}

.deco-stage-plain {
  grid-template-columns: minmax(0, 1fr);
}

.deco-line,
.deco-corner {
  position: absolute;
  pointer-events: none;
}

.deco-line {
  background: var(--gold);
}

.deco-line.soft {
  background: var(--gold-soft);
}

.deco-line.top {
  top: 0;
  left: 39px;
  right: 39px;
  height: 1px;
}

.deco-line.top.soft {
  top: 7px;
}

.deco-line.bottom {
  bottom: 0;
  left: 39px;
  right: 39px;
  height: 1px;
}

.deco-line.bottom.soft {
  bottom: 7px;
}

.deco-line.left {
  left: 0;
  top: 39px;
  bottom: 39px;
  width: 1px;
}

.deco-line.left.soft {
  left: 7px;
}

.deco-line.right {
  right: 0;
  top: 39px;
  bottom: 39px;
  width: 1px;
}

.deco-line.right.soft {
  right: 7px;
}

.deco-corner {
  width: 40px;
  height: 40px;
}

.deco-corner path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}

.deco-corner .soft {
  stroke: var(--gold-soft);
}

.deco-corner-tl {
  top: 0;
  left: 0;
}

.deco-corner-tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.deco-corner-bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.deco-corner-br {
  right: 0;
  bottom: 0;
  transform: scale(-1);
}

.deco-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-areas:
    "status brand statusend"
    "menu menu menu";
  align-items: center;
  gap: 0.85rem 0.75rem;
}

.deco-status {
  margin: 0;
  font-family: "Syncopate", sans-serif;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.deco-status-end {
  text-align: right;
}

.deco-head > .deco-readout {
  grid-area: status;
}

.deco-head > .deco-status-end {
  grid-area: statusend;
}

.deco-readout {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  max-width: 100%;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c547;
  text-shadow: 0 0 18px rgba(232, 197, 71, 0.42);
  white-space: nowrap;
}

.deco-readout .status-dot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e8c547;
  box-shadow: 0 0 10px #e8c547;
  animation: deco-pulse 1.8s ease-in-out infinite;
}

.deco-readout .status-live {
  animation: deco-flicker 2.6s ease-in-out infinite;
}

.deco-readout .status-caret {
  margin-left: 0.12rem;
  color: #ff4a4a;
  animation: deco-blink 1.1s steps(1, end) infinite;
}

.deco-readout.deco-status-end {
  justify-self: end;
  color: #ff4a4a;
  text-shadow: 0 0 18px rgba(255, 74, 74, 0.48);
}

.deco-readout.deco-status-end .status-dot {
  background: #ff4a4a;
  box-shadow: 0 0 10px #ff4a4a;
}

.deco-readout.deco-status-end .status-live {
  animation-name: deco-flicker-red;
}

.deco-brand {
  grid-area: 1 / 1 / 2 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
}

.deco-mark {
  margin: 0;
  font-family: "Syncopate", sans-serif;
  font-size: clamp(0.78rem, 1.35vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ivory);
}

.deco-rule {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 72%;
  margin: 0.5rem auto 0;
}

.deco-rule span {
  flex: 1 1 auto;
  height: 1px;
  background: var(--gold);
}

.deco-gem {
  width: 0.34rem;
  height: 0.34rem;
  flex: 0 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
}

.deco-gem-jewel {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--jewel);
}

.deco-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 7.4rem;
  margin: 1.15rem 0 0.8rem;
  padding: 0.2rem 0.7rem;
  border-left: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
}

.deco-side a,
.deco-menu a,
.deco-foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.55rem;
  color: #c4a574;
  font-family: "Syncopate", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  background: transparent;
}

.deco-side a[aria-current="page"],
.deco-menu a[aria-current="page"],
.deco-foot a[aria-current="page"] {
  color: #dcc49a;
}

.deco-side a:hover,
.deco-side a:focus-visible,
.deco-menu a:hover,
.deco-menu a:focus-visible,
.deco-foot a:hover,
.deco-foot a:focus-visible {
  color: #e6d3b0;
}

.deco-view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.deco-emblem {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
}

.deco-sheet {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0.75rem clamp(1.35rem, 6.5%, 4.25rem);
  pointer-events: none;
}

.deco-sheet[hidden] {
  display: none;
}

.deco-sheet-panel {
  pointer-events: auto;
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.95rem 1.25rem 1.35rem;
  background: rgba(14, 12, 10, 0.62);
  border: 1px solid var(--gold-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: #c4a574 rgba(14, 12, 10, 0.35);
}

.deco-sheet-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.deco-sheet-panel::-webkit-scrollbar-track {
  background: rgba(14, 12, 10, 0.35);
}

.deco-sheet-panel::-webkit-scrollbar-thumb {
  background: #c4a574;
}

.deco-sheet-panel::-webkit-scrollbar-thumb:hover {
  background: #e6d3b0;
}

.deco-sheet-panel.deco-sheet-contact {
  display: flex;
  flex-direction: column;
}

.deco-sheet-panel.deco-sheet-contact .deco-sheet-close {
  align-self: flex-end;
  float: none;
}

.deco-sheet-panel.deco-sheet-contact .deco-sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
}

.deco-sheet-panel.deco-sheet-contact .deco-sheet-body p {
  margin: 0;
}

.deco-sheet-panel.deco-sheet-contact .deco-sheet-body a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

body.contact-only {
  display: grid;
  place-items: center;
  overflow: auto;
}

body.contact-only .legal-doc {
  margin: 0;
  text-align: center;
}

body.contact-only .legal-doc a {
  color: #c4a574;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

body.contact-only .legal-doc a:hover,
body.contact-only .legal-doc a:focus-visible {
  color: #e6d3b0;
}

.deco-sheet-close {
  float: right;
  margin: 0 0 0.75rem 1rem;
  padding: 0.38rem 0.65rem;
  font-family: "Syncopate", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(196, 165, 116, 0.7);
  cursor: pointer;
}

.deco-sheet-close:hover,
.deco-sheet-close:focus-visible {
  color: #e6d3b0;
}

.deco-sheet-body {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ivory);
}

.deco-sheet-body h1,
.deco-sheet-body h2 {
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.deco-sheet-body h1 {
  margin: 0.15rem 0 0.7rem;
  font-size: 1.35rem;
}

.deco-sheet-body h2 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.02rem;
}

.deco-sheet-body p {
  margin: 0.7rem 0;
}

.deco-sheet-body a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.deco-sheet-body a:hover,
.deco-sheet-body a:focus-visible {
  color: #e6d3b0;
}

.deco-sheet-note {
  margin: 0;
  color: var(--gold);
}

.deco-menu,
.deco-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0 1rem 0.15rem;
}

.deco-menu {
  grid-area: menu;
  justify-self: stretch;
  box-sizing: border-box;
  width: calc(100% + 2 * (var(--side) - 0.75rem));
  margin-inline: calc(0.75rem - var(--side));
  flex-wrap: nowrap;
  padding: 0.15rem 0 0;
}

.deco-menu a,
.deco-foot a {
  letter-spacing: 0.16em;
}

.deco-menu a {
  font-size: calc(0.58rem * 4 / 3);
}

.deco-foot a {
  font-size: calc(0.52rem * 4 / 3);
}

@media (max-width: 760px) {
  .deco-stage {
    --side: 1.7rem;
    inset: 8px;
    padding: 1.35rem var(--side) 0.85rem;
  }

  .deco-status {
    display: none;
  }

  .deco-readout {
    display: inline-flex;
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .deco-head {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    grid-template-areas:
      "status . statusend"
      "brand brand brand"
      "menu menu menu";
    justify-items: center;
    gap: 0.45rem 0.4rem;
  }

  .deco-readout {
    font-size: 0.4rem;
    letter-spacing: 0.04em;
    gap: 0.28rem;
  }

  .deco-mark {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

  .deco-brand {
    grid-area: brand;
  }

  .deco-side {
    min-width: 0;
    gap: 0;
    margin: 0.4rem 0 0.3rem;
    padding: 0.15rem 0.4rem;
  }

  .deco-side a,
  .deco-foot a {
    letter-spacing: 0.06em;
    font-size: 0.5rem;
  }

  .deco-foot a {
    font-size: calc(0.5rem * 4 / 3);
  }

  .deco-foot {
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
  }
}

body.retrofit {
  --ink: #0b0a09;
  --ivory: #e6dccb;
  --gold: #8f7b56;
  --gold-soft: rgba(143, 123, 86, 0.4);
  --bronze: #6a5e52;
  --amber: #d4924a;
  background: var(--ink);
}

.retrofit .deco-brand {
  position: relative;
}

.retro-plate {
  position: absolute;
  top: 0.28rem;
  left: calc(100% + 0.75rem);
  margin: 0;
  padding: 0.16rem 0.38rem 0.12rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
}

.retro-fit {
  position: relative;
}

.retro-fit::after {
  content: "";
  position: absolute;
  top: 0.05rem;
  right: 0.28rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #f2d2a4, var(--amber) 42%, #7a4e22 78%);
}

@media (prefers-reduced-motion: reduce) {
  .deco-readout .status-dot,
  .deco-readout .status-live,
  .deco-readout .status-caret {
    animation: none;
  }
}

@keyframes deco-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes deco-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes deco-flicker {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(232, 197, 71, 0.5);
  }
  50% {
    opacity: 0.28;
    text-shadow: 0 0 4px rgba(232, 197, 71, 0.08);
  }
}

@keyframes deco-flicker-red {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(255, 74, 74, 0.55);
  }
  50% {
    opacity: 0.28;
    text-shadow: 0 0 4px rgba(255, 74, 74, 0.08);
  }
}

@media (max-width: 760px) {
  .retro-plate {
    position: static;
    display: inline-block;
    margin-top: 0.55rem;
  }
}
