/* Giftwise blog — editorial stylesheet
   Matches the static-pages design system (paper, EB Garamond + Inter,
   burgundy accent). Self-contained: all blog pages link only this file. */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #F5F0E8;
  --paper-warm: #EDE5D6;
  --ink: #1A1A1A;
  --ink-soft: #4A4540;
  --ink-muted: #8B7E70;
  --rule: #C4B8A4;
  --accent: #8B1B17;
  --card: #FFFEFB;
  --max: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(139, 126, 112, 0.04) 1px, transparent 0);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ----- Header ----- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}
.brand .wordmark {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }

/* ----- Article ----- */
article { padding: 48px 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 14px;
}

h1 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 0 0 36px;
}

h2 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 44px 0 14px;
}

h3 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  margin: 32px 0 10px;
}

p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

strong { color: var(--ink); font-weight: 600; }
em { color: inherit; }

ul, ol { margin: 0 0 18px; padding-left: 24px; color: var(--ink-soft); }
li { margin-bottom: 8px; }

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
}
blockquote p { margin: 0; color: var(--ink-soft); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* ----- Shop callout box ----- */
.shop-box {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 28px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.shop-box .shop-title {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.shop-box ul { list-style: none; padding: 0; margin: 0; color: var(--ink); }
.shop-box li {
  margin: 0 0 9px;
  padding-left: 18px;
  position: relative;
  color: var(--ink);
}
.shop-box li:last-child { margin-bottom: 0; }
.shop-box li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.shop-box a {
  font-weight: 500;
  color: var(--ink);
}
.shop-box a:hover { color: var(--accent); }
.shop-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 14px 0 0;
  font-style: italic;
  line-height: 1.5;
}

/* ----- Closing CTA band ----- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  padding: 24px 28px;
  margin: 36px 0 8px;
  font-family: 'Inter', sans-serif;
}
.cta-band p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--paper); }
.cta-band a {
  color: var(--paper);
  font-weight: 600;
  text-decoration-color: rgba(245, 240, 232, 0.5);
}
.cta-band a:hover {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

/* ----- Footer ----- */
.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
  margin-top: 56px;
  padding: 28px 0 36px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
}
.site-foot p { margin: 0 0 8px; color: var(--ink-muted); }
.site-foot a { color: var(--ink-muted); }
.site-foot a:hover { color: var(--ink); }
.site-foot .disclosure {
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ----- Blog index post-cards ----- */
.post-list { padding: 16px 0 32px; }
.post-card {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.post-card:first-child { padding-top: 8px; }
.post-card:last-child { border-bottom: 0; }
.post-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}
.post-card h2 a {
  text-decoration: none;
  color: var(--ink);
}
.post-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}
.post-card .meta { margin: 0 0 10px; }
.post-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Article lede for the blog landing */
.lede {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 33px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  blockquote { font-size: 18px; }
  article { padding: 32px 0 16px; }
  .nav { gap: 14px; font-size: 11px; }
  .nav a { letter-spacing: 0.1em; }
  .cta-band { padding: 20px 22px; }
  .shop-box { padding: 18px 20px; }
  .post-card h2 { font-size: 22px; }
  .lede { font-size: 19px; }
}
