:root {
  --ink: #182235;
  --muted: #5d6b7d;
  --line: #d8e0ea;
  --page: #f4f6f8;
  --panel: #ffffff;
  --nav: #172235;
  --nav-2: #26384e;
  --blue: #00a8cc;
  --blue-dark: #087fa0;
  --orange: #ff8a1d;
  --teal: #18b7aa;
  --shadow: 0 2px 7px rgba(18, 26, 42, .10);
}

@font-face {
  font-family: "Amazon Ember";
  src: local("Amazon Ember"), local("AmazonEmber");
  font-weight: 400 900;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Aptos, "Amazon Ember", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

h1,
h2,
h3,
.brand {
  font-family: "Segoe UI", Aptos, "Amazon Ember", Arial, Helvetica, sans-serif;
}

a,
button,
input,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px minmax(240px, 640px) auto;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 0 54px;
  background: var(--nav);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  width: 27px;
  height: 27px;
  position: relative;
  display: inline-block;
  border: 3px solid var(--blue);
  border-radius: 5px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border: 3px solid var(--blue);
}

.brand-mark::before {
  top: -10px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.brand-mark::after {
  top: 4px;
  bottom: 4px;
  left: 9px;
}

.search {
  display: flex;
  height: 42px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  background: #31445d;
  color: #fff;
  outline: 2px solid transparent;
  font-weight: 400;
}

.search input::placeholder {
  color: #d4dbe5;
}

.search input:focus {
  outline-color: var(--orange);
}

.search button {
  width: 56px;
  border: 0;
  overflow: hidden;
  text-indent: 80px;
  white-space: nowrap;
  background: var(--blue);
  color: #fff;
  position: relative;
}

.search button::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.search button::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 28px;
  width: 12px;
  height: 3px;
  background: #fff;
  transform: rotate(45deg);
}

.header-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-links a,
.header-links button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 0;
}

.header-links button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 11px;
  background: var(--orange);
  color: #172235;
  font-weight: 700;
}

.categorybar {
  display: flex;
  gap: 34px;
  min-height: 52px;
  align-items: center;
  padding: 0 54px;
  background: var(--nav-2);
  color: #fff;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.categorybar button,
.categorybar a {
  border: 0;
  padding: 17px 0 16px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.categorybar .active {
  color: #fff;
  box-shadow: inset 0 -4px 0 var(--orange);
}

.page-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px 70px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 128px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 16px;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.filter-head h2,
.filters h3,
.project-section h2,
.site-footer h2 {
  margin: 0;
}

.filter-head h2 {
  font-size: 18px;
  font-weight: 650;
}

.filter-head button,
.filters label,
.filters select {
  color: var(--muted);
}

.filter-head button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 600;
}

.filters section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.filters section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filters h3 {
  margin-bottom: 11px;
  font-size: 15px;
  font-weight: 650;
}

.filters label {
  display: block;
  margin: 8px 0;
  font-weight: 400;
  font-size: 14px;
}

.filters input {
  margin-right: 7px;
  accent-color: var(--blue);
}

.filters select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  background: #eef1f5;
  padding: 0 10px;
  font-weight: 400;
}

.catalog {
  min-width: 0;
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 16px 0 20px;
}

.catalog-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 650;
}

.catalog-head p,
.about-panel p,
.project-card p,
.detail-copy p,
.site-footer p {
  color: var(--muted);
}

.catalog-head p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.resume-cta,
.primary-action,
.secondary-action,
.outline-action,
.project-card .detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  padding: 0 16px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}

.resume-cta,
.primary-action {
  background: #f8fbfd;
  color: var(--blue-dark);
}

.linkedin-cta::before {
  content: "in";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 3px;
  background: #0a66c2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.about-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.about-panel h2 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 650;
}

.about-panel p:last-of-type {
  margin: 0 0 16px;
}

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

.metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7fafc;
  color: var(--muted);
  font-weight: 500;
}

.metrics strong {
  color: var(--ink);
}

.project-section {
  margin: 0 0 46px;
}

.project-section h2 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 650;
}

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

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.thumb {
  position: relative;
  display: block;
  height: 152px;
  overflow: hidden;
  background: #dde6ef;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-stack {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  gap: 6px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.popular {
  background: var(--orange);
}

.recommended {
  background: var(--teal);
}

.category-badge {
  background: #e9eef4;
  color: var(--ink);
}

.save-button {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #758195;
  font-size: 26px;
  line-height: 1;
}

.save-button.saved {
  color: var(--orange);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 15px;
}

.stars {
  color: var(--orange);
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.stars span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin-left: 6px;
}

.project-card h3 {
  min-height: 56px;
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.28;
}

.project-card p {
  min-height: 63px;
  margin: 0 0 14px;
  font-weight: 400;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 50px;
  margin-bottom: 14px;
}

.tags span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.tags .more {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.project-card .detail-link {
  margin-top: auto;
  width: 100%;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
  gap: 40px;
  padding: 34px 68px 52px;
  background: var(--nav);
  color: #fff;
}

.about-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 36px 64px;
}

