@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =============================================
   Human Story Hub — Open Minimal Light
   New concept (opposite of previous):
   - White body background (was oatmeal)
   - Cream header, dark nav text (was solid terracotta header)
   - DM Serif Display + DM Sans (was Playfair Display + Inter)
   - Flat cards, sharp corners (was shadow + 12px radius)
   - Terracotta footer (was dark charcoal)
   - Typographic hero, no fill (was solid color hero block)
============================================= */

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

:root {
  --primary:    #8B4F3F;
  --primary-dk: #6d3b2e;
  --primary-lt: #b87060;
  --secondary:  #5E6C71;
  --bg:         #FFFFFF;
  --bg-cream:   #F4F3EF;
  --bg-section: #FAFAF8;
  --text:       #2C2E30;
  --text-muted: #717678;
  --accent:     #D89B65;
  --accent-lt:  #fdf0e3;
  --border:     #E5E0D9;
  --max-w:      1100px;
  --header-h:   70px;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 4px rgba(44,46,48,0.06);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.25;
}

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

/* ─────────────── WRAPPER ─────────────── */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────────── HEADER ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-h);
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
}

.site-header .wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 36px;
  width: auto;
  transition: opacity var(--transition);
}
.header-logo:hover img { opacity: 0.75; }

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.site-nav li {
  list-style: none;
}

.site-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a.active {
  color: var(--primary);
  font-weight: 600;
}
.site-nav a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
  z-index: 190;
  flex-direction: column;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 13px 28px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); background: rgba(0,0,0,0.02); }
.mobile-menu a.active { color: var(--primary); font-weight: 600; }

/* ─────────────── HERO — INDEX PAGE ─────────────── */
.site-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '\201C';
  position: absolute;
  right: 3%;
  top: -20px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(180px, 25vw, 300px);
  color: var(--bg-cream);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-hero .wrapper { position: relative; z-index: 1; }

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 20px;
}

.site-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--text);
  max-width: 700px;
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.site-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dk);
  color: #fff;
  transform: translateY(-2px);
}

/* ─────────────── PAGE BANNER (articles, about) ─────────────── */
.page-banner {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-banner .banner-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  display: inline-block;
  margin-bottom: 16px;
}

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--text);
  font-weight: 400;
  max-width: 680px;
}

/* ─────────────── SECTIONS ─────────────── */
.content-section { padding: 64px 0; }
.content-section.bg-section { background: var(--bg-section); }
.content-section.bg-cream { background: var(--bg-cream); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  display: inline-block;
  margin-bottom: 28px;
}

/* Index body content */
.index-body { font-size: 1.05rem;  }

.index-body h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin: 2em 0 0.5em;
}

.index-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 2em 0;
}

/* ─────────────── ARTICLE CARDS GRID ─────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(139,79,63,0.12);
  color: inherit;
}

.article-card-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-cream);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.article-card:hover .article-card-img img { transform: scale(1.05); }

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.article-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
  text-align: center;
  flex: 1;
}

.article-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--accent);
  color: #3a2010;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background var(--transition);
  margin-top: auto;
}

.article-card:hover .article-card-btn { background: #c4893a; }

/* ─────────────── SINGLE ARTICLE ─────────────── */
.article-page { padding: 56px 0 72px; }


.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color var(--transition);
}

.article-back:hover { color: var(--primary); }

.article-layout h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  line-height: 1.25;
}

.article-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary);
  margin: 2.5em 0 0.6em;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.2em;
}

.article-content img.article-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 2em 0;
}

/* ─────────────── ABOUT PAGE ─────────────── */

.about-content p {
  font-size: 1.05rem;
  line-height: 1.88;
  margin-bottom: 1.3em;
}

.about-highlight {
  margin: 2.5em 0;
  padding: 24px 32px;
  border-left: 3px solid var(--accent);
  background: var(--accent-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 1.22rem;
  color: var(--primary);
  line-height: 1.6;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2.5em 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-value {
  background: var(--bg);
  padding: 28px 24px;
}

.about-value h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-value p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  margin-top: auto;
}

.footer-top { padding: 52px 0 40px; }

.footer-top .wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 48px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 340px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
}

.footer-bottom .wrapper { display: flex; justify-content: center; }

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .wrapper { padding: 0 20px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .content-section { padding: 44px 0; }
  .site-hero { padding: 52px 0 44px; }
  .site-hero::before { display: none; }
  .page-banner { padding: 44px 0 36px; }
  .footer-top .wrapper { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 540px) {
  .articles-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .article-card-img { height: 190px; }
  .site-hero h1 { font-size: 2.2rem; }
}
