/* ============================================================
   Jaded Hearts — Shawburn-inspired blog theme
   Shawburn-inspired style: serif type / centered branding / teal + orange palette
   ============================================================ */

:root {
  --teal: #0c80a1;
  --teal-dark: #09657f;
  --orange: #d4401c;
  --orange-dark: #b33416;
  --ink: #333333;
  --ink-soft: #5a5a5a;
  --muted: #8a8a8a;
  --line: #e6e4df;
  --line-soft: #efede8;
  --paper: #ffffff;
  --cream: #faf9f6;
  --cream-2: #f5f3ee;
  --serif: "PT Serif", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 6px 24px rgba(40, 35, 30, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

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

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-dark); color: #d9eef4; font-size: 12px; letter-spacing: .08em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-tag { font-family: var(--serif); font-weight: 700; }
.topbar-note { opacity: .85; font-style: italic; font-family: var(--serif); }

/* ---------- Site header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: 46px 0 0; }
.header-inner { display: flex; flex-direction: column; align-items: center; }

.branding { text-align: center; }
.site-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
  line-height: 1.15;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--ink); }
.site-description {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
  letter-spacing: .02em;
}

/* ---------- Navigation ---------- */
.main-nav { width: 100%; margin-top: 30px; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 3px double var(--line);
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: 15px 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--teal); background: var(--cream); }
.main-nav a.active { color: var(--teal); }

.menu-toggle { display: none; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  padding-top: 52px;
  padding-bottom: 70px;
  align-items: start;
}

/* ---------- Content heading ---------- */
.content-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.heading-line { flex: 1; height: 1px; background: var(--line); }
.category-desc { color: var(--ink-soft); font-style: italic; font-family: var(--serif); margin: -12px 0 30px; }

/* ---------- Post list ---------- */
.post-list { display: flex; flex-direction: column; gap: 44px; }

.post-card { border-bottom: 1px solid var(--line-soft); padding-bottom: 42px; }
.post-card:last-child { border-bottom: none; }

.post-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 11px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-featured-label::before { content: "★"; font-size: 10px; }

.post-thumb { margin: 0 0 20px; overflow: hidden; }
.post-thumb a { display: block; overflow: hidden; }
.post-thumb img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-thumb a:hover img { transform: scale(1.04); }

.entry-title {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}
.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--teal); }

.entry-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--sans);
  line-height: 1.9;
}
.entry-meta a { color: var(--teal); }
.entry-meta .meta-sep { margin: 0 6px; color: #ccc; }
.entry-meta .cat-chip { color: var(--orange); font-weight: 700; }

.entry-summary {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.85;
  margin: 0 0 18px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: .03em;
}
.read-more::after { content: "→"; transition: transform .2s; }
.read-more:hover::after { transform: translateX(4px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list a {
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tag-list a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
}
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 34px; }
.widget { background: var(--cream); border: 1px solid var(--line-soft); padding: 26px 24px; }
.widget-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.widget-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 46px; height: 2px;
  background: var(--orange);
}
.widget p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }

/* Search */
.search-form { display: flex; border: 1px solid var(--line); background: #fff; }
.search-form input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 10px 12px; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: transparent;
}
.search-form button {
  border: none; background: var(--teal); color: #fff;
  padding: 0 16px; cursor: pointer; font-size: 16px;
  transition: background .2s;
}
.search-form button:hover { background: var(--teal-dark); }

/* About the author */
.about-widget { text-align: left; }
.about-name { font-family: var(--serif); font-weight: 700; font-size: 16px; margin: 0 0 8px; color: var(--teal); }
.widget-link { font-family: var(--serif); font-weight: 700; font-size: 13px; color: var(--orange); }

/* Category list / recent posts */
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  display: flex; justify-content: space-between; gap: 10px;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--ink); }
.widget-list a:hover { color: var(--teal); }
.widget-list .count { color: var(--muted); font-size: 12px; }
.widget-list .date { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  font-size: 12px; padding: 4px 10px; border-radius: 2px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
}
.tag-cloud a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Newsletter */
.newsletter p { font-size: 13px; }
.newsletter .mini-note { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 8px; margin-bottom: 0; }
.newsletter-msg { font-size: 13px; color: var(--teal); font-weight: 700; margin-top: 10px; display: none; }

