/* ============================================
   Ronnie Buder — Portfolio Site
   Dark cinematic, amber accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0c0a08;
  --bg-panel: #17130f;
  --bg-panel-raised: #1e1913;
  --hairline: #2c2620;
  --amber: #c98a3a;
  --amber-bright: #e0a458;
  --text: #ece5d8;
  --text-muted: #9a8f80;
  --text-faint: #675e52;
  --serif: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-width: 1180px;
  --edge: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }

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

/* ---------- Layout shell ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 8, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--amber-bright);
}

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--amber-bright);
}

.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.85rem; }
}

/* ---------- Hero (Home) ---------- */

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-kicker {
  font-size: 0.9rem;
  color: var(--amber-bright);
  margin: 0 0 1.1rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  max-width: 18ch;
}

.hero-tagline {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--amber-bright);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 2.4rem;
}

.hero-lede strong { color: var(--text); font-weight: 500; }

/* ---------- Video embed frame ---------- */

.reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.reel-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.reel-caption .label { color: var(--text-muted); }

/* ---------- Credits strip ---------- */

.credits-strip {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--hairline);
}

.credits-heading {
  font-size: 0.82rem;
  text-transform: none;
  color: var(--text-faint);
  margin: 0 0 1.3rem;
}

.credits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
}

.credit-item {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  padding-right: 1.6rem;
  margin-right: 1.6rem;
  border-right: 1px solid var(--hairline);
}

.credit-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.credit-item span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

@media (max-width: 700px) {
  .credit-item {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
    width: 100%;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--hairline);
  }
  .credit-item:last-child { border-bottom: none; }
}

/* ---------- Bio block (Home) ---------- */

.bio-block {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--hairline);
}

.bio-block .wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}

.bio-block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
}

.bio-block p {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 1rem;
}

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

@media (max-width: 780px) {
  .bio-block .wrap { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- CTA row (Home footer-ish) ---------- */

.cta-row {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--hairline);
}

.cta-row .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-row p {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0;
  max-width: 30ch;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--amber);
  color: #17130f;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--amber-bright); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: transparent;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(1.8rem, 4vw, 2.4rem);
}

.page-header .hero-kicker { margin-bottom: 0.9rem; }

.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 1rem;
  max-width: 16ch;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

/* ---------- Work gallery ---------- */

.gallery {
  padding-bottom: clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.gallery-item {
  padding-top: clamp(2.2rem, 5vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.gallery-item:first-child { border-top: none; padding-top: 0; }

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.gallery-meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0;
}

.gallery-meta .tag {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.gallery-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0.6rem 0 0;
  max-width: 68ch;
}

.placeholder-frame {
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  border: 1px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* ---------- Concepts section ---------- */

.concepts-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--hairline);
}

.concepts-section .section-kicker {
  font-size: 0.9rem;
  color: var(--amber-bright);
  margin: 0 0 0.8rem;
}

.concepts-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 0.8rem;
}

.concepts-section > .wrap > p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

/* ---------- Placeholder page (Writing) ---------- */

.placeholder-page {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(6rem, 12vw, 9rem);
  text-align: left;
}

.placeholder-page .hero-kicker { margin-bottom: 1rem; }

.placeholder-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 2.25vw, 1.6rem);
  margin: 0 0 1.4rem;
  max-width: 16ch;
}

.placeholder-page p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 56ch;
  margin: 0 0 1rem;
}

.post-image {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--hairline);
  margin: 0 0 2rem;
}

.stat-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--hairline);
  margin: 0 0 2rem;
  max-width: 640px;
}

.stat-card .stat {
  flex: 1;
  min-width: 140px;
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--hairline);
}

.stat-card .stat:last-child { border-right: none; }

.stat-card .stat .num {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--amber-bright);
  line-height: 1.1;
}

.stat-card .stat .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

.placeholder-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-faint);
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.7rem;
  margin-top: 0.5rem;
}

/* ---------- Contact page ---------- */

.contact-page {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 7rem);
}

.contact-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.contact-row:last-child { border-bottom: 1px solid var(--hairline); }

.contact-row:hover { color: var(--amber-bright); }

.contact-row .label {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.contact-row .value {
  font-family: var(--serif);
  font-size: 1.3rem;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}
