/* Story & Faith — Custom Stylesheet
   Design: Warm literary editorial
   Colors: Warm parchment/cream palette with deep forest green and gold
   Typography: Lora (serif headings) + Inter (body)
*/

:root {
  --parchment: #F7F3EC;
  --cream: #FBF8F3;
  --gold: #B8860B;
  --gold-light: #D4A843;
  --forest: #2D4A3E;
  --forest-light: #3D6357;
  --dark: #1C1C1C;
  --text-main: #2C2C2C;
  --text-muted: #6B6356;
  --border-warm: #DDD0BB;
  --shadow-warm: rgba(90, 70, 40, 0.12);
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-top: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.2rem; }

a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

em { font-style: italic; }
strong { font-weight: 600; }

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Navbar */
.sf-navbar {
  background: var(--forest);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sf-navbar .navbar-brand {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream) !important;
  letter-spacing: -0.02em;
  padding: 0.9rem 0;
}

.sf-navbar .navbar-brand span {
  color: var(--gold-light);
}

.sf-navbar .nav-link {
  color: rgba(251,248,243,0.82) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1rem 1rem !important;
  transition: color 0.2s;
}
.sf-navbar .nav-link:hover,
.sf-navbar .nav-link.active {
  color: var(--gold-light) !important;
}

.sf-navbar .navbar-toggler {
  border-color: rgba(251,248,243,0.4);
  padding: 0.4rem 0.7rem;
}
.sf-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28251,248,243,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.sf-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.sf-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
}

.sf-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 4rem 0;
}

.sf-hero-content h1 {
  color: white;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.sf-hero-content .lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.sf-hero-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* Main content area */
.sf-main {
  background: var(--cream);
  padding: 3.5rem 0;
}

.sf-content-wrap {
  max-width: 760px;
}

/* Article hero image */
.sf-article-hero {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow-warm);
}

/* Section image inline */
.sf-inline-img {
  border-radius: 6px;
  box-shadow: 0 2px 12px var(--shadow-warm);
  margin: 1.5rem 0 2rem;
}

/* Sidebar */
.sf-sidebar {
  padding-left: 2rem;
}

.sf-sidebar-card {
  background: var(--parchment);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sf-sidebar-card h5 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 0.5rem;
}

.sf-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-sidebar-card ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-warm);
  font-size: 0.9rem;
}

.sf-sidebar-card ul li:last-child { border-bottom: none; }

/* Card grid */
.sf-card {
  background: white;
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.sf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-warm);
}

.sf-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sf-card-body {
  padding: 1.25rem;
}

.sf-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.sf-card-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.sf-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sf-card a {
  text-decoration: none;
}

/* Buttons */
.btn-sf {
  background: var(--forest);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  border: 2px solid var(--forest);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-sf:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  color: white;
  text-decoration: none;
}

.btn-sf-outline {
  background: transparent;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  border: 2px solid var(--forest);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-sf-outline:hover {
  background: var(--forest);
  color: white;
  text-decoration: none;
}

/* Pull quote */
.sf-pullquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--parchment);
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--forest);
}

/* Category badges */
.sf-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.4rem;
  text-decoration: none;
}
.sf-badge-faith { background: #E8F0E9; color: #2D6A35; }
.sf-badge-writing { background: #EAE4F5; color: #4A2D7A; }
.sf-badge-food { background: #FDF0E0; color: #7A4A10; }
.sf-badge-history { background: #E0EAF5; color: #1A3A6A; }

/* Banner sections */
.sf-banner {
  background: var(--forest);
  color: white;
  padding: 4rem 0;
}
.sf-banner h2 { color: white; }
.sf-banner p { color: rgba(255,255,255,0.85); }

.sf-parchment-section {
  background: var(--parchment);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 3.5rem 0;
}

/* Breadcrumb */
.sf-breadcrumb {
  background: var(--parchment);
  border-bottom: 1px solid var(--border-warm);
  padding: 0.6rem 0;
  font-size: 0.83rem;
}
.sf-breadcrumb a { color: var(--forest); }
.sf-breadcrumb .current { color: var(--text-muted); }

/* Footer */
.sf-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}

.sf-footer h5 {
  font-family: 'Lora', serif;
  color: white;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.sf-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 2;
  transition: color 0.2s;
}
.sf-footer a:hover { color: var(--gold-light); }

.sf-footer-brand {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sf-footer-brand span { color: var(--gold-light); }

.sf-footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.25rem;
}

.sf-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Recipe styles */
.sf-recipe-card {
  background: var(--parchment);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.sf-recipe-card h2 {
  margin-top: 0;
  color: var(--forest);
}

.sf-recipe-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* Contact form */
.sf-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.sf-form input,
.sf-form textarea {
  border: 1.5px solid var(--border-warm);
  border-radius: 4px;
  background: white;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  width: 100%;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.sf-form input:focus,
.sf-form textarea:focus {
  border-color: var(--forest);
}
.sf-form textarea { min-height: 140px; resize: vertical; }

/* 404 page */
.sf-404 {
  text-align: center;
  padding: 6rem 1rem;
}
.sf-404 h1 {
  font-size: 6rem;
  color: var(--border-warm);
  line-height: 1;
}
.sf-404 h2 { font-size: 1.75rem; }

/* Responsive */
@media (max-width: 991px) {
  .sf-sidebar { padding-left: 0; margin-top: 2rem; }
}

@media (max-width: 767px) {
  .sf-hero { min-height: 320px; }
  .sf-article-hero { height: 220px; }
  .sf-main { padding: 2.5rem 0; }
}
