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

:root {
  --leather-dark: #2a1810;
  --leather-light: #4a2f22;
  --page-cream: #f6efe0;
  --grid-line: rgba(28,60,90,.09);
  --ink-navy: #1c2b3a;
  --rust: #7a1f1f;
  --moss: #6b7f5e;
  --warm-rust: #a1652e;
  --mustard: #c9a227;
  --nudge-navy: #0A1628;
  --nudge-green: #00E87A;
  --nudge-text: #E8FFF3;
  --font-serif: 'Spectral', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-hand: 'Caveat', cursive;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  background: radial-gradient(circle at 30% 20%, var(--leather-light), var(--leather-dark));
  background-attachment: fixed;
  font-family: var(--font-serif);
  color: var(--ink-navy);
}

.page {
  max-width: 1100px;
  margin: 48px auto;
  background: var(--page-cream);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  padding: 70px;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.page--dark {
  background: var(--leather-dark);
  background-image: none;
  color: var(--page-cream);
  text-align: center;
}

.eyebrow-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: .1em;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.eyebrow-chip--work { background: var(--moss); }
.eyebrow-chip--research { background: var(--ink-navy); }
.eyebrow-chip--build { background: var(--warm-rust); }
.eyebrow-chip--ride { background: var(--rust); }
.eyebrow-chip--life { background: var(--mustard); color: #3a2418; }

.image-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,43,58,.05);
  border: 2px dashed rgba(28,43,58,.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(28,43,58,.5);
  text-align: center;
}

.ribbon-bookmark {
  position: fixed;
  top: 0;
  right: 26px;
  width: 30px;
  height: 0;
  background: linear-gradient(var(--rust), #5c1414);
  z-index: 50;
}
.ribbon-bookmark::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  border-style: solid;
  border-width: 0 15px 14px 15px;
  border-color: transparent transparent #5c1414 transparent;
  transform: rotate(180deg);
}

.side-tabs {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}
.tab {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: #fff;
  text-decoration: none;
  padding: 16px 8px;
  border-radius: 6px 0 0 6px;
  opacity: 1;
  transition: opacity .15s;
}
.tab:hover { opacity: .85; }
.tab--work { background: var(--moss); }
.tab--research { background: var(--ink-navy); }
.tab--build { background: var(--warm-rust); }
.tab--ride { background: var(--rust); }
.tab--life { background: var(--mustard); color: #3a2418; }

@media (max-width: 900px) {
  .side-tabs, .ribbon-bookmark { display: none; }
  .page { padding: 32px 24px; margin: 24px 16px; }
}

.cover-grid {
  display: flex;
  gap: 48px;
  align-items: center;
}
.cover-text { flex: 2; }
.cover-photo { flex: 1; display: flex; justify-content: center; }

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .24em;
  color: rgba(28,43,58,.55);
  margin-bottom: 16px;
}
.cover-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 84px);
  color: var(--ink-navy);
  line-height: 1.05;
  margin-bottom: 16px;
}
.cover-tagline {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--rust);
  transform: rotate(-1deg);
  margin-bottom: 20px;
}
.cover-body {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.6;
  color: var(--ink-navy);
  max-width: 560px;
  margin-bottom: 32px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.btn {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .05em;
  padding: 13px 22px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}
.btn--solid-navy { background: var(--ink-navy); color: #fff; }
.btn--outline-navy { background: transparent; color: var(--ink-navy); border: 1.5px solid var(--ink-navy); }
.btn--solid-rust { background: var(--rust); color: #fff; }
.btn--outline-light { background: transparent; color: var(--page-cream); border: 1.5px solid var(--page-cream); }

.polaroid {
  background: #fff;
  padding: 14px 14px 44px 14px;
  box-shadow: 2px 5px 14px rgba(0,0,0,.25);
  transform: rotate(3deg);
}

.back-cover-title {
  font-family: var(--font-hand);
  font-size: 36px;
  color: var(--mustard);
  margin-bottom: 32px;
}
.colophon {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(246,239,224,.6);
  margin-top: 32px;
}

@media (max-width: 900px) {
  .cover-grid { flex-direction: column; }
}

.timeline-entry {
  display: flex;
  gap: 20px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 2px solid rgba(28,43,58,.15);
}
.timeline-entry:first-of-type { border-top: none; margin-top: 0; }

.timeline-marker {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(28,43,58,.35);
  margin-top: 6px;
}
.timeline-marker--current { background: var(--moss); }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(28,43,58,.6);
  margin-bottom: 4px;
}
.timeline-role {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-location {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(28,43,58,.6);
  margin-bottom: 12px;
}
.timeline-body {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stack-chip {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(28,43,58,.08);
  padding: 6px 14px;
  border-radius: 20px;
}

.margin-note {
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--rust);
  transform: rotate(-1deg);
}

.research-curve {
  width: 100%;
  height: 140px;
  margin-bottom: 8px;
}
.research-caption {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(28,43,58,.6);
  margin-bottom: 24px;
}
.research-body {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.divider--dashed {
  border: none;
  border-top: 2px dashed rgba(28,43,58,.25);
  margin: 32px 0;
}

.nudge-card {
  background: var(--nudge-navy);
  color: var(--nudge-text);
  padding: 32px;
  border-radius: 4px;
  transform: rotate(-0.6deg);
  box-shadow: 2px 5px 14px rgba(0,0,0,.3);
  margin-bottom: 32px;
}
.nudge-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--nudge-green);
  margin-bottom: 8px;
}
.nudge-title { font-size: 38px; font-weight: 700; margin-bottom: 12px; }
.nudge-desc { font-size: 17px; line-height: 1.5; margin-bottom: 16px; }
.swatch-legend { display: flex; gap: 8px; }
.swatch { width: 20px; height: 20px; border-radius: 3px; display: inline-block; }

.project-row { display: flex; gap: 24px; }
.project-card {
  flex: 1;
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 2px 5px 14px rgba(0,0,0,.15);
}
.project-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.project-desc { font-size: 16px; line-height: 1.5; }

@media (max-width: 900px) {
  .project-row { flex-direction: column; }
}

.ride-grid {
  display: flex;
  gap: 48px;
  align-items: center;
}
.ride-grid .polaroid { flex: 1; }
.ride-text { flex: 1; }
.speedo-icon { margin-bottom: 16px; }

.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.index-card {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 2px 5px 14px rgba(0,0,0,.15);
}
.index-card:nth-child(odd) { transform: rotate(-1deg); }
.index-card:nth-child(even) { transform: rotate(1.5deg); }
.ticket-stub {
  position: relative;
  border: 2px dashed var(--mustard);
  background: rgba(201,162,39,.07);
  box-shadow: none;
  overflow: visible;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mustard);
  font-weight: 600;
}
.ticket-plane {
  transform: rotate(15deg);
  display: inline-block;
}
.ticket-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.ticket-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-navy);
  letter-spacing: .05em;
}
.ticket-dots {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, rgba(28,43,58,.4) 40%, rgba(0,0,0,0) 0%);
  background-position: bottom;
  background-size: 6px 1px;
  background-repeat: repeat-x;
  position: relative;
}
.ticket-dots::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(28,43,58,.4);
}
.ticket-cities {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(28,43,58,.6);
  margin-top: 4px;
}
.ticket-perf {
  border-top: 1.5px dashed rgba(28,43,58,.25);
  margin: 18px -20px 14px;
  position: relative;
}
.ticket-perf::before,
.ticket-perf::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--page-cream);
  border-radius: 50%;
}
.ticket-perf::before { left: -8px; }
.ticket-perf::after { right: -8px; }
.ticket-row--meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: rgba(28,43,58,.5);
}

@media (max-width: 900px) {
  .ride-grid { flex-direction: column; }
}
