/* ==========================================================================
   Zero — site styles
   ========================================================================== */

:root {
  /* Dark neon: violet-black ground, crimson/magenta accent, terminal green detail. */
  color-scheme: dark;

  --bg: #0a0710;
  --surface: #130c1b;
  --surface-2: #1a1124;
  --text: #f0e9f5;
  --muted: #a898b8;
  --border: #2b1f3a;
  --accent: #ff4fae;
  --accent-hover: #ff85c8;
  --accent-strong: #d1196f;
  --accent-soft: #2a0e24;
  --term: #3ef0a0;
  --term-soft: #0b2a1f;
  --good: #3ef0a0;
  --good-soft: #0b2a1f;
  --closed-soft: #1c1426;
  --danger: #ff6b6b;
  --on-accent: #ffffff;

  --grad-1: linear-gradient(135deg, #7a0d35 0%, #ff2fb3 100%);
  --grad-2: linear-gradient(135deg, #2c0f55 0%, #c026d3 100%);
  --grad-3: linear-gradient(135deg, #04261f 0%, #14b886 100%);
  --grad-4: linear-gradient(135deg, #ff2fb3 0%, #3a1670 55%, #0d6b5a 100%);
  --glow: 0 0 0 1px rgba(255, 79, 174, 0.35), 0 0 48px rgba(255, 47, 179, 0.28);

  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 0 0 1px rgba(255, 79, 174, 0.25), 0 16px 40px rgba(0, 0, 0, 0.5);
  --max-width: 1080px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Reset ------------------------------------------------------------------ */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--term);
}

.nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 0 24px rgba(209, 25, 111, 0.35);
}

.btn-primary:hover {
  background: #e62a86;
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

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

/* Inline icons */
.icon {
  flex-shrink: 0;
}

.hero-actions.resume-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 120px 0 96px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(62, 240, 160, 0.25);
  border-radius: 6px;
  background: var(--term-soft);
  color: var(--term);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.eyebrow::before {
  content: "> ";
  opacity: 0.6;
}

.eyebrow.cursor::after {
  content: "_";
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow.cursor::after {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero with portrait */
.hero-split {
  text-align: left;
  padding: 88px 0 80px;
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    ".    photo"
    "tag  photo"
    "text photo"
    ".    photo";
  align-items: center;
  column-gap: 56px;
}

.hero-tag {
  grid-area: tag;
}

.hero-text {
  grid-area: text;
}

.hero-split p {
  margin: 0 0 36px;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

.portrait {
  grid-area: photo;
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 270px;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--glow);
}

.portrait figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(10, 7, 16, 0.75);
  color: var(--term);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

@media (max-width: 860px) {
  .hero-split .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "tag"
      "photo"
      "text";
  }

  .portrait {
    justify-self: center;
    max-width: 170px;
    margin-bottom: 36px;
  }
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin: 0;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Cards / grid ----------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-cover {
  aspect-ratio: 16 / 9;
  background: var(--grad-1);
}

.card-cover.alt-1 {
  background: var(--grad-2);
}

.card-cover.alt-2 {
  background: var(--grad-3);
}

.card-cover.alt-3 {
  background: var(--grad-4);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.card-body h3 {
  font-size: 1.2rem;
}

.card-body h3 a {
  color: var(--text);
}

.card-body h3 a:hover {
  color: var(--accent);
}

.card-body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  font-family: var(--font-mono);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.tag {
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
}

.read-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Scanline texture over every cover */
.card-cover,
.link-tile-cover {
  position: relative;
}

.card-cover::after,
.link-tile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* Feature list (index) --------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 1.3rem;
}

.feature h3 {
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Blog page -------------------------------------------------------------- */

.page-header {
  padding: 88px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-header p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.featured {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 56px;
}

.featured .card-cover {
  aspect-ratio: auto;
  height: 14px;
  min-height: 0;
}

.featured .card-body {
  justify-content: center;
  padding: 40px;
}

.featured h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.featured h2 a {
  color: var(--text);
}

.featured h2 a:hover {
  color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter:hover,
.filter.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Newsletter ------------------------------------------------------------- */

.newsletter {
  padding: 56px 40px;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--grad-1);
  color: var(--on-accent);
  text-align: center;
}

.newsletter h2 {
  font-size: 1.75rem;
}

.newsletter p {
  margin: 0 auto 28px;
  max-width: 460px;
  opacity: 0.85;
}

.newsletter form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
}

.newsletter input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.4);
}

.newsletter button {
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter button:hover {
  background: var(--surface);
}

/* Link tiles (index) ----------------------------------------------------- */

.explore {
  padding-top: 0;
}

.link-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.link-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.25);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  color: var(--text);
}

.link-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.link-tile-cover {
  height: 14px;
  background: var(--grad-1);
}

.link-tile-cover.alt-1 {
  background: var(--grad-2);
}

.link-tile-cover.alt-2 {
  background: var(--grad-3);
}

.link-tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.link-tile-label {
  font-family: var(--font-mono);
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-tile h2 {
  font-size: 1.5rem;
}

.link-tile p {
  margin: 0 0 24px;
  color: var(--muted);
}

.link-tile-cta {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
}

.link-tile-cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.link-tile:hover .link-tile-cta span {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .link-tiles {
    grid-template-columns: 1fr;
  }
}

/* Food Finder ------------------------------------------------------------ */

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

.food-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.food-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.food-item:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--text);
  transform: translateX(4px);
}

.food-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.food-item-agency {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.food-item h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.food-item p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.food-item .food-item-phone {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.food-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.food-item-hours {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.food-item-go {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .food-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .food-item-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .food-item-go {
    margin-left: auto;
  }
}

.status {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-open {
  background: var(--good-soft);
  color: var(--good);
}

.status-closed {
  background: var(--closed-soft);
  color: var(--muted);
}

.status-online {
  background: var(--accent-soft);
  color: var(--accent);
}

.food-gov {
  padding-top: 0;
}

.food-note {
  max-width: 720px;
  margin: 32px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Blog post ---------------------------------------------------------------- */

.post-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.post-container {
  max-width: 760px;
}

.post-back {
  display: table;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-back:hover {
  color: var(--accent);
}

.post-header h1 {
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.prose {
  padding-block: 48px 96px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p,
.prose ul {
  margin-bottom: 0;
}

.prose .lede {
  color: var(--text);
  font-size: 1.2rem;
}

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0;
  font-size: 1.5rem;
  text-wrap: balance;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 79, 174, 0.4);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose .sources {
  padding-left: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose .sources li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
}

.prose code {
  padding: 0.1em 0.4em;
  border: 1px solid rgba(62, 240, 160, 0.2);
  border-radius: 5px;
  background: var(--term-soft);
  color: var(--term);
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

/* Blog post extras ------------------------------------------------------- */

.prose ol {
  padding-left: 1.4em;
}

.prose ol li + li {
  margin-top: 0.4em;
}

.prose ol li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
}

.post-related {
  padding: 14px 18px;
  border-left: 3px solid var(--term);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card .card-body h3 {
  font-size: 1.1rem;
}

.post-card .card-cover {
  display: block;
  aspect-ratio: auto;
  height: 14px;
}

.card-cover.alt-2-violet {
  background: var(--grad-2);
}

.card-cover.alt-green {
  background: var(--grad-3);
}

/* Color bars on Food Finder and resume cards ------------------------------- */

.food-item,
.resume-sidebar .resume-block,
.stat,
.resume-main .resume-item {
  position: relative;
  overflow: hidden;
}

.food-item::before,
.resume-sidebar .resume-block::before,
.stat::before,
.resume-main .resume-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  pointer-events: none;
}

/* Food Finder: scanlined bar, magenta for directories, green for government */
.food-item {
  padding-top: 38px;
}

.food-item::before {
  height: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    var(--grad-1);
}

#food-results .food-item::before {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    var(--grad-3);
}

/* Resume: slim, clean bars color-coded by section */
.resume-sidebar .resume-block::before,
.stat::before,
.resume-main .resume-item::before {
  height: 14px;
}

/* Room for the 14px bar above the content */
.resume .resume-sidebar .resume-block {
  padding-top: 38px;
}

.resume .stat {
  padding-top: 34px;
}

.resume-main .resume-item {
  padding-top: 42px;
}

.resume-main .resume-item::before {
  background: var(--grad-1);
}

.resume-projects .resume-item::before {
  background: var(--grad-2);
}

.resume-sidebar .resume-block::before,
.stat::before {
  background: var(--grad-4);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .featured .card-cover {
    height: 14px;
  }

  .featured .card-body {
    padding: 28px;
  }

  .newsletter {
    padding: 40px 20px;
  }

  .newsletter form {
    flex-direction: column;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}

/* Resume page ------------------------------------------------------------ */

.resume-tagline {
  font-weight: 500;
}

.resume {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.resume-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resume-sidebar .resume-block {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.resume-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.resume-heading {
  font-family: var(--font-mono);
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-summary {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.75;
}

.skill-group + .skill-group {
  margin-top: 18px;
}

.skill-group h3 {
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

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

.chips li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.plain-list li + li {
  margin-top: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.resume-item {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.resume-item + .resume-item {
  margin-top: 16px;
}

.resume-sidebar .resume-item {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.resume-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.resume-item h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.resume-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.date-pill {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.resume-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.95rem;
}

.resume-list li + li {
  margin-top: 12px;
}

.resume-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

  .resume-sidebar {
    position: static;
    order: 2;
  }
}

@media (max-width: 768px) {
  .resume-item {
    padding: 20px;
  }

  .resume-main .resume-item {
    padding-top: 34px;
  }

  .resume-item-header {
    flex-direction: column;
    gap: 8px;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  .resume-sidebar {
    position: static;
  }
}
