/*
Theme Name: John Pernock
Theme URI: https://johnpernock.com
Author: John Pernock
Description: Custom dark theme for johnpernock.com
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: johnpernock
*/

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #0f0f0f;
  --surface:   #1a1a1a;
  --surface-2: #222222;
  --border:    #2a2a2a;
  --text:      #c8c8c8;
  --muted:     #888888;
  --heading:   #f0f0f0;
  --accent:    #ff6600;
  --accent-h:  #ff8533;
  --font:      'Poppins', sans-serif;
  --nav-h:     64px;
  --max-w:     960px;
}

html[data-theme="light"] {
  --bg:        #f5f5f5;
  --surface:   #ffffff;
  --surface-2: #efefef;
  --border:    #dedede;
  --text:      #444444;
  --muted:     #777777;
  --heading:   #111111;
  --accent:    #e55a00;
  --accent-h:  #cc4d00;
}

html[data-theme="light"] .site-nav {
  background: rgba(245,245,245,.96);
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-h); }

/* ─── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: .35rem; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
}

code {
  background: var(--surface-2);
  color: var(--accent);
  padding: .15em .4em;
  border-radius: 3px;
  font-size: .9em;
  font-family: 'Courier New', monospace;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

pre code { background: none; padding: 0; color: var(--text); }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─── Nav ──────────────────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(15,15,15,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 2.5rem;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: inherit;
}

.nav-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  color: var(--heading);
  flex-shrink: 0;
  letter-spacing: .02em;
  overflow: hidden;
}

.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-brand-name { font-size: .92rem; font-weight: 600; color: var(--heading); line-height: 1.2; }
.nav-brand-sub  { font-size: .68rem; color: var(--muted); font-weight: 400; }

.nav-menu {
  display: flex; align-items: center; gap: .2rem; list-style: none;
  margin: 0 0 0 auto; padding: 0;
}

.nav-menu a {
  padding: .45rem .9rem; border-radius: 6px;
  font-size: .84rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: background .2s, color .2s; display: block;
}

.nav-menu a:hover           { background: var(--surface); color: var(--heading); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu a.current         { color: var(--accent); background: rgba(255,102,0,.08); }

.nav-toggle,
.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; color: var(--heading);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle { display: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.icon-sun  { display: none; }
.icon-moon { display: block; }
html[data-theme="light"] .icon-sun  { display: block; }
html[data-theme="light"] .icon-moon { display: none; }

/* ─── Containers ───────────────────────────────────────────────────────────── */

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-card {
  padding: 0 1.5rem;
  text-align: center;
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--surface-2);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.3rem; font-weight: 700; color: var(--muted);
  overflow: hidden;
}

.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-card-name { font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: .2rem; }

.hero-card-loc {
  font-size: .72rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  margin-bottom: 1.1rem;
}

.hero-socials { display: flex; gap: .35rem; justify-content: center; flex-wrap: nowrap; }

.hero-socials a {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background .2s, color .2s;
  flex-shrink: 0;
}

.hero-socials a:hover { background: var(--accent); color: #fff; }

.hero-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7rem;
}

.hero-name {
  font-size: 2.8rem; font-weight: 700;
  color: var(--heading); line-height: 1.1; margin-bottom: .4rem;
}

.hero-tagline { font-size: 1rem; color: var(--muted); font-weight: 400; margin-bottom: 1.5rem; }

.hero-bio {
  font-size: .96rem; line-height: 1.85;
  color: var(--text); max-width: 520px; margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem 1.3rem; border-radius: 6px;
  font-size: .84rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none; transition: all .2s;
}

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); color: #fff; border-color: var(--accent-h); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Sections ─────────────────────────────────────────────────────────────── */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
  border-top: 1px solid var(--border);
}

.sec-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.2rem;
}

.sec-head .sec-label { margin-bottom: 0; }
.sec-head a { font-size: .78rem; color: var(--muted); }
.sec-head a:hover { color: var(--accent); }

/* ─── Tag Pills ────────────────────────────────────────────────────────────── */

.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

.tag {
  padding: .3rem .8rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 100px; font-size: .77rem; color: var(--muted); font-weight: 500;
  transition: border-color .2s, color .2s;
}

.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Post Cards ───────────────────────────────────────────────────────────── */

.post-grid { display: flex; flex-direction: column; gap: 1rem; }