/* ---------- Single post ---------- */
.single-post { padding-bottom: 10px; }
.single-post .entry-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.entry-header { margin-bottom: 26px; }
.entry-underline { display: block; width: 60px; height: 3px; background: var(--orange); margin-top: 16px; }

.single-thumb { margin: 0 0 28px; overflow: hidden; }
.single-thumb img { width: 100%; height: 400px; object-fit: cover; }

.entry-content { font-size: 16px; line-height: 1.95; color: var(--ink); }
.entry-content p { margin: 0 0 20px; }
.entry-content .lead { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink-soft); }
.entry-content h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}
.entry-content ul, .entry-content ol { margin: 0 0 22px; padding-left: 24px; }
.entry-content li { margin-bottom: 9px; }
.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  background: var(--cream);
  border-left: 4px solid var(--teal);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav a { font-family: var(--serif); font-weight: 700; font-size: 14px; max-width: 46%; }
.post-nav .prev::before { content: "← "; }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav .next::after { content: " →"; }

/* About page */
.about-hero { margin-bottom: 30px; overflow: hidden; }
.about-hero img { width: 100%; height: 300px; object-fit: cover; }
.contact-box {
  margin-top: 40px;
  padding: 28px 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
}
.contact-box h3 { margin-top: 0; }
.contact-email { font-family: var(--serif); font-weight: 700; color: var(--teal); font-size: 17px; }
.social-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2f33; color: #cfd4d7; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 50px;
}
.footer-brand h3 { font-family: var(--serif); font-size: 22px; color: #fff; margin: 0 0 12px; }
.footer-brand p, .footer-col p { font-size: 13.5px; line-height: 1.8; margin: 0; color: #b8bec2; }
.footer-col h4 { font-family: var(--serif); font-size: 15px; color: #fff; margin: 0 0 16px; letter-spacing: .04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 13.5px; }
.footer-col a { color: #b8bec2; }
.footer-col a:hover { color: #7fc6da; }
.footer-quote { font-family: var(--serif); font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: #8f979c;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 44px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .topbar-note { display: none; }
  .site-header { padding-top: 30px; }
  .site-description { font-size: 13px; padding: 0 10px; }

  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-top: 20px; padding: 10px; background: none; border: 1px solid var(--line);
    cursor: pointer; width: 44px; height: 40px; align-items: center;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: .3s; }
  .main-nav { margin-top: 16px; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; border-bottom: none; }
  .main-nav a { text-align: center; padding: 13px; border-bottom: 1px solid var(--line-soft); }

  .layout { padding-top: 34px; }
  .post-thumb img { height: 220px; }
  .single-thumb img { height: 240px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .wrap { justify-content: center; text-align: center; }
}

/* ============================================================
   Affiliate offer promo blocks
   ============================================================ */

/* Shared button */
.aff-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  padding: 12px 22px;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.aff-btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.aff-btn-block { display: block; text-align: center; width: 100%; }

.aff-disclosure { font-size: 11px !important; color: var(--muted) !important; font-style: italic; margin: 12px 0 0 !important; }

/* Sidebar promo card */
.aff-widget {
  background: linear-gradient(160deg, #0c80a1 0%, #09657f 100%);
  border: none;
  color: #fff;
  text-align: center;
  position: relative;
}
.aff-kicker {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .18em;
  color: #bfe3ed;
  border: 1px solid rgba(255,255,255,.4);
  padding: 2px 8px;
  margin-bottom: 10px;
}
.aff-widget .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.25); font-size: 19px; }
.aff-widget .widget-title::after { background: #ffd08a; }
.aff-widget p { color: #e3f1f5; font-size: 13px; }
.aff-widget .aff-disclosure { color: #bfe3ed !important; }
.aff-widget .aff-btn { background: var(--orange); }
.aff-widget .aff-btn:hover { background: var(--orange-dark); }
