/* A Family Legacy: blog styles. Self-contained, tokens and fonts copied from page.css. */
@font-face { font-family: "Gazpacho"; src: url("../assets/fonts/gazpacho-bold.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gazpacho"; src: url("../assets/fonts/gazpacho-bold-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --sc-canvas: #EEE4D7; --sc-surface: #F7F4F4; --sc-ink: #2C3A4F; --sc-ink-soft: #4F5B6D;
  --sc-accent: #40536E; --sc-accent-ink: #F7F4F4;
  --flc-sky: #C6DAE5; --flc-stone: #E5E3E2;
  --sc-font-display: "Gazpacho", Georgia, serif; --sc-font-text: "Manrope", system-ui, sans-serif;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --line: color-mix(in srgb, var(--sc-ink) 22%, transparent);
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--sc-canvas); }
body {
  margin: 0; background: var(--sc-canvas); color: var(--sc-ink);
  font-family: var(--sc-font-text); font-size: 1.0625rem; line-height: 1.6; font-weight: 450; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--sc-ink); color: var(--sc-surface); padding: 12px 18px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill); text-decoration: none; text-align: center;
  font: 650 0.96rem/1.15 var(--sc-font-text); transition: background-color 200ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--sc-surface); color: var(--sc-ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: #fff; }
  .text-link:hover { text-decoration-thickness: 2px; }
}

/* header */
.bh { max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bh-logo { display: block; width: 84px; }
.bh-home { font-size: 0.95rem; }

/* layout */
.post-wrap { max-width: 1240px; margin: 0 auto; padding: 8px var(--gutter) 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.post-head { max-width: 760px; }
.crumbs { font-size: 0.9rem; color: var(--sc-ink-soft); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.example-tag {
  display: inline-block; font: 700 0.72rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sc-ink); background: var(--flc-sky); padding: 8px 12px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.post-h1 { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 14px; }
.post-meta { font-size: 0.95rem; color: var(--sc-ink-soft); margin: 0; }

.quick {
  background: var(--sc-ink); color: var(--sc-surface); border-radius: var(--r-md);
  padding: 20px 22px; margin: 0; max-width: 760px;
}
.quick-k { font: 700 0.75rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--flc-sky); margin: 0 0 10px; }
.quick p:last-child { margin: 0; font-size: 1.08rem; line-height: 1.5; }

.post-photo { margin: 0; max-width: 760px; }
.post-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--r-lg); }
.post-photo figcaption { font-size: 0.88rem; color: var(--sc-ink-soft); margin-top: 8px; }

.toc { font-size: 0.95rem; }
.toc-k { font: 700 0.75rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-accent); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0 4px 14px; text-decoration: none; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--sc-accent); text-decoration: underline; } }

.post-body { max-width: 680px; }
.post-body h2 { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 40px 0 12px; scroll-margin-top: 16px; }
.post-body h2:first-child { margin-top: 0; }
.post-body ul, .post-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.post-body li { margin-bottom: 6px; }
.post-body li::marker { color: var(--sc-accent); font-weight: 700; }
.post-body .more { margin-top: -4px; }
.post-body .more a { font-weight: 650; }

.cta-box { margin-top: 44px; background: var(--flc-sky); border-radius: var(--r-lg); padding: 26px 24px; }
.cta-box h2 { margin-top: 0; }
.cta-box .btn { background: var(--sc-ink); color: var(--sc-surface); }
@media (hover: hover) and (pointer: fine) { .cta-box .btn:hover { background: var(--sc-accent); } }

/* footer */
.bf { max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--sc-ink-soft); }
.bf p { margin: 0; }
.bf-social { display: flex; gap: 8px; }
.bf-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) { .bf-social a:hover { background: var(--flc-stone); } }
.bf-note { flex-basis: 100%; }

/* desktop: sticky contents on the left, article on the right */
@media (min-width: 1024px) {
  .post-wrap { grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); row-gap: 28px; }
  .post-head, .quick, .post-photo, .post-body { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 1 / span 4; align-self: start; position: sticky; top: 24px; padding-top: 6px; }
  .post-head, .quick, .post-photo, .post-body { max-width: 760px; }
}
@media (max-width: 1023px) {
  .toc { order: 3; background: var(--sc-surface); border-radius: var(--r-md); padding: 16px 18px; }
  .post-head { order: 1; } .quick { order: 2; } .post-photo { order: 4; } .post-body { order: 5; }
}
@media (max-width: 599px) {
  .bh-logo { width: 66px; }
  .quick { padding: 18px; }
  .cta-box { padding: 22px 18px; }
  .cta-box .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.bf p a[href^="tel"] { display: inline-flex; align-items: center; min-height: 44px; }
