:root {
  color-scheme: dark;
  --ink: #edf3fb;
  --dim: #adbacb;
  --line: #2a3748;
  --accent: #a9cdff;
  --ground: #0a1018;
  font: 100%/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #87dcb2; outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(72rem, calc(100% - clamp(2.5rem, 9vw, 9rem))); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -8rem; z-index: 2; background: var(--ground); padding: .7rem 1rem; }
.skip:focus { top: .5rem; }
.top { border-bottom: 1px solid var(--line); }
.top nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); min-height: 4.6rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.brand { gap: .6rem; margin-right: auto; font-size: 1.25rem; font-weight: 650; letter-spacing: -.05em; }
.private-link, .work-link { font-size: .925rem; }
.private-link { border: 1px solid #42536a; background: #111a26; border-radius: .55rem; padding-inline: 1.1rem; }
.private-link:hover { background: #1d2b3d; }
.work-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  min-height: clamp(26rem, 36vw, 33rem);
  padding: 2.5rem 0 2rem;
}
.intro { z-index: 1; }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 11.6ch; font-size: clamp(3.15rem, 6.15vw, 5.6rem); line-height: 1.01; letter-spacing: -.065em; font-weight: 610; text-wrap: balance; }
h1 em { color: var(--accent); font-style: normal; }
.intro p { max-width: 39ch; margin-top: 1.5rem; color: var(--dim); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-art { display: block; width: 118%; max-width: none; margin-left: -13%; height: auto; }

.projects { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3.25rem) 4.25rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: 1.35rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.15; letter-spacing: -.05em; font-weight: 620; }
.section-head p { color: var(--dim); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
article { display: flex; align-items: flex-start; flex-direction: column; padding: clamp(1.35rem, 3vw, 2.05rem); background: #101923; border: 1px solid var(--line); border-radius: .85rem; }
h3 { margin: 1.1rem 0 .45rem; letter-spacing: -.045em; font-size: 1.65rem; line-height: 1.2; font-weight: 610; }
article p { color: var(--dim); margin-bottom: 1.35rem; max-width: 45ch; }
.action { margin-top: auto; display: inline-flex; align-items: center; min-height: 2.75rem; color: #bedaff; font-weight: 600; text-underline-offset: .3em; text-decoration-color: #56779f; }
.action:hover { color: #e3efff; text-decoration-color: currentColor; }
.project-icon { width: 2.75rem; height: 2.75rem; border: 1px solid #3b526a; border-radius: .7rem; background: #18273a; color: #adcefb; }
.layers { position: relative; }
.layers i { position: absolute; top: .65rem; left: .85rem; width: 1rem; height: 1rem; border: 1.5px solid; transform: scaleX(1.1) scaleY(.57) rotate(45deg); }
.layers i:nth-child(2) { top: .91rem; border-top-color: transparent; border-left-color: transparent; }
.layers i:nth-child(3) { top: 1.16rem; border-top-color: transparent; border-left-color: transparent; }
.pegs { padding: .58rem .66rem; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: center; border-color: #38554f; background: #132a27; }
.pegs i { width: 3px; height: .46rem; border-radius: 2px; background: #9dddc6; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem 1.5rem; color: var(--dim); font-size: .9rem; border-top: 1px solid var(--line); }
footer span { font-weight: 600; }
footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }

@media (max-width: 46rem) {
  .hero { grid-template-columns: 1fr; gap: .4rem; padding: 2.9rem 0 1.35rem; }
  h1 { max-width: 14ch; }
  .intro p { margin-top: 1rem; }
  .hero-art { width: min(100%, 30rem); margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .projects { padding-bottom: 2.75rem; }
}
@media (max-width: 32rem) {
  .work-link { display: none; }
  .top nav { min-height: 4rem; }
  h1 { font-size: clamp(2.65rem, 10.7vw, 3.4rem); }
  .private-link { padding-inline: .85rem; }
}
