:root {
  --bg: #f3ede2;
  --paper: rgba(255, 252, 247, 0.86);
  --paper-strong: #fffdf8;
  --ink: #1d2433;
  --muted: #5e6573;
  --line: rgba(29, 36, 51, 0.14);
  --line-strong: rgba(29, 36, 51, 0.22);
  --accent: #155e75;
  --accent-soft: rgba(21, 94, 117, 0.1);
  --shadow: 0 24px 80px rgba(41, 39, 36, 0.12);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 94, 117, 0.14), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(140, 90, 43, 0.11), transparent 28%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
}

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

p,
ul,
h1,
h2,
h3 {
  margin-top: 0;
}

.utility {
  padding: 18px 18px 0;
}

.utility__inner {
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.utility__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.utility__label,
.eyebrow,
.section__kicker,
.meta-label,
.stack-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

.button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 94, 117, 0.34);
  background: rgba(255, 255, 255, 0.9);
}

.resume-shell {
  padding: 18px;
}

.resume {
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto 28px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.64)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.display {
  max-width: 12ch;
  margin-bottom: 18px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.eyebrow,
.section__kicker,
.meta-label,
.stack-label {
  margin-bottom: 10px;
}

.lede {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.masthead__meta {
  display: grid;
  gap: 16px;
}

.meta-block {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.meta-block a,
.meta-block span {
  display: block;
}

.meta-block a + a,
.meta-block span + span {
  margin-top: 6px;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 16px;
}

.signal {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56));
}

.signal__value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.signal__label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.resume__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  gap: 34px;
  padding-top: 18px;
}

.section + .section {
  margin-top: 36px;
}

.section__heading {
  margin-bottom: 18px;
}

.section__title,
.side-title {
  margin-bottom: 0;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 24px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper-strong);
  border: 2px solid var(--accent);
}

.timeline-item + .timeline-item {
  margin-top: 22px;
}

.timeline-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.timeline-item__header h3,
.project-card__top h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.timeline-item__role {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline-item__when,
.project-card__type {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.bullet-list {
  margin-bottom: 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullet-list li + li {
  margin-top: 9px;
}

.bullet-list--tight li + li {
  margin-top: 7px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  height: 100%;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card p,
.stack-group p {
  color: var(--muted);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(29, 36, 51, 0.05);
  border: 1px solid rgba(29, 36, 51, 0.09);
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.resume__side {
  display: grid;
  gap: 18px;
}

.side-section {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.stack-group + .stack-group {
  margin-top: 16px;
}

.stack-group p {
  margin-bottom: 0;
}

.link-list {
  margin: 0;
  padding-left: 18px;
}

.link-list li + li {
  margin-top: 8px;
}

.link-list a {
  color: var(--accent);
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .resume {
    animation: rise 500ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  }

  .masthead,
  .signal-band,
  .resume__grid {
    animation: fade-in 640ms ease both;
  }

  .signal-band {
    animation-delay: 80ms;
  }

  .resume__grid {
    animation-delay: 140ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .resume {
    padding: 28px;
  }

  .masthead,
  .resume__grid,
  .signal-band,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .display {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .resume-shell,
  .utility {
    padding: 12px;
  }

  .resume {
    width: calc(100vw - 24px);
    padding: 22px;
    border-radius: 22px;
  }

  .utility__inner,
  .timeline-item__header,
  .resume-footer {
    display: block;
  }

  .utility__actions {
    margin-top: 12px;
  }

  .timeline-item__when,
  .project-card__type {
    margin-top: 10px;
    display: inline-flex;
  }

  .resume-footer span + span {
    display: block;
    margin-top: 6px;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --paper: #ffffff;
    --paper-strong: #ffffff;
    --ink: #111827;
    --muted: #4b5563;
    --line: rgba(17, 24, 39, 0.12);
    --line-strong: rgba(17, 24, 39, 0.2);
    --shadow: none;
  }

  body {
    background: #ffffff;
    font-size: 11.5pt;
  }

  .no-print {
    display: none !important;
  }

  .resume-shell {
    padding: 0;
  }

  .resume {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .signal,
  .meta-block,
  .project-card,
  .side-section {
    background: transparent;
  }

  @page {
    margin: 0.55in;
    size: A4;
  }
}
