/* ==========================================================================
   Brough Hansen — shared stylesheet
   Fonts: Lora (serif, body/headings) + Inter (sans, nav/labels)
   Palette:
     background   #F5F7EF
     text         #223C24
     accent       #1A1A1A  (terracotta — used sparingly for labels/links)
     muted        #7E8B76
     hairline     #D7DECD
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #F5F7EF;
  color: #223C24;
  font-family: 'Lora', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.site-header .brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #223C24;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7E8B76;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: #1A1A1A;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.icon-link {
  display: inline-flex;
  color: #7E8B76;
  transition: color 0.2s ease;
}

.icon-link:hover {
  color: #1A1A1A;
}

/* Mobile nav: stack and shrink gaps */
@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
  }
  .header-right {
    flex-direction: column;
    gap: 1.25rem;
  }
  .site-header nav {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------- */
/* Main content wrapper                                                   */
/* ---------------------------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 1.5rem;
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: #223C24;
  text-align: center;
  margin-bottom: 1.75rem;
}

h1 em {
  font-style: italic;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.line {
  width: 40px;
  height: 0.5px;
  background: #D7DECD;
  margin: 0 auto 1.75rem;
}

.line.left {
  margin: 0 0 1.5rem;
}

p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #7E8B76;
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.lede {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.body-text p {
  color: #4C5A46;
}

.body-text a {
  color: #223C24;
  text-decoration: underline;
  text-decoration-color: #7E8B76;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.body-text a:hover {
  color: #1A1A1A;
  text-decoration-color: #1A1A1A;
}

/* ---------------------------------------------------------------------- */
/* Reusable pieces                                                        */
/* ---------------------------------------------------------------------- */

.section {
  margin-bottom: 4rem;
}

.button {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A1A1A;
  border: 0.5px solid #D7DECD;
  padding: 0.85rem 1.75rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  border-color: #1A1A1A;
}

/* Card used for screenplays / essay index entries */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.card {
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid #D7DECD;
}

.card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card h3 {
  color: #223C24;
}

.card .meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 0.75rem;
}

.card p {
  color: #4C5A46;
  margin-bottom: 1rem;
}

.card .links {
  display: flex;
  gap: 1.5rem;
}

.card .links a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7E8B76;
  border-bottom: 0.5px solid #D7DECD;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card .links a:hover {
  color: #1A1A1A;
  border-color: #1A1A1A;
}

/* ---------------------------------------------------------------------- */
/* Signup form                                                            */
/* ---------------------------------------------------------------------- */

.signup-form {
  max-width: 420px;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #223C24;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid #D7DECD;
  padding: 0.6rem 0.1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: #1A1A1A;
}

.signup-form .submit-btn {
  width: 100%;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A1A1A;
  border: 0.5px solid #D7DECD;
  padding: 0.85rem 1.75rem;
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-top: 0.5rem;
}

.signup-form .submit-btn:hover {
  border-color: #1A1A1A;
}

.form-success {
  display: none;
  max-width: 420px;
  margin: 0 auto 3rem;
  text-align: center;
}

.form-success p {
  color: #4C5A46;
}

.form-success .button {
  margin-top: 0.5rem;
}

.choice-group > label {
  margin-bottom: 0.75rem;
}

.choice-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.choice-item input[type="checkbox"],
.choice-item input[type="radio"] {
  accent-color: #1A1A1A;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 0;
}

.choice-item label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #4C5A46;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  cursor: pointer;
}

.choice-item.other-item {
  flex-wrap: wrap;
}

.choice-item .other-input {
  flex: 1;
  min-width: 120px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #223C24;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid #D7DECD;
  padding: 0.2rem 0.1rem;
  outline: none;
}

.choice-item .other-input:focus {
  border-color: #1A1A1A;
}

.video-embed-wrap {
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 0.5px solid #D7DECD;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

footer.site-footer {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #D7DECD;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem 0 2.5rem;
}
