/* =====================================================
   Overture Ventures — shared styles
   ===================================================== */

:root {
  --bg: #0a0908;
  --fg: #e8e3d8;
  --fg-soft: #c8c1b3;
  --muted: #6b6253;
  --muted-2: #3a342c;
  --accent: #c9a26b;
  --accent-soft: rgba(201, 162, 107, 0.45);
  --proximity: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  line-height: 1.5;
}

/* Body class .inner is used on non-home pages so we can adjust overflow */
body.inner { overflow-y: auto; }

/* ---------- Atmospheric layers ---------- */

/* Warm radial glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%,
      rgba(201, 162, 107, calc(0.06 + var(--proximity) * 0.18)) 0%,
      transparent 65%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
  animation: breathe 9s ease-in-out infinite;
}

/* Film grain (above everything) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 20;
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* Hairline corner brackets */
.bracket {
  position: fixed;
  width: 22px; height: 22px;
  border-color: var(--muted-2);
  z-index: 4;
  opacity: 0;
  animation: fadeIn 1.8s ease-out 0.1s forwards;
}
.bracket.tl { top: 22px; left: 22px;    border-top: 1px solid; border-left: 1px solid; }
.bracket.tr { top: 22px; right: 22px;   border-top: 1px solid; border-right: 1px solid; }
.bracket.bl { bottom: 22px; left: 22px; border-bottom: 1px solid; border-left: 1px solid; }
.bracket.br { bottom: 22px; right: 22px; border-bottom: 1px solid; border-right: 1px solid; }

@keyframes fadeIn { to { opacity: 1; } }

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

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 56px;
  opacity: 0;
  animation: fadeIn 1.4s ease-out 0.2s forwards;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}

.brand-mark-svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: block;
}

.brand-name {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 10.5px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 3px;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-nav a.active {
  color: var(--accent);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

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

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 56px 40px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1.6s ease-out 1.6s forwards;
  gap: 24px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.site-footer .sep { color: var(--muted-2); margin: 0 8px; }

/* ---------- Inner page content ---------- */

.page-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 56px 96px;
  opacity: 0;
  animation: fadeIn 1.4s ease-out 0.5s forwards;
}

.page-eyebrow {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-title {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}

.page-rule {
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 36px;
  opacity: 0.7;
}

.prose {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-soft);
}

.prose p { margin-bottom: 22px; }

.prose p:last-child { margin-bottom: 0; }

.prose em {
  font-style: italic;
  color: var(--fg);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.25s ease;
}

.prose a:hover { border-bottom-color: var(--accent); }

.prose .echo {
  font-style: italic;
  font-size: 22px;
  color: var(--fg);
  display: block;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--muted-2);
}

.prose h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 16px;
}

.prose h2:first-child { margin-top: 0; }

.prose ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.prose ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  top: 4px;
}

.contact-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin-top: 8px;
}

.contact-block .label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.contact-block .email {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.contact-block .email:hover { border-bottom-color: var(--accent); }

.contact-block address {
  font-style: normal;
  color: var(--fg-soft);
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .site-header { padding: 28px 24px; flex-wrap: wrap; gap: 16px; }
  .site-footer { padding: 24px 24px 32px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 9.5px; letter-spacing: 0.2em; }
  .brand-name { font-size: 10px; letter-spacing: 0.26em; }

  .page-content { padding: 32px 24px 64px; }
  .prose { font-size: 17px; }
  .prose .echo { font-size: 19px; }

  .bracket { width: 16px; height: 16px; }
  .bracket.tl, .bracket.tr { top: 16px; }
  .bracket.tl, .bracket.bl { left: 16px; }
  .bracket.tr, .bracket.br { right: 16px; }
  .bracket.bl, .bracket.br { bottom: 16px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  body::before { animation: none !important; }
}
