/* michaeladegoke.net */
:root {
  --navy: #061637;
  --navy-2: #022345;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e3e7ee;
  --soft: #f4f6fa;
  --accent: #1f6feb;
  --radius: 10px;
  --wrap: 1120px;
  --read: 760px;
  font-size: 17px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.7; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: .3em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.staging-bar { background: #ffe58a; color: #3d3200; text-align: center; font-size: .8rem; padding: 6px 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.15rem; margin: 0; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.search input { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; width: 160px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--soft); }
  .search input { width: 100%; margin-top: 10px; }
}

main { padding-bottom: 48px; }

/* Buttons */
.button, .wp-block-button__link { display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none; padding: 10px 22px; border-radius: 999px; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.button:hover, .wp-block-button__link:hover { background: var(--navy-2); }
.button-alt { background: #fff; color: var(--navy) !important; border: 2px solid var(--navy); }
.button-alt:hover { background: var(--soft); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }

/* Home */
.hero { padding: 40px 0 16px; max-width: var(--read); }
.today { color: var(--muted); font-size: .9rem; margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section { margin-top: 40px; }
.section > h2 { margin-top: 0; }
.quote-card { background: var(--soft); border-radius: var(--radius); padding: 24px; max-width: var(--read); }
.quote-card blockquote { margin: 0; font-size: 1.1rem; }
.quote-card footer { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; }

/* Grids */
.card-grid, .tool-grid, .stack-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stack-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { margin-top: auto; font-size: .8rem; color: var(--muted); }
.tool-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(6, 22, 55, .08); }
.tool-card strong { color: var(--navy); }
.tool-card span { color: var(--muted); font-size: .88rem; }
.stack-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stack-card span { color: var(--muted); font-size: .82rem; }
.stack-card a { font-weight: 600; text-decoration: none; }
.stack-card audio { width: 100%; margin-top: 6px; height: 36px; }

/* Archives */
.page-header { padding: 32px 0 8px; max-width: var(--read); }
.page-header small { font-size: .5em; color: var(--muted); font-weight: 400; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; color: var(--muted); font-size: .9rem; }
.link-list { padding-left: 1.2em; }
.search-large { display: flex; gap: 10px; max-width: 520px; margin: 16px 0; }
.search-large input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; }

/* Single */
.entry { max-width: var(--read); margin: 0 auto; }
.breadcrumbs { font-size: .82rem; color: var(--muted); padding-top: 20px; }
.breadcrumbs a { color: var(--muted); }
.entry-meta { color: var(--muted); font-size: .88rem; margin-top: -4px; }
.featured { margin: 20px 0; }
.featured img { border-radius: var(--radius); display: block; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 14px 20px; margin: 20px 0; font-size: .95rem; }
.toc summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; }
.toc li { margin: 4px 0; }
.related { max-width: var(--wrap); }
.notice { padding: 12px 16px; border-radius: var(--radius); }
.notice-success { background: #e6f6ea; color: #14532d; }
.notice-error { background: #fdecec; color: #7f1d1d; }

/* Content (WordPress block markup) */
.entry-content { overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 80px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content img { border-radius: 6px; }
.aligncenter, .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; display: table; }
.alignleft { float: left; margin: 0 1em 1em 0; } .alignright { float: right; margin: 0 0 1em 1em; }
.entry-content blockquote, .wp-block-quote { border-left: 4px solid var(--navy); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: #374151; }
.wp-block-pullquote { border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); padding: 1em 0; text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content th, .tablepress thead th { background: var(--soft); }
.wp-block-table { overflow-x: auto; }
.wp-block-separator, .entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.wp-block-embed__wrapper, .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; }
.wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-content iframe { border: 0; }
.wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 240px; min-width: 0; }
.wp-block-audio audio, .entry-content audio { width: 100%; }
.wp-block-spacer { max-height: 40px; }
.has-text-align-center { text-align: center; }
.has-large-font-size { font-size: 1.6rem; }
.entry-content pre, .entry-content code { background: var(--soft); border-radius: 6px; font-size: .9em; }
.entry-content pre { padding: 14px; overflow-x: auto; }
.entry-content code { padding: 1px 5px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.gb-grid-wrapper { display: flex; flex-wrap: wrap; }
.adsbygoogle { margin: 1.5em 0; }

/* Contact form */
.contact-form { max-width: 560px; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--navy); }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c2d3; border-radius: 8px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d2e3; margin-top: 48px; padding: 40px 0 16px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: #fff; }
.footer-inner { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; font-size: .8rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-inner > :first-child { grid-column: 1 / -1; } }
.ad-top { margin: 16px 0 0; min-height: 90px; }

/* Ads: in-article units and the desktop sidebar rail (posts) */
.ad-slot { margin: 28px 0; min-height: 120px; text-align: center; clear: both; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #8a93a5; margin-bottom: 4px; text-align: center; }
.ad-slot:has(ins[data-ad-status="unfilled"]), .ad-rail:has(ins[data-ad-status="unfilled"]) .ad-label { display: none; }
.ad-preview { display: flex; align-items: center; justify-content: center; min-height: 250px; background: repeating-linear-gradient(45deg, #f1f3f7, #f1f3f7 10px, #e7ebf2 10px, #e7ebf2 20px); color: #5b6475; font-weight: 700; border-radius: 8px; }
.ad-rail { display: none; }
@media (min-width: 1200px) {
  .post-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 300px; gap: 48px; justify-content: center; align-items: start; }
  .post-layout .entry { margin: 0; }
  .ad-rail { display: block; align-self: stretch; padding-top: 72px; }
  .ad-rail-inner { width: 300px; min-height: 600px; position: sticky; top: 84px; }
}
