/* FRIEDE Cafe — blog styles. Shared by /blog/index.html and every post.
   Palette + typography mirror the homepage (BRAND_PROFILE.md §13–14).
   No build step; this is hand-authored CSS. */

:root {
  --cream:        #fdfaf1;
  --cream-deep:   #f6efe3;
  --matcha:       #578859;
  --olive:        #344226;
  --ink:          #222013;
  --ink-soft:     #4f4d42;
  --border:       #dcd7cd;
  --maxw:         720px;
  --maxw-list:    980px;
  --gutter:       clamp(20px, 5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; tab-size: 4; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Noto Sans Thai", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.b-page { min-height: 100vh; display: flex; flex-direction: column; }

/* --- Header --- */
.b-header {
  border-bottom: 1px solid var(--border);
  background: rgba(253, 250, 241, 0.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.b-header__inner {
  max-width: var(--maxw-list);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.b-back {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.b-back:hover { color: var(--matcha); }
.b-brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.b-brand img {
  height: 28px;
  width: auto;
  display: block;
}

/* --- Main --- */
.b-main { flex: 1; padding: 56px var(--gutter) 80px; }
.b-article { max-width: var(--maxw); margin: 0 auto; }

.b-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--matcha);
  margin-bottom: 18px;
}
.b-eyebrow::before { content: "—"; margin-right: 10px; color: var(--matcha); }

.b-title {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.b-meta {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}
.b-meta time { color: var(--ink-soft); }
.b-meta .dot { margin: 0 8px; opacity: 0.5; }

.b-hero {
  margin: 0 calc(-1 * var(--gutter)) 48px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
@media (min-width: 720px) {
  .b-hero {
    margin: 0 0 56px;
    border-radius: 16px;
  }
}
.b-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Body prose --- */
.b-prose p, .b-prose ul, .b-prose ol {
  margin-bottom: 1.4em;
  font-size: 16.5px;
  color: var(--ink);
}
.b-prose p:last-child { margin-bottom: 0; }

.b-prose h2 {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.2em 0 0.6em;
}
.b-prose h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--olive);
  margin: 1.8em 0 0.4em;
}
.b-prose ul, .b-prose ol { padding-left: 1.4em; }
.b-prose li { margin-bottom: 0.5em; }
.b-prose a { color: var(--matcha); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.b-prose a:hover { color: var(--olive); }
.b-prose em { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.05em; }
.b-prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.b-prose blockquote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--olive);
  border-left: 2px solid var(--matcha);
  padding-left: 18px;
  margin: 1.6em 0;
}

/* --- Post-bottom CTA --- */
.b-cta-card {
  margin-top: 64px;
  padding: 32px var(--gutter);
  background: var(--cream-deep);
  border-radius: 16px;
  text-align: center;
}
.b-cta-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--matcha);
  margin-bottom: 10px;
}
.b-cta-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.b-cta-card__sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.b-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--matcha); color: var(--cream);
  padding: 14px 24px; border-radius: 9999px;
  font-size: 14px; letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.18s ease;
  min-height: 48px;
}
.b-cta-btn:hover { background: var(--olive); }

/* --- Listing (index) --- */
.b-hero-list {
  max-width: var(--maxw-list);
  margin: 0 auto;
  padding: 56px var(--gutter) 24px;
  text-align: center;
}
.b-hero-list h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.b-hero-list p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

.b-list {
  max-width: var(--maxw-list);
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .b-list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.b-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.b-card:hover {
  transform: translateY(-2px);
  border-color: var(--matcha);
}
.b-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.b-card__img img { width: 100%; height: 100%; object-fit: cover; }
.b-card__body { padding: 22px 24px 26px; }
.b-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--matcha);
  margin-bottom: 10px;
}
.b-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.b-card__excerpt { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.b-card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.b-card__date { color: var(--ink-soft); }
.b-card__more {
  color: var(--matcha);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.b-card:hover .b-card__more { color: var(--olive); transform: translateX(2px); }

/* --- Footer --- */
.b-footer {
  border-top: 1px solid var(--border);
  background: var(--cream-deep);
  padding: 32px var(--gutter);
  text-align: center;
}
.b-footer p { color: var(--ink-soft); font-size: 13px; }
.b-footer a { color: var(--matcha); text-decoration: none; }
.b-footer a:hover { color: var(--olive); }

/* --- Focus + reduced motion --- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--matcha); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
