:root {
  --paper: #f3f5f1;
  --ink: #1a221e;
  --muted: #5a655e;
  --green: #1f6b5a;
  --line: #d4dbd3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 7px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

header {
  max-width: 1120px;
  margin: auto;
  padding: 25px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: none;
}

.wordmark {
  font:
    italic 34px 'Instrument Serif',
    Georgia,
    serif;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 16px;
}

nav a:hover,
footer a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 790px;
  max-width: 1320px;
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 65px 25px 28px;
}

.hero-copy {
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.13em;
  color: var(--green);
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 26px;
}

h1,
h2,
.intro,
strong {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(85px, 9.5vw, 136px);
  line-height: 0.87;
  letter-spacing: -0.04em;
  margin: 32px 0;
}

em {
  font-weight: 400;
}

.summary {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 27px;
}

.text-link {
  font-size: 16px;
  color: var(--green);
  border-bottom: 1px solid #aebdb3;
  padding-bottom: 6px;
}

.text-link span {
  margin-left: 20px;
}

.orbital-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tech-float {
  position: absolute;
  color: #879b8c;
  opacity: 0.65;
  animation: float 17s ease-in-out infinite;
}

.laptop {
  width: 142px;
  left: 9%;
  top: 22%;
  rotate: -12deg;
}

.laptop svg {
  display: block;
  width: 100%;
  height: auto;
}

.code-card {
  right: 4%;
  top: 53%;
  rotate: 9deg;
  animation-duration: 21s;
  animation-delay: -7s;
  border: 1px solid #b3c1b5;
  border-radius: 9px;
  background: #edf1eb;
  padding: 13px 17px 15px;
  color: #657d6d;
}

.code-top {
  display: flex;
  gap: 5px;
  margin-bottom: 13px;
}

.code-top span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b9e8f;
}

.code-card pre {
  font:
    12px/1.8 ui-monospace,
    Consolas,
    monospace;
  margin: 0;
}

.syntax {
  color: #3f7663;
}

.code-symbol {
  left: 19%;
  bottom: 19%;
  rotate: 12deg;
  animation-duration: 14s;
  animation-delay: -4s;
  font:
    34px ui-monospace,
    Consolas,
    monospace;
  opacity: 0.45;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }

  50% {
    transform: translate(12px, -24px) rotate(5deg);
  }
}

