:root {
  --solder-mask: #174d36;
  --deep-solder: #0d3e2d;
  --terminal: #111413;
  --workbench: #f2f3ef;
  --paper: #f8f9f6;
  --copper: #c87533;
  --signal: #66ff99;
  --silkscreen: #a7ada8;
  --line: #ccd2cd;
  --soft-green: #dfe9e3;
  --muted: #5d6861;
  --mono: "IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "IBM Plex Sans", Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--terminal);
  background:
    linear-gradient(rgba(23, 77, 54, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 77, 54, 0.038) 1px, transparent 1px),
    var(--workbench);
  background-size: 32px 32px;
  font-family: var(--sans);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--terminal);
  font-family: var(--mono);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 18px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  z-index: 20;
  top: 14px;
  border: 1px solid var(--line);
  background: rgba(248, 249, 246, 0.91);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 10px;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

nav a {
  padding: 9px 11px;
  color: #56605a;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
  color: var(--solder-mask);
  background: #e4eae6;
  outline: 0;
}

.hero {
  min-height: 720px;
  padding: clamp(72px, 10vw, 132px) 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: clamp(58px, 9vw, 106px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 710px;
  margin: 30px 0 0;
  color: #4c5750;
  font-family: var(--mono);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--solder-mask);
  color: var(--paper);
  background: var(--solder-mask);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(23, 77, 54, 0.18);
}

.text-link {
  padding: 8px 0;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 5px;
}

.identity-panel {
  min-height: 470px;
  padding: 42px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--solder-mask);
  color: var(--paper);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(102, 255, 153, 0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(102, 255, 153, 0.08) 50%, transparent 50.2%),
    var(--solder-mask);
  background-size: 72px 72px;
  box-shadow: 17px 17px 0 rgba(23, 77, 54, 0.12);
}

.identity-panel::before,
.identity-panel::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--signal);
}

.identity-panel::before {
  width: 145px;
  top: 72px;
  left: -52px;
}

.identity-panel::after {
  width: 120px;
  right: -24px;
  bottom: 82px;
}

.identity-panel img {
  width: min(290px, 78%);
  display: block;
  border-radius: 22%;
}

.board-label {
  position: absolute;
  color: #b9d0c4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.board-label-top {
  top: 20px;
  right: 22px;
}

.board-label-bottom {
  right: 22px;
  bottom: 20px;
}

.terminal-lines {
  position: absolute;
  left: 23px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
}

.terminal-lines b {
  font-weight: 500;
}

