/* =========================================================================
   Sweet Tea, No Lemon — minimal, modern, responsive base
   Single stylesheet. System fonts, light/dark aware, no external assets.
   ========================================================================= */

:root {
  --measure: 42rem;          /* comfortable text column width */
  --wide: 60rem;             /* header/footer/full-bleed width */
  --gap: 1.5rem;

  --bg: #ffffff;
  --bg-soft: #f7f5ef;
  --fg: #1a1a1a;
  --fg-soft: #5c5c5c;
  --border: #e4e0d5;
  --accent: #cd2653;         /* the Twenty Twenty crimson, kept as a nod */
  --accent-ink: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --bg-soft: #1e1e24;
    --fg: #ececec;
    --fg-soft: #a5a5a5;
    --border: #33333c;
    --accent: #ff6b93;
    --accent-ink: #16161a;
  }
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.site-title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.site-title a { color: var(--fg); text-decoration: none; }
.site-tagline { margin: .15rem 0 0; color: var(--fg-soft); font-size: .9rem; flex-basis: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--fg-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a.is-current { color: var(--accent); }

/* ---------- main / article ---------- */
.site-main { padding: 3rem 0; }
.entry { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gap); }
.entry-header { margin-bottom: 2rem; text-align: center; }
.entry-title { margin: 0; font-size: clamp(1.9rem, 5vw, 2.6rem); }

.post-meta { margin: .9rem 0 0; color: var(--fg-soft); font-size: .9rem; }
.post-meta__sep { margin: 0 .5rem; }

.featured-media {
  max-width: var(--wide); margin: 0 auto 2.5rem; padding: 0 var(--gap); text-align: center;
}
.featured-media img { border-radius: 6px; }
.featured-media figcaption, figcaption, .wp-caption-text {
  color: var(--fg-soft); font-size: .85rem; margin-top: .5rem; font-style: italic;
}

/* content rhythm */
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.entry-content h3 { margin-top: 2rem; font-size: 1.3rem; }
.entry-content img { border-radius: 4px; }
.entry-content blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent); color: var(--fg-soft); font-style: italic;
}
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.entry-content code {
  background: var(--bg-soft); padding: .15em .4em; border-radius: 3px; font-size: .9em;
}
.entry-content pre {
  background: var(--bg-soft); padding: 1rem; border-radius: 6px; overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: .5rem .75rem; }

/* ---------- WordPress content compatibility -----------------------------
   The converted post/page bodies still carry these classes on <img>/<figure>.
   These rules make alignment & captions behave without the old theme CSS. */
.alignleft {
  float: left; margin: .35rem 1.5rem 1rem 0; max-width: 50%;
}
.alignright {
  float: right; margin: .35rem 0 1rem 1.5rem; max-width: 50%;
}
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
figure.wp-caption { max-width: 100%; }
figure.wp-caption.alignright { float: right; margin: .35rem 0 1rem 1.5rem; }
figure.wp-caption.alignleft  { float: left;  margin: .35rem 1.5rem 1rem 0; }
.entry-content p.intro { font-size: 1.25rem; font-weight: 600; }
/* clear floats at the end of the content so the footer never rides up */
.entry-content::after { content: ""; display: block; clear: both; }

@media (max-width: 600px) {
  .alignleft, .alignright,
  figure.wp-caption.alignleft, figure.wp-caption.alignright {
    float: none; margin: 1.25rem auto; max-width: 100%; display: block;
  }
}

/* ---------- home / post list ---------- */
.home { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gap); }
.home-intro { text-align: center; margin-bottom: 3rem; }
.home-intro__title { margin: 0; font-size: clamp(2rem, 6vw, 3rem); }
.home-intro__tagline { margin: .5rem 0 0; color: var(--fg-soft); font-style: italic; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list__item { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.post-list__item:first-child { border-top: 0; }
.post-list__title { margin: 0; font-size: 1.5rem; }
.post-list__title a { color: var(--fg); text-decoration: none; }
.post-list__title a:hover { color: var(--accent); }
.post-list__meta { margin: .35rem 0 0; color: var(--fg-soft); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--border);
  background: var(--bg-soft); padding: 3rem 0 2rem;
}
.footer-widgets {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.footer-widget__title { margin: 0 0 .75rem; font-size: 1rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--fg-soft); }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin: 0 0 .5rem; font-size: .95rem; }
.footer-widget a { text-decoration: none; }
.footer-widget a:hover { text-decoration: underline; }

.footer-credits {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--fg-soft); font-size: .85rem;
}
.footer-credits p { margin: 0; }
.footer-credits a { color: var(--fg-soft); }
.footer-social { margin-left: auto; color: var(--fg-soft); display: inline-flex; }
.footer-social:hover { color: var(--accent); }
