/* Punish Dave 2026 - final theme layer */
:root {
  --pd-bg: #181919;
  --pd-surface: #222323;
  --pd-surface-2: #292a2a;
  --pd-line: rgba(255, 255, 255, 0.09);
  --pd-text: #f5f2ee;
  --pd-muted: #aaa8a4;
  --pd-accent: #e66a64;
  --pd-accent-soft: rgba(230, 106, 100, 0.14);
  --pd-max: 1180px;
  --pd-radius: 14px;
  --pd-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  padding: 0;
  background:
    radial-gradient(ellipse 80% 55% at 82% -12%, rgba(230, 106, 100, .12), transparent 72%),
    radial-gradient(ellipse 55% 42% at -8% 32%, rgba(255, 255, 255, .035), transparent 70%),
    linear-gradient(180deg, #1b1c1c 0%, var(--pd-bg) 48%, #151616 100%);
  background-attachment: fixed;
  color: var(--pd-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 70%);
  pointer-events: none;
}

::selection { background: var(--pd-accent); color: #171717; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pd-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--pd-accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.site-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--pd-text);
  font-family: inherit;
  line-height: 1.12;
  letter-spacing: -.025em;
}

p { margin: 0 0 1rem; }

.container,
.footer-container {
  width: min(100% - 40px, var(--pd-max));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--pd-accent);
  color: #171717;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--pd-line);
  background: rgba(24, 25, 25, .86);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background .2s ease, box-shadow .2s ease;
}
#main-nav.is-scrolled { background: rgba(20, 21, 21, .94); box-shadow: 0 12px 34px rgba(0, 0, 0, .2); }

#main-nav .container {
  min-height: 72px;
  padding: 9px 0;
  gap: 24px;
  flex-wrap: nowrap;
}

