/* ---------------------------------------------------------------
   asset.css - shared stylesheet for the per-asset pages.
   Tokens mirror index.html and asset-map.html, which keep their own
   inline styles. If the palette changes there, change it here too.
   Bump the ?v= query on every page that links this file when editing.
   --------------------------------------------------------------- */

:root{
  --tiffany: #81D8D0;
  --tiffany-deep: #4FADA3;
  --ink: #0F1E1C;
  --ink-soft: #1B2E2B;
  --eggshell: #F4EFE4;
  --eggshell-dim: #E8E1D2;
  --silver: #C7CCC9;
  --gold: #C9A15A;
  --gold-soft: #E4CD9C;
}

*{ box-sizing: border-box; }

html,body{
  margin:0; padding:0;
  background: radial-gradient(120% 120% at 50% 0%, #16302D 0%, #0F1E1C 55%, #0A1614 100%);
  background-attachment: fixed;
  color: var(--eggshell);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

a{ color: var(--tiffany); text-decoration: none; }
a:hover{ text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- breadcrumb ---------- */
.crumbs{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201,161,90,.22);
}
.crumbs .sep{ color: var(--gold); }
.crumbs [aria-current]{ color: var(--eggshell-dim); }

/* ---------- header ---------- */
.kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 36px 0 12px;
}

h1{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 16px;
  color: var(--eggshell);
}

.lede{
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--eggshell-dim);
  margin: 0 0 30px;
}

/* ---------- fact table ---------- */
.facts{
  margin: 0 0 30px;
  padding: 20px 22px;
  border: 1px solid rgba(129,216,208,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244,239,228,.06), rgba(244,239,228,.02));
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 10px 20px;
}
.facts dt{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  align-self: baseline;
}
.facts dd{
  margin: 0;
  font-size: 14px;
  color: var(--eggshell-dim);
  overflow-wrap: anywhere;
}

/* ---------- buttons ---------- */
.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.btn{
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(199,204,201,.3);
  color: var(--eggshell);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(201,161,90,.6);
  text-decoration: none;
  box-shadow: 0 14px 28px -16px rgba(0,0,0,.7);
}
.btn.primary{
  background: linear-gradient(120deg, var(--tiffany), var(--gold-soft));
  color: var(--ink);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- body sections ---------- */
section{ margin-bottom: 40px; }

h2{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--eggshell);
  margin: 0 0 14px;
  padding-top: 4px;
}
h3{
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--eggshell);
  margin: 24px 0 8px;
}

p{ margin: 0 0 16px; color: var(--eggshell-dim); font-size: 15.5px; }
p:last-child{ margin-bottom: 0; }

ul.plain{
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul.plain li{
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--eggshell-dim);
}
ul.plain li::before{
  content:"";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tiffany);
}
ul.plain li b{ color: var(--eggshell); font-weight: 700; }

/* ---------- citation block ---------- */
.cite{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--eggshell-dim);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(129,216,208,.16);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- callout ---------- */
.note{
  border: 1px solid rgba(201,161,90,.35);
  background: rgba(201,161,90,.07);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.note p{ font-size: 14.5px; margin: 0; }
.note strong{ color: var(--gold-soft); }

/* ---------- related ---------- */
.related{
  border-top: 1px solid rgba(201,161,90,.22);
  padding-top: 28px;
  margin-top: 8px;
}
.related h2{ font-size: 15px; font-family: 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.related ul{
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.related a{
  display: block;
  padding: 13px 16px;
  border: 1px solid rgba(129,216,208,.18);
  border-radius: 12px;
  font-size: 14px;
  color: var(--eggshell);
  transition: border-color .25s ease, transform .25s ease;
}
.related a:hover{ border-color: rgba(201,161,90,.55); transform: translateY(-2px); text-decoration: none; }
.related a span{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 3px;
}

/* ---------- footer ---------- */
footer{
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(201,161,90,.22);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

@media (max-width: 560px){
  .facts{ grid-template-columns: 1fr; gap: 4px 0; }
  .facts dd{ margin-bottom: 10px; }
  .actions .btn{ width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