.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: border-color .2s;
  display: flex; align-items: stretch;
  text-decoration: none; color: inherit;
}

.post-card:hover { border-color: var(--accent); color: inherit; }

.pc-thumb { width: 160px; flex-shrink: 0; background: var(--surface-2); overflow: hidden; }

.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pc-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
}

.pc-body { padding: 1.15rem 1.35rem; flex: 1; min-width: 0; }

.pc-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.pc-cat  { color: var(--accent); font-weight: 600; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.pc-date { font-size: .74rem; color: var(--muted); }
.pc-dot  { color: var(--border); font-size: .55rem; }

.pc-title { font-size: 1rem; font-weight: 600; color: var(--heading); margin-bottom: .38rem; line-height: 1.35; }
.post-card:hover .pc-title { color: var(--accent); }

.pc-excerpt { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ─── Page Header ──────────────────────────────────────────────────────────── */

.pg-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.pg-title { font-size: 2rem; margin-bottom: .3rem; }
.pg-sub   { color: var(--muted); font-size: .88rem; }

/* ─── Blog two-column layout ───────────────────────────────────────────────── */

.blog-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
}

/* Blog sidebar widgets */
.blog-sidebar {}

.bs-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.bs-title {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

.bs-cat-list { list-style: none; padding: 0; margin: 0; }
.bs-cat-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem 0; border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.bs-cat-list li:last-child { border-bottom: none; }
.bs-cat-list a { color: var(--text); transition: color .2s; }
.bs-cat-list a:hover { color: var(--accent); }
.bs-cat-count {
  font-size: .72rem; color: var(--muted);
  background: var(--surface-2); border-radius: 100px;
  padding: .1rem .55rem;
}

.bs-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.bs-tag {
  padding: .28rem .72rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 100px; font-size: .73rem; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.bs-tag:hover { border-color: var(--accent); color: var(--accent); }

.bs-recent-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
}
.bs-recent-item:last-child { border-bottom: none; }

.bs-recent-thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 4px; background: var(--surface-2); overflow: hidden;
}
.bs-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bs-recent-title { font-size: .8rem; font-weight: 600; color: var(--heading); line-height: 1.3; margin-bottom: .2rem; }
.bs-recent-date  { font-size: .72rem; color: var(--muted); }

/* ─── Single Post ──────────────────────────────────────────────────────────── */

.single-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
}

.post-meta-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; font-size: .78rem; color: var(--muted); }
.post-meta-cat { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }

.post-title { font-size: 2rem; line-height: 1.25; margin-bottom: 1.75rem; }

.post-featured-image { margin-bottom: 2rem; border-radius: 8px; overflow: hidden; }
.post-featured-image img { width: 100%; }

.post-content { max-width: 660px; }
.post-content p   { color: var(--text); margin-bottom: 1.2rem; }
.post-content h2  { font-size: 1.3rem; margin: 2rem 0 .85rem; }
.post-content h3  { font-size: 1.1rem; margin: 1.5rem 0 .65rem; }
.post-content a   { text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: 6px; margin: 1.5rem 0; }
.post-content ul,
.post-content ol  { margin-bottom: 1.25rem; }

.post-footer {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.back-link { font-size: .83rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.back-link:hover { color: var(--accent); }

/* ─── Resume ───────────────────────────────────────────────────────────────── */

.resume-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

.r-sec { margin-bottom: 2.75rem; }

.r-sec-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}

.timeline { display: flex; flex-direction: column; gap: 1rem; }

.timeline-item {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 1.15rem 1.5rem;
}

.timeline-org    { font-size: .97rem; font-weight: 600; color: var(--heading); margin-bottom: .12rem; }
.timeline-role   { font-size: .84rem; color: var(--accent); font-weight: 500; margin-bottom: .18rem; }
.timeline-dates  { font-size: .74rem; color: var(--muted); margin-bottom: .45rem; }
.timeline-detail { font-size: .81rem; color: var(--muted); line-height: 1.6; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 1.25rem 1.15rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .85rem; text-align: center;
  transition: border-color .2s;
}
.cert-card:hover { border-color: var(--accent); }

.cert-badge { width: 80px; height: auto; display: block; }

.cert-name {
  font-size: .76rem; font-weight: 500; color: var(--heading);
  line-height: 1.35;
}

/* ─── About Me ─────────────────────────────────────────────────────────────── */

.about-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

.about-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-avatar-col {
  width: 160px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.about-avatar {
  width: 160px; height: 160px;
  border-radius: 50%; border: 3px solid var(--accent);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; font-weight: 700; color: var(--muted);
  overflow: hidden; flex-shrink: 0;
}

.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-lead { font-size: 1rem; line-height: 1.85; color: var(--text); }
.about-lead p { margin-bottom: 1.1rem; }
.about-lead p:last-child { margin-bottom: 0; }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.interest-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem 1.35rem;
  transition: border-color .2s;
}
.interest-card:hover { border-color: var(--accent); }

.interest-icon  { margin-bottom: .6rem; color: var(--accent); }
.interest-icon svg { display: block; }
.interest-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .35rem;
}
.interest-text { font-size: .83rem; color: var(--muted); line-height: 1.6; }

