/* Talking with AI about Faith — shared stylesheet */

:root {
  --paper: #faf7f1;
  --ink: #2b2a27;
  --muted: #6b665d;
  --rule: #e2dccf;
  --accent: #7a2e2a;        /* deep oxblood: links, button */
  --accent-ink: #ffffff;
  --panel: #f2ede3;
  --todo: #fff1b8;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype",
           Palatino, Georgia, Cambria, "Times New Roman", serif;
  --measure: 38rem;
  --wide: 56rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1c1a;
    --ink: #e8e4dc;
    --muted: #a39d92;
    --rule: #3a3833;
    --accent: #d9897f;
    --accent-ink: #1d1c1a;
    --panel: #26241f;
    --todo: #5a4b12;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2 {
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h1.page-title { font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
h2 { font-size: 1.6rem; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--accent); }

p { margin: 0 0 1rem; max-width: var(--measure); }

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-name {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Sections */

main section { padding-top: 3rem; padding-bottom: 1rem; }
main section + section { border-top: 1px solid var(--rule); margin-top: 2rem; }
main section.intro { padding-top: 3.5rem; }
main section.intro + section { border-top: none; margin-top: 0; padding-top: 1rem; }

.lede { font-size: 1.3rem; color: var(--muted); }

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.meta { color: var(--muted); font-size: 1rem; }
.fine { color: var(--muted); font-size: 0.9rem; }

/* Presentation feature */

.feature {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 46rem) {
  .feature { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.poster {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--rule);
  text-decoration: none;
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.button,
.signup button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 3px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.signup button:hover { filter: brightness(1.1); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Signup */

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: var(--measure);
  margin: 1.5rem 0 0.75rem;
}
.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Embedded video */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 0.75rem;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Credits list (How this is made) */

.credits { margin: 0; max-width: var(--measure); }
.credits dt {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 1.5rem;
}
.credits dt:first-child { margin-top: 0; }
.credits dd { margin: 0.25rem 0 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Utilities */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Draft placeholders — remove this rule (and the spans) before launch */
.todo { background: var(--todo); padding: 0 0.15em; }
