/* ChrisGolden.com retro-modern style */

:root {
  --bg-0: #f3f4f6;
  --bg-1: #dde0e6;
  --panel: #ededee;
  --panel-2: #f7f7f8;
  --text: #101114;
  --muted: #3d3f46;
  --link: #1a4ed8;
  --link-visited: #1a6f3c;
  --accent: #2b62d7;
  --accent-2: #ffd44d;
  --snes-yellow: #ffd44d;
  --snes-red: #d94a3a;
  --snes-blue: #2b62d7;
  --snes-green: #3aa655;
  --terminal-green: #00d26a;
  --shadow: rgba(0, 0, 0, 0.28);
  --border-dark: #4f4f53;
  --border-light: #ffffff;
  --border-mid: #b8b8bd;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --pixel: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--pixel);
  background:
    radial-gradient(circle at 18px 18px, rgba(0,0,0,0.04) 2px, transparent 3px) 0 0 / 36px 36px,
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:visited { color: var(--link); }

a:hover, a:focus { text-decoration-thickness: 2px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #2b2d33;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}


.topbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.brand { display: grid; gap: 0; }

.brand__logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.94);
}

/* Brand is intentionally not a link */
.brand__logo { cursor: default; }


.brand__text {
  font-weight: 800;
  letter-spacing: 0.2px;

  color: var(--terminal-green);
}


.brand__stack {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand__sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.1px;
}
.brand__glyph {
  width: 18px;
  height: 18px;
  display: inline-block;
  opacity: 0.95;
}

.brand__glyph * {
  shape-rendering: geometricPrecision;
}


.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 1px 0 rgba(255,255,255,0.35), 0 6px 12px rgba(0,0,0,0.35);
}

.brand__tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nav__link {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.20);
}

/* Prevent global a:visited from overriding nav pill text color */
.nav__link:visited {
  color: rgba(255,255,255,0.92);
}


.nav__link:hover, .nav__link:focus {
  background: rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.28);
}

.nav__link.is-active {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.35);
}

.controls { display: flex; gap: 8px; justify-content: flex-end; }

.select, .input, .textarea {
  font-family: var(--pixel);
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.95);
  color: #111;
  padding: 8px 10px;
  outline: none;
}

.select option { color: #111; }

.input::placeholder { color: rgba(0,0,0,0.55); }

.textarea { resize: vertical; min-height: 110px; }

.btn {
  font-family: var(--pixel);
  font-size: 14px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.22);
  background: linear-gradient(180deg, #f7f7f8, #dedfe3);
  color: #101114;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}

.btn:hover, .btn:focus {
  border-color: rgba(0,0,0,0.30);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,0.65);
  box-shadow: none;
}

.btn--small {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: none;
}

.btn--icon {
  min-width: 38px;
  padding-left: 10px;
  padding-right: 10px;
  justify-content: center;
  gap: 0;
}

.btn--icon .icon {
  display: block;
}

.layout {
  max-width: 1120px;
  margin: 18px auto 30px;
  padding: 0 14px;
  display: grid;
  gap: 16px;
}

body.layout--wide .layout {
  max-width: 100%;
}

.window {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.20), 0 18px 40px var(--shadow);
  border: 1px solid rgba(0,0,0,0.20);
  overflow: hidden;
  position: relative;
}


.window__titlebar {
  padding: 10px 12px;
  background: linear-gradient(180deg, #d9d9d9, #cfcfcf);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.window__title {
  font-weight: 800;
  font-size: 13px;
  color: #111;
}

.window__controls { display: inline-flex; gap: 6px; }

.winbtn {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #a8a8a8;
  border: 1px solid rgba(0,0,0,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.winbtn--min { background: #d6c45f; }
.winbtn--max { background: #6cc36c; }
.winbtn--close { background: #d36b6b; }

.winbtn:hover {
  filter: brightness(0.96);
}

.winbtn:active {
  filter: brightness(0.92);
}

.winbtn:focus-visible {
  outline: 2px solid rgba(0,0,0,0.55);
  outline-offset: 2px;
}

.window__content {
  padding: 26px;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
}

/* Some pages use window__body instead of window__content */
.window__body {
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
}

/* Window control easter eggs (JS-enhanced). */
.window--minimized .window__content,
.window--minimized .window__body {
  display: none;
}

.window--maximized {
  grid-column: 1 / -1;
}

.window--closing {
  animation: cg-shake 0.35s ease-in-out 2;
}

/* Explosion easter egg (red close button). */
.window--exploding {
  animation: cg-explode 650ms ease-out forwards;
}

/* Full-screen explosion overlay (fire). */
.cg-screen-boom {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  overflow: hidden;
  /* Keep a subtle tint without blacking out the page. */
  background: rgba(255, 255, 255, 0.06);
  animation: cg-boom-fade 2400ms ease-out forwards;
}

.cg-screen-boom__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cg-screen-boom__flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at var(--ox) var(--oy),
      rgba(255,255,255,0.92) 0%,
      rgba(255,210,140,0.62) 10%,
      rgba(255,120,40,0.26) 24%,
      rgba(0,0,0,0) 58%);
  mix-blend-mode: screen;
  animation: cg-boom-flash 780ms ease-out forwards;
}

body.cg-boom--shake {
  animation: cg-screen-shake 760ms ease-in-out;
}

.cg-explosion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.cg-explosion__particle {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pc);
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
  animation: cg-particle var(--pd) ease-out forwards;
}

@keyframes cg-explode {
  0% { transform: scale(1); opacity: 1; filter: none; }
  18% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(0.86) rotate(-1deg); opacity: 0; filter: blur(1px); }
}

@keyframes cg-particle {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--pr)) scale(0.25);
    opacity: 0;
  }
}

