:root {
  --ink: #080808;
  --paper: #fff7d6;
  --hot: #ff2aa3;
  --cyan: #00d8ff;
  --green: #38ff6b;
  --blue: #2437ff;
  --shadow: #111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  background-color: #13002a;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

a {
  color: #001aff;
  font-weight: 800;
}

a:visited {
  color: #8b008b;
}

.page-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto;
  border: 5px ridge var(--cyan);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.site-header {
  padding: 20px 16px 18px;
  text-align: center;
  color: white;
  border-bottom: 4px double white;
  background:
    linear-gradient(135deg, #101010 0%, #123f3a 52%, #051f42 100%);
  text-shadow: 3px 3px 0 #000;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  padding-bottom: 6px;
  color: #b00068;
  font-family: "Courier New", monospace;
  border-bottom: 3px dotted #111;
}

h3 {
  color: #0521ba;
}

.subtitle {
  margin-bottom: 0;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #050505;
}

.main-nav a,
.download-link {
  min-height: 40px;
  padding: 9px 14px;
  color: white;
  font-weight: 900;
  text-decoration: none;
  border: 3px outset #f7f7f7;
  background: #0055cc;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
}

.download-link {
  display: inline-block;
  margin-top: 4px;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  padding: 14px;
}

.sidebar,
.content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.panel {
  padding: 14px;
  border: 4px ridge #777;
  background: #fffdf0;
}

.profile-card {
  text-align: center;
}

.avatar {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
  place-items: center;
  color: white;
  font-family: "Courier New", monospace;
  font-size: 3rem;
  font-weight: 900;
  border: 4px double white;
  background:
    linear-gradient(135deg, transparent 25%, rgba(255,255,255,0.2) 25% 50%, transparent 50% 75%, rgba(255,255,255,0.2) 75%),
    #2020d8;
  background-size: 18px 18px;
  image-rendering: pixelated;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  text-align: left;
}

dt {
  font-weight: 900;
}

dd {
  margin: 0;
}

.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  overflow-wrap: anywhere;
}

.counter-card {
  text-align: center;
}

.counter-display {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 12px;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: #050505;
  border: 3px inset #999;
}

.counter-note {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.ticker {
  overflow: hidden;
  padding: 8px;
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-weight: 900;
  border: 3px inset #999;
  background: #111;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  animation: slide 14s linear infinite;
  white-space: nowrap;
}

.hero {
  font-size: 1.08rem;
}

.stamp {
  display: inline-block;
  padding: 5px 8px;
  color: white;
  font-family: "Courier New", monospace;
  font-size: 0.84rem;
  background: #111;
}

.timeline {
  display: grid;
  gap: 10px;
}

.experience-item {
  padding: 12px;
  border: 3px dashed #333;
  background: #d7ffff;
}

.project-grid {
  display: grid;
  gap: 10px;
}

.project-item {
  padding: 12px;
  border: 3px dashed #333;
  background: #f7ffd7;
}

.project-item h3,
.project-item p {
  margin-bottom: 8px;
}

.experience-item h3,
.experience-item p {
  margin-bottom: 6px;
}

.experience-item ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 22px;
}

.company {
  color: #111;
  font-weight: 900;
}

.date-range {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.skill-board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.skill-board span {
  padding: 8px 10px;
  color: #101010;
  font-family: "Courier New", monospace;
  font-weight: 900;
  border: 3px outset #f6f6f6;
  background: #ffff66;
  box-shadow: 2px 2px 0 #111;
}

.skill-groups {
  display: grid;
  gap: 14px;
}

.skill-groups article {
  padding: 10px;
  border: 3px dashed #333;
  background: #f7ffd7;
}

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

.language-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.link-list {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.site-footer {
  padding: 14px;
  color: white;
  text-align: center;
  font-family: "Courier New", monospace;
  font-weight: 900;
  background: #050505;
}

.site-footer p {
  margin: 0;
}

@keyframes slide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    box-shadow: none;
  }

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

  .split-panel {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    flex: 1 1 130px;
    text-align: center;
  }
}
