:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --ink: #171717;
  --muted: #68645d;
  --line: #d8d4ca;
  --accent: #8a4d22;
  --focus: #0f766e;
  --max: 860px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 15px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: #ead8bb;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 40px 0 88px;
}

.section-nav {
  position: fixed;
  top: 50%;
  left: max(24px, calc((100vw - var(--max)) / 2 - 250px));
  z-index: 10;
  display: none;
  width: 170px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  transform: translateY(-50%);
}

.section-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
}

@media (min-width: 1200px) {
  .section-nav {
    display: block;
  }
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  text-transform: lowercase;
}

h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

p {
  margin-bottom: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
}

.links a:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 82px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 44px 0 68px;
  margin: 0;
}

.statement {
  margin: 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.52;
}

.statement h1 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.12;
}

.statement .small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.portrait-shell {
  display: flex;
  justify-content: flex-start;
}

.portrait-placeholder {
  display: grid;
  width: 250px;
  aspect-ratio: 4 / 5;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0eee7;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}

.portrait-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.profile-links a {
  display: inline-grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--muted);
  text-decoration: none;
}

.profile-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-links .icon-fill {
  fill: currentColor;
  stroke: none;
}

.profile-links img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.profile-links span {
  font-size: 12px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions a {
  display: inline-flex;
  min-height: 40px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  text-decoration: none;
}

.hero-actions a:hover {
  border-color: var(--accent);
}

.hero-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section {
  padding-top: 34px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.section-note {
  margin-top: 10px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 22px;
}

.item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.item-marker {
  color: var(--muted);
  white-space: nowrap;
}

.period {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.impact-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.impact-list li {
  position: relative;
  padding-left: 18px;
}

.impact-list li::before {
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--ink);
  color: var(--ink);
}

.built-strip {
  margin-top: 18px;
  overflow: hidden;
}

.work-list {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-bottom: 10px;
  animation: built-marquee 76s linear infinite;
}

.built-strip:hover .work-list {
  animation-play-state: paused;
}

.work-item {
  flex: 0 0 min(680px, 92vw);
  padding: 14px;
  border: 1px solid rgba(31, 35, 40, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 247, 243, 0.92)),
    #fbfaf7;
  box-shadow: 0 18px 42px rgba(31, 35, 40, 0.06);
}

.project-preview {
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #f0eee7;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.project-preview:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 42%;
}

.work-item h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.work-item h3 > a {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
}

.work-item h3 > a::after,
.solve-card a span::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.meta a {
  color: inherit;
}

.meta::before {
  content: "[";
}

.meta::after {
  content: "]";
}

.stack {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes built-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12px));
  }
}

.small-solves {
  margin-top: 18px;
  overflow: hidden;
}

.solve-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-bottom: 10px;
  animation: solve-marquee 72s linear infinite;
}

.small-solves:hover .solve-track {
  animation-play-state: paused;
}

.solve-card {
  flex: 0 0 min(330px, 82vw);
}

.solve-card a {
  display: block;
  text-decoration: none;
}

.solve-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  background: #f0eee7;
  transition: border-color 160ms ease, transform 160ms ease;
}

.solve-card a:hover img {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.solve-card span {
  display: block;
  margin-top: 8px;
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
}

.solve-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes solve-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-list,
  .solve-track {
    width: auto;
    overflow-x: auto;
    animation: none;
    scrollbar-width: thin;
  }
}

.stack-groups {
  display: grid;
  gap: 8px;
}

.stack-groups span {
  display: inline-block;
  min-width: 112px;
  color: var(--muted);
}

.profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(79, 70, 229, 0.24);
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.06);
  text-decoration: none;
}

.profile-list a::after {
  content: "↗";
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
}

.profile-list a:hover {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  text-decoration: underline;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.article-list a:first-child {
  border-top: 1px solid var(--line);
}

.article-list strong {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
}

.article-list strong::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
}

.research-list {
  display: grid;
  gap: 14px;
}

.research-list article {
  margin: 0;
}

.research-list h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
}

.research-list strong,
.research-list span {
  display: block;
}

.research-list strong a {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
}

.research-list strong a::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
}

.research-list span {
  margin-top: 4px;
  color: var(--muted);
}

.connect {
  margin-bottom: 0;
}

.connect a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
}

.connect a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 34px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  display: block;
  width: min(230px, 60vw);
  opacity: 0.78;
  filter: contrast(1.1);
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .page {
    width: min(100% - 24px, var(--max));
    padding: 28px 0 60px;
  }

  .statement {
    margin-bottom: 0;
    font-size: 17px;
  }

  .statement h1 {
    font-size: 30px;
  }

  .statement .small {
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 56px);
    gap: 22px;
    padding: 30px 0 48px;
  }

  .portrait-shell {
    justify-content: flex-start;
  }

  .portrait-placeholder {
    width: 174px;
  }

  .item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .item-marker {
    display: none;
  }
}
