:root {
  color-scheme: dark;
  --bg: #06101a;
  --bg-deep: #0a1a28;
  --panel: rgba(7, 22, 35, 0.9);
  --panel-border: rgba(93, 226, 209, 0.32);
  --text: #d8f1f2;
  --muted: #93b8be;
  --accent: #5de2d1;
  --accent-2: #8ae84d;
  --accent-3: #7db6ff;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(93, 226, 209, 0.14), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(125, 182, 255, 0.08), transparent 18%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  padding-bottom: 2rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 226, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 226, 209, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(138, 232, 77, 0.08), transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(93, 226, 209, 0.08), transparent 18%);
}

h1,
h2,
h3,
h4,
.eyebrow,
.status-strip {
  font-family: "IBM Plex Mono", monospace;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.subhead {
  margin-top: 0.35rem;
  color: var(--muted);
  /* max-width: 42ch; */
  line-height: 1.5;
  text-align: left;
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.topbar {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
  align-items: flex-end;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-strip span {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(93, 226, 209, 0.18);
  background: rgba(5, 14, 23, 0.5);
  border-radius: 999px;
}

.status-strip strong {
  color: var(--accent);
  font-weight: 600;
}

.resume-topbar {
  align-items: center;
  padding-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 800px;
}

.resume-topbar h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.resume-topbar .subhead {
  font-size: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

.resume-panel {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.92), var(--panel));
  box-shadow: 0 14px 32px var(--shadow);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.resume-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(138, 232, 77, 0.08);
}

.resume-header,
.resume-section {
  position: relative;
  z-index: 1;
}

.resume-header {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.resume-header h2,
.resume-section h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  border-bottom: 1px solid rgba(93, 226, 209, 0.12);
  padding-bottom: 0.45rem;
  margin-bottom: 0.9rem;
}

.resume-header p,
.resume-list,
.resume-bullets {
  color: var(--muted);
  line-height: 1.65;
}

.resume-link-row {
  margin-top: 0.4rem;
}

.resume-link-row a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(93, 226, 209, 0.25);
  background: rgba(4, 18, 30, 0.8);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  display: inline-block;
}

.resume-link-row a:hover,
.resume-link-row a:focus-visible {
  color: var(--accent);
  border-color: rgba(93, 226, 209, 0.65);
}

.resume-section {
  margin-bottom: 1.45rem;
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.resume-list li {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(93, 226, 209, 0.18);
  border-radius: 12px;
  background: rgba(5, 16, 25, 0.58);
}

.resume-job-title,
.resume-job-meta {
  display: block;
}

.resume-job-title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resume-job-meta {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.resume-bullets {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.resume-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.resume-skill {
  background: rgba(138, 232, 77, 0.1);
  border: 1px solid rgba(138, 232, 77, 0.42);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-family: "IBM Plex Mono", monospace;
}

/* Adjusting the alignment of <h1> and .subhead to have left indent */
header h1 {
  text-align: left; /* Align the title to the left */
  margin-left: 0px; /* Add left indent */
  font-size: 2.5rem; /* Maintain the font size */
}

.subhead {
  text-align: left; /* Align the subhead to the left */
  margin-left: 0px; /* Add left indent */
  font-size: 1.5rem; /* Maintain the font size */
}

@media (max-width: 900px) {
  .resume-topbar {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .status-strip {
    justify-content: flex-start;
  }

  .resume-list li {
    padding: 0.75rem;
  }

  .resume-skill {
    width: 100%;
    border-radius: 10px;
  }
}

@media print {
  :root {
    color-scheme: light;
    --text: #111111;
    --muted: #2b2b2b;
    --accent: #111111;
    --accent-2: #111111;
    --accent-3: #111111;
    --panel-border: #cfcfcf;
  }

  @page {
    margin: 14mm;
    size: A4;
  }

  body {
    background: #ffffff !important;
    color: var(--text);
    min-height: 0;
    padding: 0;
    font-size: 11pt;
    line-height: 1.45;
  }

  body::before,
  .backdrop-grid {
    display: none !important;
  }

  .topbar,
  .resume-topbar,
  .resume-panel {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .topbar,
  .resume-topbar {
    display: block;
    padding: 0 0 8mm;
    border-bottom: 1px solid #d8d8d8;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .resume-topbar h1,
  .resume-topbar .subhead,
  .status-strip,
  .status-strip strong,
  .eyebrow,
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  a,
  .resume-job-title,
  .resume-job-meta,
  .resume-skill {
    color: #111111 !important;
  }

  .status-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5mm;
    margin-top: 3.5mm;
    font-size: 9.5pt;
  }

  .status-strip span,
  .resume-list li,
  .resume-skill,
  .resume-link-row a,
  .resume-panel,
  .resume-panel::after {
    background: transparent !important;
    border-color: #d8d8d8 !important;
    box-shadow: none !important;
  }

  .resume-panel {
    border-radius: 0;
    padding: 8mm 0 0;
    overflow: visible;
  }

  .resume-link-row a {
    padding: 0;
    border: 0;
    text-decoration: underline;
  }

  .resume-section,
  .resume-list li,
  .resume-bullets,
  .resume-header {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
