/* ---- design tokens ----
   palette sampled off assets/avatar.png corners (~#ebce9f family)
   paper  #efe1c4  ink #241a10  rule (bronze hairline) #8a6a3d
   accent #ccff00 used only for the CA underline + copy flash (batch rule: neon is an accent, never a fill)
   type: Vollkorn (display) + Spectral (body/caption) + Source Code Pro (CA, real case, monospace)
   spacing scale: 8 / 16 / 24 / 40 / 64px    radius: 0 (engraved plates have no rounded corners)
   motion: one on-load sheen across the rack, one hover-lift per hanger. nothing else moves.
*/

@font-face {
  font-family: 'Vollkorn';
  src: url('assets/fonts/vollkorn-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vollkorn';
  src: url('assets/fonts/vollkorn-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-400i.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('assets/fonts/sourcecodepro-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('assets/fonts/sourcecodepro-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root{
  --paper: #efe1c4;
  --paper-deep: #e3d2a9;
  --ink: #241a10;
  --ink-soft: #4b3a26;
  --rule: #8a6a3d;
  --accent: #ccff00;
  --shadow: rgba(36,26,16,.4);
  --font-display: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --font-body: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-mono: 'Source Code Pro', 'Courier New', monospace;
}

*{ box-sizing: border-box; }

html{ background: var(--paper); }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

/* fixed paper grain, cheap SVG turbulence, never moves */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.14  0 0 0 0 0.10  0 0 0 0 0.06  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main{ position: relative; z-index: 2; }

a{ color: var(--ink); }

/* ---------------- masthead ---------------- */
.masthead{
  position: relative;
  z-index: 2;
  padding: 40px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.brand{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-name{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: .01em;
}
.ticker{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--rule);
  padding: 3px 10px;
  color: var(--ink-soft);
}
.tagline{
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 14px auto 0;
  max-width: 34em;
}
.meta-row{
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meta-row .dot{ margin: 0 8px; }

/* ---------------- the rack ---------------- */
.rack-stage{
  position: relative;
  padding: 48px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rack-svg{
  width: min(100%, 760px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px var(--shadow));
  animation: sheen 1.4s ease-out .2s 1;
}
.hanger{
  cursor: pointer;
  transition: transform .28s cubic-bezier(.25,.7,.4,1);
  transform-origin: center;
}
.hanger image{ display: block; }
.hanger:hover,
.hanger:focus-visible,
.hanger.is-active{
  transform: translateY(-12px);
  filter: drop-shadow(0 22px 16px var(--shadow));
  outline: none;
}
.hotspot{ cursor: default; }
.hotspot:focus-visible{ outline: 2px dashed var(--rule); outline-offset: 2px; }

.readout{
  min-height: 1.6em;
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 30em;
}
.readout.is-empty{ color: var(--ink); }

@keyframes sheen{
  from{ filter: drop-shadow(0 18px 30px var(--shadow)) brightness(1.28) saturate(0); }
  to{ filter: drop-shadow(0 18px 30px var(--shadow)) brightness(1) saturate(1); }
}

/* ---------------- ledger note ---------------- */
.ledger{
  max-width: 34em;
  margin: 32px auto 56px;
  padding: 0 24px;
  text-align: center;
}
.ledger p{
  font-size: .98rem;
  color: var(--ink-soft);
}

/* ---------------- footer ---------------- */
.site-footer{
  border-top: 1px solid var(--rule);
  padding: 22px 24px 100px;
  text-align: center;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink-soft);
}
.distribution a{
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.distribution .sep{ margin: 0 8px; }
.boilerplate{ margin-top: 10px; font-style: italic; opacity: .85; }

/* ---------------- plate stamp (CA) ---------------- */
.plate-stamp{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--rule);
  padding: 8px 12px;
  transform: rotate(-1deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: calc(100vw - 28px);
}
.ca{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .8rem;
  background: none;
  border: none;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  padding: 1px 0;
  cursor: pointer;
  letter-spacing: .01em;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
}
.copied{
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-soft);
  height: 1em;
}
.plate-no{
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------- responsive ---------------- */
@media (max-width: 640px){
  .masthead{ padding: 28px 16px 18px; }
  .rack-stage{ padding: 32px 12px 8px; }
  .ledger p{ padding-right: 150px; }
  .site-footer{ padding-bottom: 120px; padding-right: 150px; }
  .plate-stamp{ right: 10px; bottom: 10px; padding: 6px 10px; }
  .ca{ font-size: .68rem; }
}

@media (min-width: 920px){
  .ledger{ margin-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce){
  .rack-svg{ animation: none; }
  .hanger{ transition: none; }
}