.workbench {
  padding: 92px 0 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.project-card {
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(248, 249, 246, 0.9);
}

a.project-card {
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

a.project-card:hover,
a.project-card:focus-visible {
  outline: 0;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(23, 77, 54, 0.13);
}

.project-card-featured {
  color: var(--paper);
  background: var(--solder-mask);
  border-color: var(--solder-mask);
}

.card-index {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.project-card > div {
  margin: auto 0;
}

.project-state {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--silkscreen);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.project-state span {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: var(--copper);
}

.project-state-label {
  color: var(--copper);
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin: 0 0 15px;
  color: inherit;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-card p:not(.project-state) {
  max-width: 620px;
  margin: 0;
  color: inherit;
  opacity: 0.75;
  font-size: 16px;
  line-height: 1.7;
}

.card-link {
  display: flex;
  justify-content: space-between;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.trace {
  width: 100%;
  height: 34px;
  margin-top: auto;
  position: relative;
  border-bottom: 2px solid var(--solder-mask);
}

.trace::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  right: 0;
  bottom: -7px;
  border: 2px solid var(--solder-mask);
  border-radius: 50%;
  background: var(--workbench);
}

.site-footer {
  color: var(--paper);
  background: var(--terminal);
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 132px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 50px;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 24px;
  text-decoration: none;
}

.footer-brand span,
.footer-links a {
  color: var(--signal);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  text-underline-offset: 4px;
}

.copyright {
  grid-column: 1 / -1;
  padding-bottom: 22px;
  color: var(--silkscreen);
  font-family: var(--mono);
  font-size: 10px;
}

/* Jeffery status */
.dark-page {
  color: var(--paper);
  background:
    linear-gradient(rgba(102, 255, 153, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 255, 153, 0.035) 1px, transparent 1px),
    var(--terminal);
  background-size: 32px 32px;
}

.button-signal {
  border-color: var(--signal);
  color: var(--terminal);
  background: var(--signal);
}

.button-signal:hover,
.button-signal:focus-visible {
  box-shadow: 5px 5px 0 rgba(102, 255, 153, 0.16);
}

.site-header-dark {
  border-color: #344039;
  background: rgba(17, 20, 19, 0.91);
}

.site-header-dark .brand-copy strong,
.site-header-dark nav a.active,
.site-header-dark nav a:hover,
.site-header-dark nav a:focus-visible {
  color: var(--signal);
}

.site-header-dark .brand-copy span,
.site-header-dark nav a {
  color: var(--silkscreen);
}

.site-header-dark nav a.active,
.site-header-dark nav a:hover,
.site-header-dark nav a:focus-visible {
  background: #202723;
}

.jeffery-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.placeholder-main {
  min-height: calc(100vh - 228px);
  padding: 90px 0;
  display: grid;
  place-items: center;
}

.jeffery-main {
  display: block;
  flex: 1 0 auto;
}

.placeholder-panel {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(38px, 8vw, 80px);
  position: relative;
  border: 1px solid #3a443f;
  text-align: center;
  background: rgba(17, 20, 19, 0.76);
}

.placeholder-panel::before,
.placeholder-panel::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
}

.placeholder-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
}

.placeholder-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
}

.placeholder-panel .eyebrow {
  color: var(--signal);
}

.status-announcement h1 {
  margin: 22px 0 16px;
  font-family: var(--mono);
  font-size: clamp(44px, 8vw, 78px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.status-announcement p {
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--silkscreen);
  font-size: 17px;
  line-height: 1.7;
}

.printer-light {
  width: 48px;
  height: 48px;
  margin: 26px auto 0;
  display: grid;
  place-items: center;
  border: 1px solid #3a443f;
  border-radius: 50%;
}

.printer-light span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(200, 117, 51, 0.12);
}

.status-panel[data-jeffery-status="open"] .printer-light span {
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(102, 255, 153, 0.12), 0 0 24px rgba(102, 255, 153, 0.38);
}

.status-panel[data-jeffery-status="closed"] .printer-light span {
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(200, 117, 51, 0.12);
}

.status-panel[data-jeffery-status="offline"] .printer-light span {
  background: var(--silkscreen);
  box-shadow: 0 0 0 6px rgba(167, 173, 168, 0.1);
}

.status-guide {
  width: min(900px, 100%);
  margin: 54px auto 0;
  padding-top: 38px;
  border-top: 1px solid #303934;
}

.status-guide-heading {
  margin-bottom: 22px;
  text-align: left;
}

.status-guide-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--signal);
}

.status-guide-heading h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.status-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.status-guide-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid #3a443f;
  background: rgba(17, 20, 19, 0.76);
}

.status-guide-grid h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 500;
}

.status-guide-grid p {
  margin: 0;
  color: var(--silkscreen);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-dark {
  border-top: 1px solid #303934;
}

/* Jeffery public print editor */
.jeffery-app {
  width: min(1180px, calc(100% - 40px));
  padding: 72px 0 100px;
  flex: 1 0 auto;
}

.print-status-card {
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(102, 255, 153, 0.3);
  border-radius: 18px;
  background: linear-gradient(135deg, #17231d, #19201c);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.print-status-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.print-status-dot-wrap {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(102, 255, 153, 0.12);
}

.print-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(102, 255, 153, 0.12);
}

.print-status-copy strong,
.print-status-copy span,
.print-status-message strong,
.print-status-message span {
  display: block;
}

.print-status-copy strong {
  font-size: 15px;
}

.print-status-copy span {
  margin-top: 3px;
  color: var(--silkscreen);
  font-size: 12px;
}

.print-status-message {
  max-width: 390px;
  padding: 11px 14px;
  border: 1px solid rgba(102, 255, 153, 0.2);
  border-radius: 12px;
  color: var(--silkscreen);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  line-height: 1.45;
}

.print-status-message strong {
  margin-bottom: 2px;
  color: var(--paper);
}

.print-status-card[data-jeffery-status="closed"] {
  border-color: rgba(200, 117, 51, 0.34);
  background: #221d15;
}

.print-status-card[data-jeffery-status="closed"] .print-status-dot-wrap {
  background: rgba(200, 117, 51, 0.12);
}

.print-status-card[data-jeffery-status="closed"] .print-status-dot {
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(200, 117, 51, 0.12);
}

.print-status-card[data-jeffery-status="offline"] {
  border-color: rgba(225, 109, 91, 0.32);
  background: #241817;
}

.print-status-card[data-jeffery-status="offline"] .print-status-dot-wrap {
  background: rgba(225, 109, 91, 0.11);
}

.print-status-card[data-jeffery-status="offline"] .print-status-dot {
  background: #e16d5b;
  box-shadow: 0 0 0 6px rgba(225, 109, 91, 0.11);
}

.print-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.94fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #39352e;
  border-radius: 22px;
  background: #1d1c18;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.print-editor-pane {
  padding: 30px 28px 26px;
}

