/* ==========================================================================
   nelsonhillyer.com — a classic personal homepage, circa 1999–2002.
   Web-safe fonts, beveled buttons, tables, a starfield, and no frameworks.
   ========================================================================== */

:root {
  /* read by js/orbit.js when drawing the tracker map */
  --map-ocean: #6499c1;
  --map-grid: rgba(255, 255, 255, 0.3);
  --map-font: bold 11px Verdana, Tahoma, Geneva, sans-serif;

  --mono: "Courier New", Courier, monospace;

  --navy: #003366;
  --link: #0033cc;
  --visited: #663399;
  --hover: #cc0000;
  --silver: #c0c0c0;
  --sidebar: #e6e6e6;
  --ink: #111;
  --muted: #555;

  --sans: Verdana, Tahoma, Geneva, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 28px 12px;
  background: #000814 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Ccircle cx=%2728.1%27 cy=%2734.2%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.67%27/%3E%3Ccircle cx=%2761.3%27 cy=%27135.8%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.46%27/%3E%3Ccircle cx=%27190.5%27 cy=%27200.6%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.9%27/%3E%3Ccircle cx=%2797.1%27 cy=%2722.4%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.45%27/%3E%3Ccircle cx=%2767.4%27 cy=%27170.2%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.99%27/%3E%3Ccircle cx=%27125.3%27 cy=%2734.5%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.39%27/%3E%3Ccircle cx=%27126.2%27 cy=%2714.1%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.89%27/%3E%3Ccircle cx=%276.1%27 cy=%27103.9%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.9%27/%3E%3Ccircle cx=%2739.6%27 cy=%2712.2%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.66%27/%3E%3Ccircle cx=%27143.2%27 cy=%27140.4%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.82%27/%3E%3Ccircle cx=%2788.3%27 cy=%27123.6%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.92%27/%3E%3Ccircle cx=%2733.7%27 cy=%27108.7%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.54%27/%3E%3Ccircle cx=%27103.9%27 cy=%2735.9%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.89%27/%3E%3Ccircle cx=%27149.5%27 cy=%27220.1%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.65%27/%3E%3Ccircle cx=%27202.2%27 cy=%27117.4%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.71%27/%3E%3Ccircle cx=%27204.1%27 cy=%27140.1%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.57%27/%3E%3Ccircle cx=%2755.4%27 cy=%27195.5%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.71%27/%3E%3Ccircle cx=%27158.9%27 cy=%27184.3%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.6%27/%3E%3Ccircle cx=%27140.1%27 cy=%27161.1%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.67%27/%3E%3Ccircle cx=%2788.7%27 cy=%2750.0%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.93%27/%3E%3Ccircle cx=%27182.8%27 cy=%27160.4%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.36%27/%3E%3Ccircle cx=%27215.0%27 cy=%2740.5%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.7%27/%3E%3Ccircle cx=%2733.1%27 cy=%27209.3%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.82%27/%3E%3Ccircle cx=%2748.3%27 cy=%27199.5%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.58%27/%3E%3Ccircle cx=%2761.9%27 cy=%27205.2%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.98%27/%3E%3Ccircle cx=%27201.0%27 cy=%27109.3%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.85%27/%3E%3Ccircle cx=%27195.0%27 cy=%27151.5%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.36%27/%3E%3Ccircle cx=%27113.6%27 cy=%2742.0%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.53%27/%3E%3Ccircle cx=%27101.0%27 cy=%27223.7%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.39%27/%3E%3Ccircle cx=%2720.6%27 cy=%27120.4%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.83%27/%3E%3Ccircle cx=%27223.9%27 cy=%2723.6%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.58%27/%3E%3Ccircle cx=%27168.4%27 cy=%27176.5%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.78%27/%3E%3Ccircle cx=%276.8%27 cy=%2732.9%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.87%27/%3E%3Ccircle cx=%27108.2%27 cy=%2714.6%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.81%27/%3E%3Ccircle cx=%27113.3%27 cy=%2761.2%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.38%27/%3E%3Ccircle cx=%27118.6%27 cy=%2781.7%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.87%27/%3E%3Ccircle cx=%2767.9%27 cy=%2786.7%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.95%27/%3E%3Ccircle cx=%2738.1%27 cy=%2774.9%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.93%27/%3E%3Ccircle cx=%27127.5%27 cy=%27142.2%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.85%27/%3E%3Ccircle cx=%2779.6%27 cy=%27117.0%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.79%27/%3E%3Ccircle cx=%2751.6%27 cy=%27112.9%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.92%27/%3E%3Ccircle cx=%27201.1%27 cy=%2712.3%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.76%27/%3E%3Ccircle cx=%27236.7%27 cy=%2715.9%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.72%27/%3E%3Ccircle cx=%27100.6%27 cy=%2762.6%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.97%27/%3E%3Ccircle cx=%27181.0%27 cy=%2777.4%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.54%27/%3E%3Ccircle cx=%27180.7%27 cy=%2782.7%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.67%27/%3E%3Ccircle cx=%27189.7%27 cy=%27185.7%27 r=%270.6%27 fill=%27%23fff%27 fill-opacity=%270.49%27/%3E%3Ccircle cx=%27148.5%27 cy=%27206.7%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.74%27/%3E%3Ccircle cx=%27182.5%27 cy=%27194.3%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.75%27/%3E%3Ccircle cx=%27175.5%27 cy=%27211.6%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.66%27/%3E%3Ccircle cx=%2797.5%27 cy=%2728.6%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.61%27/%3E%3Ccircle cx=%27155.8%27 cy=%27126.5%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.66%27/%3E%3Ccircle cx=%27224.1%27 cy=%27223.2%27 r=%270.8%27 fill=%27%23fff%27 fill-opacity=%270.48%27/%3E%3Ccircle cx=%27126.0%27 cy=%27203.3%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.74%27/%3E%3Ccircle cx=%27156.5%27 cy=%27125.5%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.55%27/%3E%3Ccircle cx=%27172.8%27 cy=%2717.4%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.8%27/%3E%3Ccircle cx=%2736.8%27 cy=%2769.7%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.61%27/%3E%3Ccircle cx=%27172.7%27 cy=%2779.3%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.98%27/%3E%3Ccircle cx=%2792.4%27 cy=%27213.6%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.77%27/%3E%3Ccircle cx=%27134.4%27 cy=%27147.9%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.52%27/%3E%3Ccircle cx=%278.4%27 cy=%2730.4%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.74%27/%3E%3Ccircle cx=%2779.6%27 cy=%2741.5%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.82%27/%3E%3Ccircle cx=%2734.4%27 cy=%2763.2%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.89%27/%3E%3Ccircle cx=%271.0%27 cy=%27123.4%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.48%27/%3E%3Ccircle cx=%27222.7%27 cy=%27111.4%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.94%27/%3E%3Ccircle cx=%2742.5%27 cy=%2762.5%27 r=%271.2%27 fill=%27%23fff%27 fill-opacity=%270.69%27/%3E%3Ccircle cx=%27146.0%27 cy=%2747.3%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.81%27/%3E%3Ccircle cx=%27149.4%27 cy=%2735.4%27 r=%271.0%27 fill=%27%23fff%27 fill-opacity=%270.91%27/%3E%3Ccircle cx=%27214.5%27 cy=%2720.9%27 r=%270.5%27 fill=%27%23fff%27 fill-opacity=%270.94%27/%3E%3Ccircle cx=%27147.4%27 cy=%27201.5%27 r=%270.7%27 fill=%27%23fff%27 fill-opacity=%270.91%27/%3E%3C/svg%3E") repeat;
  color: var(--ink);
  font: 15px/1.6 var(--serif);
}

