@property --background {
  syntax: "<color>";
  inherits: true;
  initial-value: #f3f0e8;
}
@property --text {
  syntax: "<color>";
  inherits: true;
  initial-value: #26343a;
}
@property --muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #58686c;
}
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #79602e;
}
@property --planet {
  syntax: "<color>";
  inherits: true;
  initial-value: #819296;
}
@property --surface {
  syntax: "<color>";
  inherits: true;
  initial-value: #ebe8df;
}
@property --border {
  syntax: "<color>";
  inherits: true;
  initial-value: #c7cdca;
}
:root {
  --background: #f3f0e8;
  --text: #26343a;
  --muted: #58686c;
  --accent: #79602e;
  --planet: #819296;
  --surface: #ebe8df;
  --border: #c7cdca;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: #182229;
  --text: #e6e8e4;
  --muted: #a9b8ba;
  --accent: #dbc18c;
  --planet: #6e858e;
  --surface: #223039;
  --border: #46565e;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background: #182229;
    --text: #e6e8e4;
    --muted: #a9b8ba;
    --accent: #dbc18c;
    --planet: #6e858e;
    --surface: #223039;
    --border: #46565e;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
body {
  margin: 0;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 48px 40px 64px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
}
.langs {
  display: flex;
  gap: 12px;
}
.langs a[aria-current] {
  font-weight: bold;
  color: var(--text);
}
.hero {
  position: relative;
  padding: 60px 0 40px;
  isolation: isolate;
}
h1 {
  font-size: clamp(52px, 7.5vw, 86px);
  font-weight: 500;
  letter-spacing: -0.065em;
  margin: 0 0 22px;
  line-height: 1.08;
}
.alias {
  font:
    14px ui-monospace,
    monospace;
  color: var(--muted);
  margin: 0 0 52px;
}
.role {
  font-size: 27px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.tagline {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 26px;
}
.intro {
  max-width: 630px;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
.planet pre {
  margin: 0;
  font-family: ui-monospace, monospace;
}
.planet {
  display: block;
  position: absolute;
  right: -30px;
  top: 64px;
  font:
    9px/1.2 ui-monospace,
    monospace;
  white-space: pre;
  color: var(--planet);
  pointer-events: none;
  z-index: -1;
}
.ai {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 23px 27px;
  margin: 0 0 34px;
}
.eyebrow {
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ai h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 12px;
}
.ai p {
  max-width: 750px;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
.skills {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 42px;
}
.skills strong {
  color: var(--text);
  font-weight: 500;
}
.skills .skill-accent {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.skills-summary {
  margin: 24px 0 0;
}
section.experience {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
}
.company {
  font-size: 20px;
}
.row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.row .summary {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 5px;
}
.all {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
}
.scale {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 30px 0;
}
footer {
  padding-top: 12px;
  font-size: 13px;
}
article {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
article h2 {
  font-size: 27px;
  font-weight: 500;
  margin: 0 0 7px;
}
article h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 27px 0 12px;
}
article p,
article li {
  font-size: 16px;
  line-height: 1.75;
  max-width: 800px;
}
article li {
  margin: 10px 0;
}
article ul {
  padding-left: 20px;
}
.detail-title {
  font-size: 60px;
  margin: 50px 0 40px;
}
.back {
  display: inline-block;
  margin: 25px 0 5px;
  font-size: 14px;
}
@media (max-width: 650px) {
  main {
    padding: 28px 24px 40px;
    overflow: hidden;
  }
  .hero {
    padding-top: 42px;
    padding-bottom: 31px;
  }
  h1 {
    font-size: 58px;
    max-width: 320px;
  }
  .alias {
    font-size: 12px;
    margin-bottom: 36px;
  }
  .role {
    font-size: 23px;
  }
  .tagline {
    font-size: 14px;
  }
  .intro {
    font-size: 15px;
  }
  .planet {
    right: -175px;
    top: 90px;
    font-size: 9px;
    opacity: 0.4;
  }
  .ai {
    padding: 18px 18px;
    margin-bottom: 23px;
  }
  .ai h2 {
    font-size: 17px;
  }
  .ai p {
    font-size: 14px;
  }
  .skills {
    font-size: 12px;
    margin-bottom: 29px;
  }
  .row {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 17px 0;
  }
  .company {
    font-size: 19px;
  }
  .row .description {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .row p {
    font-size: 14px;
  }
  .row .summary {
    font-size: 12px;
  }
  .date {
    grid-column: 2;
    grid-row: 1;
  }
  .detail-title {
    font-size: 45px;
  }
  article p,
  article li {
    font-size: 15px;
  }
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.theme-control {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.theme-control:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-control:hover,
.theme-control:focus-visible {
  color: var(--accent);
}
.theme-control:focus-visible {
  outline: none;
}
.theme-control:focus-visible::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 2px;
  background: var(--accent);
}
.theme-control svg {
  flex-shrink: 0;
  animation: theme-icon-in 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes theme-icon-in {
  from {
    opacity: 0.65;
    transform: rotate(-12deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Interpolate the shared palette once, including colors inside the ASCII planet. */
:root {
  transition:
    --background 420ms cubic-bezier(0.22, 1, 0.36, 1),
    --text 420ms cubic-bezier(0.22, 1, 0.36, 1),
    --muted 420ms cubic-bezier(0.22, 1, 0.36, 1),
    --accent 420ms cubic-bezier(0.22, 1, 0.36, 1),
    --planet 420ms cubic-bezier(0.22, 1, 0.36, 1),
    --surface 420ms cubic-bezier(0.22, 1, 0.36, 1),
    --border 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 400px) {
  .top {
    flex-wrap: wrap;
    gap: 16px;
  }
  .controls {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