.print-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.045em;
}

.print-intro {
  max-width: 530px;
  margin: 13px 0 25px;
  color: var(--silkscreen);
  font-size: 15px;
  line-height: 1.6;
}

.print-field-label-row {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.print-field-label {
  font-size: 12px;
  font-weight: 750;
}

.print-char-count {
  color: var(--silkscreen);
  font-size: 11px;
}

.print-editor-shell {
  overflow: hidden;
  border: 1px solid #49443b;
  border-radius: 14px;
  background: #131310;
}

.print-editor-shell:focus-within {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200, 117, 51, 0.13);
}

.print-editor-shell textarea {
  width: 100%;
  min-height: 250px;
  padding: 16px;
  display: block;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font: 23px/1.35 var(--mono);
}

.print-editor-shell textarea::placeholder,
.print-signature-line input::placeholder {
  color: #716d64;
}

.print-safety-note {
  margin: 8px 0 18px;
  color: var(--silkscreen);
  font-size: 11px;
  line-height: 1.5;
}

.print-signature-box {
  margin-top: 14px;
  padding: 15px 17px 13px;
  border: 1px solid #49443b;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1916, #151410);
}

.print-signature-box > label {
  margin-bottom: 10px;
  display: block;
  color: var(--silkscreen);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-signature-line {
  min-height: 48px;
  padding: 0 7px 5px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #5a554b;
}

.print-signature-line:focus-within {
  border-bottom-color: var(--copper);
  box-shadow: 0 2px 0 rgba(200, 117, 51, 0.12);
}

.print-signature-line input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 27px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
}

.print-signature-box small {
  margin-top: 8px;
  display: block;
  color: #777166;
  font-size: 10px;
}

.print-submit-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.print-submit-row p {
  max-width: 320px;
  margin: 0;
  color: var(--silkscreen);
  font-size: 11px;
  line-height: 1.5;
}

