/* ============================================================
   Casita Perez — shared stylesheet (v3)
   Colors and fonts matched directly from the live site screenshot.
   ============================================================ */

:root{
  --white:      #FFFFFF;
  --ink:        #1C0D0A;   /* logo/nav/heading text color, sampled from screenshot */
  --ink-soft:   #514540;
  --brand-red:  #B22222;   /* logo + divider line color, sampled from screenshot */
  --accent:     #F15808;   /* header border + button color, sampled from screenshot */
  --accent-dark:#D14A05;
  --link-blue:  #0241CE;   /* hyperlink color, sampled from screenshot */
  --line:       #EEEEEE;
  --card-bg:    #FFFFFF;

  --font-script: "Alex Brush", cursive;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius: 6px;
  --shadow: 0 2px 10px rgba(28, 13, 10, 0.06);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: var(--link-blue); text-decoration: underline; }
a:hover{ color: var(--accent-dark); }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus{ left: 12px; top: 12px; }
:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header{
  background: var(--white);
  border-bottom: 3px solid var(--accent);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 0;
}
.brand img{ height: 42px; width: auto; }

.main-nav ul{ list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav li{ margin-right: 34px; }
.main-nav li:last-child{ margin-right: 0; }
.main-nav a{
  color: var(--ink); font-weight: 500; font-size: 1.02rem; font-family: var(--font-serif);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--accent); }

/* ---------- hero (real photo background from the live site) ---------- */
.hero{
  position: relative;
  background: linear-gradient(90deg, rgba(20,10,8,0.28) 0%, rgba(20,10,8,0.08) 45%, rgba(20,10,8,0) 70%), url("../assets/hero-bg.webp");
  background-size: cover;
  background-position: center;
  min-height: 454px;
  display: flex;
  align-items: center;
  padding: 40px 0;
  color: #fff;
}
.hero .wrap{ max-width: 1180px; width: 100%; }
.hero-eyebrow{
  font-style: italic; font-weight: 500; font-size: 1.2rem;
  margin: 0 0 6px; color: #fff; font-family: var(--font-serif);
}
.hero h1{
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05; margin: 0 0 18px; color: #fff;
}
.hero p{ font-size: 1.15rem; color: #fff; max-width: 46ch; margin: 0 0 28px; }

/* ---------- page banner (About / Parenthood / Travel) ---------- */
.page-banner{
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 454px;
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 10px;
}
.page-banner::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(15,10,8,0.5);
}
.page-banner .wrap{ position: relative; z-index: 1; width: 100%; }
.page-banner h1{ font-family: var(--font-serif); font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 700; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.page-banner p{ color: #fff; margin: 10px 0 0; max-width: 60ch; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.banner-parenthood{ background-image: url("../assets/parenthood-banner.jpg"); }
.banner-travel{ background-image: url("../assets/travel-banner.jpg"); }
.banner-about{ background-image: url("../assets/about-banner.jpg"); }

.btn{
  display: inline-block; padding: 14px 30px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em;
  border: none; text-decoration: none; font-family: var(--font-serif);
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ background: var(--accent-dark); color: #fff; }

/* ---------- sections ---------- */
section{ padding: 56px 0; }
h2{ font-family: var(--font-serif); font-size: 2rem; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
h3{ font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }

/* ---------- welcome / bio block (matches live site exactly) ---------- */
.welcome-section{ max-width: 760px; margin: 0 auto; text-align: center; }
.welcome-heart{ font-size: 1.6rem; margin-bottom: 6px; }
.welcome-section h1, .welcome-section h2{ font-size: 2.1rem; margin-bottom: 26px; }
.welcome-section p{ color: var(--ink); text-align: center; }
.signature{ height: 60px; width: auto; margin: 22px auto 0; }
.welcome-divider{ width: 340px; height: 2px; background: var(--brand-red); margin: 22px auto 0; border: none; }

/* ---------- pagination ---------- */
.pagination{ display: flex; gap: 14px; align-items: center; margin-top: 30px; font-weight: 600; }
.pagination a{ color: var(--ink-soft); text-decoration: none; }
.pagination .current{ color: var(--accent); font-weight: 700; }

/* ---------- post grid ---------- */
.post-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px){ .post-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .post-grid{ grid-template-columns: 1fr; } }

.card{ display: flex; flex-direction: column; }
.card img{ aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: var(--radius); }
.card-body{ padding: 14px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tags{ display: flex; gap: 6px; flex-wrap: wrap; }
.tag{
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--accent-dark); background: #FDF1EA; padding: 3px 9px; border-radius: 999px;
}
.card h3{ font-size: 1.1rem; }
.card h3 a{ color: var(--ink); text-decoration: none; }
.card h3 a:hover{ color: var(--accent); }

/* ---------- categories ---------- */
.category-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.category-card{ display: block; }
.category-card img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px){ .category-grid{ grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer{ background: #FAFAFA; border-top: 1px solid var(--line); padding: 36px 0; margin-top: 36px; text-align: center; }
.footer-tagline{ color: var(--ink-soft); max-width: 60ch; margin: 0 auto 16px; }
.footer-nav{ list-style: none; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-nav li{ margin: 0 11px; }
.footer-nav a{ color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-nav a:hover{ color: var(--accent); }

/* ---------- article ---------- */
.article-header{ padding: 44px 0 0; }
.article-header h1{ font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 16px; font-weight: 700; }
.article-hero{ border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.article-hero img{ width: 100%; }
figcaption{ font-size: 0.85rem; color: var(--ink-soft); margin: 8px 0 26px; font-style: italic; }

.article-body{ max-width: 72ch; margin: 0 auto; }
.article-body h2{ margin-top: 42px; }
.article-body h3{ margin-top: 28px; }
.photo-strip{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 28px; }
.photo-strip img{ aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
@media (max-width: 700px){ .photo-strip{ grid-template-columns: 1fr 1fr; } }

.pull-note{
  border-left: 4px solid var(--accent); background: #FDF6F0;
  padding: 14px 20px; margin: 26px 0; color: var(--ink-soft);
}

/* ---------- contact ---------- */
.form-field{ margin-bottom: 16px; }
.form-field label{ display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input, .form-field textarea{
  width: 100%; padding: 11px 14px; border-radius: 4px; border: 1px solid #DDD;
  font-family: var(--font-serif); font-size: 1rem; background: var(--card-bg);
}
.form-field textarea{ min-height: 130px; resize: vertical; }