.section {
  max-width: 980px;
  margin: auto;
  padding: 95px 25px;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 27px 0;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.project-number {
  font-size: 13px;
  color: var(--green);
}

strong {
  font-size: 34px;
  display: block;
}

small {
  font-size: 14px;
  color: var(--muted);
}

.expand {
  margin-left: auto;
  font-size: 28px;
  color: var(--green);
  font-weight: 400;
}

details[open] .expand {
  transform: rotate(45deg);
}

.project-body {
  padding: 0 60px 25px;
  color: var(--muted);
  max-width: 740px;
}

.contact {
  text-align: center;
  padding: 100px 25px 110px;
}

.contact h2 {
  font-size: 72px;
}

.contact p:not(.eyebrow) {
  margin-bottom: 5px;
}

footer {
  max-width: 1050px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 23px 25px 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 700px) {
  header {
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    gap: 19px;
    font-size: 14px;
  }

  .wordmark {
    font-size: 29px;
  }

  .hero {
    min-height: 750px;
    padding-top: 60px;
  }

  .laptop {
    width: 67px;
    left: 8px;
    top: 16%;
    rotate: -12deg;
  }

  .code-card {
    right: 8px;
    top: auto;
    bottom: 13%;
    padding: 8px 10px;
    rotate: 6deg;
  }

  .code-card pre {
    font-size: 9px;
  }

  .code-top {
    margin-bottom: 6px;
  }

  .code-symbol {
    left: 8%;
    bottom: 19%;
    font-size: 24px;
  }

  .summary {
    max-width: 280px;
  }

  .section {
    padding: 65px 23px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 12px;
  }

  summary {
    gap: 20px;
  }

  strong {
    font-size: 29px;
  }

  .project-body {
    padding-left: 35px;
    padding-right: 10px;
  }

  .contact h2 {
    font-size: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tech-float {
    animation: none;
  }
}
:root {
  --accent: #8a8f6e;
  --green: #555d3d;
  --accent-soft: #e5e8da;
}

::selection {
  background: var(--accent);
  color: #1a221e;
}

header {
  border-bottom-color: #c5c9b5;
}

.wordmark {
  color: var(--green);
}

nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

h1 em {
  color: #737957;
}

h2 em {
  color: #737957;
}

.hero {
  background: linear-gradient(110deg, #d5cfc7 0%, #d5cfc7 30%, #bfad9c 100%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #172014;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 10px 19px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.text-link:hover {
  background: #9da382;
  transform: translateY(-2px);
}

.tech-float {
  color: #65704c;
  opacity: 0.95;
}

.code-symbol {
  opacity: 0.75;
}

.code-card {
  background: #dce1cc;
  border-color: #707a54;
  color: #424c35;
  box-shadow: 0 12px 32px #626b4510;
}

.code-top span {
  background: var(--accent);
}

.syntax {
  color: #555d3d;
}

.section > .eyebrow::before,
.section-heading .eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

.work details {
  padding-inline: 16px;
  transition: background 0.2s;
  border-bottom-color: #c5c9b5;
}

.work details:hover,
.work details[open] {
  background: #8a8f6e12;
}

.project-number {
  background: var(--accent-soft);
  border: 1px solid #c5c9b5;
  border-radius: 50%;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.expand {
  color: var(--green);
}

.contact {
  background: linear-gradient(135deg, #8a8f6e14, #8a8f6e28);
  border-top: 3px solid var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .text-link,
  .work details {
    transition: none;
  }

  .text-link:hover {
    transform: none;
  }
}

.contact-links {
  gap: 24px;
}

.icon-circle {
  width: 60px;
  height: 60px;
}

@media (prefers-reduced-motion: reduce) {
  .icon-circle {
    transition: none;
  }
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 460px);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  width: min(100%, 840px);
  text-align: left;
  margin-top: 100px;
}

.portrait-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid #8a8f6e;
  border-radius: 20px;
  background: #e5e8da;
  display: grid;
  place-items: center;
  color: #555d3d;
  font-size: 14px;
  overflow: hidden;
}

.portrait-placeholder img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: inherit;
}

.portrait-placeholder {
  border: 5px solid #e2dcd5;
  box-shadow:
    0 0 0 1px #8a8f6e66,
    0 12px 32px #1a221e0d;
}

.hero-bio {
  min-width: 0;
}

.hero-copy h1.personal-intro {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 22px 0;
}

.hero-copy .summary {
  max-width: 440px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.7;
}

.hero-bio > .eyebrow {
  margin-bottom: 0;
}

.hero .orbital-art {
  inset: 0;
}

.hero .laptop {
  width: 95px;
  left: 12%;
  top: 90px;
}

.hero .code-card {
  right: 12%;
  top: 85px;
  bottom: auto;
}

.hero .code-symbol {
  left: 8%;
  bottom: 48px;
  font-size: 28px;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .hero {
    padding-top: 185px;
    padding-bottom: 140px;
    min-height: 0;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 0;
    max-width: 460px;
  }

  .portrait-placeholder {
    width: 170px;
    justify-self: start;
  }

  .hero-copy h1.personal-intro {
    font-size: 36px;
  }

  .hero-copy .summary {
    max-width: none;
  }

  .hero .laptop {
    width: 60px;
    left: 12%;
    top: 70px;
  }

  .hero .code-card {
    right: 12%;
    top: 65px;
  }

  .hero .code-symbol {
    left: 12%;
    right: auto;
    bottom: 42px;
  }
}

.floating-braces {
  left: 48%;
  top: 140px;
  font:
    24px ui-monospace,
    Consolas,
    monospace;
  opacity: 0.7;
  rotate: 12deg;
  animation-duration: 23s;
  animation-delay: -9s;
}

.floating-terminal {
  right: 20%;
  bottom: 55px;
  font:
    22px ui-monospace,
    Consolas,
    monospace;
  opacity: 0.8;
  rotate: -8deg;
  animation-duration: 19s;
  animation-delay: -5s;
  padding: 7px 12px;
  border: 1px solid #65704cb3;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .floating-braces {
    left: auto;
    right: 18%;
    top: 220px;
    font-size: 21px;
  }

  .floating-terminal {
    right: 16%;
    bottom: 40px;
    font-size: 19px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #b9bda5;
  border-radius: 24px;
}

.language-switch button {
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--green);
  padding: 6px 11px;
  font-size: 14px;
  cursor: pointer;
  min-height: 34px;
}

.language-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: #172014;
}

.language-switch button:hover {
  background: var(--accent-soft);
}

.language-switch button[aria-pressed='true']:hover {
  background: var(--accent);
}

@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
  }

  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .contact h2 {
    font-size: 46px;
  }
}

:root {
  --green: #4e6040;
  --accent-soft: #e2e7d8;
}

