/* Lode Folio — company info (independent of Trade Ledger / Verdant Charter) */

:root {
  --lf-ink: #1a120b;
  --lf-mute: #4a4038;
  --lf-mist: #e8eef4;
  --lf-snow: #f5f7fa;
  --lf-copper: #b85c38;
  --lf-copper-deep: #8a3f22;
  --lf-steel: #3d5a80;
  --lf-gold: #e9c46a;
  --lf-display: "Bodoni Moda", Georgia, serif;
  --lf-body: "Karla", system-ui, sans-serif;
  --lf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lf-fluid-xl: clamp(2.6rem, 1.15rem + 5.8vw, 5.2rem);
  --lf-fluid-lg: clamp(1.45rem, 1.05rem + 1.6vw, 2.15rem);
  --lf-fluid-sm: clamp(0.72rem, 0.65rem + 0.3vw, 0.85rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.lf-lode {
  margin: 0;
  min-height: 100vh;
  font-family: var(--lf-body);
  color: var(--lf-ink);
  background:
    radial-gradient(85% 60% at 100% 0%, color-mix(in srgb, var(--lf-copper) 16%, transparent), transparent 55%),
    radial-gradient(70% 50% at 0% 90%, color-mix(in srgb, var(--lf-steel) 14%, transparent), transparent 50%),
    linear-gradient(165deg, var(--lf-mist), var(--lf-snow) 48%, #dce4ee);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.lf-lode .a63-fold-wrap,
body.lf-lode .a63-ribbon,
body.lf-lode .a63-mast,
body.lf-lode .a63-colophon {
  display: none !important;
}

.lf-root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.lf-root > .page-main {
  flex: 1;
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  padding-bottom: 2.5rem;
}

.lf-shell {
  container-type: inline-size;
  container-name: lode;
  padding-block: 1.15rem 2rem;
}

/* —— Top —— */
.lf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .lf-top {
    animation: lf-rise 0.5s var(--lf-ease);
  }
}

.lf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.lf-brand em {
  font-style: normal;
  font-family: var(--lf-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.22rem 0.5rem;
  background: var(--lf-ink);
  color: var(--lf-gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
}

.lf-brand span {
  font-family: var(--lf-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lf-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.lf-top-links a {
  font-size: var(--lf-fluid-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lf-mute);
}

.lf-top-links a:hover {
  color: var(--lf-copper);
}

.lf-kicker {
  margin: 0 0 0.3rem;
  font-size: var(--lf-fluid-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lf-mute);
}

.lf-block-head {
  margin-bottom: 1rem;
}

.lf-block-head h2 {
  margin: 0;
  font-family: var(--lf-display);
  font-size: var(--lf-fluid-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* —— Named board —— */
.lf-board {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.25fr 0.85fr;
  grid-template-areas:
    "mast mast"
    "mission mission"
    "strata strata"
    "facets desk"
    "aisles desk"
    "registry desk";
  align-items: start;
}

.lf-mast { grid-area: mast; }
.lf-mission { grid-area: mission; }
.lf-strata { grid-area: strata; }
.lf-facets { grid-area: facets; }
.lf-aisles { grid-area: aisles; }
.lf-registry { grid-area: registry; }
.lf-desk { grid-area: desk; }

@container lode (max-width: 860px) {
  .lf-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mast"
      "mission"
      "strata"
      "facets"
      "aisles"
      "registry"
      "desk";
  }

  .lf-desk {
    position: static;
  }
}

/* —— Mast —— */
.lf-mast {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lf-mast {
    animation: lf-rise 0.5s var(--lf-ease);
  }
}

.lf-mast h1 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
  line-height: 0.92;
}

.lf-fluid {
  font-family: var(--lf-display);
  font-weight: 700;
  font-size: var(--lf-fluid-xl);
  letter-spacing: -0.03em;
}

.lf-fluid-soft {
  font-style: italic;
  color: var(--lf-copper);
}

.lf-dek {
  margin: 0.85rem 0 0;
  max-width: 48ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--lf-mute);
}

.lf-stats {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lf-stats li {
  display: grid;
  gap: 0.1rem;
  min-width: 5.5rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 88% 100%, 0 100%);
}

.lf-stats strong {
  font-family: var(--lf-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lf-stats span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lf-mute);
}

/* —— Mission —— */
.lf-mission {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--lf-ink);
  color: #e8e4de;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 96% 100%, 0 100%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--lf-ink) 22%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .lf-mission {
    animation: lf-rise 0.55s var(--lf-ease);
  }
}

.lf-mission .lf-kicker {
  color: var(--lf-gold);
}

.lf-mission-clip {
  margin: 0;
  font-family: var(--lf-display);
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--lf-gold);
}

.lf-mission-body {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1.02rem;
  color: rgba(232, 228, 222, 0.94);
}

/* —— History strata (horizontal) —— */
.lf-strata {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lf-strata {
    animation: lf-rise 0.5s var(--lf-ease);
  }
}

.lf-strata-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.lf-layer {
  scroll-snap-align: start;
  padding: 1.15rem 1.1rem 1.25rem;
  background: #fff;
  position: relative;
  isolation: isolate;
  min-height: 11rem;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--lf-ink) 6%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .lf-layer {
    animation: lf-rise 0.45s var(--lf-ease);
  }
}

.lf-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(145deg, var(--lf-copper), var(--lf-gold) 50%, var(--lf-steel));
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 100%, 0 100%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.lf-layer time {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lf-copper);
}

.lf-layer h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--lf-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lf-layer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--lf-mute);
}