.about-layout {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.profile-card,
.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-card {
  position: sticky;
  top: 128px;
  padding: 28px 24px 24px;
  text-align: center;
}

.profile-card img {
  display: block;
  width: 122px;
  height: 122px;
  margin: 0 auto 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 9px rgba(18, 26, 42, .28);
}

.profile-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 650;
}

.profile-card p {
  max-width: 270px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.location {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 400;
}

.location::before {
  content: "⊙";
  margin-right: 8px;
  color: var(--blue-dark);
}

.download-resume {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin: 0 0 20px;
  border-radius: 5px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
}

.download-resume::before {
  content: "⇩";
  margin-right: 8px;
}

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

.social-row a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.about-content {
  min-width: 0;
}

.about-card {
  margin-bottom: 30px;
  padding: 26px 28px;
}

.about-card h2 {
  margin: 0 0 22px;
  font-size: 23px;
  font-weight: 650;
}

.about-card p,
.job p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.about-card > p {
  margin: 0;
}

.section-icon {
  color: var(--blue-dark);
  margin-right: 10px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e3e9f0;
}

.job {
  position: relative;
  margin: 0 0 28px;
  padding: 24px 28px;
  border: 1px solid #eef2f6;
  background: #fff;
}

.job:last-child {
  margin-bottom: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 30px;
  width: 9px;
  height: 9px;
  border: 3px solid #d8f2f0;
  border-radius: 50%;
  background: var(--teal);
}

.job h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
}

.company {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 600;
}

.job-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.job-meta span::before {
  content: "▣";
  margin-right: 7px;
  color: var(--teal);
}

.job p {
  margin: 0;
  font-size: 15px;
}

.skills-card h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 650;
}

.skills-card h3:first-of-type {
  margin-top: 0;
}

.skills-card p {
  margin: 0;
}

.work-together {
  margin-top: 34px;
  padding: 34px 24px;
  text-align: center;
  background: var(--blue-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.work-together h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 650;
}

.work-together p {
  margin: 0 0 24px;
  font-size: 17px;
}

.work-together a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 600;
}

.site-footer p {
  max-width: 640px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

.site-footer a,
.site-footer button {
  display: block;
  width: fit-content;
  margin: 10px 0;
  border: 0;
  background: transparent;
  color: #cbd6e4;
  padding: 0;
}

.detail-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 42px 64px;
}

.breadcrumb {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--blue-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 8px 0 6px;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.14;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.secondary-action {
  background: #fff;
}

.outline-action {
  border-color: #6e7988;
  color: var(--ink);
}

.detail-card {
  margin: 22px 0;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 650;
}

.detail-card p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.detail-card li {
  margin: 8px 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tech-row span {
  padding: 8px 10px;
  border-radius: 4px;
  background: #eef4f8;
  color: var(--ink);
  font-weight: 600;
}

.related {
  margin-top: 54px;
}

.related h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 650;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  gap: 24px;
}

.compact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compact-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.compact-card div {
  padding: 14px;
}

.compact-card h3 {
  margin: 0 0 8px;
  min-height: 45px;
  font-size: 16px;
  font-weight: 650;
}

.compact-card a {
  width: 100%;
  min-height: 36px;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 190px 1fr;
    padding: 0 22px;
  }

  .header-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .categorybar {
    padding: 0 22px;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .header-links {
    padding-bottom: 0;
  }

  .categorybar {
    min-height: 48px;
    gap: 22px;
    padding: 0 14px;
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    padding: 14px 12px 44px;
  }

  .catalog {
    order: 1;
  }

  .filters {
    order: 2;
    margin-top: 8px;
  }

  .filters section {
    display: none;
  }

  .filters.is-open section {
    display: block;
  }

  .filter-head {
    min-height: 42px;
  }

  .filter-head h2::after {
    content: " +";
    color: var(--blue-dark);
    font-weight: 500;
  }

  .filters.is-open .filter-head h2::after {
    content: " -";
  }

  .catalog-head,
  .about-panel,
  .detail-hero,
  .site-footer,
  .job-meta {
    grid-template-columns: 1fr;
  }

  .about-panel {
    padding: 16px;
  }

  .about-panel img {
    max-width: 260px;
  }

  .grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .catalog-head h1,
  .detail-copy h1 {
    font-size: 28px;
  }

  .catalog-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .resume-cta {
    width: fit-content;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .project-card h3,
  .project-card p,
  .tags {
    min-height: 0;
  }

  .site-footer {
    padding: 30px 18px;
  }

  .detail-page {
    padding: 24px 14px 48px;
  }

  .about-page {
    padding: 24px 14px 48px;
  }

  .about-card {
    padding: 22px 18px;
  }

  .timeline {
    padding-left: 16px;
  }

  .job {
    padding: 20px 16px;
  }

  .job::before {
    left: -21px;
  }

  .detail-actions a {
    width: 100%;
  }
}