.hero {
  background: linear-gradient(115deg, #ded8d0 0%, #d8d0c5 45%, #cbbbac 100%);
}

h1 em,
h2 em {
  color: #596d46;
}

.text-link {
  background: #64794f;
  border-color: #64794f;
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 5px 14px #43523918;
}

.text-link:hover {
  background: #526641;
  box-shadow: 0 8px 20px #43523925;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.language-switch button[aria-pressed='true'],
.language-switch button[aria-pressed='true']:hover {
  background: #64794f;
  color: #fff;
}

.portrait-placeholder {
  box-shadow:
    0 0 0 1px #8a8f6e66,
    0 15px 35px #413c331a;
}

.work details {
  margin-bottom: 12px;
  border: 1px solid #d1d6c8;
  border-radius: 10px;
  background: #edf0e8;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.work details:hover,
.work details:focus-within {
  background: #e6ebdf;
  border-color: #a4b096;
  box-shadow: 0 5px 16px #4253370a;
}

.work details[open] {
  background: #e6ebdf;
  border-color: #a4b096;
}

.project-number {
  background: #dbe3ce;
  color: #455738;
  border-color: #bfcaaf;
}

.expand {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbe3ce;
  transition: transform 0.2s;
}

.contact {
  background: linear-gradient(125deg, #e6e8dc, #d7dfcb);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 38px;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: none;
  color: #4e6040;
  font:
    16px 'Source Sans 3',
    sans-serif;
  text-decoration: none;
}

.contact-icon:disabled {
  opacity: 1;
  cursor: default;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #a3b18f;
  background: #edf1e7;
  border-radius: 50%;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.icon-circle svg {
  width: 27px;
  height: 27px;
}

.contact-icon[href]:hover .icon-circle,
.contact-icon:not(:disabled):focus-visible .icon-circle {
  background: #d4dec8;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px #43523915;
}

@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .portrait-placeholder {
    animation: hero-arrive 0.65s ease-out both;
  }

  .hero-bio {
    animation: hero-arrive 0.65s 0.12s ease-out both;
  }
}

@media (max-width: 480px) {
  .contact-links {
    gap: 24px;
  }

  .icon-circle {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-link span,
  .work details,
  .expand,
  .icon-circle {
    transition: none;
  }

  .text-link:hover span,
  .contact-icon[href]:hover .icon-circle {
    transform: none;
  }
}

.expand {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
  font-size: 0;
  line-height: 1;
}

.expand::before,
.expand::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.expand::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.featured-project .case-study {
  max-width: none;
  padding: 0 22px 32px;
  color: var(--muted);
}

.case-study .project-intro {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  margin-top: 0;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.project-tech span {
  font-size: 13px;
  color: #455738;
  background: #dbe3ce;
  border: 1px solid #bfcaaf;
  border-radius: 20px;
  padding: 4px 12px;
}

.case-study figure {
  margin: 0;
  min-width: 0;
}

.case-study figure a {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #c4cfc1;
  background: #d8e3e4;
}

.case-study img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.case-study figure a:hover img {
  opacity: 0.92;
}

.case-study figcaption {
  font-size: 14px;
  margin: 9px 0 20px;
  color: var(--muted);
}

.case-study h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  margin: 20px 0 10px;
}

.case-study > p {
  max-width: 740px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.project-repo {
  display: inline-block;
  color: var(--green);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  margin-top: 8px;
}

.project-repo:hover {
  color: var(--ink);
}

@media (max-width: 600px) {
  .featured-project .case-study {
    padding: 0 4px 25px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .featured-project summary {
    gap: 12px;
  }

  .featured-project small {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study img {
    transition: none;
  }
}

.project-gallery figure:last-child a {
  aspect-ratio: 1900 / 936;
  position: relative;
}

.project-gallery figure:last-child img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% * 1911 / 1900);
  max-width: none;
  height: auto;
}

.infrastructure-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
  padding: 22px;
  background: #dce3d3;
  border-radius: 10px;
  border: 1px solid #bdc9af;
}

.infrastructure-overview > div {
  min-width: 0;
  padding: 4px 10px;
}

.infra-step {
  font:
    13px ui-monospace,
    Consolas,
    monospace;
  color: #596d46;
}

.infrastructure-overview h4 {
  font:
    26px 'Instrument Serif',
    Georgia,
    serif;
  color: var(--ink);
  margin: 10px 0;
}

.infrastructure-overview p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.contribution-list {
  padding-left: 22px;
  max-width: 740px;
}

.contribution-list li {
  padding: 5px 0;
}

.contribution-list li::marker {
  color: var(--green);
}

@media (max-width: 600px) {
  .infrastructure-overview {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .infrastructure-overview > div + div {
    border-top: 1px solid #bdc9af;
    padding-top: 16px;
  }

  .infrastructure-project strong {
    font-size: 27px;
  }
}
#contact-button-1 {
  cursor: pointer;
}
#contact-button-1:hover .icon-circle {
  background: #dce3d3;
}
