/* TitusOrion.com
   Posterboard white, Sharpie black, one red for the words of Jesus,
   Morning gold for hope and next steps. See VISUAL-IDENTITY.md. */

:root {
  --bg: #FAFAF7;          /* Posterboard */
  --ink: #111111;         /* Sharpie */
  --red: #C62828;         /* Red Letter: words of Jesus only */
  --gold: #F2B233;        /* Morning: fill behind black text only */
  --on-gold: #111111;
  --muted: #6B6B6B;       /* Concrete */
  --card: #FFFFFF;
  --soft: #F1F0EA;
  --line: #111111;
  --rule: #DAD8D0;
  --sign-bg: #FAFAF7;
  --sign-ink: #111111;
  --sign-red: #C62828;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --ink: #FAFAF7;
    --red: #EF5350;
    --muted: #A8A8A8;
    --card: #1A1A1A;
    --soft: #1C1C1B;
    --line: #FAFAF7;
    --rule: #333333;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--on-gold);
  padding: 8px 14px; font-weight: 700; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 680px; }
.wrap.prose { max-width: 1080px; }
.wrap.prose > * { max-width: 680px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Header ---------- */
.site-header { border-bottom: 3px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .wordmark { width: 150px; height: auto; color: var(--ink); }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
}
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 6px 0; display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--red);
}
.site-nav .nav-cta a {
  background: var(--gold); color: var(--on-gold);
  padding: 7px 14px; border-radius: 4px; text-decoration: none;
}
.site-nav .nav-cta a:hover { background: #e5a51f; text-decoration: none; }

@media (max-width: 719px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 2px 16px; }
  .site-nav a { font-size: 0.92rem; }
}

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 6vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4.2vw, 2.2rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.kicker {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.95rem; color: var(--muted); margin-bottom: 10px;
}
.lead { font-size: 1.2rem; line-height: 1.6; }
.small { font-size: 0.9rem; color: var(--muted); }
.rl { color: var(--red); }  /* red letter */

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-soft { background: var(--soft); }
.page-head { padding: 48px 0 8px; }
.page-head .lead { max-width: 640px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 12px 20px; border-radius: 4px; border: 3px solid var(--line);
  line-height: 1.2; font-size: 1rem;
}
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-gold:hover { background: #e5a51f; border-color: #e5a51f; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.35fr 1fr; } }
.hero h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.6rem, 15vw, 7.2rem); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 20px;
}
.hero .sub { font-size: 1.18rem; max-width: 560px; }

/* The posterboard sign (always white, like the real thing) */
.board {
  background: var(--sign-bg); color: var(--sign-ink);
  border: 5px solid #111; border-radius: 8px;
  box-shadow: 0 10px 0 -4px rgba(0,0,0,0.12);
}
.hero-sign { text-align: center; padding: 36px 20px 26px; max-width: 380px; margin: 0 auto; width: 100%; }
.hero-sign .go {
  font-family: var(--display); font-size: clamp(7rem, 30vw, 11rem); line-height: 0.9; display: block; color: #111;
}
.hero-sign .ref { font-family: var(--serif); font-weight: 600; color: var(--sign-red); font-size: 1.05rem; margin: 14px 0 0; }

