/* =========================================================
   BLOG — stylesheet (same look as Empathletic, standalone)
   ========================================================= */

/* --- Design tokens --- */
:root {
  --cream:      #faf9f4;
  --white:      #ffffff;
  --ink:        #303b2f;
  --ink-soft:   #5f655a;
  --moss:       #44503b;

  --coral:      #eb795c;
  --coral-deep: #c65138;
  --coral-dark: #a8432d;

  --sage:       #e9eddf;
  --sage-line:  #d4d9c9;
  --peach:      #f4e7df;
  --line:       #e6e4da;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 30px rgba(48, 59, 47, 0.10);

  --font-body:   'DM Sans', 'Segoe UI', Arial, sans-serif;
  --font-head:   'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-accent: Georgia, 'Times New Roman', serif;

  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7rem);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 650;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }

/* Serif italic accent words */
h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

p { max-width: 65ch; }
strong { color: var(--ink); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--sm { width: 1em; height: 1em; }

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--ink); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 5rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo__mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--coral); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo__mark .icon { width: 1.55rem; height: 1.55rem; stroke-width: 2.3; }
.logo__text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -0.04em; color: var(--ink);
  white-space: nowrap;
}
.logo__dot { color: var(--coral-deep); }
.main-nav a { white-space: nowrap; }

@media (max-width: 420px) {
  .logo { gap: 0.5rem; }
  .logo__mark { width: 2.2rem; height: 2.2rem; }
  .logo__mark .icon { width: 1.3rem; height: 1.3rem; }
  .logo__text { font-size: 1.15rem; }
  .main-nav a { padding-inline: 0.6rem; font-size: 0.9rem; }
}

.main-nav a {
  text-decoration: none; color: var(--ink);
  font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: var(--sage); }

/* =========================================================
   PAGES
   ========================================================= */
.page { padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-pad); }
.page__inner { max-width: 820px; }
.page__head { margin-bottom: clamp(2rem, 5vw, 3rem); }

.eyebrow, .post-meta {
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}

.lead { font-size: 1.1rem; margin-top: 1.25rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

/* Post list */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover { border-color: var(--sage-line); box-shadow: var(--shadow-soft); }
.post-card h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; }
.post-card h2 a { text-decoration: none; }
/* Make the whole card clickable via the title link */
.post-card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { font-size: 0.98rem; }
.post-card .post-meta { margin-bottom: 0; }
.post-card .link-arrow { margin-top: 0.4rem; align-self: flex-start; }
.post-card:hover .link-arrow { border-color: currentColor; }

.post-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 2rem;
  font-weight: 700; font-size: 0.95rem; color: var(--ink);
  text-decoration: none;
}
.post-back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Post body */
.prose h2 { margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose ol { padding-left: 1.4rem; margin-block: 0.5rem 1.25rem; }
.prose ol li { padding-left: 0.3rem; margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--peach);
  border-left: 4px solid var(--coral-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { margin: 0; font-size: 1.1rem; color: var(--ink); }
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; border-radius: var(--radius-md); }
.prose figcaption { font-size: 0.88rem; margin-top: 0.6rem; }

.ticks { display: grid; gap: 0.55rem; margin-block: 0.5rem 1.25rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; }
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 0.45em;
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c65138' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.post-end {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem 2rem;
}
.site-footer p { max-width: none; }