.site-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
#main-nav .logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.site-brand-copy { display: grid; line-height: 1.05; }
.site-brand-copy strong { color: var(--pd-text); font-size: 15px; letter-spacing: -.01em; }
.site-brand-copy small { margin-top: 5px; color: var(--pd-muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.nav-panel { display: flex; min-width: 0; flex: 1; align-items: center; gap: 18px; }
.nav-toggle { display: none; width: 40px; height: 40px; min-height: 0; padding: 0; border: 1px solid var(--pd-line); background: transparent; color: var(--pd-text); }
.nav-toggle-lines { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-lines span { position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.nav-toggle-lines span:first-child { top: 2px; }
.nav-toggle-lines span:last-child { top: 9px; }
.nav-open .nav-toggle-lines span:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-lines span:last-child { top: 5px; transform: rotate(-45deg); }
.quick-nav-trigger { min-height: 34px; gap: 8px; padding: 6px 9px; border: 1px solid var(--pd-line); background: transparent; color: var(--pd-muted); font-size: 11px; font-weight: 650; }
.quick-nav-trigger kbd, .quick-nav-search kbd { padding: 2px 5px; border: 1px solid var(--pd-line); border-radius: 5px; background: rgba(255,255,255,.035); color: var(--pd-muted); font: inherit; font-size: 9px; }
.quick-nav[hidden] { display: none; }
.quick-nav { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding-top: min(18vh, 150px); }
.quick-nav-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: rgba(8,9,9,.72); backdrop-filter: blur(8px); }
.quick-nav-dialog { position: relative; width: min(92vw, 560px); overflow: hidden; border: 1px solid var(--pd-line); border-radius: 16px; background: #202121; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.quick-nav-search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--pd-line); }
.quick-nav-search input { padding: 0; border: 0; background: transparent; outline: 0; }
.quick-nav-results { display: grid; max-height: 340px; gap: 3px; overflow-y: auto; padding: 8px; }
.quick-nav-results a { padding: 11px 12px; border-radius: 8px; color: var(--pd-muted); font-size: 14px; font-weight: 650; }
.quick-nav-results a:hover, .quick-nav-results a:focus { background: var(--pd-accent-soft); color: var(--pd-text); outline: 0; }
.quick-nav-results p { margin: 0; padding: 18px; color: var(--pd-muted); text-align: center; }
.quick-nav-open { overflow: hidden; }
.nav-toggle:hover, .quick-nav-trigger:hover { border-color: rgba(230,106,100,.4); background: var(--pd-accent-soft); color: var(--pd-text); filter: none; }
.quick-nav-backdrop:hover { color: inherit; filter: none; transform: none; }

#main-nav .menu { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
#main-nav .menu::-webkit-scrollbar { display: none; }
#main-nav .menu ul { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
#main-nav .menu li { padding: 0; border-radius: 8px; background: transparent; white-space: nowrap; }
#main-nav .menu li a { display: block; padding: 9px 12px; color: var(--pd-muted); font-size: 14px; font-weight: 600; }
#main-nav .menu li:hover,
#main-nav .menu .current-menu-item { background: var(--pd-accent-soft); }
#main-nav .menu li:hover a,
#main-nav .menu .current-menu-item a { color: var(--pd-text); }

#main-nav .social { gap: 6px; margin: 0; flex: 0 0 auto; }
#main-nav .social a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--pd-line); border-radius: 9px; color: var(--pd-muted); }
#main-nav .social a:hover { border-color: rgba(230,106,100,.45); background: var(--pd-accent-soft); color: var(--pd-accent); transform: translateY(-1px); }
#main-nav .social { display: flex; }

#site-content { min-height: calc(100vh - 220px); }

/* Homepage */
#showcase.home-hero {
  padding: clamp(34px, 6vw, 80px) 0;
  background: transparent;
}
#showcase::before { display: none; }

#showcase .showcase-container {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  grid-template-areas: none;
  align-items: stretch;
  gap: 14px;
}

#showcase .hero-media {
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: 20px;
  background: var(--pd-surface);
  box-shadow: var(--pd-shadow);
}
#showcase .hero-media > * { width: 100%; height: 100%; }
#showcase .stream-game-image { display: block; min-width: 0; }
.stream-game-card { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; color: var(--pd-text); }
.stream-game-card::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, .88)); pointer-events: none; }
.stream-game-overlay { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: grid; gap: 5px; padding: clamp(22px, 4vw, 38px); }
.stream-game-overlay strong { color: #fff; font-size: clamp(26px, 4vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.stream-game-overlay small { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 650; }
.stream-game-card:hover .showcase-img { transform: scale(1.018); }
#showcase .showcase-img {
  display: block;
  grid-area: auto;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  margin: 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.stream-game-loading,
.stream-game-message {
  display: flex;
  height: 100%;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--pd-muted);
  font-size: 14px;
}
.stream-game-loading span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pd-accent);
  box-shadow: 0 0 0 6px var(--pd-accent-soft);
}

#showcase .right-content { display: grid; grid-area: auto; grid-template-rows: 1fr auto auto; gap: 14px; }
.feature-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: var(--pd-surface);
}
#showcase .showcase-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-align: left;
}
#showcase .showcase-content h1 {
  max-width: 16ch;
  margin: 14px 0 16px;
  font-size: clamp(32px, 3.25vw, 46px);
  line-height: 1.08;
  text-align: left;
  text-wrap: balance;
}
.showcase-content .twitch {
  max-width: 46ch;
  margin-bottom: 24px;
  color: var(--pd-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}
#showcase .showcase-content .btn {
  width: fit-content;
  min-height: 40px;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
}
.quote-content blockquote { margin: 10px 0 0; color: var(--pd-text); font-size: clamp(18px, 2vw, 24px); line-height: 1.35; }
.bluesky-content .bluesky { margin: 10px 0 14px; color: var(--pd-muted); font-size: 14px; }

