@font-face {
  font-family: Barlow;
  src: url("./fonts/Barlow-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("./fonts/Barlow-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("./fonts/Barlow-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

/* Both lighting positions use the same limited stock of chalk, paper, and
   graphite. Ochre belongs to a live indicator; the machine itself is ash gray. */
:root {
  --ui-type: Barlow, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --readout-type: "IBM Plex Mono", Consolas, monospace;
  --bench: #615f5b;
  --rack-metal: #a09e96;
  --rack-dark: #494845;
  --rack-lip: #b0ada4;
  --cabinet-fascia: #cac7ba;
  --cabinet-frame: #d4d0c3;
  --cabinet-mat: #ebe9dd;
  --cabinet-grid: #54534f0d;
  --cabinet-rim: #807e77;
  --paper: #dfdbce;
  --lamp-ready: #cbb884;
}

:root[data-cabinet-theme="dark"] {
  color-scheme: dark;
  --bench: #161615;
  --rack-metal: #3e3d3a;
  --rack-dark: #242423;
  --rack-lip: #706e69;
  --cabinet-fascia: #2b2a29;
  --cabinet-frame: #3e3d3a;
  --cabinet-mat: #1e1d1c;
  --cabinet-grid: #b0ada410;
  --cabinet-rim: #615f5b;
  --paper: #292826;
  --paper-warm: #343331;
  --ink: #e5e2d7;
  --ink-soft: #cecbc1;
  --ink-muted: #b0ada4;
  --line: #908e8780;
  --line-soft: #807e7754;
  --highlight: #b0ada457;
  --shadow: #0e0e0db8;
  --amber: #c0bdb3;
}

.machine-status { background-color: var(--cabinet-fascia); }

.rack-section--hero {
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--cabinet-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cabinet-grid) 1px, transparent 1px);
  box-shadow: inset 0 2px 5px #1e1d1c2e, inset 0 -1px var(--cabinet-rim);
}

.hero-copy h1 {
  color: var(--ink);
  font-weight: 300;
  letter-spacing: .035em;
  line-height: .91;
}
.section-heading h2, .contact-terminal h2 {
  font-weight: 300;
  letter-spacing: .065em;
  line-height: 1;
}
.field-dossier__text h3, .field-record strong {
  font-weight: 400;
  letter-spacing: .018em;
}
.identity-terminal__heading b {
  font-weight: 600;
  letter-spacing: .07em;
}
.project-index__item, .field-record, .photo-console__categories button,
.control-key__face .control-key__label, .machine-site .panel-command:is(a, button) {
  font-family: var(--ui-type);
}
.project-index__item b { font-weight: 600; }
.hero-copy__role { font-weight: 600; letter-spacing: .1em; }
.field-archive__collection, .field-record time, .field-dossier__facts dd {
  font-variant-numeric: tabular-nums;
}
.control-key__face .control-key__label {
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.hero-copy__role { color: var(--amber); }
.hero-copy__intro { color: var(--ink-soft); }
.rack-section--contact { background-color: var(--paper); }

.identity-terminal,
.contact-console {
  color: var(--ink);
  border-color: var(--cabinet-rim);
  background-color: var(--cabinet-frame);
  box-shadow: inset 1px 2px var(--highlight), inset 0 -2px var(--cabinet-rim), 0 3px 0 #2b2a29;
}

.photo-console__viewer figcaption { color: var(--ink); }
.photo-console__frame,
.photo-console__frame > img,
.photo-console__frame:is(.is-portrait, .is-landscape) > img {
  background-color: var(--cabinet-mat);
}

[data-cabinet-theme="dark"] :is(.rack-section--projects, .rack-section--activity, .rack-section--creative) {
  --bay-well: #1e1d1c;
}

[data-cabinet-theme="dark"] .machine-status { box-shadow: inset 0 1px #706e69, inset 0 -2px #1e1d1c; }

/* The folded edge and wire clasp stay visible on darker stock. */
[data-cabinet-theme="dark"] .field-record {
  background: linear-gradient(225deg, var(--bay-well) 8px, #807e77 8.5px 14px, transparent 14.5px) top right / 21px 21px no-repeat, #3e3d3a;
  border-color: #706e69;
  box-shadow: 0 2px #615f5b, 0 4px #2b2a29;
}
[data-cabinet-theme="dark"] .field-record:is(.is-selected, :focus-visible, :hover) { background-color: #494845; }
[data-cabinet-theme="dark"] .field-record__status,
[data-cabinet-theme="dark"] .field-record__filed { color: #c0bdb3; }
[data-cabinet-theme="dark"] .field-dossier { background-color: #2b2a29; }
[data-cabinet-theme="dark"] .field-dossier__body {
  background: linear-gradient(90deg, transparent 12px, #615f5b 12px 13px, transparent 13px), #2b2a29;
}
[data-cabinet-theme="dark"] .field-dossier__media { background-color: #494845; }

[data-cabinet-theme="dark"] .machine-site .panel-command:is(a, button) {
  --key-top: #77756d;
  --key-bottom: #302f2d;
  --key-well: #1c1b1a;
}
[data-cabinet-theme="dark"] .control-key__tooltip {
  color: #eceae0;
  background: linear-gradient(90deg, #a09e96 0 5px, #242423 5px);
}
[data-cabinet-theme="dark"] .identity-terminal__dial:has(:focus-visible) i,
[data-cabinet-theme="dark"] .identity-terminal__membrane button:focus-visible {
  outline-color: #d9d6cb;
}

