:root {
  --forest: #39483e;
  --forest-deep: #2e3b33;
  --paper: #eee7da;
  --paper-light: #f7f1e5;
  --paper-dark: #ddd1bc;
  --ink: #38342e;
  --muted: #625c51;
  --faint: #918674;
  --rule: #b7aa93;
  --rust: #a45f49;
  --sage: #687960;
  --ochre: #c5a96f;
  --sans: "DM Mono", monospace;
  --mono: "DM Mono", monospace;
  --pixel: "DM Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #d7cebd;
  font: 14px/1.7 var(--sans);
}

a { color: inherit; text-decoration: none; }

.site-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 274px minmax(0, 1fr);
}

.profile-rail {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 23px 22px 19px;
  overflow-y: auto;
  background-color: var(--forest);
  background-image: radial-gradient(#ffffff0b 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--paper);
}

.rail-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ffffff3b;
}

.wordmark {
  font: 700 17px var(--sans);
  letter-spacing: -.06em;
}

.wordmark span {
  color: var(--ochre);
  font: 8px var(--pixel);
  letter-spacing: 0;
}

.rail-file,
.rail-kicker,
.mono {
  font: 8px/1.6 var(--mono);
  letter-spacing: .055em;
}

.rail-file { color: #c1c5b8; }

.rail-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 27px 0 11px;
}

.pixel-avatar {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  place-items: center;
  border: 2px solid var(--paper);
  background: var(--ochre);
  box-shadow: 4px 4px 0 var(--forest-deep);
  color: var(--forest-deep);
  font: 700 22px/.9 var(--pixel);
}

.pixel-avatar svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }

.rail-kicker {
  margin: 0 0 5px;
  color: #c1c5b8;
}

.rail-identity h1 {
  margin: 0;
  font: 600 27px/1.05 var(--sans);
  letter-spacing: -.055em;
}

.rail-summary {
  margin: 7px 0 20px;
  color: #d4d5ca;
  font-size: 11px;
  line-height: 1.9;
}

.rail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  border: 1px solid #ffffff45;
}

.rail-stats div {
  display: grid;
  gap: 2px;
  padding: 9px 10px 8px;
}

.rail-stats div + div { border-left: 1px solid #ffffff45; }

.rail-stats strong {
  color: var(--ochre);
  font: 500 21px/1.1 var(--sans);
}

.rail-stats span {
  color: #c1c5b8;
  font: 7px var(--pixel);
}

.rail-linkedin {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 9px 10px;
  border: 1px solid var(--ochre);
  background: var(--ochre);
  color: var(--forest-deep);
  font: 9px var(--mono);
  font-weight: 500;
  transition: filter .15s;
}

.rail-linkedin:hover { filter: brightness(1.08); }

.site-nav { display: grid; gap: 4px; }

.nav-heading {
  margin: 0 0 5px;
  color: #aeb8a9;
  font-size: 7px;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 6px;
  color: #e5e3d8;
  font-size: 11px;
  transition: background .15s, color .15s;
}

.site-nav a:hover {
  background: #ffffff12;
  color: var(--ochre);
}

.site-nav a span {
  display: inline-grid;
  width: 25px;
  height: 23px;
  place-items: center;
  border: 1px solid #ffffff42;
  color: var(--ochre);
  font: 7px var(--pixel);
}

.rail-contact {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #ffffff3b;
  font-size: 9px;
}

.rail-contact .mono { color: #b6c0b1; font-size: 7px; }
.rail-contact strong { color: var(--paper-light); font-weight: 500; }
.rail-contact a { color: var(--ochre); overflow-wrap: anywhere; }
.menu-button { display: none; }

.terminal-screen {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  padding: 23px clamp(20px, 4vw, 52px) 18px;
  background-color: var(--paper);
  background-image: radial-gradient(#574b3d10 .8px, transparent .8px);
  background-size: 8px 8px;
}

.screenbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 35px;
  margin-bottom: 18px;
  padding: 0 2px 11px;
  border-bottom: 1px solid var(--ink);
}

.screen-path { color: var(--muted); }
.screen-path b { padding: 0 4px; color: var(--rust); font-weight: 400; }
.screen-status { color: var(--sage); font-size: 7px; }
.screen-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--sage); }

.panel {
  margin-bottom: 17px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--paper-dark);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ink);
  background: #e6dece;
  color: var(--muted);
  font-size: 7px;
}

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  gap: 28px;
  padding: 25px 24px 22px;
}

.pixel-label {
  margin: 0 0 10px;
  color: var(--rust);
  font: 7px/1.7 var(--pixel);
}

.profile-story h2 {
  margin: 0 0 13px;
  font: 600 clamp(29px, 4vw, 44px)/1.07 var(--sans);
  letter-spacing: -.055em;
}