.eyebrow,
.post-date {
  color: var(--pd-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.btn,
button,
input[type="submit"],
.wp-element-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--pd-accent);
  color: #1b1b1b;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover,
button:hover,
input[type="submit"]:hover { color: #1b1b1b; filter: brightness(1.08); transform: translateY(-1px); }
.text-link { color: var(--pd-accent); font-size: 14px; font-weight: 700; }

.home-section { padding: clamp(34px, 5vw, 68px) 0; border-top: 1px solid var(--pd-line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin-top: 6px; font-size: clamp(28px, 4vw, 44px); }

.videos { display: block; padding: 0; background: transparent; }
.video-container { max-width: none; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); overflow: hidden; }

.blog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  background: transparent;
}
.blog-summary > .post-teaser {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: var(--pd-surface);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.post-teaser-media { display: block; aspect-ratio: 20 / 13; overflow: hidden; background: var(--pd-surface-2); }
.post-teaser-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.post-teaser:hover .post-teaser-image { transform: scale(1.035); }
.post-teaser-content { padding: 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--pd-muted); font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.post-meta span + span::before { margin-right: 14px; color: var(--pd-accent); content: "•"; }
.post-teaser h3 { margin: 10px 0 12px; font-size: clamp(21px, 3vw, 29px); }
.post-teaser h3 a { color: var(--pd-text); }
.post-teaser p { color: var(--pd-muted); }

/* Articles, pages and plugin output */
#page,
#blog,
.page-container {
  width: min(100% - 40px, var(--pd-max));
  max-width: none;
  margin: 42px auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pd-text);
}

#page > h1,
#page .page-header h1,
#blog + h1,
body > h1 {
  margin-bottom: 28px;
  color: var(--pd-text);
  font-size: clamp(32px, 5vw, 58px);
  text-align: left;
}
#site-content > h1 { width: min(100% - 40px, var(--pd-max)); margin: 42px auto 24px; color: var(--pd-text); font-size: clamp(34px, 5vw, 58px); text-align: left; }

.page-container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.page-thumbnail { max-width: 100%; margin: 0; }
.page-thumbnail img { max-height: 560px; object-fit: cover; border-radius: var(--pd-radius); }
.page-content,
#page .card { padding: clamp(20px, 4vw, 42px); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: var(--pd-surface); }
.page-content > * + *,
#page .card > * + * { margin-top: 1em; }

#blog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#blog .main-blog { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: var(--pd-surface); box-shadow: none; }
#blog .blog-img { width: 110px; height: 110px; margin: 0; border-radius: 10px; }
#blog .blog-content h1,
#blog .blog-content h2 { margin-bottom: 10px; color: var(--pd-text); font-size: 23px; text-align: left; }
#blog .blog-content { color: var(--pd-muted); font-size: 15px; }
#blog .pagination { grid-column: 1 / -1; background: transparent; }

/* Home Apps */
#page .homeapps { max-width: none; padding: 0; }
.homeapps-header { max-width: 680px; margin: 0 0 30px; text-align: left; }
.homeapps-header h1 { margin-bottom: 10px; color: var(--pd-text); font-size: clamp(36px, 6vw, 62px); text-align: left; }
.homeapps-header p { color: var(--pd-muted); }
.homeapps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.homeapps-card { position: relative; display: flex; min-height: 220px; flex-direction: column; padding: 24px; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--pd-surface); color: var(--pd-text); box-shadow: none; }
.homeapps-card:hover { border-color: rgba(230,106,100,.4); box-shadow: var(--pd-shadow); transform: translateY(-3px); }
.homeapps-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 28px; border: 1px solid rgba(230,106,100,.24); border-radius: 11px; background: var(--pd-accent-soft); color: var(--pd-accent); }
.homeapps-icon .site-icon { width: 21px; height: 21px; }
.homeapps-card h2 { margin-bottom: 8px; font-size: 22px; }
.homeapps-card p { margin-bottom: 24px; color: var(--pd-muted); font-size: 14px; }
.homeapps-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--pd-accent); font-size: 13px; font-weight: 750; }
.homeapps-link .site-icon { width: 15px; height: 15px; }

/* Legacy page layouts brought into the current system */
.about-section, .goty-section { padding: 42px 0; background: transparent; }
.about-page-container, .goty-container { width: min(100% - 40px, var(--pd-max)); max-width: none; margin: auto; padding: 0; }
.about-title, .goty-title { margin-bottom: 26px; color: var(--pd-text); font-size: clamp(36px, 6vw, 62px); text-align: left; }
.about-img { width: min(100%, 520px); max-height: 560px; margin: 0 0 18px; border-radius: var(--pd-radius); object-fit: cover; }
.about-card, .goty-intro, .goty-item, #pc-spec .column, #peripheral .column { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: var(--pd-surface); color: var(--pd-text); box-shadow: none; }
.about-card { padding: clamp(22px, 4vw, 42px); }
#pc-spec, #peripheral { width: min(100% - 40px, var(--pd-max)); margin: 0 auto 42px; padding: 0; gap: 12px; background: transparent; }
#pc-spec .column, #peripheral .column { overflow: hidden; padding: 18px; }
.goty-list { gap: 16px; }
.goty-item { padding: 18px; }
.goty-image { border: 0; border-radius: 10px; }
.legacy-action-bar { margin: 0 0 18px; padding: 0; }
.quotes-table-wrap { overflow-x: auto; border-radius: 10px; }

