/* Layered surfaces carry the blue palette through the whole homepage. */
:root { --paper: #e9ecf5; --line: #cdd3e3; }
body { background: var(--paper); }
.site-nav { padding: 28px 6px; }
.site-nav nav a:last-child { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 30px; }
.hero { position: relative; isolation: isolate; border-radius: 24px; padding: 64px 64px 88px; gap: 65px; box-shadow: 0 16px 36px -28px #182862; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(72px,8.6vw,120px); }
.hero-links .text-link:first-child { border-radius: 6px; box-shadow: 3px 4px 0 #1f329d; transition: transform .18s,box-shadow .18s; }
.hero-links .text-link:first-child:hover { transform: translate(-1px,-2px); box-shadow: 5px 7px 0 #1f329d; }
.portrait { position: relative; padding: 13px 13px 0; background: #faf9f6; border-radius: 6px; transform: rotate(3deg); align-self: center; box-shadow: 17px 22px 0 #2339ae, 0 24px 50px -20px #111c66; }
.portrait img { border-radius: 2px; height: 480px; }
.portrait figcaption { color: #4f5665; padding: 14px 2px 16px; font-size: 11px; }
#about { position: relative; z-index: 2; margin: -32px 32px 0; padding: 46px 48px; background: #fffdf7; border: 1px solid #fff; border-radius: 16px; box-shadow: 0 16px 30px -24px #465172; gap: 60px; }
#about h2 { font-size: 46px; }
#about .lead { font-size: 24px; }
#about .prose>p:not(.lead) { font-size: 16px; }
#work { margin: 38px 0; padding: 50px 48px; background: #dce3f9; border: 1px solid #d2daf0; border-radius: 22px; gap: 26px; }
#work .eyebrow { color: #39498c; }
.experience-list { gap: 18px; align-items: stretch; }
.experience-list .job { border: 1px solid #c2cdea; background: #e8edfb; padding: 27px 25px; border-radius: 12px; }
.experience-list .job:first-child { background: #fff; border-top: 4px solid var(--blue); padding-top: 24px; box-shadow: 0 14px 25px -19px #324b98; }
.experience-list .job h3 { font-size: 29px; }
.experience-list .job-role { min-height: 62px; }
.experience-list .job p { font-size: 14px; }
#projects { position: relative; margin: 0; padding: 54px 48px; border: 1px solid #c5d4a8; border-radius: 22px; background: #dce9c4; grid-template-columns: .85fr 1.35fr; gap: 55px; align-items: center; overflow: hidden; }
.project-copy h2 { font-size: 62px; }
.project-copy>p:not(.eyebrow) { font-size: 16px; color: #46533d; margin-top: 22px; }
.project-copy>.text-link { margin-top: 25px; }
.project-preview { display: block; position: relative; background: #fff; border: 1px solid #b1bd9e; border-radius: 10px; transform: rotate(-2deg); box-shadow: 12px 14px 0 #b9cb9c,0 25px 35px -20px #5c6e40; transition: transform .2s; overflow: hidden; }
.project-preview:hover { transform: rotate(0deg) translateY(-4px); }
.browser-bar { display: flex; gap: 14px; align-items: center; padding: 11px 13px; border-bottom: 1px solid #e1e3db; background: #f5f5f1; font-size: 10px; color: #6b7063; }
.browser-dots { letter-spacing: 2px; color: #b7bcaf; font-size: 8px; }
.browser-bar>span:nth-child(2) { flex: 1; text-align: center; }
.project-preview img { display: block; width: 100%; height: auto; }
#media { position: relative; overflow: hidden; background: #192139; color: #fff; border-radius: 22px; margin: 38px 0; padding: 64px 48px; gap: 70px; }
#media::before,#media::after { content: ''; position: absolute; left: 20px; right: 20px; height: 8px; background: repeating-linear-gradient(90deg,#7580a0 0 12px,transparent 12px 30px); opacity: .35; }
#media::before { top: 17px; }
#media::after { bottom: 17px; }
#media .eyebrow { color: #aebcfb; }
#media h2 { font-size: 49px; }
#media .prose { color: #c7cddd; }
#media .profile-links .text-link { color: #f5f6ff; border-color: #414a64; }
#media .profile-links .text-link:hover { color: #dff38a; }
.outside { border-radius: 22px; background: #f1e3d2; padding: 42px 48px; border: 1px solid #e0cdb5; grid-template-columns: .8fr 1.4fr; gap: 40px; }
.hobbies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.hobby { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 12px 19px; border-radius: 10px; font-weight: 600; font-size: 13px; min-width: 0; box-shadow: 0 8px 15px -12px #745d3c; }
.hobby--pool { background: #f9f3e9; transform: rotate(-3deg); }
.hobby--soccer { background: #c5d7b6; transform: rotate(2deg); }
.hobby--fitness { background: #f3bc91; transform: rotate(-2deg); }
.pool-ball { display: grid; place-items: center; width: 68px; height: 68px; background: #222326; border-radius: 50%; box-shadow: 4px 6px 0 #d6cfc2; }
.pool-ball>span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #222326; font-size: 21px; }
.soccer-mark,.fitness-mark { display: block; width: 82px; height: 68px; stroke: currentColor; stroke-width: 2; color: #34452a; }
.fitness-mark { color: #67432e; stroke-width: 9; stroke-linecap: round; }
.contact { position: relative; background: var(--blue); color: #fff; padding: 58px 48px; margin: 38px 0 0; border-radius: 22px; box-shadow: 0 14px 26px -24px #101f6d; }
.contact .eyebrow { color: #d5ddff; }
.contact h2 { color: #fff; font-size: clamp(65px,9vw,112px); }
.contact p:not(.eyebrow) { color: #e0e5ff; }
.contact .text-link:first-child { color: #e0f38b; }
.site-footer { border: none; padding: 28px 6px; }
.page { background: #fffdf7; padding: 48px; border-radius: 22px; margin-bottom: 20px; }
@media(max-width:1100px) {
  .hero { padding: 48px 40px 75px; gap: 40px; }
  .portrait img { height: 430px; }
  #about { margin-inline: 22px; padding: 38px 32px; gap: 35px; }
  #work,#projects,.outside,.contact { padding: 40px 32px; }
  .experience-list { gap: 12px; }
  .experience-list .job { padding-inline: 18px; }
  .experience-list .job h3 { font-size: 26px; }
  #media { padding: 56px 32px; gap: 40px; }
  #media h2 { font-size: 43px; }
  #projects { gap: 35px; }
}
@media(max-width:850px) and (min-width:721px) {
  .hero h1 { font-size: 80px; }
  .portrait img { height: 390px; }
  .hero-links { gap: 20px; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-list .job-role { min-height: 0; }
  .job-heading { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .outside { grid-template-columns: 1fr; gap: 25px; }
}
@media(max-width:720px) {
  main,.site-nav,.site-footer { width: calc(100% - 28px); }
  .site-nav { padding: 18px 4px; }
  .site-nav nav { gap: 12px; }
  .site-nav nav a:last-child { padding: 8px 12px; }
  .hero { border-radius: 16px; padding: 32px 25px 66px; gap: 32px; }
  .hero h1 { font-size: clamp(64px,17vw,106px); }
  .portrait { margin: 0 6px; padding: 9px 9px 0; box-shadow: 9px 12px 0 #2339ae,0 16px 22px -16px #111c66; }
  .portrait img { height: auto; aspect-ratio: 1.05; border-radius: 2px; }
  .portrait figcaption { font-size: 10px; padding: 11px 2px 13px; }
  #about { margin: -25px 10px 0; padding: 28px 23px; border-radius: 12px; gap: 8px; }
  #about h2 { font-size: 36px; }
  #about .lead { font-size: 22px; }
  #about .prose>p:not(.lead) { font-size: 15px; }
  #work { margin: 24px 0; padding: 30px 22px; border-radius: 16px; gap: 22px; }
  .experience-list { gap: 14px; }
  .experience-list .job { padding: 23px 21px; }
  .experience-list .job:first-child { padding-top: 20px; }
  .experience-list .job-role { min-height: 0; }
  .experience-list .job h3 { font-size: 27px; }
  .job-heading { align-items: flex-start; flex-direction: column-reverse; gap: 10px; }
  #projects { margin: 0; padding: 32px 25px 40px; gap: 30px; border-radius: 16px; grid-template-columns: 1fr; }
  #projects h2 { font-size: 46px; }
  .project-copy>p:not(.eyebrow) { margin-top: 17px; font-size: 15px; }
  .project-preview { box-shadow: 7px 9px 0 #b9cb9c; margin-right: 4px; }
  .browser-bar { padding: 8px 10px; font-size: 9px; }
  #media { margin: 24px 0; padding: 45px 25px; gap: 10px; border-radius: 16px; }
  #media h2 { font-size: 38px; }
  #media .prose { font-size: 15px; }
  .outside { grid-template-columns: 1fr; gap: 28px; padding: 30px 22px; border-radius: 16px; }
  .outside h2 { font-size: 36px; }
  .hobbies { gap: 9px; }
  .hobby { padding: 20px 6px 15px; gap: 20px; font-size: 11px; }
  .pool-ball { width: 48px; height: 48px; }
  .pool-ball>span { width: 25px; height: 25px; font-size: 17px; }
  .soccer-mark,.fitness-mark { width: 58px; height: 48px; }
  .contact { margin-top: 24px; padding: 37px 25px; border-radius: 16px; }
  .contact h2 { font-size: clamp(54px,15vw,85px); }
  .contact-links { gap: 20px; }
  .contact .text-link { font-size: 13px; gap: 14px; }
  .page { padding: 28px 22px; }
}
@media(prefers-reduced-motion:reduce) { .project-preview,.hero-links .text-link { transition: none; } }
@media print { .page { border-radius: 0; padding: 0; width: 100%; background: white; } }
