/* ==========================================================================
   BOQUILA — Design tokens
   Palette: near-black ground, moss / ember / stone / smoke accents
   Type: Lora (display + body), Jost (nav, labels, captions)
   ========================================================================== */

:root {
  --bg: #232B1C;
  --bg-raised: #131510;
  --paper: #ece6d8;
  --paper-dim: rgba(236, 230, 216, 0.62);
  --moss: #184A1B;
  --ember: #5C6B73;
  --stone: #a89d89;
  --smoke: #6d6a62;
  --line: rgba(236, 230, 216, 0.14);
  --line-strong: rgba(236, 230, 216, 0.3);

  --font-display: "Lora", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
  --font-utility: "Jost", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 7rem;
  --space-6: 11rem;

  --max-width: 74rem;
  --measure: 34rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ember);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Language visibility — toggled by JS setting [data-lang] on <html> */
[data-en], [data-es] {
  display: none;
}
html[data-lang="en"] [data-en] { display: revert; }
html[data-lang="es"] [data-es] { display: revert; }
html[data-lang="en"] span[data-en],
html[data-lang="es"] span[data-es] { display: inline; }

/* ==========================================================================
   Layout shells
   ========================================================================== */

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 60em) {
  .wrap { padding-inline: var(--space-4); }
}

/* ==========================================================================
   Header / nav — reduced to essentials, like Monk's single-line nav
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

@media (min-width: 60em) {
  .site-header { padding: var(--space-3) var(--space-4); }
}

.site-header .mark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.site-nav a {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.lang-toggle {
  display: flex;
  gap: 0.4em;
  font-family: var(--font-utility);
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
}

.lang-toggle button[aria-pressed="true"] {
  opacity: 1;
  border-bottom: 1px solid var(--ember);
}

/* mobile nav collapse note: at narrow widths, links hide behind a simple
   text toggle — implement when real content/links are final */
@media (max-width: 40em) {
  .site-nav ul { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  position: relative;
}

.hero .wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 6rem);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0;
}

.hero .tagline {
  margin-top: var(--space-2);
  font-family: var(--font-utility);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Signature element — the tendril: a single line that traces itself once
   on load, standing in for the Boquila vine reaching across its host.
   Static fallback shown when motion is reduced. */
.tendril {
  width: min(70vw, 22rem);
  height: 2px;
  margin-top: var(--space-4);
}

.tendril path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 1;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 2.4s ease-out 0.3s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .tendril path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-3);
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.section-label {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-2);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: var(--measure);
}

p {
  max-width: var(--measure);
  color: var(--paper-dim);
}

p.lede {
  font-size: 1.15rem;
  color: var(--paper);
}

.two-col {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 55em) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ==========================================================================
   Image placeholders — visible boxes so layout can be judged pre-imagery
   ========================================================================== */

.image-slot {
  position: relative;
  width: 100%;
  background: var(--bg-raised);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-slot::before {
  content: attr(data-spec);
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  text-align: center;
  padding: var(--space-2);
}

.image-slot.ratio-16-9 { aspect-ratio: 16 / 9; }
.image-slot.ratio-4-5  { aspect-ratio: 4 / 5; }
.image-slot.ratio-1-1  { aspect-ratio: 1 / 1; }
.image-slot.ratio-21-9 { aspect-ratio: 21 / 9; }

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* When a real image is dropped in, add class "filled" and remove the
   data-spec caption so the placeholder styling disappears. */
.image-slot.filled::before { content: none; }
.image-slot.filled { border-style: solid; border-color: var(--line); }

.gallery-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 55em) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Copy placeholders — clearly marked, deleted once real copy is written
   ========================================================================== */

.copy-slot {
  border-left: 2px solid var(--line-strong);
  padding-left: var(--space-2);
  font-family: var(--font-utility);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--smoke);
  font-style: normal;
  max-width: var(--measure);
}

/* ==========================================================================
   List / index blocks (used on Experiences)
   ========================================================================== */

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-list li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}

.index-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.index-list .index-no {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  color: var(--smoke);
  min-width: 2ch;
}

.index-list h3 {
  font-size: 1.3rem;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-4) 0 var(--space-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}

.site-footer a:hover {
  color: var(--paper);
}

/* Focus visibility, kept even in a quiet design */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 3px;
}