input,
textarea,
select {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: var(--pd-surface-2);
  color: var(--pd-text);
  font: inherit;
}
input:focus,
textarea:focus,
select:focus { outline: 2px solid rgba(230,106,100,.35); border-color: var(--pd-accent); }

table { overflow: hidden; border: 1px solid var(--pd-line); border-radius: 10px; background: var(--pd-surface); color: var(--pd-text); }
th { border-color: var(--pd-line); background: var(--pd-surface-2); color: var(--pd-muted); font-size: 12px; letter-spacing: .08em; }
td { border-color: var(--pd-line); }
tr:nth-child(even) { background: rgba(255,255,255,.018); }
tr:hover { background: var(--pd-accent-soft); color: var(--pd-text); }

/* Footer */
#main-footer {
  margin-top: 72px;
  padding: 0;
  border-top: 1px solid var(--pd-line);
  background: #151616;
}
#main-footer .footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  text-align: left;
}
#main-footer .footer-container > .footer-intro {
  grid-column: auto;
  padding: 0;
  color: inherit;
  text-align: left;
}
.footer-intro strong { color: var(--pd-text); font-size: 16px; }
.footer-intro p { margin: 4px 0 0; color: var(--pd-muted); font-size: 13px; }
#main-footer .footer-bottom {
  display: flex;
  grid-column: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#main-footer .footer-bottom p { margin: 0; color: var(--pd-muted); font-size: 12px; white-space: nowrap; }
#main-footer .footer-home-link {
  display: inline-flex;
  width: auto;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--pd-line);
  border-radius: 9px;
  background: transparent;
  color: var(--pd-accent);
  font-size: 12px;
  font-weight: 700;
}
#main-footer .footer-home-link:hover {
  border-color: rgba(230,106,100,.45);
  background: var(--pd-accent-soft);
  color: var(--pd-text);
}
#main-footer .site-icon { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  a, button, .feature-panel, .post-teaser { transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
  .feature-panel:hover, .post-teaser:hover { border-color: rgba(230,106,100,.32); transform: translateY(-2px); }
  .reveal-ready { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
  .reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  #main-nav .container { position: relative; justify-content: space-between; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: grid; max-height: 0; overflow: hidden; gap: 14px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: rgba(25,26,26,.98); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: max-height .25s ease, opacity .2s ease, transform .2s ease, padding .2s ease, border-color .2s ease; }
  .nav-open .nav-panel { max-height: 520px; padding: 14px 16px 16px; border-color: var(--pd-line); box-shadow: var(--pd-shadow); opacity: 1; pointer-events: auto; transform: translateY(0); }
  #main-nav .menu { width: 100%; overflow: visible; }
  #main-nav .menu ul { display: grid; justify-content: stretch; gap: 2px; }
  #main-nav .menu li a { padding: 10px 12px; }
  #main-nav .social { padding-top: 12px; border-top: 1px solid var(--pd-line); }
  .quick-nav-trigger { width: 100%; justify-content: space-between; }
  #showcase .showcase-container { grid-template-columns: 1fr; }
  #showcase .hero-media, #showcase .showcase-img { min-height: min(68vw, 520px); }
  #showcase .right-content { grid-template-rows: auto; }
  .blog-summary, .homeapps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: light) and (max-width: 860px) {
  body.pd-scheme-system:not([data-scheme]) .nav-panel { background: rgba(248,246,241,.98); }
}

