/* ============================================================
   objects of interest — by mst collective
   DESIGN SYSTEM
   ------------------------------------------------------------
   BRAND LOGIC
   · objects of interest  = immersive avant-garde editorial
                            world — NAVY accent, serif display,
                            hairline rules. No technical motifs.
   · Cabinet              = technical inventory system — the ONLY
                            world allowed dashed borders, DotGothic16
                            labels, barcodes and code details.
                            Overview: warm brown archive (amber).
                            Under-the-hood: dark navy / electric blue.
   · Beornare / Ornare    = warm artistic jewellery world — brown,
                            beige, cream. No navy, no technical motifs.
   ------------------------------------------------------------
   TYPE ROLES
   · Cormorant Garamond — editorial display & serif voice (all worlds)
   · Jost               — brand voice & UI (all worlds)
   · DotGothic16        — CABINET ONLY technical labels
   · Libre Barcode 39   — CABINET ONLY barcode ornaments
   ============================================================ */

:root {
  /* palette */
  --navy:       #112a72;   /* objects of interest accent */
  --navy-deep:  #0b1236;
  --navy-ink:   #0a102e;   /* cabinet · under-the-hood world */
  --code-blue:  #5b76ff;   /* cabinet · under-the-hood accent */
  --brown:      #3a2014;   /* cabinet · overview world */
  --brown-deep: #241309;
  --warm:       #2b1a10;   /* beornare dark sections */
  --beige:      #ece4d6;
  --cream:      #ece1cd;
  --paper:      #f1ead9;
  --ink:        #241a10;
  --amber:      #e0952e;   /* cabinet warm accent */
  --sienna:     #8a5a2a;   /* beornare warm accent */
  --glow:       #96afff;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --pad:  clamp(1.25rem, 5vw, 4.5rem);
}

/* ---------------- worlds ---------------- */
body.w-ooi   { --bg: var(--paper); --fg: var(--ink);   --line: rgba(36,26,16,0.16);    --muted: rgba(36,26,16,0.55);    --accent: var(--navy); }
body.w-cream { --bg: var(--paper); --fg: var(--ink);   --line: rgba(36,26,16,0.16);    --muted: rgba(36,26,16,0.55);    --accent: var(--sienna); }
body.w-beige { --bg: var(--beige); --fg: var(--ink);   --line: rgba(36,26,16,0.30);    --muted: rgba(36,26,16,0.55);    --accent: var(--amber); }
body.w-brown { --bg: var(--brown); --fg: var(--cream); --line: rgba(236,225,205,0.34); --muted: rgba(236,225,205,0.52); --accent: var(--amber); }
body.w-navy  { --bg: var(--navy-ink); --fg: var(--cream); --line: rgba(160,180,255,0.30); --muted: rgba(190,203,255,0.55); --accent: var(--code-blue); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Jost", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }

/* ================= SHARED (all worlds) ================= */

.t-serif { font-family: "Cormorant Garamond", Georgia, serif; }
.t-brand { font-family: "Jost", sans-serif; font-weight: 700; text-transform: lowercase; letter-spacing: -0.01em; }

/* editorial label — Jost, spaced uppercase (the OOI voice) */
.tag {
  font-family: "Jost", sans-serif; font-weight: 600;
  font-size: clamp(0.66rem, 0.95vw, 0.8rem);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* solid editorial hairline */
.hairline { height: 0; border: 0; border-top: 1px solid var(--line); margin: 0 var(--pad); }

/* page header */
.head { padding: clamp(1.75rem, 4vw, 3.25rem) var(--pad) clamp(1.25rem, 3vw, 2rem); }
.head__label {
  font-family: "Jost", sans-serif; font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  text-transform: lowercase; letter-spacing: -0.01em;
}
.head__title {
  margin: 0.15em 0 0;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 6.2rem);
  line-height: 0.95; letter-spacing: 0.005em;
}

/* underline link */
.lnk { position: relative; text-decoration: none; }
.lnk::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(1); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.lnk:hover::after { transform: scaleX(0); transform-origin: right; }

/* sculptural circle button */
.disc {
  position: relative;
  width: clamp(128px, 16vw, 215px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(3px, 0.4vw, 6px) solid var(--fg);
  display: grid; place-items: center; text-align: center;
  text-decoration: none; color: var(--fg);
  font-family: "Jost", sans-serif; font-weight: 700; text-transform: lowercase;
  font-size: clamp(1rem, 1.55vw, 1.45rem); line-height: 1.05;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.disc:hover, .disc:focus-visible {
  transform: scale(1.055); outline: none;
  background: color-mix(in srgb, var(--fg) 9%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent),
    0 22px 55px -18px rgba(0, 0, 0, 0.5),
    0 0 40px color-mix(in srgb, var(--accent) 32%, transparent);
}
.foot-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--pad) clamp(2rem, 5vw, 4rem);
}

/* rotated note card */
.note {
  position: relative;
  background: var(--paper); color: #2a1608;
  border-radius: 3px;
  padding: clamp(1.5rem, 3.2vw, 2.4rem);
  rotate: 2.5deg;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.55);
}
.note p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(1.4rem, 2.7vw, 2.15rem); line-height: 1.18;
}

/* ================= CABINET ONLY ================= */
/* Technical language: use these classes on Cabinet pages only. */

.t-tech  { font-family: "DotGothic16", monospace; text-transform: uppercase; letter-spacing: 0.12em; }
.barcode { font-family: "Libre Barcode 39", monospace; font-weight: 400; line-height: 0.8; }

.rule { height: 0; border: 0; border-top: 1.5px dashed var(--line); margin: 0 var(--pad); }

.cap {
  font-family: "DotGothic16", monospace;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  color: var(--muted);
}
.cap--r { text-align: right; }

.frame--dark {
  background: var(--brown-deep); border-radius: 12px;
  padding: clamp(0.5rem, 1.2vw, 1rem);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(236, 225, 205, 0.06);
}
.frame--dark img { width: 100%; height: auto; border-radius: 7px; }
.frame--dash { border: 1.5px dashed var(--line); border-radius: 8px; padding: clamp(0.5rem, 1.2vw, 0.9rem); }
.frame--dash img { width: 100%; height: auto; border-radius: 5px; }

.barcode--strip {
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  white-space: nowrap; overflow: hidden;
  opacity: 0.9; user-select: none;
}

/* cabinet footer signature */
.sig {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1rem var(--pad) 1.4rem;
  border-top: 1.5px dashed var(--line);
  font-family: "DotGothic16", monospace; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(0.62rem, 0.9vw, 0.76rem);
  color: var(--muted);
}
.sig .barcode { font-size: 1.9rem; line-height: 0.7; color: var(--muted); }

/* ---------------- motion safety ---------------- */
@media (prefers-reduced-motion: reduce) {
  .disc, .lnk::after { transition: none; }
}
