/* ============================================================
   LIQUID ASSET PARTNERS — Core Design System
   ============================================================
   Palette grounded in the cask: aged burgundy, oak, bonded-
   warehouse charcoal, cask-end cream, restrained gilt.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --burgundy:        #4D0011;   /* Primary brand accent */
  --burgundy-deep:   #38000C;   /* Pressed / shadowed burgundy */
  --burgundy-tint:   #6B1226;   /* Hover / lighter burgundy */
  --burgundy-wash:   #F3E7EA;   /* Faintest burgundy for fills */

  /* Neutrals */
  --charcoal:        #1C1A18;   /* Near-black, warm */
  --charcoal-soft:   #2A2724;   /* Cards on dark */
  --ink:             #232020;   /* Body text on light */
  --slate:           #6E6862;   /* Secondary text */
  --grey:            #9A938C;   /* Muted / captions */
  --line:            #E4DED5;   /* Hairline dividers */
  --line-soft:       #EFEAE1;   /* Faint fills / borders */
  --cream:           #F7F3EA;   /* Warm off-white sections */
  --cream-deep:      #F1EBDD;   /* Slightly deeper cream */
  --paper:           #FDFBF6;   /* Base page */
  --white:           #FFFFFF;

  /* Wood + gilt */
  --oak:             #7A5B3A;   /* Natural cask wood */
  --oak-deep:        #5C4227;
  --gilt:            #B08D57;   /* Muted gold — used sparingly */
  --gilt-soft:       #C9AC7E;

  /* Status */
  --available:       #4A6B4A;
  --reserved:        #9A7B2E;
  --sold:            #8A3A3A;

  /* Type */
  --serif:   "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --wrap: 1240px;
  --wrap-tight: 920px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --shadow-sm: 0 1px 2px rgba(28,26,24,.04), 0 2px 8px rgba(28,26,24,.05);
  --shadow-md: 0 8px 30px rgba(28,26,24,.08);
  --shadow-lg: 0 24px 60px rgba(28,26,24,.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.h-display {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.18rem; }


p { color: var(--ink); }
.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: var(--slate);
  font-weight: 400;
}

/* Eyebrow — the specimen-label motif */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gilt);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gilt-soft); }
.eyebrow--light::before { background: var(--gilt-soft); opacity: .6; }

.serif-accent { font-family: var(--serif); font-style: italic; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-tight { width: 100%; max-width: var(--wrap-tight); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-3.keep-2, .cols-4.keep-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cols-3.keep-2, .cols-4.keep-2 { grid-template-columns: 1fr; }
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 + p { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .35s var(--ease);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--burgundy); color: var(--cream); }
.btn--primary:hover { background: var(--burgundy-deep); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--cream); }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(247,243,234,.32); }
.btn--ghost-light:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }

.btn--gilt { background: transparent; color: var(--white); border-color: var(--gilt); }
.btn--gilt:hover { background: var(--gilt); color: var(--charcoal); }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 36px; font-size: 0.88rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--burgundy); font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.textlink svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.textlink:hover { border-color: var(--gilt); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: clamp(26px, 3vw, 38px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card__num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--gilt); font-weight: 500;
}
.card h3 { margin: 14px 0 12px; }
.card p { color: var(--slate); font-size: 0.97rem; line-height: 1.62; }

/* ---------- Specimen label — the signature motif ---------- */
/* A recurring "cask spec" data block styled like a bonded warehouse label */
.spec {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  overflow: hidden;
}
.spec__head {
  background: var(--burgundy);
  color: var(--cream);
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.spec__head .n { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--white); letter-spacing: 0.005em; }
.spec__head .t { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--gilt-soft); text-transform: uppercase; }
.spec__rows { padding: 8px 20px 16px; }
.spec__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
  font-size: 0.9rem;
}
.spec__row:last-child { border-bottom: 0; }
.spec__row .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.spec__row .v { color: var(--ink); font-weight: 500; text-align: right; }

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 2px;
  border: 1px solid var(--line); color: var(--slate); background: var(--cream);
}
.tag--avail { color: var(--available); border-color: color-mix(in srgb, var(--available) 30%, transparent); background: color-mix(in srgb, var(--available) 7%, transparent); }
.tag--reserved { color: var(--reserved); border-color: color-mix(in srgb, var(--reserved) 30%, transparent); background: color-mix(in srgb, var(--reserved) 7%, transparent); }
.tag--sold { color: var(--sold); border-color: color-mix(in srgb, var(--sold) 30%, transparent); background: color-mix(in srgb, var(--sold) 7%, transparent); }
.tag--dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ---------- Rules & dividers ---------- */
.rule { height: 1px; background: var(--line); border: 0; }
.rule--gilt { height: 1px; background: linear-gradient(90deg, var(--gilt), transparent); border: 0; width: 60px; }

/* ---------- Verification note (admin reminder) ---------- */
.verify-note {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em;
  color: var(--grey); display: inline-flex; align-items: center; gap: 6px;
}
.verify-note::before { content: "⚑"; color: var(--gilt); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Image placeholders ---------- */
/* Premium placeholder blocks, ready to be replaced with real photography */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, var(--charcoal-soft), var(--charcoal));
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(201,172,126,.5);
  text-align: center; padding: 20px; max-width: 80%;
}
.ph::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(201,172,126,.16);
  border-radius: 2px;
  pointer-events: none;
}
.media-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 3px; overflow: hidden;
  aspect-ratio: 4 / 3;
}
.split__media .media-img { aspect-ratio: 4 / 3; }
.member__media .media-img { aspect-ratio: 5 / 6; border-radius: 3px; }
.article__media .media-img { aspect-ratio: 16 / 9; border-radius: 0; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--oak { background: linear-gradient(135deg, var(--oak), var(--oak-deep)); }
.ph--oak::after { color: rgba(247,243,234,.55); }
.ph--oak::before { border-color: rgba(247,243,234,.18); }

/* subtle stave texture on placeholders */
.ph.stave::before {
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 22px,
    rgba(201,172,126,.05) 22px, rgba(201,172,126,.05) 23px
  );
  inset: 0; border: 0;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--burgundy); color: var(--cream); padding: 10px 18px;
  border-radius: 2px; font-size: 0.85rem; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 1px;
}

/* utility */
.mono { font-family: var(--mono); }
.muted { color: var(--slate); }
.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.mb-s { margin-bottom: 12px; } .mb-m { margin-bottom: 24px; } .mb-l { margin-bottom: 40px; }
.maxw { max-width: 62ch; }