.about-links { margin-top: 2.5rem; }
.about-links + .about-links { margin-top: 2rem; }

.about-links-title {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.about-link-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; text-decoration: none; color: var(--text);
  transition: border-color .2s;
}
.about-link-card:hover { border-color: var(--accent); }

.about-link-card-icon { color: var(--muted); transition: color .2s; margin-bottom: .1rem; }
.about-link-card:hover .about-link-card-icon { color: var(--accent); }

.about-link-card-name { font-size: .84rem; font-weight: 600; color: var(--heading); line-height: 1.25; }
.about-link-card:hover .about-link-card-name { color: var(--accent); }

.about-link-card-url { font-size: .73rem; color: var(--muted); }

/* ─── Instagram Strip ──────────────────────────────────────────────────────── */

.ig-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.ig-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}

.ig-label a { font-size: .76rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.ig-label a:hover { color: var(--accent); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.ig-grid .instagram-feed,
.ig-grid > * { border-radius: 4px; overflow: hidden; }

/* ─── Pagination ───────────────────────────────────────────────────────────── */

.pagination { display: flex; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }

.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .75rem;
  border-radius: 6px; font-size: .84rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); text-decoration: none; transition: border-color .2s, color .2s;
}

.pagination .page-numbers:hover  { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── 404 ──────────────────────────────────────────────────────────────────── */

.error-404-wrap { max-width: var(--max-w); margin: 0 auto; padding: 4rem 2.5rem; }
.error-code     { font-size: 6rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: .5rem; }
.error-title    { font-size: 1.5rem; margin-bottom: .75rem; }
.error-text     { color: var(--muted); margin-bottom: 1.5rem; }

/* ─── Site Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border); padding: 1.75rem 2.5rem;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.site-footer span { font-size: .76rem; color: var(--muted); }

/* ─── WP alignment ─────────────────────────────────────────────────────────── */

.alignleft   { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright  { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin: 1rem auto; display: block; }
.alignfull   { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

/* ─── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem 0; gap: 0; margin-left: 0; z-index: 150;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    display: flex; align-items: center;
    padding: .85rem 1.5rem;
    font-size: 1rem; font-weight: 500; border-radius: 0;
    min-height: 44px; color: var(--text); background: none;
  }
  .nav-menu a:hover,
  .nav-menu .current-menu-item > a { background: var(--surface-2); color: var(--heading); }
  .nav-toggle { display: flex; }
  .theme-toggle { margin-left: auto; }

  .hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 2rem; gap: 1.75rem; }
  .hero-card { width: 100%; padding: 0; text-align: center; align-items: center; }
  .hero-avatar { width: 160px; height: 160px; font-size: 2.8rem; margin-bottom: .85rem; }
  .hero-card-loc { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-name { font-size: 2rem; }

  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .about-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-avatar-col { width: 100%; }

  .interest-grid { grid-template-columns: 1fr; }
  .about-links-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  .wrap, .section, .pg-head, .blog-layout, .single-wrap, .resume-wrap, .about-wrap, .resume-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 480px) {
  .site-nav { padding: 0 1rem; gap: 0; }
  .nav-toggle { margin-left: .4rem; }
  .hero-name { font-size: 1.7rem; }
  .pg-title  { font-size: 1.5rem; }
  .post-title { font-size: 1.5rem; }
  .pc-thumb { width: 100px; }
  .about-links-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}

/* ─── WordPress admin bar offset ──────────────────────────────────────────── */

.admin-bar .site-nav { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
