/* lsware.bid — bidding atelier as deep-water observation chamber */

:root {
  --navy-abyss: #0B1A2E;
  --navy-trench: #142841;
  --bone: #E8E4DA;
  --pewter: #9AA7B8;
  --brass: #C9A86B;
  --indigo-tidal: #1F3A5F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-abyss);
  color: var(--bone);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Bokeh field ---- */
.bokeh-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bokeh-field .disc {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--indigo-tidal) 0%, rgba(31,58,95,0.55) 35%, rgba(31,58,95,0) 72%);
  box-shadow: 0 0 80px 30px var(--indigo-tidal);
  filter: blur(28px);
}

/* ---- Grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---- Reading filament ---- */
.filament {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 24px;
  width: 1px;
  z-index: 3;
  background: rgba(154,167,184,0.12);
  pointer-events: none;
}
.filament-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--brass) 0%, var(--pewter) 100%);
}

/* ---- Column ---- */
.column {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
  position: relative;
  z-index: 2;
}

section { margin-block: clamp(5rem, 9vh, 7.5rem); }
section:first-child { margin-block-start: 0; }
section:nth-child(odd)  { margin-inline-start: -2rem; }
section:nth-child(even) { margin-inline-start:  3rem; }

/* deterministic sine-ish drift overrides */
.manifesto   { margin-inline-start: 2.6rem; }
.lots        { margin-inline-start: -3rem; }
.method      { margin-inline-start: 4.5rem; }
.provenance  { margin-inline-start: -1.2rem; }
.coda        { margin-inline-start: 1.4rem; }

/* ---- Typography ---- */
.wordmark {
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  text-transform: uppercase;
  line-height: 1.05;
  position: relative;
  display: inline-block;
  margin-block: 0.6rem 0.9rem;
}
.wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--brass);
}

.opener {
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  margin-block: 0.5rem 1.4rem;
  color: var(--bone);
}

.sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.micro-label {
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pewter);
  margin-block-end: 0.4rem;
}

p { margin-block: 0.9rem; max-width: 62ch; }
p:first-of-type { margin-block-start: 0; }

em { font-style: italic; color: var(--pewter); }

a { color: inherit; text-decoration: none; }
.mailto { color: var(--bone); border-bottom: 0; }
.mailto:hover { color: var(--brass); }

/* ---- Masthead ---- */
.masthead .tagline {
  font-size: 1.0625rem;
  color: var(--bone);
  max-width: 50ch;
}

/* ---- Lots ---- */
.lots .lot {
  margin-block: 2.4rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid rgba(154,167,184,0.16);
}
.lots .lot .micro-label { color: var(--pewter); }

/* ---- Method ---- */
.method .ornament-line {
  margin-block-start: 1.6rem;
}

/* ---- Provenance ledger ---- */
.ledger {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 2.4rem;
  background: var(--navy-trench);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 2px;
}
.ledger-main p { max-width: 46ch; }
.ledger-aside .ledger-entry { margin-block: 1.4rem; }
.ledger-aside .ledger-entry:first-child { margin-block-start: 0; }
.ledger-aside .ledger-entry::before {
  content: "";
  display: block;
  border-top: 1px dotted rgba(154,167,184,0.4);
  width: 24px;
  margin-block-end: 0.5rem;
}
.ledger-tag {
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pewter);
  margin-block: 0 0.2rem;
}
.ledger-aside p { font-size: 0.95rem; max-width: 34ch; margin-block: 0.2rem; }

/* ---- Coda ---- */
.coda {
  text-align: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}
.coda-line {
  font-style: italic;
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  color: var(--bone);
  max-width: 40ch;
  margin-inline: auto;
}
.coda-line em { color: var(--bone); }

/* ---- Tropical-fish glyphs ---- */
.fish {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: baseline;
  margin-inline-start: 0.5em;
  position: relative;
  clip-path: polygon(0% 50%, 38% 8%, 100% 0%, 72% 50%, 100% 100%, 38% 92%);
}
.fish::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--navy-abyss);
  top: 4px;
  left: 6px;
}
.fish-a { background: var(--brass); opacity: 0.55; transform: rotate(-12deg); }
.fish-b { background: var(--pewter); opacity: 0.5;  transform: rotate(6deg); }
.fish-c { background: var(--brass); opacity: 0.7;  transform: rotate(-3deg); }

/* ---- Pulse-attention diamond ---- */
.pulse {
  display: inline-block;
  width: 1.0625rem;
  height: 1.0625rem;
  vertical-align: middle;
  position: relative;
  margin-inline-start: 0.4em;
}
.diamond {
  display: block;
  width: 0.5em;
  height: 0.5em;
  background: var(--brass);
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.25em 0 0 -0.25em;
}
.pulse.pulse-once .diamond {
  animation: pulse-diamond 1.6s ease-out forwards;
}
@keyframes pulse-diamond {
  0% {
    transform: rotate(45deg) scale(0.6);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(201,168,107,0.45);
  }
  60% {
    opacity: 0.7;
  }
  100% {
    transform: rotate(45deg) scale(1.0);
    opacity: 0.7;
    box-shadow: 0 0 0 14px rgba(201,168,107,0);
  }
}

/* ---- Narrow viewports: re-center column, drop drift ---- */
@media (max-width: 720px) {
  section,
  section:nth-child(odd),
  section:nth-child(even),
  .manifesto, .lots, .method, .provenance, .coda {
    margin-inline-start: 0;
  }
  .ledger {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .filament { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse.pulse-once .diamond {
    animation: none;
    transform: rotate(45deg) scale(1.0);
    opacity: 0.7;
  }
}