/* ---------- Sign cards (You've Heard It Said) ---------- */
.signs { display: grid; gap: 22px; }
@media (min-width: 720px) { .signs { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); } }
.sign { display: flex; flex-direction: column; }
.sign .board { padding: 22px 18px 18px; }
.sign-num { font-family: var(--display); color: #6B6B6B; font-size: 0.9rem; letter-spacing: 0.08em; margin: 0 0 6px; }
.sign-front {
  font-family: var(--display); text-transform: uppercase; font-size: 1.75rem; line-height: 1.05; margin: 0;
}
.sign-flip {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 12px;
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em; color: #6B6B6B;
}
.sign-flip::before, .sign-flip::after { content: ""; flex: 1; border-top: 2px dashed #BDBBB3; }
.sign-back { margin: 0; }
.sign-back p { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.35; color: var(--sign-red); margin: 0 0 8px; }
.sign-back cite { font-style: normal; font-weight: 700; font-size: 0.9rem; color: #111; }
.sign-body { padding: 16px 2px 0; }
.sign-body p { margin-bottom: 0.8em; }

.mini-signs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .mini-signs { grid-template-columns: 1fr 1fr; } }
.mini-signs .board { padding: 18px; font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; text-align: center; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 3px solid var(--line); border-radius: 8px; padding: 22px;
  display: flex; flex-direction: column;
}
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }
.card ul { padding-left: 1.1em; margin: 0.4em 0 0; }
.card li { margin-bottom: 0.5em; }
.card .meta { margin-top: auto; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.post-list li:first-child { padding-top: 6px; }
.post-list h2, .post-list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 6px; }
.post-list h2 a, .post-list h3 a { text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.post-list p { margin-bottom: 0.4em; }
.soon { color: var(--muted); }
.soon h2, .soon h3 { font-size: 1.2rem; }

/* ---------- Gold boxes: next steps, hope ---------- */
.step {
  background: var(--gold); color: var(--on-gold);
  border-radius: 8px; padding: 26px 24px; margin: 32px 0;
}
.step h2, .step h3 { color: var(--on-gold); margin-top: 0; }
.step p:last-child { margin-bottom: 0; }
.step a { color: var(--on-gold); }
.step .btn-ink { background: #111; color: #FAFAF7; border-color: #111; }
.step .btn-ink:hover { background: #C62828; border-color: #C62828; }

.band { background: var(--gold); color: var(--on-gold); padding: 44px 0; }
.band h2 { color: var(--on-gold); }
.band .btn-ink { background: #111; color: #FAFAF7; border-color: #111; }
.band .btn-ink:hover { background: #C62828; border-color: #C62828; }

/* ---------- Scripture ---------- */
.scripture {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.45;
  border-left: 5px solid var(--red); margin: 1.6em 0; padding: 4px 0 4px 20px;
}
.scripture p { margin: 0; }
.big-go {
  font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--red); margin: 0.2em 0 0.4em;
}

/* ---------- Article ---------- */
.article-head { padding: 48px 0 12px; }
.article-head h1 { font-size: clamp(2rem, 5.6vw, 3rem); }
.byline { color: var(--muted); font-size: 0.95rem; }
.article-body { font-size: 1.12rem; line-height: 1.75; padding-bottom: 20px; }
.article-body h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 3.8vw, 1.85rem); }
.article-body hr { border: 0; border-top: 2px solid var(--rule); margin: 2.2em 0; }

/* ---------- Placeholders for Titus (remove before launch) ---------- */
.todo {
  background: repeating-linear-gradient(135deg, rgba(242,178,51,0.18) 0 10px, rgba(242,178,51,0.08) 10px 20px);
  border: 2px dashed var(--gold); border-radius: 6px; padding: 2px 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95em;
}
p.todo, div.todo { display: block; padding: 12px 14px; }
.photo-slot {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; max-width: 320px;
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.rules { padding-left: 1.2em; }
.rules li { margin-bottom: 0.6em; }

/* ---------- Tiny Church ---------- */
.toc { list-style: none; padding: 0; margin: 0 0 1.2em; }
.toc li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.toc .num { display: inline-block; min-width: 2.6em; font-family: var(--display); color: var(--muted); }

/* ---------- Letter (newsletter) ---------- */
.letter { background: var(--ink); color: var(--bg); padding: 56px 0; }
.letter h2 { color: var(--bg); font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 3.2rem); letter-spacing: 0.01em; }
.letter .small { color: inherit; opacity: 0.8; }
.letter-form { display: grid; gap: 12px; max-width: 560px; margin-top: 18px; }
@media (min-width: 620px) { .letter-form { grid-template-columns: 1fr 1.3fr auto; align-items: end; } }
.letter-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.letter-form input {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 4px;
  border: 2px solid var(--bg); background: var(--bg); color: var(--ink);
}
.letter-form button {
  font: inherit; font-weight: 700; cursor: pointer; padding: 12px 18px; border-radius: 4px;
  background: var(--gold); color: var(--on-gold); border: 2px solid var(--gold); white-space: nowrap;
}
.letter-form button:hover { background: #e5a51f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 36px; font-size: 0.95rem; border-top: 3px solid var(--line); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .motto { font-family: var(--display); text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 12px 0; }
.site-footer .verse { font-family: var(--serif); font-weight: 600; color: var(--red); margin-top: 28px; max-width: 640px; }
.site-footer .verse cite { font-style: normal; color: var(--muted); font-family: var(--sans); font-weight: 600; font-size: 0.9rem; }

/* ---------- 404 ---------- */
.lost { padding: 72px 0; }
.lost .big { font-family: var(--display); font-size: clamp(5rem, 22vw, 9rem); line-height: 0.9; margin: 0 0 12px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, .letter-form button { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
