/* ============================================================
   Torro LLC — torro.llc
   One hand-written stylesheet. No build step, no frameworks.
   Palette: deep navy field, cream ink, gold accents,
   muted blue (bids) / muted brown (asks) from the order book.
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #0b1728;   /* page depths / footer */
  --navy-800: #102038;   /* primary field (logo navy) */
  --navy-700: #16294a;   /* raised surfaces */
  --navy-600: #1e355c;   /* hover surfaces */
  --cream: #f5eedc;      /* primary ink */
  --cream-dim: rgba(245, 238, 220, 0.72);
  --cream-faint: rgba(245, 238, 220, 0.45);
  --gold: #d4af37;
  --gold-dim: rgba(212, 175, 55, 0.55);
  --bid: #3c5a82;        /* muted blue — bids */
  --ask: #5a4628;        /* muted brown — asks */
  --line: rgba(212, 175, 55, 0.18);   /* hairline borders */
  --line-soft: rgba(245, 238, 220, 0.10);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
           Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s0: 1rem;
  --s1: 1.5rem;
  --s2: 2.5rem;
  --s3: 4rem;
  --s4: 6rem;

  --radius: 10px;
  --container: 68rem;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-800);
  background-image: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 22rem);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s0);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.2rem; color: var(--cream); }

p { margin: 0 0 var(--s0); }

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

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

::selection { background: var(--gold); color: var(--navy-900); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 23, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s0);
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover, .brand:focus-visible { text-decoration: none; }

.brand .mark { width: 2.35rem; height: 2.35rem; flex: none; }

.brand .wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--cream-dim);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--cream);
  text-decoration: none;
}

/* Mobile nav */
@media (max-width: 44rem) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem clamp(1.1rem, 4vw, 2rem);
    font-size: 1.05rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 11vw, 7.5rem) 0 0;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  max-width: 21ch;
  margin-bottom: var(--s1);
}
.hero h1 .accent { color: var(--gold); }

.hero .lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--cream-dim);
  margin-bottom: var(--s2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s0);
  margin-bottom: var(--s3);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.btn:hover, .btn:focus-visible { text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover, .btn-gold:focus-visible { background: #e2c14f; }

.btn-ghost {
  border-color: var(--gold-dim);
  color: var(--cream);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* Animated order-book depth motif (pure CSS) */

.depth-book {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(3px, 0.7vw, 7px);
  height: clamp(4.5rem, 12vw, 7.5rem);
  padding: 0 var(--s0);
  border-bottom: 2px solid var(--gold-dim);
}

.depth-book span {
  flex: 0 1 clamp(0.8rem, 3vw, 1.8rem);
  height: calc(var(--h) * 1%);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: depth-pulse 5.2s ease-in-out infinite;
  animation-delay: var(--d);
}

.depth-book .bid { background: var(--bid); }
.depth-book .ask { background: var(--ask); }

.depth-book .spread {
  flex: 0 0 clamp(0.6rem, 2vw, 1.4rem);
  height: 100%;
  background: none;
  animation: none;
  position: relative;
}
.depth-book .spread::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--gold));
  opacity: 0.7;
}

@keyframes depth-pulse {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.72); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .depth-book span { animation: none; }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--s4) 0;
  border-top: 1px solid var(--line-soft);
}
.section:first-of-type { border-top: 0; }

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s0);
}

.section-lede {
  max-width: 56ch;
  color: var(--cream-dim);
  font-size: 1.1rem;
  margin-bottom: var(--s2);
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s1);
}

.card {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s1);
}

.card h3 { margin-bottom: var(--s-1); }
.card p { color: var(--cream-dim); margin: 0; font-size: 0.98rem; }

.card .card-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: var(--s0);
  color: var(--gold);
}

/* Venues strip */

.venues {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s1);
  margin-top: var(--s2);
  padding-top: var(--s1);
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.venues .venues-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.venues .venue {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
}

/* Numbered principles (Approach) */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
  counter-reset: principle;
}

.principles li {
  counter-increment: principle;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1);
  padding: var(--s1);
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}

.principles h3 { margin-bottom: var(--s-1); }
.principles p { margin: 0; color: var(--cream-dim); font-size: 0.98rem; }

/* About */

.about-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  align-items: start;
}
@media (min-width: 52rem) {
  .about-cols { grid-template-columns: 3fr 2fr; }
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: var(--s1);
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: var(--s0);
}
.fact-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: var(--s0);
  border-bottom: 1px solid var(--line-soft);
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list .fact-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.fact-list .fact-value { color: var(--cream); font-weight: 500; }

/* Contact */

.contact-panel {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.contact-panel h2 { margin-bottom: var(--s-1); }
.contact-panel p {
  color: var(--cream-dim);
  max-width: 44ch;
  margin: 0 auto var(--s1);
}
.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--s4);
  padding: var(--s2) 0 var(--s2);
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  color: var(--cream-faint);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s0);
  margin-bottom: var(--s1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
}
.footer-brand .mark { width: 1.8rem; height: 1.8rem; }
.footer-brand .wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: var(--s1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--cream-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cream); }

.footer-legal { max-width: 62ch; }
.footer-legal p { margin-bottom: var(--s-1); }

/* ---------- Legal / prose pages ---------- */

.page-main { padding: var(--s3) 0 var(--s2); }

.prose { max-width: 44rem; }
.prose h1 { margin-bottom: var(--s-1); }
.prose .updated {
  color: var(--cream-faint);
  font-size: 0.9rem;
  margin-bottom: var(--s2);
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: var(--s2);
}
.prose p, .prose li { color: var(--cream-dim); }
.prose ul { padding-left: 1.3rem; }