a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hover); }

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  padding: 4px 8px;
  background: #ffc;
  color: #000;
  font: 12px var(--sans);
}
.skip:focus { top: 8px; }

/* ------------------------------------------------------------- page frame */

.page {
  max-width: 840px;
  margin: 0 auto;
  border: 4px ridge var(--silver);
  background: #fff;
}

.banner {
  padding: 24px 24px 18px;
  border-bottom: 4px ridge var(--silver);
  background: linear-gradient(#0a4a8a, #002244);
  color: #fff;
  text-align: center;
}
.banner h1 {
  margin: 0;
  font: bold 40px/1.1 var(--serif);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
.banner p {
  margin: 8px 0 0;
  color: #cfe3ff;
  font: italic 16px var(--serif);
}

/* Source order is nav, content, sidebar boxes (so phones and screen readers
   reach the content first); on wider screens the grid puts the boxes back in
   the left column under the nav. */
.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "nav   content"
    "boxes content";
}
/* pages without sidebar boxes (tracker.html): the nav column runs full height */
.layout.no-boxes {
  grid-template-areas:
    "nav content"
    "nav content";
}

/* ---------------------------------------------------------------- sidebar */

.nav,
.sidebar-boxes {
  padding: 0 12px;
  border-right: 2px groove var(--silver);
  background: var(--sidebar);
  font: 12px/1.5 var(--sans);
}

.nav {
  grid-area: nav;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 18px;
}

.sidebar-boxes { grid-area: boxes; }
.nav a,
.nav a:visited {
  display: block;
  padding: 5px 8px;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  background: var(--silver);
  color: #000;
  font-weight: bold;
  text-decoration: none;
}
.nav a::before { content: "\00BB\00A0"; color: var(--navy); }
.nav a:hover { background: #d6d6d6; color: var(--navy); }
.nav a:active { border-color: #808080 #fff #fff #808080; }
.nav a[aria-current="page"] {
  border-color: #808080 #fff #fff #808080;
  background: #d6d6d6;
  color: var(--navy);
}

.box {
  margin-bottom: 16px;
  border: 1px solid #808080;
  background: #fff;
}
.box-title {                /* an <h2>, so screen readers can jump to it */
  margin: 0;
  padding: 3px 8px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font: bold 12px/1.5 var(--sans);
}
.box-title::before { content: none; }

.news { margin: 0; padding: 8px; }
.news dt { color: var(--navy); font-weight: bold; }
.news dd { margin: 0 0 10px; }
.news dd:last-child { margin-bottom: 0; }

/* Blinks 4 times (4.8 s) and then stays on: WCAG 2.2.2 / Section 508 allow
   blinking without a stop button only if it ends within 5 seconds. */
.new {
  color: #cc0000;
  font-size: 10px;
  animation: blink 1.2s steps(1) 4;
}
@keyframes blink { 50% { visibility: hidden; } }

.facts { margin: 0; padding: 8px 8px 8px 24px; }

/* ---------------------------------------------------------------- content */

.content {
  grid-area: content;
  min-width: 0;
  padding: 18px 26px 14px;
}

h2 {
  margin: 4px 0 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font: bold 23px/1.25 var(--serif);
}
h2::before {
  content: "\25C6";
  margin-right: 10px;
  color: #cc0000;
  font-size: 15px;
  vertical-align: 3px;
}

h3 {
  margin: 20px 0 8px;
  color: #222;
  font: bold 17px var(--serif);
}

hr {
  margin: 24px 0;
  border: 0;
  border-top: 2px groove #ddd;
}

.totop {
  margin: 10px 0 0;
  font: 11px var(--sans);
  text-align: right;
}

.small { color: var(--muted); font: 12px/1.5 var(--sans); }
.filetype { font: 11px var(--sans); }   /* "[PDF]" inside links to PDFs */
.caption { margin: 6px 0 14px; color: var(--muted); font: 11px/1.5 var(--sans); }

.list { padding-left: 22px; }
.list li { margin-bottom: 6px; }

.projects dt { margin-top: 12px; color: var(--navy); font-weight: bold; }
.projects dd { margin: 2px 0 0 22px; }

.resume {
  width: 100%;
  border-collapse: collapse;
}
.resume td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px dotted #aaa;
  vertical-align: top;
}
.resume tr:last-child td { border-bottom: 0; }
.resume .when {
  width: 118px;
  padding-top: 11px;
  color: var(--navy);
  font: bold 12px var(--sans);
  white-space: nowrap;
}

/* ---------------------------------------------------------- tracker */

.orbit-frame {
  border: 3px inset var(--silver);
  background: var(--map-ocean);
}
.orbit-map {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
}

.table-wrap { overflow-x: auto; }

.orbit-table {
  width: 100%;
  border: 1px solid #808080;
  border-collapse: collapse;
  font: 12px var(--sans);
}
.orbit-table th,
.orbit-table td {
  padding: 4px 8px;
  border: 1px solid #a8a8a8;
  text-align: left;
  white-space: nowrap;
}
.orbit-table thead th { background: var(--navy); color: #fff; }
.orbit-table tbody tr:nth-child(even) { background: #eef0f8; }
.orbit-table tbody th::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 1px solid #000;
  background: var(--c);
  vertical-align: -1px;
}
.orbit-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.orbit-table [data-below="day"] { color: #a05a00; font-weight: bold; }

.orbit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 8px;
}
.orbit-status {
  margin: 0;
  color: var(--muted);
  font: 11px var(--sans);
}
.orbit-status.is-stale { color: #cc0000; }
/* the map and table update every second, so WCAG 2.2.2 wants a way to stop them */
.orbit-pause {
  padding: 3px 10px;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  background: var(--silver);
  color: #000;
  font: bold 11px var(--sans);
  cursor: pointer;
}
.orbit-pause:hover { background: #d6d6d6; }
.orbit-pause:active { border-color: #808080 #fff #fff #808080; }

/* ------------------------------------------------------------- footer */

.footer {
  padding: 14px;
  border-top: 4px ridge var(--silver);
  background: var(--sidebar);
  color: #333;
  font: 11px/1.6 var(--sans);
  text-align: center;
}
.footer p { margin: 8px 0 0; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.b88 {
  display: inline-flex;
  width: 88px;
  height: 31px;
  overflow: hidden;
  border: 1px solid #000;
  font: bold 9px/1 var(--sans);
  letter-spacing: 0.5px;
}
.b88 span { display: flex; align-items: center; justify-content: center; }
.b88 .l { width: 40%; background: var(--navy); color: #fff; }
.b88 .r { flex: 1; background: #ffcc00; color: #000; }
.b88.alt .l { background: #006633; }
.b88.alt .r { background: #e0e0e0; }
.b88.alt2 .l { background: #660000; }
.b88.alt2 .r { background: #99ccff; }

/* ------------------------------------------------------------------ 404 */

.notfound { padding: 26px 26px 30px; }
.notfound code {
  padding: 0 4px;
  background: #f2f2f2;
  font: 14px var(--mono);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------- small screens (2026 edition) */

@media (max-width: 680px) {
  body { padding: 0; }
  .page { border: 0; }
  .banner h1 { font-size: 30px; }
  .layout,
  .layout.no-boxes {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "nav" "content" "boxes";
  }
  .nav,
  .sidebar-boxes { border-right: 0; }
  .nav { padding-bottom: 14px; border-bottom: 2px groove var(--silver); }
  .sidebar-boxes { padding-top: 14px; padding-bottom: 2px; border-top: 2px groove var(--silver); }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .content { padding: 16px; }
  .resume td { display: block; padding-right: 0; }
  .resume .when { width: auto; padding: 10px 0 0; border-bottom: 0; }
}

/* touch screens: bigger "[ Back to Top ]" tap targets */
@media (pointer: coarse) {
  .totop a {
    display: inline-block;
    padding: 12px 0 12px 16px;
    font-size: 14px;
  }
  .orbit-pause { padding: 10px 14px; font-size: 13px; }
}

/* phones: fit the tracker table without sideways scrolling */
@media (max-width: 520px) {
  .orbit-table { font-size: 11px; }
  .orbit-table th,
  .orbit-table td { padding: 4px 5px; }
  .orbit-table tr > :nth-child(2),
  .orbit-table .long { display: none; }
  .orbit-table tbody th::before { margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .new { animation: none; }
}