@media (max-width: 640px) {
  .container, .footer-container, #page, #blog, .page-container { width: min(100% - 24px, var(--pd-max)); }
  #main-nav .container { min-height: 60px; padding: 7px 0; }
  #main-nav .logo { width: 38px; height: 38px; }
  #showcase.home-hero { padding: 20px 0 36px; }
  #showcase .hero-media, #showcase .showcase-img { min-height: 72vw; border-radius: 14px; }
  .feature-panel { padding: 20px; }
  .blog-summary, .homeapps-grid, #blog { grid-template-columns: 1fr; }
  #blog .main-blog { grid-template-columns: 76px 1fr; }
  #blog .blog-img { width: 76px; height: 76px; }
  #main-footer .footer-container { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  #main-footer .footer-bottom { justify-content: space-between; }
}

/* 2026 refinement layer */
body.pd-scheme-light,
body[data-scheme="light"] {
  --pd-bg: #eeece7;
  --pd-surface: #f8f6f1;
  --pd-surface-2: #e7e4dd;
  --pd-line: rgba(28, 29, 29, .12);
  --pd-text: #202121;
  --pd-muted: #66645f;
  --pd-shadow: 0 18px 55px rgba(42, 39, 34, .12);
  background: radial-gradient(ellipse 80% 55% at 82% -12%, var(--pd-accent-soft), transparent 72%), linear-gradient(180deg, #f5f2ec, var(--pd-bg));
}
@media (prefers-color-scheme: light) {
  body.pd-scheme-system:not([data-scheme]) {
    --pd-bg: #eeece7; --pd-surface: #f8f6f1; --pd-surface-2: #e7e4dd; --pd-line: rgba(28,29,29,.12); --pd-text: #202121; --pd-muted: #66645f; --pd-shadow: 0 18px 55px rgba(42,39,34,.12);
    background: radial-gradient(ellipse 80% 55% at 82% -12%, var(--pd-accent-soft), transparent 72%), linear-gradient(180deg, #f5f2ec, var(--pd-bg));
  }
}
body[data-scheme="dark"] { --pd-bg: #181919; --pd-surface: #222323; --pd-surface-2: #292a2a; --pd-line: rgba(255,255,255,.09); --pd-text: #f5f2ee; --pd-muted: #aaa8a4; --pd-shadow: 0 18px 55px rgba(0,0,0,.28); }
body.pd-scheme-light #main-nav,
body[data-scheme="light"] #main-nav { background: rgba(245,242,236,.9); }
body.pd-scheme-light #main-footer,
body[data-scheme="light"] #main-footer { background: #e7e4dd; }
body.pd-scheme-light .quick-nav-dialog,
body[data-scheme="light"] .quick-nav-dialog { background: var(--pd-surface); }
@media (prefers-color-scheme: light) {
  body.pd-scheme-system:not([data-scheme]) #main-nav { background: rgba(245,242,236,.9); }
  body.pd-scheme-system:not([data-scheme]) #main-footer { background: #e7e4dd; }
  body.pd-scheme-system:not([data-scheme]) .quick-nav-dialog { background: var(--pd-surface); }
}

h1 { letter-spacing: -.045em; }
#site-content { position: relative; }
#site-content::before { position: absolute; top: 0; left: 0; width: min(24vw, 320px); height: 2px; content: ""; background: linear-gradient(90deg, var(--pd-section, var(--pd-accent)), transparent); box-shadow: 22px 14px 0 -1px var(--pd-accent-soft); transform: skewX(-38deg); transform-origin: left; pointer-events: none; }
body.page-template-page-about-php { --pd-section: #e8a35e; }
body.page-template-page-gear-php { --pd-section: #67a8c7; }
body.page-template-page-goty-php { --pd-section: #d9b955; }
body.page-template-page-quotes-php,
body.page-template-page-legacyquotes-php { --pd-section: #9d8bd8; }
body.page-template-page-homeapps-php { --pd-section: #68b99a; }
body.blog, body.single-post, body.archive { --pd-section: #dc746f; }
body[class*="page-template-page-"] #site-content > section:first-child,
body.blog #site-content { background-image: radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--pd-section, var(--pd-accent)) 12%, transparent), transparent 28rem); }

#main-nav .menu .current-menu-item a { position: relative; }
#main-nav .menu .current-menu-item a::after { position: absolute; right: 12px; bottom: 3px; left: 12px; height: 2px; border-radius: 2px; content: ""; background: var(--pd-section, var(--pd-accent)); }
.scheme-toggle { display: grid; width: 34px; height: 34px; min-height: 34px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--pd-line); background: transparent; color: var(--pd-muted); font-size: 17px; }
.scheme-toggle:hover { border-color: var(--pd-accent); background: var(--pd-accent-soft); color: var(--pd-text); }

.utility-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: clamp(18px, 3vw, 36px); border-block: 1px solid var(--pd-line); }
.utility-strip a { display: grid; grid-template-columns: auto 1fr; gap: 0 13px; padding: 18px 22px; border-right: 1px solid var(--pd-line); }
.utility-strip a:last-child { border-right: 0; }
.utility-strip span { grid-row: 1 / 3; color: var(--pd-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.utility-strip strong { color: var(--pd-text); font-size: 14px; }
.utility-strip small { color: var(--pd-muted); font-size: 12px; }
.utility-strip a:hover { background: var(--pd-accent-soft); }

.blog-summary { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); }
.blog-summary .post-teaser-featured { grid-row: span 2; }
.blog-summary .post-teaser:not(.post-teaser-featured) { display: grid; grid-template-columns: 145px minmax(0, 1fr); }
.blog-summary .post-teaser:not(.post-teaser-featured) .post-teaser-media { height: 100%; aspect-ratio: auto; }
.blog-summary .post-teaser:not(.post-teaser-featured) .post-teaser-content { padding: 18px; }
.blog-summary .post-teaser:not(.post-teaser-featured) h3 { font-size: clamp(18px, 2vw, 23px); }
.blog-summary .post-teaser:not(.post-teaser-featured) p { display: none; }
.post-teaser-featured h3 { max-width: 18ch; font-size: clamp(28px, 4vw, 44px); }
.post-teaser-media, .page-thumbnail { position: relative; }
.post-teaser-media::after, .page-thumbnail::after { position: absolute; inset: 0; content: ""; background: linear-gradient(145deg, transparent 55%, color-mix(in srgb, var(--pd-section, var(--pd-accent)) 22%, transparent)); pointer-events: none; }
.post-teaser-image, .page-thumbnail img, .goty-image { filter: saturate(.86) contrast(1.04); }
.page-content p, #page .card > p, .single-post .page-content { max-width: 72ch; }

.homeapps-card::before { position: absolute; top: -1px; right: 22px; width: 46px; height: 2px; content: ""; background: var(--pd-section, var(--pd-accent)); transform: skewX(-34deg); }
.empty-state, .no-results, .wp-block-query-no-results { display: grid; min-height: 220px; place-items: center; padding: 34px; border: 1px dashed var(--pd-line); border-radius: var(--pd-radius); background: linear-gradient(135deg, var(--pd-accent-soft), transparent 55%); color: var(--pd-muted); text-align: center; }

body.pd-density-compact .home-section { padding-block: clamp(26px, 4vw, 48px); }
body.pd-density-compact .feature-panel,
body.pd-density-compact .page-content,
body.pd-density-compact #page .card { padding: clamp(18px, 3vw, 30px); }
body.pd-motion-off *, body.pd-motion-off *::before, body.pd-motion-off *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }

@media (max-width: 860px) {
  .blog-summary .post-teaser-featured { grid-column: 1 / -1; grid-row: auto; }
  .blog-summary .post-teaser:not(.post-teaser-featured) { display: block; }
  .blog-summary .post-teaser:not(.post-teaser-featured) .post-teaser-media { aspect-ratio: 20 / 13; }
  body.pd-scheme-light .nav-panel, body[data-scheme="light"] .nav-panel { background: rgba(248,246,241,.98); }
}
@media (max-width: 640px) {
  .utility-strip { grid-template-columns: 1fr; }
  .utility-strip a { border-right: 0; border-bottom: 1px solid var(--pd-line); }
  .utility-strip a:last-child { border-bottom: 0; }
}
@media (pointer: coarse) {
  #main-nav .menu li a, .text-link, .footer-home-link { min-height: 44px; display: inline-flex; align-items: center; }
}
