:root {
  --ink: #0c0f14;
  --panel: #12161d;
  --panel-2: #171c25;
  --line: #262d3a;
  --text: #e7eaef;
  --muted: #8b93a3;
  --amber: #e8a13c;
  --amber-dim: #8a611f;
  --teal: #57d9c4;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --pad-top: env(safe-area-inset-top, 0px);
  --pad-bot: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(64px + var(--pad-top));
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  padding-top: var(--pad-top);
  padding-bottom: var(--pad-bot);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* background grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%,
      black 40%,
      transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--pad-top);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.navlinks a:hover {
  color: var(--amber);
}

.navtoggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navtoggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 720px) {
  .navlinks {
    position: fixed;
    top: calc(60px + var(--pad-top));
    right: 0;
    height: calc(100vh - 60px - var(--pad-top));
    width: 220px;
    background: var(--panel);
    border-left: 1px solid var(--line);
    flex-direction: column;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    font-size: 14px;
  }

  .navlinks.open {
    transform: translateX(0);
  }

  .navtoggle {
    display: flex;
  }
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadein 0.25s ease;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: 76px 0;
}

section.page {
  padding-top: 44px;
}

#top.page {
  padding-top: 0;
}

.navlinks a.active {
  color: var(--amber);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 34px;
  color: var(--text);
}

p {
  color: var(--text);
}

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

/* hero */
.hero {
  padding: 64px 0 60px;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.status {
  font-size: 12px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status .bar {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--amber);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 60ch;
}

.hero-lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 15px;
  color: #c3c8d1;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.btn.primary {
  background: var(--amber);
  color: #181206;
  border-color: var(--amber);
  font-weight: 600;
}

.btn.primary:hover {
  background: #f4b559;
}

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

/* ticker */
.ticker {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  overflow: hidden;
}

.ticker-head {
  font-size: 11px;
  color: var(--muted);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

.ticker-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.ticker-row:last-child {
  border-bottom: none;
}

.ticker-row .k {
  color: #c3c8d1;
}

.ticker-row .v {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ticker-row .u {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  min-width: 64px;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 44px;
}

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

.about-grid p {
  font-size: 15px;
  color: #c3c8d1;
  max-width: 62ch;
}

.about-grid p+p {
  margin-top: 14px;
}

.stack-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 20px;
}

.stack-box .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.stack-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.stack-line:last-child {
  border-bottom: none;
}

.stack-line .n {
  color: var(--text);
}

.stack-line .y {
  color: var(--amber);
}

/* skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.skill-mod {
  background: var(--panel);
  padding: 20px;
}

.skill-mod h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 12px;
}

.skill-mod ul {
  list-style: none;
  font-size: 13px;
  color: #c3c8d1;
}

.skill-mod li {
  padding: 4px 0;
  position: relative;
  padding-left: 14px;
}

.skill-mod li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* projects as log entries */
.log {
  border-top: 1px solid var(--line);
}

.log-entry {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
}

@media (max-width: 720px) {
  .log-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.log-meta {
  font-size: 11px;
  color: var(--muted);
}

.log-meta .idx {
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}

.log-meta .url {
  color: var(--amber);
  display: block;
  margin-top: 8px;
  word-break: break-all;
}

.log-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text);
  margin-bottom: 4px;
}

.log-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.log-body ul {
  list-style: none;
  font-size: 13.5px;
  color: #c3c8d1;
}

.log-body li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.log-body li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 6px;
}

.tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  color: var(--teal);
  border: 1px solid var(--amber-dim);
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(232, 161, 60, 0.06);
}

/* experience timeline */
.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--amber), var(--line));
}

.tl-item {
  position: relative;
  padding-bottom: 30px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--amber);
}

.tl-item .when {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
}

.tl-item ul {
  list-style: none;
  font-size: 13.5px;
  color: #c3c8d1;
}

.tl-item li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.tl-item li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 6px;
}

/* education / certs */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

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

.cardline {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.cardline h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 4px;
}

.cardline .sub {
  font-size: 12px;
  color: var(--muted);
}

.cert-item {
  font-size: 13.5px;
  color: #c3c8d1;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.cert-item:last-child {
  border-bottom: none;
}

/* footer/contact */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 calc(50px + var(--pad-bot));
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

footer h2 {
  margin-bottom: 14px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.contact-links a:hover {
  color: var(--amber);
}

.foot-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
}

.hero-top .location {
  margin-left: auto;
  text-align: right;
}

/* Remove the focus outline from headings.
   The JavaScript focuses the current page heading on navigation. */
h1:focus,
h1:focus-visible,
h2:focus,
h2:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}