/* ---------------------------------------------------------------
   Design tokens
   Palette: 1970s supergraphics — cream paper, mustard yellow,
   burnt orange, vermillion. Warm, high-legibility, easy on the eyes.
--------------------------------------------------------------- */
:root {
  --bg: #f6ebd4;
  --panel: #fff8e6;
  --panel-2: #edd9b0;
  --border: #d4b888;
  --yellow: #d9a400;
  --orange: #e05a12;
  --red: #c23418;
  --ochre: #a86b2d;
  --text: #3c2618;
  --text-dim: #7a5538;
  --amber: var(--orange);
  --amber-dim: var(--ochre);
  --cyan: var(--red);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  background-image:
    linear-gradient(
      90deg,
      var(--yellow) 0 33.34%,
      var(--orange) 33.34% 66.67%,
      var(--red) 66.67% 100%
    ),
    radial-gradient(ellipse at top left, rgba(217, 164, 0, 0.22), transparent 52%),
    radial-gradient(ellipse at top right, rgba(194, 52, 24, 0.10), transparent 48%);
  background-size: 100% 10px, auto, auto;
  background-repeat: no-repeat;
  background-position: top, center, center;
}

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

::selection { background: var(--orange); color: #fff8e6; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------- Header / hero --------------------------- */

.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
}

#boot-log {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber-dim);
  min-height: 132px;
}
.boot-line { white-space: pre; }
.boot-line:first-child { color: var(--yellow); }

.hero-id {
  margin-top: 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#boot-log[hidden] + .hero-id { margin-top: 0; }
body.booted .hero-id { opacity: 1; transform: translateY(0); }

.hero-name {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  color: var(--amber);
  margin: 0;
  letter-spacing: -0.01em;
}
.hero-role {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  margin: 8px 0 0;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 10px 0 0;
  line-height: 1.7;
}
.hero-meta .dot { color: var(--border); margin: 0 8px; }

/* --------------------------- Sections --------------------------- */

section { padding: 34px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber-dim);
  text-transform: uppercase;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sponsors { padding: 20px 0; }

.sponsor-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 22px;
}

.sponsor-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.sponsor-row img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.sponsor-row a:hover img,
.sponsor-row a:focus-visible img {
  opacity: 1;
}

.summary p {
  font-size: 16px;
  max-width: 64ch;
  margin: 0;
}
.summary p + p { margin-top: 14px; }
.summary ul {
  margin: 10px 0 0;
  padding-left: 1.15em;
  font-size: 16px;
  max-width: 64ch;
}
.summary li { margin: 4px 0; }
.summary code {
  font-family: var(--mono);
  font-size: 0.88em;
}

/* --------------------------- Experience log --------------------------- */

.section-note {
  margin: -8px 0 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.log { display: flex; flex-direction: column; }

.log-entry {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
}
.log-entry:first-child { border-top: none; }

.log-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  padding-top: 2px;
}
.log-entry.has-media .log-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.log-copy { flex: 1; min-width: 0; }

.log-body .company {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--amber);
}
.log-body .role {
  font-size: 14.5px;
  color: var(--text);
  margin-left: 6px;
}
.log-body .where {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 3px;
}
.log-body .desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 60ch;
}
.log-body .desc-list {
  margin: 6px 0 0;
  padding-left: 1.15em;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 60ch;
}
.log-body .desc-list li { margin: 2px 0; }

.log-body .ref {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
}
.log-body .ref a { color: var(--cyan); }
.log-body .ref a:hover { color: var(--amber); }

.thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  display: block;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 520px) {
  .log-entry { grid-template-columns: 1fr; }
  .log-tag { padding-top: 0; }
  .thumb { flex-basis: 64px; width: 64px; height: 64px; }
}

/* --------------------------- Skills pinout --------------------------- */

.pinout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pin {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 8px 12px;
  position: relative;
}
.pin::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1px;
  background: var(--amber-dim);
}
.pin.secondary { color: var(--text-dim); }

.langs {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.sublabel {
  margin: 18px 0 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* --------------------------- Demos --------------------------- */

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.demo-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.demo-card:hover { border-color: var(--orange); }
.demo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--panel-2);
}
.demo-body { padding: 8px 9px 10px; }
.demo-body h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--amber);
  margin: 0 0 5px;
  line-height: 1.3;
}
.demo-body p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Footer --------------------------- */

footer {
  padding: 28px 0 56px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.disclaimer {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  max-width: 68ch;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .hero-id { transition: none; }
}
