/* ============================================================
   Reset & Custom Properties
   ============================================================ */

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

:root {
  --bg:           #0c0e13;
  --surface:      #13161e;
  --surface-2:    #1a1e28;
  --border:       #252936;
  --accent:       #c8a45a;
  --accent-light: #debb7a;
  --text:         #e6e2da;
  --text-muted:   #7a7d8e;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1080px;
  --radius:       8px;
  --ease:         0.2s ease;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

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

img { display: block; max-width: 100%; }
a   { color: var(--accent); text-decoration: none; }


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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(12, 14, 19, 0.15) 0%,
      rgba(12, 14, 19, 0.25) 40%,
      rgba(12, 14, 19, 0.82) 70%,
      rgba(12, 14, 19, 1.00) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

.hero-identity {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.avatar-wrap {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 164, 90, 0.12);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.writer-tagline {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.primary-link {
  color: var(--text);
  letter-spacing: 0.08em;
}

.primary-link:hover {
  color: var(--accent);
}

.primary-nav a + a::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--border);
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.primary-nav::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: var(--border);
  margin-left: 0.75rem;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--ease);
}

.social-link:hover { color: var(--accent); }

.social-divider {
  color: var(--border);
  font-size: 1.1rem;
  line-height: 1;
}


/* ============================================================
   Layout helpers
   ============================================================ */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  padding-bottom: 0.85rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}


/* ============================================================
   Featured Scripts
   ============================================================ */

.featured-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.script-card-featured {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  transition: border-color var(--ease);
}

.script-card-featured:last-child { margin-bottom: 0; }

.script-card-featured:hover { border-color: rgba(200, 164, 90, 0.45); }

/* Flip the PDF to the right on every other card */
.script-card-reverse {
  grid-template-columns: 2fr 1fr;
}

.script-card-reverse .script-card-pdf-col {
  order: 2;
}

.script-card-reverse .script-card-info {
  order: 1;
}

/* PDF column */
.pdf-link {
  display: block;
  transition: opacity var(--ease), transform var(--ease);
}

.pdf-link:hover {
  opacity: 0.82;
  transform: translateY(-3px);
}

/* Script info column */
.script-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.tags {
  display: inline-flex;
  margin-bottom: 5px;
  align-items: center;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.tags span + span::before {
  content: "•";
  margin-right: 0.5rem;
}

.script-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 58ch;
}

.laurel-image {
  max-width: 230px;
}

.laurels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.laurel {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.request-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.request-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 164, 90, 0.25);
}

.script-card-info .request-btn {
  margin-left: 25px;
}

.script-card-pdf-col img {
  border-radius: 3%;
}


/* ============================================================
   More Scripts
   ============================================================ */

.more-section {
  padding: 4.5rem 0 5.5rem;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.script-card-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}

.script-card-compact:hover { border-color: rgba(200, 164, 90, 0.45); }

.script-card-compact .script-title {
  font-size: 1.2rem;
}

.script-card-compact .logline {
  font-size: 0.9rem;
}

.script-card-compact .request-btn {
  margin-top: auto;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}


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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ============================================================
   Tablet  —  max 1024px
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content {
    padding: 0 2rem 3.5rem;
  }

  .section-inner {
    padding: 0 2rem;
  }

  .script-card-featured,
  .script-card-reverse {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
  }

  /* Reset column reorder on tablet — keep PDF left */
  .script-card-reverse .script-card-pdf-col { order: unset; }
  .script-card-reverse .script-card-info    { order: unset; }
}



/* ============================================================
   Mobile  —  max 767px
   ============================================================ */

@media (max-width: 767px) {
  .hero-content {
    padding: 0 1.25rem 3rem;
  }

  .avatar-wrap {
    width: 72px;
    height: 72px;
  }

  .hero-identity {
    gap: 1rem;
  }

  .section-inner {
    padding: 0 1.25rem;
  }

  .section-label {
    font-size: 1.35rem;
    margin-bottom: 2rem;
  }

  .featured-section {
    padding: 3.5rem 0;
  }

  .script-card-featured,
  .script-card-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .logline {
    max-width: 100%;
  }

  .more-section {
    padding: 3rem 0 4rem;
  }

  .more-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 1.5rem 1.25rem;
  }
}

/* ============================================================
   Blog
   ============================================================ */

.blog-section {
  padding: 4.5rem 0 5.5rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), transform var(--ease);
  max-width: 720px;
}

.blog-card:hover {
  border-color: rgba(200, 164, 90, 0.45);
  transform: translateY(-2px);
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.blog-title a:hover {
  color: var(--accent);
}

.blog-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 60ch;
}

.read-more {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.read-more:hover {
  color: var(--accent-light);
}

.post-nav {
  display: inline-flex;
  margin-bottom: 5px;
  align-items: center;
  gap: 0.5rem;
}

.post-nav a + a::before {
  content: ">";
  margin-right: 0.5rem;
}

/* ============================================================
   Blog Post Page
   ============================================================ */

.blog-post {
  padding: 2.5rem 0 5.5rem;
}

.blog-post .section-inner {
  max-width: 720px;
  padding: 0 1.5rem;
}

.post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-post p,
.about-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.blog-post h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.blog-post a:hover {
  color: var(--accent-light);
}


.read-more.home-link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.read-more.home-link:hover {
  color: var(--accent-light);
}

/* ============================================================
   Smaller Hero Variant (for blog pages)
   ============================================================ */

.hero-small {
  min-height: 25svh;
}

.hero-small .hero-bg-wrap {
  bottom: auto;
  height: 100svh;
}

.hero-small .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(12, 14, 19, 0.15)  0%,
    rgba(12, 14, 19, 0.25) 15%,
    rgba(12, 14, 19, 0.55) 40%,
    rgba(12, 14, 19, 0.80) 70%,
    rgb(12, 14, 19)        95%
  );
}

/* ============================================================
   Page Header (title block below hero-small)
   ============================================================ */

.page-header {
  padding: 2rem 0 2.5rem;
}

.page-header .section-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================================
   About Page
   ============================================================ */

.about-section {
  padding: 4.5rem 0 5.5rem;
}

.about-section .section-inner {
  max-width: 720px;
}

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

.pull-quote {
    border-left: 2px solid var(--accent);
    margin-top: 3rem;
    padding: 0.25rem 0 0.25rem 1.75rem;
}

.pull-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.pull-quote cite {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-style: normal;
}