.print-submit-row a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.print-submit-button {
  min-width: 166px;
  padding: 12px 16px;
  border: 1px solid var(--copper);
  border-radius: 11px;
  color: var(--paper);
  background: var(--copper);
  font-weight: 750;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.print-submit-button:hover:not(:disabled),
.print-submit-button:focus-visible:not(:disabled) {
  background: #d88442;
  transform: translateY(-1px);
}

.print-submit-button:disabled {
  border-color: #39352e;
  color: #777269;
  background: #34312b;
  cursor: not-allowed;
}

.print-feedback {
  min-height: 20px;
  margin-top: 11px;
  font-size: 11px;
}

.print-feedback.success {
  color: var(--signal);
}

.print-feedback.error {
  color: #e16d5b;
}

.print-preview-pane {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #39352e;
  background: #181713;
}

.print-preview-head {
  padding: 20px;
  border-bottom: 1px solid #39352e;
}

.print-preview-head h2 {
  margin: 0;
  font-size: 16px;
}

.print-preview-head p {
  margin: 4px 0 0;
  color: var(--silkscreen);
  font-size: 11px;
}

.print-preview-stage {
  min-height: 650px;
  padding: 30px;
  display: grid;
  flex: 1;
  place-items: start center;
  background-color: #27251f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 16px 16px;
}

.receipt-paper {
  width: min(335px, 90%);
  min-height: 500px;
  padding: 38px 28px 24px;
  position: relative;
  overflow: hidden;
  color: #11110e;
  background: #fffdfa;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-family: "Courier New", monospace;
}

.receipt-paper::after {
  content: "";
  height: 9px;
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  background: linear-gradient(135deg, #fffdfa 6px, transparent 0) 0 0 / 12px 12px repeat-x;
}

.receipt-rule {
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

.receipt-message {
  width: 14ch;
  max-width: 100%;
  min-height: 300px;
  margin: 24px auto 30px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #11110e;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
}

.receipt-footer {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.print-preview-foot {
  padding: 13px 20px;
  border-top: 1px solid #39352e;
  color: var(--silkscreen);
  font-size: 10px;
}

/* Jeffery admin */
.admin-main {
  min-height: 100vh;
  padding: 70px 0;
  display: grid;
  place-items: center;
}

.admin-panel {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid #3a443f;
  background: rgba(17, 20, 19, 0.9);
}

.admin-panel-wide {
  width: min(1080px, 100%);
}

.admin-panel h1 {
  margin: 0 0 34px;
  font-family: var(--mono);
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.admin-login,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-login label {
  width: 100%;
  color: var(--silkscreen);
  font-family: var(--mono);
  font-size: 12px;
}

.admin-login input {
  min-width: min(100%, 330px);
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #4b5851;
  color: var(--paper);
  background: #202723;
  font: 14px var(--mono);
}

.admin-login input:focus {
  border-color: var(--signal);
  outline: 2px solid rgba(102, 255, 153, 0.18);
}

.admin-message {
  padding: 12px 14px;
  border-left: 3px solid;
  font-family: var(--mono);
  font-size: 12px;
}

.admin-error {
  border-color: #e16d5b;
  background: rgba(225, 109, 91, 0.1);
}

.admin-notice {
  border-color: var(--signal);
  background: rgba(102, 255, 153, 0.08);
}

.admin-status-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.admin-status-row .status-dot-open {
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(102, 255, 153, 0.12), 0 0 24px rgba(102, 255, 153, 0.38);
}

.admin-status-row .status-dot-closed {
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(200, 117, 51, 0.12);
}

.admin-status-row .status-dot-offline {
  background: var(--silkscreen);
  box-shadow: 0 0 0 6px rgba(167, 173, 168, 0.1);
}

.admin-status-row span:not(.status-dot),
.admin-status-row strong {
  display: block;
  font-family: var(--mono);
}

.admin-status-row span:not(.status-dot) {
  color: var(--silkscreen);
  font-size: 11px;
}

.admin-status-row strong {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

.admin-details {
  margin: 32px 0;
}

.admin-details div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  border-top: 1px solid #303934;
}

.admin-details div:last-child {
  border-bottom: 1px solid #303934;
}

.admin-details dt {
  color: var(--silkscreen);
  font: 11px var(--mono);
  text-transform: uppercase;
}

.admin-details dd {
  margin: 0;
  font: 13px var(--mono);
}

.button-secondary {
  border-color: #657169;
  color: var(--paper);
  background: #29312d;
}

.admin-logout {
  margin-top: 24px;
}

.admin-control-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--silkscreen);
  font-size: 13px;
  line-height: 1.6;
}

.admin-control-note code {
  color: var(--signal);
  font-family: var(--mono);
}

.database-status {
  text-transform: uppercase;
}

.database-status-connected {
  color: var(--signal);
}

.database-status-unavailable {
  color: #e16d5b;
}

.database-status-configuration-required {
  color: var(--copper);
}

.admin-jobs {
  width: 100%;
  margin-top: 58px;
  padding-top: 38px;
  border-top: 1px solid #303934;
}

.admin-jobs-header {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.admin-jobs-header .eyebrow {
  margin-bottom: 7px;
}

.admin-jobs-header h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.admin-jobs-header > span {
  color: var(--silkscreen);
  font: 11px var(--mono);
}

.admin-empty-state {
  padding: 24px;
  border: 1px dashed #435047;
  color: var(--silkscreen);
  line-height: 1.6;
}

.admin-empty-state code {
  color: var(--signal);
  font-family: var(--mono);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #303934;
}

.admin-jobs-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-jobs-table th,
.admin-jobs-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #303934;
  text-align: left;
  vertical-align: top;
}

.admin-jobs-table th {
  color: var(--silkscreen);
  background: #202723;
  font: 10px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-jobs-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-job-id,
.admin-jobs-table td:last-child {
  font-family: var(--mono);
}

.admin-job-message {
  min-width: 260px;
  max-width: 430px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.job-status {
  padding: 4px 7px;
  display: inline-block;
  border: 1px solid currentColor;
  font: 10px var(--mono);
  text-transform: uppercase;
}

.job-status-queued {
  color: var(--copper);
}

.job-status-printing {
  color: #e9d66b;
}

.job-status-printed {
  color: var(--signal);
}

.job-status-failed,
.job-status-unknown,
.admin-job-error-row td {
  color: #e16d5b;
}

.admin-job-error-row td {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(225, 109, 91, 0.06);
  font: 11px var(--mono);
}

.admin-logout button {
  padding: 0;
  border: 0;
  color: var(--silkscreen);
  background: transparent;
  font: 11px var(--mono);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.admin-back {
  margin-top: 40px;
  display: inline-block;
}

/* Legal page */
.legal-page {
  padding: 100px 0 120px;
}

.legal-hero {
  max-width: 910px;
  padding-bottom: 72px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.legal-hero > p:last-child {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  justify-content: space-between;
  gap: 80px;
}

.legal-index {
  height: max-content;
  padding: 20px;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  background: rgba(248, 249, 246, 0.9);
}

.legal-index span {
  margin-bottom: 6px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.legal-index a {
  padding: 6px 0;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-content section {
  padding: 0 0 70px;
  scroll-margin-top: 125px;
}

.legal-content section + section {
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.legal-number {
  margin: 0 0 13px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.legal-content h2 {
  margin: 0 0 26px;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.legal-content h3 {
  margin: 40px 0 12px;
  color: var(--solder-mask);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}

.legal-content p,
.legal-content address,
.legal-details {
  color: #4f5953;
  line-height: 1.75;
}

.legal-content a {
  color: var(--solder-mask);
  text-underline-offset: 4px;
}

.contact-block {
  margin: 22px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--solder-mask);
  background: rgba(223, 233, 227, 0.72);
  font-style: normal;
}

.legal-details {
  margin: 28px 0;
}

.legal-details div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.legal-details div:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-details dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.legal-details dd {
  margin: 0;
}

.legal-updated {
  margin-top: 48px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .identity-panel {
    min-height: 390px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .status-guide-grid {
    grid-template-columns: 1fr;
  }

  .print-workspace {
    grid-template-columns: 1fr;
  }

  .print-preview-pane {
    border-top: 1px solid #39352e;
    border-left: 0;
  }

  .print-preview-stage {
    min-height: 620px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .legal-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .page,
  .site-header,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .site-header {
    min-height: 66px;
    margin-top: 8px;
    padding: 9px 10px;
    top: 6px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-copy span,
  nav a:first-child {
    display: none;
  }

  nav {
    gap: 0;
  }

  nav a {
    padding: 8px 7px;
    font-size: 11px;
  }

  .hero {
    padding: 78px 0 80px;
    gap: 62px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 78px);
  }

  .identity-panel {
    min-height: 330px;
    padding: 28px;
    box-shadow: 9px 9px 0 rgba(23, 77, 54, 0.12);
  }

  .workbench {
    padding: 72px 0 88px;
  }

  .project-card {
    min-height: 330px;
    padding: 23px;
  }

  .jeffery-app {
    width: min(100% - 24px, 1180px);
    padding: 54px 0 78px;
  }

  .print-status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-status-message {
    width: 100%;
    max-width: none;
  }

  .print-editor-pane {
    padding: 24px 18px 22px;
  }

  .print-editor-shell textarea {
    min-height: 220px;
    font-size: 20px;
  }

  .print-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .print-submit-button {
    width: 100%;
  }

  .print-preview-head {
    padding: 16px;
  }

  .print-preview-stage {
    min-height: 540px;
    padding: 22px 12px;
  }

  .receipt-paper {
    width: min(335px, 96%);
    min-height: 455px;
    padding: 30px 22px 22px;
  }

  .receipt-message {
    min-height: 265px;
  }

  .footer-inner {
    padding: 32px 0 24px;
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: grid;
    justify-content: start;
  }

  .copyright {
    grid-column: auto;
    padding-bottom: 0;
  }

  .placeholder-main {
    padding: 60px 0;
  }

  .jeffery-main {
    padding: 60px 0 82px;
  }

  .placeholder-panel {
    padding: 42px 22px;
  }

  .admin-main {
    padding: 24px 0;
  }

  .admin-jobs {
    width: 100%;
  }

  .admin-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-page {
    padding: 76px 0 90px;
  }

  .legal-hero {
    padding-bottom: 54px;
  }

  .legal-hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
