/* =========================================================
   Sabrina Booth — Pacific Twilight Theme
   Palette:
     --ink:       #0E2A2B  (deep midnight teal — headers, text)
     --evergreen: #2F4F3A  (weathered evergreen — secondary)
     --copper:    #C97B4A  (warm copper — accents, CTA)
     --fog:       #F5F1EA  (soft fog cream — page background)
     --paper:     #FFFFFF  (cards)
     --slate:     #4A5759  (muted body text)
     --rule:      #D9D2C5  (hairline rules)
   ========================================================= */

:root {
  --ink: #0E2A2B;
  --evergreen: #2F4F3A;
  --copper: #C97B4A;
  --copper-dark: #A65E33;
  --fog: #F5F1EA;
  --paper: #FFFFFF;
  --slate: #4A5759;
  --rule: #D9D2C5;
  --max: 1180px;
  --reading: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 450; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.22rem; margin-top: 1.6em; color: var(--evergreen); }

p { margin: 0 0 1.1em; color: var(--slate); }
article p, article li { color: #2c3a3b; }

a { color: var(--copper-dark); text-decoration: none; border-bottom: 1px solid rgba(201,123,74,0.35); transition: all .2s; }
a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.reading { max-width: var(--reading); margin: 0 auto; padding: 0 24px; }

/* ----- Header ----- */
.site-header {
  background: var(--ink);
  color: #e8e1d3;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #f5f1ea;
  border: 0;
}
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
}
.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav a {
  color: #e8e1d3;
  border: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--copper); }

/* ----- Hero (homepage) ----- */
.hero {
  background: linear-gradient(160deg, #0E2A2B 0%, #1d3d3e 55%, #2F4F3A 100%);
  color: #f5f1ea;
  padding: 92px 0 86px;
  position: relative;
  overflow: hidden;
}
.hero.has-image {
  background-image:
    linear-gradient(180deg, rgba(14,42,43,0.55) 0%, rgba(14,42,43,0.75) 60%, rgba(14,42,43,0.9) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(201,123,74,0.14), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(245,241,234,0.05), transparent 40%);
  pointer-events: none;
}

/* ----- Page hero image (content pages) ----- */
.page-hero {
  height: clamp(280px, 38vw, 460px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,43,0.15) 0%, rgba(14,42,43,0.05) 50%, rgba(245,241,234,0.85) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: #f5f1ea;
  max-width: 880px;
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 1.18rem;
  color: #d8d0bf;
  max-width: 640px;
  margin-bottom: 30px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--copper);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { background: var(--copper-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(245,241,234,0.4);
  color: #f5f1ea;
  margin-left: 10px;
}
.btn-ghost:hover { background: rgba(245,241,234,0.08); border-color: var(--copper); }

/* ----- Page content ----- */
.page {
  background: var(--fog);
  padding: 70px 0 110px;
}
.page-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 60px 0 50px;
}
.page-header .eyebrow {
  color: var(--copper-dark);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.page-header p.lede {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--slate);
}

article {
  background: var(--paper);
  padding: 56px clamp(24px, 5vw, 70px);
  border: 1px solid var(--rule);
  max-width: 860px;
  margin: 0 auto;
}
article h2 + p::first-letter { /* subtle drop weight, no drop cap drama */ }
article ul, article ol { color: #2c3a3b; padding-left: 1.4em; }
article li { margin-bottom: 0.4em; }

/* Pull quote / callout */
.callout {
  border-left: 3px solid var(--copper);
  background: #fbf7ef;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 0.98rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
th { background: #f0ead9; color: var(--ink); font-weight: 600; }

/* FAQ */
.faq h3 {
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
}

/* CTA block */
.cta-block {
  margin-top: 50px;
  padding: 36px;
  background: var(--ink);
  color: #e8e1d3;
  border-radius: 2px;
}
.cta-block h3 {
  color: #f5f1ea;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  margin-top: 0;
}
.cta-block p { color: #c9c0ad; }
.cta-block .btn { margin-top: 10px; }

/* Internal links sidebar / inline */
.related {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.related h4 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--evergreen);
  margin-bottom: 14px;
}
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; }

/* Cards (home grid) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 40px 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
  transition: all .25s;
}
.card:hover { border-color: var(--copper); transform: translateY(-2px); }
.card .eyebrow {
  color: var(--copper-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.card p { font-size: 0.95rem; color: var(--slate); }
.card a.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper-dark);
  border: 0;
}

/* About strip */
.strip {
  background: #ebe4d4;
  padding: 70px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.strip .grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 760px) {
  .strip .grid-2 { grid-template-columns: 1fr; }
}
.strip h2 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9c0ad;
  padding: 50px 0 30px;
  font-size: 0.9rem;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
@media (max-width: 760px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}
.site-footer h5 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--copper);
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer a { color: #e8e1d3; border: 0; }
.site-footer a:hover { color: var(--copper); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  color: #8a8473;
  font-size: 0.8rem;
}

/* Image placeholder block (no inline images, just SVG decoration) */
.figure {
  margin: 30px 0;
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(14,42,43,0.04), rgba(201,123,74,0.07)),
    var(--fog);
  height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure figcaption {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  color: var(--slate);
  background: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-left: 2px solid var(--copper);
}

/* Lists of ranked items */
.ranked {
  list-style: none;
  padding: 0;
  counter-reset: rank;
}
.ranked > li {
  counter-increment: rank;
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--rule);
}
.ranked > li:last-child { border-bottom: 1px solid var(--rule); }
.ranked > li::before {
  content: counter(rank, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  color: var(--copper);
  line-height: 1;
}
.ranked h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
}
.ranked .meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper-dark);
  margin-bottom: 8px;
}
.ranked p { margin-bottom: 0; }

/* Disclaimers */
.note {
  font-size: 0.82rem;
  color: var(--slate);
  font-style: italic;
  border-top: 1px dashed var(--rule);
  padding-top: 18px;
  margin-top: 30px;
}