.profile-lead {
  max-width: 510px;
  margin: 0 0 13px;
  color: var(--sage);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.profile-copy {
  max-width: 560px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.status-card {
  align-self: start;
  border: 1px solid var(--rule);
  background: #eee7da;
}

.status-card-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 9px;
  border-bottom: 1px solid var(--rule);
  color: var(--sage);
  font-size: 7px;
}

.status-card dl { margin: 0; padding: 3px 10px 8px; }
.status-card dl div { padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.status-card dl div:last-child { border-bottom: 0; }
.status-card dt { color: var(--rust); font: 7px var(--pixel); }
.status-card dd { margin: 3px 0 0; color: var(--ink); font-size: 10px; line-height: 1.6; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 20px 17px;
}

.section-heading .pixel-label { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font: 600 26px/1.15 var(--sans); letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 2px; color: var(--faint); font-size: 9px; line-height: 1.65; text-align: right; }

.mission-list { padding: 0 20px; }

.mission {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 17px 0 19px;
  border-top: 1px dashed var(--rule);
}

.mission-aside { display: grid; align-content: start; gap: 9px; }
.mission-date { color: var(--rust); font-size: 7px; }

.mission-current {
  width: fit-content;
  padding: 2px 5px;
  border: 1px solid var(--sage);
  color: var(--sage);
  font: 6px var(--pixel);
}

.mission-tools {
  padding: 7px 8px;
  border-left: 2px solid var(--sage);
  background: #e9e3d6;
  color: var(--muted);
  font: 7px/1.8 var(--mono);
  overflow-wrap: anywhere;
}

.mission-tools b { color: var(--rust); font-weight: 400; }
.mission-body h3 { margin: 0 0 2px; font: 600 15px/1.4 var(--sans); letter-spacing: -.02em; }
.mission-body h3 i { color: var(--rust); font-style: normal; }
.company { margin: 0 0 8px; color: var(--sage); font-size: 10px; font-weight: 600; }

.mission-body ul {
  margin: 0;
  padding-left: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.mission-body li { padding-left: 2px; margin: 2px 0; }
.mission-body li::marker { color: var(--rust); }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.inventory-item {
  position: relative;
  min-height: 142px;
  padding: 13px;
  border: 1px solid var(--rule);
  background: #f1ebdf;
}

.item-icon {
  display: grid;
  width: 27px;
  height: 27px;
  margin: 11px 0 8px;
  place-items: center;
  border: 1px solid var(--forest);
  background: #dce0d4;
  color: var(--forest);
}

.item-icon svg { display: block; width: 22px; height: 22px; }

.inventory-item:nth-child(2) .item-icon { background: #ead9cd; color: var(--rust); }
.inventory-item:nth-child(3) .item-icon { background: #e8dfc9; color: #816b42; }
.inventory-item h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.education-list { padding: 0 20px 11px; }

.education-list article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px dashed var(--rule);
}

.education-year { color: var(--rust); font-size: 7px; }
.education-list h3 { margin: 0 0 3px; font-size: 12px; font-weight: 600; }
.education-list p { margin: 0; color: var(--muted); font-size: 9px; }
.education-list strong { color: var(--sage); font: 500 18px var(--sans); text-align: right; }
.education-list small { color: var(--faint); font: 7px var(--mono); }

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 20px 26px;
}

.contact-content h2 { margin: 0; font: 600 29px/1.12 var(--sans); letter-spacing: -.05em; }
.contact-links { display: grid; justify-items: start; gap: 8px; color: var(--muted); font-size: 10px; }
.contact-email { padding-bottom: 3px; border-bottom: 1px solid var(--rust); color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.contact-email span { color: var(--rust); }

.screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px;
  color: var(--faint);
  font-size: 7px;
}

.screen-footer a { color: var(--rust); }

@media (max-width: 980px) {
  .site-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .profile-rail { padding-right: 17px; padding-left: 17px; }
  .profile-content { grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; padding: 20px 18px; }
  .mission-list { padding: 0 17px; }
  .mission { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 720px) {
  .site-shell { display: block; }

  .profile-rail {
    position: relative;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding: 12px 5% 13px;
    overflow: visible;
  }

  .rail-top { grid-column: 1; padding: 0; border: 0; }
  .rail-file,.rail-summary,.rail-stats,.rail-contact { display: none; }
  .rail-identity { grid-column: 1; grid-row: 2; gap: 9px; margin: 11px 0 0; }
  .pixel-avatar { width: 58px; height: 58px; flex-basis: 58px; box-shadow: 2px 2px 0 var(--forest-deep); }
  .pixel-avatar svg { width: 100%; height: 100%; }
  .rail-kicker { margin: 0 0 2px; font-size: 6px; }
  .rail-identity h1 { font-size: 16px; }
  .rail-linkedin {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin: 10px 0 0;
    padding: 7px 9px;
    font-size: 8px;
  }

  .menu-button {
    display: block;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding: 8px 9px;
    border: 1px solid var(--ochre);
    background: var(--ochre);
    color: var(--forest-deep);
    font: 7px var(--pixel);
  }

  .menu-button span { color: var(--forest-deep); }

  .site-nav {
    position: absolute;
    z-index: 8;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    gap: 3px;
    padding: 12px 5% 15px;
    border-top: 1px solid #ffffff2c;
    background: var(--forest);
  }

  .site-nav.open { display: grid; }
  .site-nav a { font-size: 10px; }
  .terminal-screen { width: 100%; padding: 15px 4% 12px; }
  .screenbar { margin-bottom: 13px; }
  .screen-path { font-size: 7px; }
  .screen-status { font-size: 6px; }
  .panel { margin-bottom: 13px; box-shadow: 3px 3px 0 var(--paper-dark); }
  .panel-top { padding: 8px 9px; font-size: 6px; }
  .profile-content { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 15px 15px; }
  .profile-story h2 { font-size: clamp(29px, 8vw, 38px); }
  .status-card { display: grid; grid-template-columns: 1fr 1fr; }
  .status-card-head { grid-column: 1 / -1; }
  .status-card dl { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .section-heading { padding: 16px 14px 14px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading > p { font-size: 8px; }
  .mission-list { padding: 0 14px; }
  .mission { grid-template-columns: 1fr; gap: 7px; padding: 15px 0; }
  .mission-aside { grid-template-columns: 1fr; gap: 6px; }
  .mission-tools { max-width: 100%; }
  .mission-body h3 { font-size: 14px; }
  .inventory-grid { gap: 8px; padding: 0 14px 14px; }
  .inventory-item { min-height: 0; padding: 10px; }
  .item-skills { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
  .education-list { padding: 0 14px 8px; }
  .education-list article { grid-template-columns: minmax(0, 1fr) 62px; gap: 5px 8px; }
  .education-year,.education-list article > div { grid-column: 1; }
  .education-list strong { grid-column: 2; grid-row: 1 / 3; }
  .contact-content { grid-template-columns: 1fr; gap: 14px; padding: 17px 14px 20px; }
  .contact-content h2 { font-size: 26px; }
  .screen-footer { font-size: 6px; }
}

@media (max-width: 380px) {
  .screen-path { font-size: 6px; }
  .screen-status { font-size: 5px; }
  .panel-top { flex-wrap: wrap; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-linkedin,.site-nav a { transition: none; }
}

body { font-size: 16px; }
.rail-kicker { font-size: 9px; }
.rail-summary { font-size: 13px; }
.rail-stats span { font-size: 8px; }
.nav-heading { font-size: 8px; }
.site-nav a { font-size: 13px; }
.site-nav a span { font-size: 8px; }
.rail-contact { font-size: 11px; }
.rail-contact .mono { font-size: 8px; }
.screen-path { font-size: 9px; }
.screen-status { font-size: 8px; }
.panel-top { font-size: 9px; }
.profile-lead { font-size: 17px; }
.profile-copy { font-size: 13px; }
.status-card-head { font-size: 9px; }
.status-card dt { font-size: 8px; }
.status-card dd { font-size: 12px; }
.pixel-label { font-size: 8px; }
.section-heading h2 { font-size: 30px; }
.section-heading > p { font-size: 11px; }
.mission-date { font-size: 9px; }
.mission-current { font-size: 7px; }
.mission-tools { font-size: 9px; }
.mission-body h3 { font-size: 18px; }
.company { font-size: 12px; }
.mission-body ul { font-size: 13px; }
.inventory-item h3 { font-size: 14px; }
.education-year { font-size: 11px; }
.education-list h3 { font-size: 14px; }
.education-list p { font-size: 12px; }
.education-list small { font-size: 8px; }
.contact-links { font-size: 12px; }
.contact-email { font-size: 18px; }
.screen-footer { font-size: 8px; }

@media (max-width: 720px) {
  .menu-button { font-size: 8px; }
  .site-nav a { font-size: 12px; }
  .screen-path { font-size: 7px; }
  .screen-status { font-size: 7px; }
  .panel-top { font-size: 7px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading > p { font-size: 10px; }
  .screen-footer { font-size: 7px; }
}

@media (max-width: 380px) {
  .screen-path { font-size: 6px; }
  .screen-status { font-size: 6px; }
  .panel-top { font-size: 6px; }
}

@media (max-width: 520px) {
  .inventory-grid { grid-template-columns: 1fr; }
}

.mission-date {
  color: #754936;
  font: 500 10px/1.5 var(--mono);
}

.mission-current { font-size: 8px; }

.mission-tools {
  padding: 9px 10px;
  border-left-width: 3px;
  background: #e4dac7;
  color: #39352e;
  font: 500 11px/1.65 var(--sans);
}

.inventory-item {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  border-color: #b7aa93;
  background: linear-gradient(135deg, #f8f3e9, #eee6d8);
  box-shadow: 3px 3px 0 var(--paper-dark);
}

.inventory-item::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: var(--rust);
  box-shadow: -7px 7px 0 var(--paper-dark);
  content: "";
}

.item-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 12px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--rule);
}

.item-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  box-shadow: 2px 2px 0 var(--sage);
}

.inventory-item h3 {
  margin: 0;
  font-size: 15px;
}

.item-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0 46px;
  padding: 0;
  list-style: none;
}

.item-skills li {
  padding: 3px 6px;
  border: 1px dashed #b7aa93;
  background: #f7f1e5;
  color: #514a40;
  font: 10px/1.45 var(--mono);
}

.education-year {
  width: fit-content;
  padding: 5px 8px;
  border-left: 2px solid var(--rust);
  background: #e8dfd0;
  color: #754936;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
