/* Reframd wireframe base styles — editorial magazine system */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Space+Grotesk:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #ffffff;
  --cream: #fffef7;
  --sage: #d0d7c6;
  --olive: #606b51;
  --ink: #272d1e;
  --ochre: #bd8359;
  --ochre-dark: #8a5a33;
  --ochre-light: #e5c1a8;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

/* ------------ Direction switcher chrome ------------ */
.chrome {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(39, 45, 30, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.chrome button {
  background: transparent;
  color: #d0d7c6;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: all 0.2s;
}
.chrome button:hover { color: #fffef7; }
.chrome button.active {
  background: var(--cream);
  color: var(--ink);
}

.direction {
  display: none;
  min-height: 100vh;
}
.direction.active { display: block; }

/* ------------ Placeholder image system ------------ */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(96, 107, 81, 0.10) 0 2px,
      transparent 2px 12px
    ),
    var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}
.img-ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 254, 247, 0.08) 0 2px,
      transparent 2px 12px
    ),
    var(--olive);
  color: var(--cream);
}
.img-ph.ochre {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 254, 247, 0.12) 0 2px,
      transparent 2px 12px
    ),
    var(--ochre);
  color: var(--cream);
}
.img-ph .label {
  padding: 12px 16px;
  max-width: 80%;
  line-height: 1.5;
}

/* Suppress placeholder styling when a real image is present */
.img-ph:has(img),
.img-ph.dark:has(img),
.img-ph.ochre:has(img) { background: none; color: inherit; }
.img-ph:has(img) .label { display: none; }

/* ------------ Shared utilities ------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

.rule {
  height: 1px;
  background: var(--ink);
  opacity: 0.15;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { background: var(--olive); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.display-serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-feature-settings: 'liga', 'dlig';
}
.display-serif .italic { font-style: italic; font-weight: 300; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------ Mobile base ------------ */
@media (max-width: 768px) {
  .chrome {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .chrome button {
    padding: 7px 11px;
  }
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  img {
    max-width: 100%;
    height: auto;
  }
}

/* hero tweak toggle */
.hero-tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: var(--cream);
  border: 1px solid rgba(39, 45, 30, 0.15);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(39, 45, 30, 0.08);
  max-width: 240px;
}
.hero-tweaks.visible { display: flex; }
.hero-tweaks .label {
  color: var(--olive);
  margin-bottom: 2px;
}
.hero-tweaks .opts { display: flex; gap: 4px; flex-wrap: wrap; }
.hero-tweaks button {
  flex: 1;
  min-width: 60px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid rgba(39, 45, 30, 0.2);
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.hero-tweaks button:hover { background: rgba(208, 215, 198, 0.4); }
.hero-tweaks button.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
