/* Evangelho.pt - Clean, readable, impactful design */
:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeea;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --accent: #8b1a1a; /* deep crimson - seriousness of the message */
  --accent-hover: #6b1212;
  --link: #1e3a5f;
  --link-hover: #0f1f33;
  --border: #ddd8d0;
  --success: #2d5a3d;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --max-width: 720px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Progress bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--text); font-weight: 400; }

nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-muted);
}

.lang-switch a:hover, .lang-switch a.active {
  border-color: var(--border);
  background: var(--bg-alt);
  color: var(--text);
}

.flag { font-size: 1.1rem; line-height: 1; }

/* Main content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  width: 100%;
}

article h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

p {
  margin-bottom: 1.15rem;
}

p:last-child { margin-bottom: 0; }

.highlight {
  background: #fff5f5;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.verse {
  font-style: italic;
  color: var(--text-muted);
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
}

.verse a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dotted var(--link);
}

.verse a:hover { color: var(--link-hover); border-bottom-style: solid; }

a:not(.logo):not(nav a):not(.lang-switch a):not(.btn):not(.share-btn) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:not(.logo):not(nav a):not(.lang-switch a):not(.btn):not(.share-btn):hover {
  color: var(--link-hover);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
}

.cta-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}

.cta-box p { margin-bottom: 1.25rem; }

/* Share */
.share-section {
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.share-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.share-btn:hover { background: #e8e4dc; }

/* Skeptics cards */
.argument {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.argument h3 {
  margin-top: 0;
  color: var(--accent);
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a { color: #eee; }

footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

footer p { margin-bottom: 0.5rem; }

/* Contact */
.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

ul.clean {
  list-style: none;
  margin: 1rem 0;
}

ul.clean li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
}

ul.clean li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 17px; }
  .header-inner { padding: 0.6rem 1rem; }
  main { padding: 1.75rem 1rem 3rem; }
  nav { gap: 0.85rem; }
  .btn { width: 100%; }
}

/* Print */
@media print {
  #progress, header, .share-section, footer { display: none; }
  body { background: white; color: black; }
  main { max-width: 100%; padding: 0; }
}