/*
Theme Name: Search Engine Basics
Theme URI: https://searchenginebasics.example.com/
Author: Search Engine Basics
Author URI: https://searchenginebasics.example.com/
Description: An enterprise-grade education theme for SEO, technical search, and digital marketing blogs. Converted from the Search Engine Basics web-app design with a pixel-matched homepage, blog index, and single-post layouts. SEO-optimized for "search engine basics".
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: search-engine-basics
Tags: blog, education, seo, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
  --navy: #0F172A;
  --brand: #2563EB;
  --brand-600: #1d4fd7;
  --success: #10B981;
  --slate-ink: #64748B;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --hairline: #E2E8F0;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 0.625rem;
  --container: 80rem;        /* max-w-7xl */
  --container-prose: 48rem;  /* max-w-3xl */

  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, .25);
}

/* =========================================================================
   2. Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; color: var(--navy); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1rem; }

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================================
   3. Layout helpers
   ========================================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 6rem; }
.section--tight { padding-block: 4rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, .05);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .1);
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--brand);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 1.875rem);
  letter-spacing: -.02em;
}
.section-head p { margin-top: .75rem; color: var(--slate-ink); }

/* =========================================================================
   4. Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--brand {
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .5); }
/* Hero primary CTA: brand ring with a surface-coloured offset (matches ring-2 ring-offset-2). */
.btn--ring { box-shadow: 0 0 0 2px var(--surface-muted), 0 0 0 4px var(--brand); }
.btn--ring:hover { box-shadow: 0 0 0 2px var(--surface-muted), 0 0 0 4px var(--brand), 0 10px 20px -8px rgba(37, 99, 235, .5); }
.btn--ghost {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn--ghost:hover { background: var(--surface-muted); color: var(--navy); }
.btn--navy {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: .5rem 1.25rem;
}
.btn--navy:hover { background: rgba(15, 23, 42, .9); color: #fff; }
.btn--block { width: 100%; }

/* =========================================================================
   5. Header / Navigation
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav__left { display: flex; align-items: center; gap: 2rem; }
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand img { max-height: 36px; width: auto; }

.menu {
  display: none;
  gap: 1.5rem;
  list-style: none;
}
.menu a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate-ink);
}
.menu a:hover, .menu .current-menu-item > a { color: var(--brand); }

.nav__right { display: flex; align-items: center; gap: .75rem; }
.nav__signin {
  display: none;
  background: none;
  border: 0;
  padding: 0 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate-ink);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: .5rem 1rem .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.nav__cta:hover { background: rgba(15, 23, 42, .9); color: #fff; }
/* Static decorative ring (matches the original design — it does not spin). */
.nav__cta .spinner {
  width: 1rem; height: 1rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: none;
  border: 0;
  color: var(--navy);
}
.nav__toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  background: #fff;
  padding: .5rem 0 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  padding: .75rem 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .menu { display: flex; }
  .nav__signin { display: inline-block; }
  .nav__toggle { display: none; }
}

/* =========================================================================
   6. Hero (homepage)
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding-block: 4rem; }
.hero__grid { display: grid; gap: 3rem; }
.hero__copy { max-width: 36rem; }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 48ch;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-ink);
}
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Dashboard mockup */
.mockup { position: relative; }
.mockup__card {
  position: relative;
  z-index: 1;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  outline: 1px solid rgba(0, 0, 0, .05);
}
.mockup__bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.mockup__dots { display: flex; align-items: center; gap: .5rem; }
.mockup__dots span { width: 10px; height: 10px; border-radius: 999px; }
.mockup__dots .r { background: #f87171; }
.mockup__dots .y { background: #fbbf24; }
.mockup__dots .g { background: #34d399; }
.mockup__project { margin-left: .5rem; font-size: .75rem; font-weight: 500; color: rgba(100, 116, 139, .7); }
.mockup__pill { height: 1.5rem; width: 6rem; border-radius: .375rem; background: var(--surface-muted); }
.mockup__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.mockup__stat { border-radius: var(--radius); background: var(--surface-muted); padding: 1rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.mockup__stat .l { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--slate-ink); }
.mockup__stat .v { margin-top: .25rem; font-size: 1.25rem; font-weight: 600; color: var(--navy); font-family: var(--font-display); }
.mockup__stat .d { margin-top: .25rem; font-size: 10px; font-weight: 500; }
.mockup__stat .d.success { color: var(--success); }
.mockup__stat .d.brand { color: var(--brand); }
.mockup__stat .d.ink { color: var(--slate-ink); }
.mockup__chart { display: flex; align-items: flex-end; gap: 6px; height: 8rem; }
.mockup__chart span { flex: 1; border-radius: 2px; background: rgba(37, 99, 235, .2); }
.mockup__chart span.peak { background: var(--success); }
.mockup__glow {
  position: absolute; right: -1rem; top: -1rem; z-index: 0;
  width: 16rem; height: 16rem; border-radius: 999px;
  background: rgba(37, 99, 235, .08); filter: blur(48px);
}

@media (min-width: 1024px) {
  .hero { padding-block: 6rem; }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* =========================================================================
   7. Authority stats bar
   ========================================================================= */
.authority { background: var(--navy); padding-block: 3rem; }
.authority__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.authority__item { text-align: center; }
.authority__item .v { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; color: #fff; }
.authority__item .l { margin-top: .25rem; font-size: .875rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 768px) { .authority__grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   8. Category cards
   ========================================================================= */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card-cat {
  display: block;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card-cat:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(37, 99, 235, .2); }
.card-cat__num {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background: var(--surface-muted);
  font-family: ui-monospace, monospace;
  font-size: .875rem; font-weight: 600;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  margin-bottom: 1rem;
}
.card-cat h3 { font-size: 1rem; font-weight: 600; }
.card-cat p { margin-top: .5rem; font-size: .875rem; color: var(--slate-ink); }
.card-cat__meta { margin-top: 1rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: rgba(100, 116, 139, .7); }

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   9. Article cards (featured + grid)
   ========================================================================= */
.section--white { background: #fff; box-shadow: inset 0 1px 0 rgba(226, 232, 240, .6), inset 0 -1px 0 rgba(226, 232, 240, .6); }

.posts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.posts-head h2 { font-size: 1.875rem; }
.posts-head p { margin-top: .5rem; color: var(--slate-ink); }
.link-more { font-size: .875rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.post-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .post-grid--3 { grid-template-columns: repeat(3, 1fr); } .post-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid--3up { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(37, 99, 235, .2); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-muted); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card__meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.post-card h3, .post-card h4 {
  font-size: 1.125rem;
  line-height: 1.25;
  text-wrap: pretty;
}
.post-card:hover h3, .post-card:hover h4 { color: var(--brand); }
.post-card__excerpt { margin-top: .75rem; font-size: .875rem; color: var(--slate-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__foot { margin-top: auto; display: flex; align-items: center; gap: .75rem; padding-top: 1.5rem; font-size: .75rem; }
.avatar { width: 2rem; height: 2rem; border-radius: 999px; background: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--hairline); object-fit: cover; flex-shrink: 0; }
.post-card__author { font-weight: 600; color: var(--navy); }
.post-card__date { color: var(--slate-ink); }

.tag {
  border-radius: .375rem;
  padding: .125rem .5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: rgba(37, 99, 235, .1);
  color: var(--brand);
}
.tag--success { background: rgba(16, 185, 129, .1); color: var(--success); }
.tag--navy { background: rgba(15, 23, 42, .1); color: var(--navy); }
.readtime { font-size: .75rem; color: var(--slate-ink); }

/* =========================================================================
   10. Featured post (blog index)
   ========================================================================= */
.featured {
  display: grid; gap: 2.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow .2s ease;
}
.featured:hover { box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(37, 99, 235, .2); }
.featured__media { overflow: hidden; border-radius: 1rem; aspect-ratio: 16 / 10; background: var(--surface-muted); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured:hover .featured__media img { transform: scale(1.05); }
.featured__body { display: flex; flex-direction: column; justify-content: center; }
.featured__body h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; margin-top: .25rem; }
.featured:hover .featured__body h2 { color: var(--brand); }
.featured__excerpt { margin-top: 1rem; color: var(--slate-ink); text-wrap: pretty; }
@media (min-width: 768px) { .featured { grid-template-columns: 1fr 1fr; padding: 2rem; } }

/* Filters */
.filters { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: #fff; }
.filters__row { display: flex; gap: .5rem; overflow-x: auto; padding-block: 1rem; }
.chip {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: .375rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  background: var(--surface-muted);
  color: var(--slate-ink);
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover { background: rgba(37, 99, 235, .1); color: var(--brand); }
.chip.is-active { background: var(--navy); color: #fff; }

/* =========================================================================
   11. Newsletter CTA
   ========================================================================= */
.newsletter { padding-block: 6rem; }
.newsletter__inner {
  border-radius: 1.5rem;
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
}
.newsletter h2 { font-size: 1.875rem; color: #fff; }
.newsletter p { margin: 1rem auto 0; max-width: 42rem; color: rgba(255, 255, 255, .6); }
.newsletter__form {
  margin: 2.5rem auto 0;
  display: flex; flex-direction: column; gap: .75rem;
  max-width: 28rem;
}
.newsletter__form input {
  width: 100%;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  padding: .75rem 1rem;
  font-size: .875rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}
.newsletter__form input::placeholder { color: rgba(255, 255, 255, .4); }
.newsletter__form input:focus { outline: none; border-color: var(--brand); }
.newsletter__note { margin-top: 1rem; font-size: .75rem; color: rgba(255, 255, 255, .4); }
@media (min-width: 640px) { .newsletter__inner { padding-inline: 4rem; } .newsletter__form { flex-direction: row; } }

/* =========================================================================
   12. SEO content block (homepage long-form)
   ========================================================================= */
.seo-content { background: var(--surface-muted); }
.seo-content .container { max-width: 56rem; }
.seo-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 3rem; letter-spacing: -.02em; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 { font-size: 1.25rem; margin-top: 2rem; }
.seo-content p { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.75; color: rgba(15, 23, 42, .85); }
.seo-content ul, .seo-content ol { margin-top: 1rem; padding-left: 1.25rem; color: rgba(15, 23, 42, .85); }
.seo-content li { margin-bottom: .5rem; line-height: 1.7; }
.seo-content strong { color: var(--navy); }

.steps { display: grid; gap: 1.5rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
.step {
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.step__n { font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 700; color: var(--brand); }
.step h3 { margin-top: .5rem; font-size: 1.0625rem; }
.step p { margin-top: .5rem; font-size: .9375rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { margin-top: 1.5rem; border-radius: 1rem; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline); background: #fff; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  background: none; border: 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; color: var(--navy);
}
.faq__q .icon { flex-shrink: 0; transition: transform .2s ease; color: var(--brand); }
.faq__item.is-open .faq__q .icon { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 1.5rem 1.25rem; color: rgba(15, 23, 42, .85); line-height: 1.7; }
.faq__item.is-open .faq__a { display: block; }

/* =========================================================================
   13. Single post
   ========================================================================= */
.reading-progress { position: sticky; top: 4rem; z-index: 40; height: 4px; width: 100%; background: var(--hairline); }
.reading-progress__bar { height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }

.article { background: #fff; }
.article__header { max-width: var(--container-prose); margin-inline: auto; padding: 4rem 1.5rem 2.5rem; }
.article__cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.article__cat:hover { text-decoration: underline; }
.article__header h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.article__excerpt { margin-top: 1.5rem; font-size: 1.125rem; color: var(--slate-ink); text-wrap: pretty; }
.article__byline {
  margin-top: 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: 1rem;
}
.article__byline .who { display: flex; align-items: center; gap: .75rem; }
.article__byline .who .avatar { width: 2.5rem; height: 2.5rem; }
.article__byline .name { font-weight: 600; font-size: .875rem; color: var(--navy); }
.article__byline .role { font-size: .875rem; color: var(--slate-ink); }
.article__byline .when { text-align: right; font-size: .75rem; color: var(--slate-ink); }

.article__cover { max-width: 64rem; margin-inline: auto; padding-inline: 1.5rem; }
.article__cover img { aspect-ratio: 16 / 8; width: 100%; border-radius: 1rem; object-fit: cover; box-shadow: inset 0 0 0 1px var(--hairline); }

.article__layout {
  max-width: 72rem;
  margin-inline: auto;
  padding: 4rem 1.5rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .article__layout { grid-template-columns: 1fr 18rem; } }

/* Prose */
.prose { font-size: 1.0625rem; }
.prose > p { margin-bottom: 1.5rem; font-size: 1.125rem; line-height: 1.75; color: rgba(15, 23, 42, .85); }
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 1.5rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.5rem; color: rgba(15, 23, 42, .85); }
.prose li { margin-bottom: .5rem; line-height: 1.7; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: .75rem; margin-block: 2rem; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--brand);
  background: var(--surface-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}
.prose code { background: var(--surface-muted); padding: .15em .4em; border-radius: .375rem; font-size: .9em; }
.prose pre { background: var(--navy); color: #e2e8f0; padding: 1.25rem; border-radius: .75rem; overflow-x: auto; margin-block: 2rem; }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 2rem 0; }
.prose figcaption { margin-top: .5rem; font-size: .875rem; color: var(--slate-ink); text-align: center; }

.callout {
  margin-block: 3rem;
  border-radius: 1rem;
  background: var(--surface-muted);
  padding: 2rem;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.callout .label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.callout p { margin-top: .75rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.4; color: var(--navy); }

/* Sidebar */
.post-aside { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .post-aside { position: sticky; top: 6rem; align-self: start; } }
.aside-card { border-radius: 1rem; padding: 1.5rem; }
.aside-card--navy { background: var(--navy); color: #fff; }
.aside-card--navy h4 { color: #fff; margin-top: 1rem; font-size: 1.125rem; }
.aside-card--navy p { margin-top: .5rem; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.aside-card--navy form { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.aside-card--navy input {
  width: 100%; border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: .5rem .75rem; font-size: .875rem; color: #fff;
}
.aside-card--navy input::placeholder { color: rgba(255, 255, 255, .4); }
.aside-card--navy input:focus { outline: none; border-color: var(--brand); }
.aside-icon { font-size: 2rem; line-height: 1; }
.aside-card--toc { background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.aside-card--toc h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.toc { margin-top: 1rem; list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.toc a { color: var(--slate-ink); }
.toc a:hover { color: var(--brand); }

/* Related / continue reading */
.related { background: var(--surface-muted); padding-block: 5rem; }
.related h3 { margin-bottom: 2.5rem; font-size: 1.5rem; }
.related-card {
  display: grid; gap: 1.5rem;
  overflow: hidden; border-radius: 1rem;
  background: #fff; padding: 1rem;
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow .2s ease;
}
.related-card:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(37, 99, 235, .2); }
.related-card__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: .75rem; background: var(--surface-muted); }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.related-card:hover .related-card__media img { transform: scale(1.05); }
.related-card__body { display: flex; flex-direction: column; justify-content: center; }
.related-card h4 { margin-top: .5rem; font-size: 1.125rem; line-height: 1.25; }
.related-card:hover h4 { color: var(--brand); }
.related-card .meta { margin-top: .75rem; font-size: .75rem; color: var(--slate-ink); }
@media (min-width: 640px) { .related-card { grid-template-columns: 10rem 1fr; } .related-card__media { aspect-ratio: 1; } }

/* =========================================================================
   14. Page template
   ========================================================================= */
.page-hero { background: #fff; border-bottom: 1px solid var(--hairline); }
.page-hero .container { max-width: var(--container-prose); padding-block: 4rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.02em; text-wrap: balance; }
.page-body { background: #fff; }
.page-body .container { max-width: var(--container-prose); padding-block: 3rem 5rem; }

/* Archive / search header */
.archive-hero { background: #fff; border-bottom: 1px solid var(--hairline); }
.archive-hero .container { padding-block: 4rem; }
.archive-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.archive-hero p { margin-top: .75rem; color: var(--slate-ink); max-width: 42rem; }

/* =========================================================================
   15. Comments
   ========================================================================= */
.comments { max-width: var(--container-prose); margin-inline: auto; padding: 0 1.5rem 4rem; }
.comments h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-list .comment { margin-bottom: 1.5rem; }
.comment-body {
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.comment-meta { font-size: .8125rem; color: var(--slate-ink); margin-bottom: .5rem; }
.comment-author .fn { font-weight: 600; color: var(--navy); font-style: normal; }
.comment-list .children { list-style: none; margin-top: 1.5rem; padding-left: 1.5rem; }
.comment-respond { margin-top: 2.5rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: #fff;
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-family: inherit;
  margin-top: .25rem;
}
.comment-form label { font-size: .875rem; font-weight: 500; color: var(--navy); }
.comment-form p { margin-bottom: 1rem; }

/* =========================================================================
   16. Pagination
   ========================================================================= */
/* the_posts_pagination() nests the links inside .nav-links — that is the flex row. */
.pagination, .comments-pagination { margin-top: 3.5rem; }
.pagination .nav-links, .comments-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
}
.pagination .page-numbers, .comments-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: .875rem; font-weight: 500; color: var(--navy);
}
.pagination .page-numbers.current, .comments-pagination .page-numbers.current { background: var(--navy); color: #fff; box-shadow: none; }
.pagination .page-numbers:hover:not(.current), .comments-pagination .page-numbers:hover:not(.current) { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.pagination .dots, .comments-pagination .dots { box-shadow: none; background: transparent; }

/* =========================================================================
   17. Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--hairline); background: #fff; padding-block: 4rem; }
.footer__grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.footer__brand .brand { display: inline-block; }
.footer__brand p { margin-top: 1rem; max-width: 20rem; font-size: .875rem; line-height: 1.7; color: var(--slate-ink); text-wrap: pretty; }
.footer__col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); }
.footer__col ul { margin-top: 1.5rem; list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer__col a { font-size: .875rem; color: var(--slate-ink); }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.footer__bottom p { margin: 0; font-size: .75rem; color: var(--slate-ink); }
.footer__social { display: flex; gap: 1.5rem; }
.footer__social a { color: var(--slate-ink); }
.footer__social a:hover { color: var(--brand); }
.footer__social svg { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================================
   18. Utilities & WP core
   ========================================================================= */
.animate-fade-in { animation: seb-fade .6s ease both; }
@keyframes seb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.alignwide { width: 100%; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: var(--slate-ink); text-align: center; margin-top: .5rem; }
.sticky, .gallery-caption, .bypostauthor { }

.wp-block-button__link { display: inline-block; background: var(--brand); color: #fff; padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 500; }