@keyframes cg-boom-flash {
  0% { opacity: 0; transform: scale(0.98); }
  10% { opacity: 1; }
  42% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.03); }
}

@keyframes cg-boom-fade {
  0% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cg-screen-shake {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  10% { transform: translate3d(-4px, 1px, 0) rotate(-0.35deg); }
  20% { transform: translate3d(4px, -2px, 0) rotate(0.35deg); }
  30% { transform: translate3d(-3px, 2px, 0) rotate(-0.25deg); }
  40% { transform: translate3d(3px, -1px, 0) rotate(0.25deg); }
  55% { transform: translate3d(-2px, 1px, 0) rotate(-0.18deg); }
  70% { transform: translate3d(2px, -1px, 0) rotate(0.18deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

.window--hidden {
  display: none;
}

@keyframes cg-shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.cg-toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: grid;
  gap: 8px;
}

.cg-toast {
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  max-width: 340px;
}

html.pixel .cg-toast {
  border-radius: 6px;
  font-family: var(--mono);
}

.h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: 0.2px; }
.h2 { margin: 16px 0 8px; font-size: 18px; }
.lead { margin: 0 0 12px; font-size: 16px; color: #1d1d1d; }
.small { font-size: 13px; }
.kicker {
  margin: 0 0 8px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.10);
}

.muted { color: var(--muted); }

.mono { font-family: var(--mono); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--space { justify-content: space-between; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

.hero__right { display: grid; gap: 12px; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }

.panel {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: var(--panel-2);
  padding: 20px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
}

/* Panel typography spacing */
.panel .h2 {
  margin: 0 0 10px;
}

.panel p {
  margin: 0;
}

.panel .list {
  margin-top: 6px;
}

.panel__title {
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 8px;
}

.list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link-tile {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
}

.link-tile:hover, .link-tile:focus {
  border-color: rgba(0,0,0,0.20);
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

.link-tile__label { font-weight: 900; display: block; }
.link-tile__hint { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.stat {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: var(--panel-2);
  padding: 10px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.08);
}

.stat__label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat__value { font-weight: 800; font-size: 13px; }

.card-list { display: grid; gap: 12px; }
.card {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: var(--panel-2);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.10);
}

.card__title { margin: 0 0 6px; font-size: 16px; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__body { margin: 0 0 8px; font-size: 13px; color: #1b1b1b; }
.card__meta { font-size: 12px; color: var(--muted); }

.post-preview__meta { display: inline-flex; align-items: center; gap: 10px; }
.chip {
  --chip-dot: var(--snes-yellow);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(#f0f0f0, #d8d8d8);
  color: #101010;
  border: 1px solid rgba(0,0,0,0.38);
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
}
.chip::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 8px;
  background: var(--chip-dot);
  border: 1px solid rgba(0,0,0,0.30);
}
.chip:nth-child(2) { --chip-dot: var(--snes-blue); }
.chip:nth-child(3) { --chip-dot: var(--snes-red); }

.chip--lead { --chip-dot: var(--snes-red); }
.chip--os { --chip-dot: var(--snes-blue); }
.chip--lang { --chip-dot: var(--snes-yellow); }
.chip--cloud { --chip-dot: var(--snes-green); }
.chip--iac { --chip-dot: #7aa7ff; }
.chip--cicd { --chip-dot: #ff8a3d; }
.chip--containers { --chip-dot: #49c2ff; }
.chip--monitor { --chip-dot: #6fdc6f; }
.chip--network { --chip-dot: #ffd24d; }
.chip--virt { --chip-dot: #c7c7ff; }
.chip--collab { --chip-dot: #ffb3d9; }
.chip--testing { --chip-dot: #b9ff6b; }
.chip--compliance { --chip-dot: #ff5a5f; }

.notice {
  /* Give the notice breathing room and keep its dashed border away from
     the rounded/overflow-hidden window edges. */
  margin: 12px 2px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,0.25);
  padding: 12px;
  background: rgba(255,255,255,0.55);
  position: relative;
  z-index: 2;
}

.notice__title { font-weight: 900; margin-bottom: 6px; }
.notice__body { font-size: 13px; color: #1b1b1b; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

/* Right column stacks panels with consistent spacing */
.two-col > aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Contact form action buttons stay on one line on desktop */
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 520px) {
  .form-actions { flex-wrap: wrap; }
}

/* Avatar images inside avatar frame */
.avatar__img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 13px;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
  display: grid;
  place-items: center;
}

/* Generic avatar frame wrapper (useful for non-52px portraits) */
.avatar-frame {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
  box-shadow: 3px 3px 0 rgba(0,0,0,0.10);
  overflow: hidden;
}

.avatar-frame--lg {
  width: 320px;
  height: 320px;
  border-radius: 18px;
}

@media (max-width: 720px) {
  .avatar-frame--lg {
    width: 240px;
    height: 240px;
  }
}

.avatar-frame--lg .avatar__img {
  border-radius: 18px;
}

.avatar--img {
  display: block;
  background: none;
  padding: 0;
  border-radius: 14px;
  object-fit: cover;
  image-rendering: auto;
}

.avatar__pixel {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  border: 1px solid rgba(0,0,0,0.15);
}

.profile__name { font-weight: 900; }
.profile__tag { font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile__links {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sep { opacity: 0.65; padding: 0 6px; }

.button-wall { display: grid; gap: 8px; }
.mini-btn {
  display: inline-block;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.75);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.filters { display: inline-flex; gap: 10px; align-items: center; }

.tag-row { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.post__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

/* Forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 900; font-size: 13px; }

.input, .textarea {
  color: #111;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.20);
}

.input:focus, .textarea:focus {
  outline: 3px solid rgba(43, 98, 215, 0.25);
  border-color: rgba(0,0,0,0.35);
}

/* Articles */
.article__nav { margin-bottom: 12px; }
.article__head { margin-bottom: 10px; }
.article__meta { font-size: 12px; color: var(--muted); }

.article__hero {
  margin: 12px 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.6);
}

.article__hero img {
  display: block;
  width: 100%;
  height: auto;
}

.post__thumb-link { display: block; margin-bottom: 10px; }

.post__thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  display: block;
}

.fn {
  font-size: 12px;
  vertical-align: super;
  margin-left: 2px;
  text-decoration: none;
}

.fn:hover { text-decoration: underline; }

.code {
  border-radius: 14px;
  padding: 12px;
  background: #111;
  color: #f2f2f2;
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.35);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

/* Resume */
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.resume {
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.12);
}

.resume__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 12px;
}

.resume__identity {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.resume__avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  object-fit: cover;
}

.resume__name { margin: 0; font-size: 24px; }
.resume__title { font-size: 13px; color: var(--muted); margin-top: 4px; }
.resume__contact { font-size: 12px; display: grid; gap: 4px; }

.resume__section { margin-top: 12px; }
.resume__h2 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px; }

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
}

.job { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.12); }
.job__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.job__role { font-weight: 900; }
.job__meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.job ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.job__roles {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.job-role {
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.job-role:first-child {
  padding-top: 0;
  border-top: 0;
}

.job-role__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.job-role__title {
  font-weight: 900;
}

.job-role__dates {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.edu__line { font-weight: 900; }


/* Footer */
.footer {
  margin-top: 18px;
  padding: 16px 0 30px;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer__line { font-size: 12px; }
.footer__inner a { color: var(--link); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.65);
}


/* Pixel / SNES mode (optional) */
html.pixel {
  --btn-red: #e94134;
  --btn-blue: #2b62d7;
  --btn-yellow: #f5c74d;
  --btn-green: #2aa85a;
  --bg-0: #f3f4f6;
  --bg-1: #dde0e6;
  --panel: #dedede;
  --panel-2: #f1f1f1;
  --text: #101010;
  --muted: #3f3f3f;
  --accent: #2b62d7;
  --accent-2: #b8d2ff;
  --link: #0a4bd6;
  --link-visited: #1a6f3c;
  --radius: 6px;
}

html.pixel body {
  font-family: var(--mono);
  background:
    radial-gradient(rgba(0,0,0,0.10) 1px, transparent 1px) 0 0 / 6px 6px,
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 2px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 1px, transparent 2px, transparent 10px),
    linear-gradient(135deg, var(--bg-0), var(--bg-1));
}

html.pixel .topbar {
  background: #2b2d33;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}


html.pixel .brand__tagline {
  font-family: var(--mono);
  letter-spacing: 0.2px;
}

html.pixel .logo-dot {
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 2px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.25);
}

html.pixel .window {
  border-radius: var(--radius);
  border: 2px solid rgba(0,0,0,0.78);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.26), 0 0 0 2px rgba(255,255,255,0.18), 0 16px 26px rgba(0,0,0,0.35);
}


html.pixel .window__titlebar {
  border-bottom: 2px solid rgba(0,0,0,0.55);
  background:
    linear-gradient(180deg, #f6f6f6, #d9d9d9);
}

html.pixel .window__title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

html.pixel .winbtn {
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.30);
}

html.pixel .btn {
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.18));
  box-shadow: 0 0 0 2px rgba(0,0,0,0.55);
}

html.pixel .btn:hover,
html.pixel .btn:focus {
  border-color: rgba(255,255,255,0.55);
}

html.pixel .btn--ghost {
  background: rgba(0,0,0,0.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.55);
}


html.pixel .badge {
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.25);
}

html.pixel .input:focus,
html.pixel .textarea:focus {
  outline: 3px solid rgba(43, 98, 215, 0.30);
}

html.pixel .code {
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 980px) {
  .topbar__inner { grid-template-columns: 1fr; }
  .controls { justify-content: flex-start; }
  .hero, .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .project-grid, .post-grid { grid-template-columns: 1fr; }
  .resume__header { grid-template-columns: 1fr; }
}

/* Keep the About layout two-column on typical laptop widths.
   Collapse only on smaller screens. */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  body { background: #fff; }
  .topbar, .footer, .resume-actions, .nav, .controls { display: none !important; }
  .layout { margin: 0; max-width: none; padding: 0; }
  .window { box-shadow: none; border: none; }
  .window__titlebar { display: none; }
  .window__content { padding: 0; background: #fff; }
  a { color: #000; text-decoration: none; }
  .resume { border: none; padding: 0; }
}


/* Pixel mode extras */
html.pixel .brand__avatar,
html.pixel .avatar--img,
html.pixel .mini-avatar,
html.pixel .resume__avatar {
  image-rendering: pixelated;
}



html.pixel .panel,
html.pixel .card,
html.pixel .stat,
html.pixel .link-tile,
html.pixel .mini-btn {
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.68);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

html.pixel .nav__link {
  border: 2px solid rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.18);
}

html.pixel .nav__link.is-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #0b0b0b;
}


.profile--compact {
  grid-template-columns: 56px 1fr;
}

.profile--compact .avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}


/* Pixel mode chip tuning */
html.pixel .chip {
  --chip-dot: var(--btn-yellow);
  background: linear-gradient(#f0f0f0, #d8d8d8);
  border: 2px solid rgba(0,0,0,0.55);
  color: #101010;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
html.pixel .chip::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
  background: var(--chip-dot);
  border: 2px solid rgba(0,0,0,0.35);
}
html.pixel .chip:nth-child(2) { --chip-dot: var(--btn-blue); }
html.pixel .chip:nth-child(3) { --chip-dot: var(--btn-red); }

html.pixel .chip--lead { --chip-dot: var(--btn-red); }
html.pixel .chip--os { --chip-dot: var(--btn-blue); }
html.pixel .chip--lang { --chip-dot: var(--btn-yellow); }
html.pixel .chip--cloud { --chip-dot: var(--btn-green); }
html.pixel .chip--iac { --chip-dot: var(--btn-blue); }
html.pixel .chip--cicd { --chip-dot: var(--btn-red); }
html.pixel .chip--containers { --chip-dot: var(--btn-blue); }
html.pixel .chip--monitor { --chip-dot: var(--btn-green); }
html.pixel .chip--network { --chip-dot: var(--btn-yellow); }
html.pixel .chip--virt { --chip-dot: var(--btn-blue); }
html.pixel .chip--collab { --chip-dot: var(--btn-red); }
html.pixel .chip--testing { --chip-dot: var(--btn-green); }
html.pixel .chip--compliance { --chip-dot: var(--btn-red); }

/* Identity layout without avatar */
.identity {
  align-items: flex-start;
}



/* Recipes */
.breadcrumbs {
  margin: 0 0 14px 0;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--link);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.filters--recipes {
  display: grid;
  gap: 10px;
  justify-items: end;
}
@media (min-width: 720px) {
  .filters--recipes {
    grid-template-columns: 1fr 180px auto;
    align-items: center;
  }
}
.meta--count {
  text-align: right;
  min-width: 90px;
  color: var(--muted);
}

.card--recipe .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 10px 0;
  color: var(--muted);
}
.card--recipe .badge {
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text);
}

.recipe__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.recipe__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px 0;
}
@media (min-width: 860px) {
  .recipe__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fact {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px 12px;
}
.fact__k {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.fact__v {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.list {
  margin: 10px 0 0 0;
  padding-left: 20px;
}
.list--ordered {
  padding-left: 22px;
}

/* Print */
@media print {
  .topbar, .footer, .window__controls, .btn, .skip-link { display: none !important; }
  body { background: #fff !important; }
  .window, .panel, .card { box-shadow: none !important; border: 1px solid #000 !important; }
}


/* About page portrait */
.avatar--lg {
  width: 320px;
  height: 320px;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 18px;
}

@media (max-width: 720px) {
  .avatar--lg {
    width: 240px;
    height: 240px;
  }
}


/* Bootstrap-assisted layout fixes */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip--sm {
  font-size: 11px;
  padding: 4px 10px;
}

.profile--about {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.profile--about .avatar--lg {
  justify-self: center;
}


/* Topbar button styling on dark chrome */
.topbar .btn {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.92);
  box-shadow: none;
}
.topbar .btn:hover, .topbar .btn:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.38);
}

/* Sleeker About page structure */
.about-sections {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.about-section {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.62);
}

.about-section__title {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 10px 0;
  color: rgba(0,0,0,0.72);
}

.kv {
  display: grid;
  gap: 8px;
}

.kv__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.kv__row:last-child { border-bottom: 0; }

.kv__k { font-weight: 900; color: rgba(0,0,0,0.70); }
.kv__v { color: rgba(0,0,0,0.92); }

@media (max-width: 520px) {
  .kv__row { grid-template-columns: 1fr; gap: 6px; }
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

@media (max-width: 880px) {
  .bullet-grid { grid-template-columns: 1fr; }
}

.bullet-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-top: 5px;
  border: 1px solid rgba(0,0,0,0.28);
  flex: 0 0 auto;
}

.dot--yellow { background: var(--snes-yellow); }
.dot--blue { background: var(--snes-blue); }
.dot--red { background: var(--snes-red); }
.dot--green { background: var(--snes-green); }

.bullet-item__title { font-weight: 900; margin: 0; }
.bullet-item__desc { margin: 2px 0 0 0; color: rgba(0,0,0,0.70); font-size: 13px; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 12px 72px 1fr;
  gap: 12px;
  align-items: baseline;
}

.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--chip-dot);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 1px 1px 0 rgba(0,0,0,0.12);
  justify-self: center;
  margin-top: 4px;
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -10px;
  width: 2px;
  background: rgba(0,0,0,0.08);
}

.timeline__when {
  font-weight: 900;
  color: rgba(0,0,0,0.60);
}

.timeline__what { margin: 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.70);
  font-size: 12px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.profile__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.profile__section + .profile__section { margin-top: 14px; }

.profile__section-title {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 10px 0;
  color: rgba(0,0,0,0.72);
}

.pill-row--compact { gap: 6px; }

.pill-row--compact .pill {
  font-size: 11px;
  padding: 5px 9px;
}

.kv--compact { gap: 6px; }

.kv--compact .kv__row {
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 5px 0;
}

@media (max-width: 520px) {
  .kv--compact .kv__row { grid-template-columns: 1fr; gap: 6px; }
}


/* Home: Latest Articles layout */
.post-grid--single {
    grid-template-columns: 1fr;
}

.post-card--compact .card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 900px) {
    .post-card--compact .card__body {
        grid-template-columns: 260px 1fr;
        column-gap: 18px;
        align-items: start;
    }

    .post-card--compact .post__thumb-link {
        grid-row: 1 / -1;
    }

    .post-card--compact .post__thumb {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }
}

.post-card--compact .post__title a {
    text-decoration: none;
}

.post-card--compact .post__title a:hover {
    text-decoration: underline;
}