.lf-strata-nav {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.lf-nav-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  font: inherit;
  font-weight: 700;
  background: var(--lf-ink);
  color: var(--lf-gold);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  transition: background 0.2s ease;
}

.lf-nav-btn:hover {
  background: var(--lf-copper);
  color: #fff;
}

.lf-nav-btn:focus-visible {
  outline: 2px solid var(--lf-steel);
  outline-offset: 3px;
}

/* —— Facets (values) —— */
.lf-facets {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lf-facets {
    animation: lf-rise 0.5s var(--lf-ease);
  }
}

.lf-facet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@container lode (max-width: 520px) {
  .lf-facet-grid {
    grid-template-columns: 1fr;
  }
}

.lf-facet {
  padding: 1.1rem 1rem 1.15rem;
  background: color-mix(in srgb, #fff 92%, var(--lf-mist));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  text-align: center;
  min-height: 11.5rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  transition: transform 0.25s var(--lf-ease);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--lf-ink) 7%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .lf-facet {
    animation: lf-rise 0.4s var(--lf-ease);
  }
}

.lf-facet:hover {
  transform: translateY(-4px);
}

.lf-facet-code {
  font-family: var(--lf-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lf-copper);
}

.lf-facet h3 {
  margin: 0;
  font-family: var(--lf-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.lf-facet p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lf-mute);
  padding-inline: 0.5rem;
}

.lf-seals {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lf-seals li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  background: var(--lf-gold);
  color: var(--lf-ink);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .lf-seals li {
    animation: lf-rise 0.35s var(--lf-ease);
  }
}

/* —— Aisles —— */
.lf-aisles {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lf-aisles {
    animation: lf-rise 0.5s var(--lf-ease);
  }
}

.lf-aisle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lf-aisle {
  text-decoration: none;
  color: var(--lf-ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lf-ink) 12%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
  transition: background 0.2s ease, color 0.2s ease;
}

.lf-aisle:hover {
  background: var(--lf-steel);
  color: #fff;
}

/* —— Registry —— */
.lf-registry {
  padding: 1.2rem 1.15rem 1.3rem;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--lf-ink) 8%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .lf-registry {
    animation: lf-rise 0.5s var(--lf-ease);
  }
}

.lf-registry::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(200deg, var(--lf-steel), transparent 40%, var(--lf-copper));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.lf-legal {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lf-legal dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lf-mute);
}

.lf-legal dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.lf-legal-wide {
  grid-column: 1 / -1;
}

@container lode (max-width: 520px) {
  .lf-legal {
    grid-template-columns: 1fr;
  }
}

/* —— Desk —— */
.lf-desk {
  position: sticky;
  top: 1rem;
  z-index: 1;
  padding: 1.25rem 1.15rem 1.35rem;
  background: var(--lf-steel);
  color: #e8eef6;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--lf-steel) 28%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .lf-desk {
    animation: lf-rise 0.55s var(--lf-ease);
  }
}

.lf-desk .lf-kicker {
  color: var(--lf-gold);
}

.lf-desk h2 {
  margin: 0;
  font-family: var(--lf-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.lf-desk-link {
  display: block;
  margin-top: 0.65rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid color-mix(in srgb, #fff 25%, transparent);
  padding-bottom: 0.2rem;
}

.lf-desk-link:hover {
  color: var(--lf-gold);
  border-bottom-color: var(--lf-gold);
}

.lf-hours {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: rgba(232, 238, 246, 0.92);
}

.lf-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.lf-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  transition: transform 0.2s var(--lf-ease), background 0.2s ease, color 0.2s ease;
}

.lf-btn:active {
  transform: translateY(1px);
}

.lf-btn-fill {
  background: var(--lf-copper);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%);
}

.lf-btn-fill:hover {
  background: var(--lf-copper-deep);
}

.lf-btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #fff 35%, transparent);
}

.lf-btn-ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
}

.lf-btn:focus-visible {
  outline: 2px solid var(--lf-gold);
  outline-offset: 3px;
}

/* —— Footer —— */
.lf-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--lf-ink) 12%, transparent);
  font-size: 0.8rem;
  color: var(--lf-mute);
}

.lf-foot a {
  color: var(--lf-ink);
  font-weight: 600;
  text-decoration: none;
}

.lf-foot a:hover {
  color: var(--lf-copper);
}

@keyframes lf-rise {
  from {
    transform: translateY(10px);
    filter: saturate(0.9);
  }
  to {
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lf-top,
  .lf-mast,
  .lf-mission,
  .lf-strata,
  .lf-layer,
  .lf-facets,
  .lf-facet,
  .lf-seals li,
  .lf-aisles,
  .lf-registry,
  .lf-desk {
    animation: none !important;
  }

  .lf-facet:hover,
  .lf-btn:active {
    transform: none;
  }
}

@media (max-width: 640px) {
  .lf-root > .page-main {
    width: calc(100% - 1.5rem);
  }

  .lf-desk {
    position: static;
  }
}
