@font-face {
  font-family: Hand;
  src: url("fonts/patrick-hand.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("fonts/nunito.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fcf8f2;
  --ink: #26314b;
  --muted: #62677a;
  --card: #fffefc;
  --line: #e9e4de;
  --yellow: #ffd574;
  --peach: #f8e3d6;
  --lavender: #eae5f4;
  --sage: #e7eddf;
  --blue: #e4edf2;
  --shadow: 0 5px 21px #51443106;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2395836a' opacity='.25' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  z-index: -1;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #8a70a9;
  outline-offset: 6px;
  border-radius: 8px;
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  display: block;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  font-family: Hand, cursive;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}
h2 {
  font-size: 35px;
}
h3 {
  font-size: 27px;
}
.icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.wrap {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--yellow);
  padding: 10px 20px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  gap: 25px;
}
.wordmark {
  font-family: Nunito, sans-serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: -1px;
}
.wordmark-os {
  font-size: 0.65em;
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  transition:
    transform 0.2s,
    background-color 0.2s;
}
.social-link:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}
.social-logo {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social-links-labelled {
  margin-top: 23px;
  flex-wrap: wrap;
}
.social-links-labelled .social-link {
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 48px;
}
.site-nav {
  display: flex;
  gap: 44px;
  align-items: center;
}
.site-nav a {
  position: relative;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 0;
  white-space: nowrap;
}
.site-nav a:after {
  position: absolute;
  content: "";
  height: 5px;
  border-radius: 70% 40%;
  background: var(--yellow);
  bottom: 5px;
  left: -4px;
  right: -4px;
  transform: scaleX(0) rotate(-2deg);
  transition: transform 0.2s;
}
.site-nav a:hover:after,
.site-nav a[aria-current="page"]:after {
  transform: scaleX(1) rotate(-2deg);
}
.theme-toggle,
.menu-toggle {
  border: 0;
  background: none;
  padding: 7px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.theme-toggle .icon {
  width: 34px;
  height: 34px;
  transition: transform 0.3s;
}
.theme-toggle:hover .icon {
  transform: rotate(25deg);
}
.menu-toggle {
  display: none;
}
.theme-toggle[hidden],
.menu-toggle[hidden] {
  display: none;
}
.hero {
  position: relative;
  min-height: 494px;
  padding-top: 35px;
  padding-bottom: 24px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 450px;
}
.hero h1 {
  font-size: 84px;
  line-height: 0.99;
  letter-spacing: 2px;
  transform: rotate(-3deg);
  transform-origin: left bottom;
  margin: 0 0 31px;
}
.hero h1 span {
  display: block;
}
.hero .intro {
  font-family: Hand, cursive;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: 0.3px;
  max-width: 400px;
}
.hero .intro strong {
  font-weight: 400;
}
.hero-degree {
  display: block;
}
.hero .hero-role {
  display: block;
  width: fit-content;
  margin: 10px 0 12px;
  padding: 0 4px;
  font-size: 1.12em;
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 40px;
  background: var(--yellow);
  color: #2c3343;
  padding: 13px 25px;
  font-weight: bold;
  font-size: 15px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 #dec07855;
}
.button .icon {
  width: 21px;
  height: 21px;
}
.hero .button {
  margin-top: 10px;
}
.hero-art {
  position: absolute;
  width: 790px;
  max-width: none;
  right: -43px;
  bottom: -81px;
  z-index: 1;
  pointer-events: none;
}
.hero-star {
  position: absolute;
  left: 328px;
  top: 26px;
  width: 43px;
  height: 52px;
  color: #efbb47;
  transform: rotate(10deg);
}
.sticky-notes {
  position: absolute;
  right: 10px;
  top: 13px;
  width: 263px;
  height: 226px;
  z-index: 2;
}
.note {
  position: absolute;
  display: grid;
  place-items: center;
  width: 96px;
  height: 107px;
  border: 1.5px solid #858396;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 3px 3px 0 #e7dccd66;
  font-family: Hand, cursive;
  font-size: 24px;
}
.note:before {
  content: "";
  position: absolute;
  top: -8px;
  width: 7px;
  height: 17px;
  border: 2px solid #b9a697;
  border-radius: 7px;
  transform: rotate(15deg);
}
.note:nth-child(1) {
  left: 4px;
  top: 0;
  transform: rotate(-8deg);
}
.note:nth-child(2) {
  left: 111px;
  top: -8px;
  transform: rotate(-3deg);
}
.note:nth-child(3) {
  left: 75px;
  top: 110px;
  transform: rotate(-4deg);
}
.note:nth-child(4) {
  left: 181px;
  top: 119px;
  transform: rotate(-3deg);
}
.margin-note {
  position: absolute;
  top: 63px;
  right: 282px;
  font-family: Hand, cursive;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
  color: #8c7b9e;
  transform: rotate(-10deg);
  z-index: 2;
}
.margin-note span {
  display: block;
}
.home-cards {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}
.nav-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 23px;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.nav-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 0 9px 24px #46382d0d;
}
.nav-card > .icon {
  width: 37px;
  height: 37px;
}
.nav-card h2 {
  font-family: Nunito, sans-serif;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 4px;
  line-height: 1.4;
}
.nav-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  gap: 20px;
  margin-top: 18px;
}
.footer-note {
  margin: 0;
  font-family: Hand, cursive;
  font-size: 23px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-note .icon {
  color: #e6b94b;
  width: 32px;
  height: 32px;
}
.footer-dog {
  width: 94px;
  height: 84px;
  transform: rotate(5deg);
}
.page-heading {
  position: relative;
  padding: 32px 0 38px;
  text-align: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 13px;
}
.page-heading h1 {
  font-size: 66px;
  letter-spacing: 0.5px;
}
.page-heading h1:after {
  content: "";
  display: block;
  width: 125px;
  height: 7px;
  background: var(--yellow);
  border-radius: 60%;
  margin: 13px auto 16px;
  transform: rotate(-2deg);
}
.page-heading > p:last-child {
  font-family: Hand, cursive;
  color: var(--muted);
  font-size: 22px;
  margin: 0;
}
.little-star {
  position: absolute;
  left: calc(50% + 190px);
  top: 57px;
  width: 32px;
  color: #dcb355;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 56px;
  align-items: center;
  margin: 10px 0 40px;
}
.portrait-paper {
  position: relative;
  background: var(--peach);
  border: 9px solid var(--card);
  border-bottom-width: 58px;
  border-radius: 5px;
  transform: rotate(-3deg);
  box-shadow: 0 6px 18px #6355450b;
  aspect-ratio: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 20px 10px 6px;
}
.portrait-paper:before {
  content: "";
  position: absolute;
  top: -22px;
  left: calc(50% - 44px);
  height: 34px;
  width: 88px;
  transform: rotate(8deg);
  background: #e1d9bdad;
  z-index: 1;
}
.portrait-paper img {
  width: 145%;
  max-width: none;
  position: absolute;
  left: -19%;
  bottom: -2%;
}
.portrait-caption {
  position: absolute;
  bottom: -46px;
  font-family: Hand, cursive;
  font-size: 23px;
  white-space: nowrap;
}
.about-copy h2 {
  font-size: 41px;
  margin: 0 0 22px;
}
.about-copy p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}
.highlight {
  background: linear-gradient(
    transparent 58%,
    var(--yellow) 58%,
    var(--yellow) 89%,
    transparent 89%
  );
  padding: 0 3px;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.chip {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
  background: var(--paper);
}
.about-copy .chip {
  background: var(--lavender);
  border: 0;
}
.section-label {
  font-family: Hand, cursive;
  font-size: 30px;
  margin: 0 0 22px;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 25px 27px;
}
.value-card .icon {
  margin-bottom: 15px;
  width: 32px;
  height: 32px;
}
.value-card h3 {
  margin: 0 0 10px;
}
.value-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.value-card:nth-child(1) {
  background: var(--sage);
}
.value-card:nth-child(2) {
  background: var(--lavender);
}
.value-card:nth-child(3) {
  background: var(--peach);
}
.page-end {
  font-family: Hand, cursive;
  font-size: 22px;
  text-align: center;
  margin: 37px 0 8px;
}
.text-link {
  border-bottom: 2px solid #d5c39d;
  padding-bottom: 3px;
}
.text-link:hover {
  border-color: var(--ink);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 27px;
  margin: 8px 0 30px;
  align-items: stretch;
}
.project {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-image-link {
  display: block;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  background: #f8f5ff;
  overflow: hidden;
}
.project-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.project-image-link:hover img {
  transform: scale(1.025);
}
.project-image-link:focus-visible {
  outline-offset: -5px;
}
.tucknotes-image {
  background: #192139;
}
.project-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 24px;
}
.project-links .button {
  padding: 10px 18px;
  font-size: 13px;
  gap: 14px;
}
.project-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
}
.project-source:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.project-placeholder {
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 165px;
  padding: 27px;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.placeholder-doodle {
  color: var(--muted);
  transform: rotate(-7deg);
}
.placeholder-doodle .icon {
  width: 36px;
  height: 36px;
}
.project-placeholder h2 {
  font-size: 29px;
  margin: 0 0 7px;
}
.project-placeholder p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.project-art {
  height: 248px;
  background: var(--lavender);
  display: grid;
  place-items: center;
  position: relative;
  padding: 26px;
}
.project-art .art-label {
  position: absolute;
  bottom: 6px;
  right: 17px;
  font-family: Hand, cursive;
  font-size: 15px;
  color: #68647b;
}
.browser-sketch {
  width: 89%;
  height: 180px;
  border: 1.5px solid #707083;
  background: #fffdfa;
  box-shadow: 7px 7px 0 #d9d1e7;
  border-radius: 10px;
  transform: rotate(-3deg);
  color: #36405a;
  overflow: hidden;
}
.browser-bar {
  border-bottom: 1px solid #d8d4dd;
  height: 26px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 10px;
}
.browser-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cfb8bd;
}
.browser-bar i:nth-child(2) {
  background: #ead08d;
}
.browser-bar i:nth-child(3) {
  background: #b4c6ac;
}
.code-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding: 17px;
}
.code-content b {
  font-family: Hand, cursive;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}
.code-content pre {
  font-family: monospace;
  font-size: 11px;
  margin: 8px 0;
  line-height: 1.6;
  color: #697389;
}
.sketch-list {
  padding-top: 4px;
}
.sketch-list span {
  display: block;
  border-radius: 6px;
  background: #eaf0e4;
  padding: 4px 7px;
  font-size: 10px;
  margin-bottom: 7px;
}
.sketch-list span:nth-child(2) {
  background: #f7edd4;
}
.sketch-list span:nth-child(3) {
  background: #eee8f7;
}
.project-art.portfolio-art {
  background: var(--peach);
}
.mini-home {
  position: relative;
  padding: 15px 20px;
}
.mini-home span {
  font-family: Hand, cursive;
  font-size: 25px;
  line-height: 1.1;
  display: block;
}
.mini-home small {
  font-size: 8px;
  display: block;
  margin-top: 9px;
}
.mini-home img {
  position: absolute;
  width: 186px;
  right: -5px;
  top: 4px;
}
.project-info {
  padding: 27px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-kicker {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.project-info h2 {
  font-size: 34px;
  margin-bottom: 12px;
}
.project-info > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 15px;
}
.project-info .chips {
  margin: auto 0 21px;
}
.project-details {
  border-top: 1px solid var(--line);
}
.project-details summary {
  padding: 17px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  list-style: none;
}
.project-details summary::-webkit-details-marker {
  display: none;
}
.project-details summary:after {
  content: "+";
  font-family: Hand, cursive;
  font-size: 25px;
  line-height: 1;
}
.project-details[open] summary:after {
  content: "−";
}
.detail-copy {
  padding-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.detail-copy p:last-child {
  margin-bottom: 0;
}
.project-note {
  text-align: center;
  font-family: Hand, cursive;
  color: var(--muted);
  font-size: 22px;
  margin: 27px 0;
}
.project-note .icon {
  display: inline-block;
  vertical-align: middle;
  color: #c09a49;
  margin-right: 12px;
}
.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 7px 0 43px;
}
.interest-card {
  text-align: center;
  padding: 27px 18px 22px;
}
.interest-card:nth-child(1) {
  background: var(--peach);
}
.interest-card:nth-child(2) {
  background: var(--blue);
}
.interest-card:nth-child(3) {
  background: var(--lavender);
}
.interest-card:nth-child(4) {
  background: var(--sage);
}
.interest-card .icon {
  height: 65px;
  width: 65px;
  margin: 0 auto 20px;
  stroke-width: 1.3;
  transform: rotate(-6deg);
}
.interest-card:nth-child(even) .icon {
  transform: rotate(6deg);
}
.interest-card h2 {
  font-size: 29px;
  margin-bottom: 10px;
}
.interest-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.skills-panel {
  padding: 28px 32px;
}
.skills-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.skills-title h2 {
  font-size: 32px;
}
.skills-title p {
  font-family: Hand, cursive;
  font-size: 19px;
  color: var(--muted);
  margin: 0;
}
.skills-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.skill-group {
  border-left: 2px solid var(--line);
  padding-left: 20px;
}
.skill-group h3 {
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 15px;
}
.skill-group .chips {
  margin: 0;
  gap: 8px;
}
.skill-group .chip {
  font-size: 13px;
}
.error-page {
  text-align: center;
  padding: 80px 0;
}
.error-page h1 {
  font-size: 85px;
}
.error-page p {
  margin: 20px 0 30px;
}
html[data-theme="night"] {
  color-scheme: dark;
  --paper: #252c3a;
  --ink: #f3ecdf;
  --muted: #c4c3c9;
  --card: #303847;
  --line: #465061;
  --yellow: #e7bd66;
  --peach: #4c3e3b;
  --lavender: #413e54;
  --sage: #3b483e;
  --blue: #344653;
  --shadow: 0 5px 21px #0000000c;
}
html[data-theme="night"] .hero-art {
  filter: brightness(0.87);
}
html[data-theme="night"] .margin-note {
  color: #c0aed4;
}
html[data-theme="night"] .note {
  border-color: #8a8291;
}
html[data-theme="night"] .art-label {
  color: var(--muted);
}
@media (min-width: 1440px) {
  .site-header {
    min-height: 130px;
  }
  .hero {
    min-height: 520px;
    padding-top: 43px;
  }
  .hero-art {
    width: 835px;
    right: -63px;
    bottom: -85px;
  }
  .home-cards {
    margin-top: 4px;
  }
  .site-footer {
    min-height: 135px;
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .header-actions {
    gap: 26px;
  }
  .site-nav {
    gap: 27px;
  }
  .hero {
    min-height: 465px;
  }
  .hero h1 {
    font-size: 74px;
  }
  .hero .intro {
    font-size: 21px;
    max-width: 335px;
  }
  .hero-art {
    width: 690px;
    right: -28px;
    bottom: -68px;
  }
  .hero-star {
    left: 270px;
    width: 33px;
  }
  .sticky-notes {
    transform: scale(0.8);
    transform-origin: top right;
    right: 13px;
    top: 16px;
  }
  .margin-note {
    right: 232px;
    font-size: 18px;
    top: 50px;
  }
  .nav-card {
    padding: 22px 18px;
    gap: 16px;
  }
  .nav-card h2 {
    font-size: 16px;
  }
  .nav-card p {
    font-size: 12px;
  }
  .nav-card > .icon {
    width: 30px;
  }
  .about-grid {
    gap: 34px;
  }
  .interest-grid {
    gap: 13px;
  }
  .interest-card {
    padding: 23px 12px;
  }
  .interest-card h2 {
    font-size: 25px;
  }
  .mini-home img {
    width: 160px;
  }
}
@media (max-width: 800px) {
  .site-header {
    min-height: 96px;
  }
  .site-nav {
    gap: 23px;
  }
  .site-nav a {
    font-size: 14px;
  }
  .header-actions {
    gap: 20px;
  }
  .wordmark {
    font-size: 22px;
  }
  .hero {
    min-height: 445px;
    padding-top: 30px;
  }
  .hero h1 {
    font-size: 67px;
  }
  .hero .intro {
    font-size: 20px;
    max-width: 310px;
  }
  .hero-art {
    width: 575px;
    right: -25px;
    bottom: -57px;
  }
  .hero-star {
    left: 251px;
    top: 23px;
    width: 28px;
  }
  .sticky-notes {
    transform: scale(0.65);
    top: 16px;
    right: 11px;
  }
  .margin-note {
    display: none;
  }
  .hero .button {
    padding: 11px 20px;
    font-size: 13px;
  }
  .home-cards {
    gap: 14px;
  }
  .nav-card {
    gap: 13px;
    padding: 20px 15px;
    border-radius: 18px;
  }
  .nav-card > .icon {
    width: 27px;
    height: 30px;
  }
  .nav-card h2 {
    font-size: 13px;
  }
  .nav-card p {
    font-size: 10px;
  }
  .footer-note {
    font-size: 20px;
    gap: 17px;
  }
  .about-grid {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 24px;
  }
  .about-copy h2 {
    font-size: 33px;
  }
  .about-copy p {
    font-size: 14px;
  }
  .values {
    gap: 13px;
  }
  .value-card {
    padding: 21px;
  }
  .project-art {
    height: 220px;
    padding: 16px;
  }
  .browser-sketch {
    width: 96%;
    height: 166px;
  }
  .code-content {
    gap: 8px;
    padding: 12px;
  }
  .code-content pre {
    font-size: 9px;
  }
  .code-content b {
    font-size: 22px;
  }
  .sketch-list span {
    font-size: 9px;
  }
  .mini-home img {
    width: 144px;
    top: 23px;
  }
  .project-info {
    padding: 22px;
  }
  .projects-grid {
    gap: 19px;
    grid-template-columns: 1fr 1fr;
  }
  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-rows {
    gap: 15px;
  }
  .skill-group {
    padding-left: 15px;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 86px;
    position: relative;
    flex-wrap: wrap;
    gap: 0;
  }
  .header-actions {
    gap: 9px;
  }
  .theme-toggle .icon {
    width: 28px;
    height: 28px;
  }
  .menu-toggle:not([hidden]) {
    display: grid;
  }
  .site-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 13px;
    padding: 0 0 14px;
    order: 3;
  }
  .header-actions {
    display: contents;
  }
  .theme-toggle {
    margin-left: auto;
    margin-right: 6px;
  }
  .site-nav a {
    font-size: 12px;
  }
  .js .site-nav {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 17px 22px;
    box-shadow: 0 9px 25px #25314b13;
    z-index: 8;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
  }
  .js .site-nav.is-open {
    display: flex;
  }
  .js .site-nav a {
    font-size: 16px;
  }
  .hero {
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: 68px;
    line-height: 1.03;
    margin-bottom: 25px;
  }
  .hero .intro {
    font-size: 21px;
    max-width: 340px;
  }
  .hero .button {
    font-size: 14px;
    padding: 12px 24px;
    margin-top: 5px;
  }
  .hero-star {
    left: 260px;
    top: 17px;
    width: 30px;
  }
  .hero-art {
    position: relative;
    width: calc(100% + 32px);
    max-width: none;
    right: auto;
    left: -17px;
    bottom: auto;
    margin-top: 3px;
    margin-bottom: -38px;
    z-index: 1;
  }
  .sticky-notes {
    right: 8px;
    top: auto;
    bottom: 177px;
    transform: scale(0.43);
  }
  .home-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }
  .nav-card {
    padding: 20px 24px;
    gap: 24px;
    border-radius: 20px;
  }
  .nav-card > .icon {
    width: 34px;
    height: 34px;
  }
  .nav-card h2 {
    font-size: 17px;
    margin-bottom: 2px;
  }
  .nav-card p {
    font-size: 13px;
  }
  .nav-card:after {
    content: "↗";
    font-family: Hand, cursive;
    font-size: 24px;
    margin-left: auto;
    color: var(--muted);
  }
  .site-footer {
    margin-top: 17px;
    min-height: 104px;
    grid-template-columns: 1fr auto;
    gap: 12px 15px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .site-footer .social-links {
    grid-column: 1;
    grid-row: 2;
  }
  .site-footer .footer-dog {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .footer-note {
    font-size: 17px;
    gap: 11px;
    letter-spacing: 0;
  }
  .footer-note .icon {
    width: 23px;
    height: 23px;
  }
  .footer-dog {
    width: 62px;
    height: 66px;
    flex-shrink: 0;
  }
  .page-heading {
    padding: 18px 0 29px;
  }
  .page-heading h1 {
    font-size: 51px;
  }
  .page-heading > p:last-child {
    font-size: 20px;
  }
  .little-star {
    left: auto;
    right: 8px;
    top: 44px;
    width: 25px;
  }
  .page-heading h1:after {
    height: 5px;
    margin: 12px auto;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 31px;
    margin: 0 0 29px;
  }
  .portrait-paper {
    width: 85%;
    max-width: 330px;
    justify-self: center;
    margin: 6px 0 10px;
    aspect-ratio: 1.2;
  }
  .about-copy h2 {
    font-size: 35px;
  }
  .about-copy p {
    font-size: 15px;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .value-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 17px;
  }
  .value-card .icon {
    grid-row: 1/3;
    margin: 3px 0 0;
  }
  .value-card h3 {
    font-size: 28px;
    margin-bottom: 5px;
  }
  .value-card p {
    grid-column: 2;
  }
  .section-label {
    font-size: 27px;
  }
  .page-end {
    font-size: 20px;
    margin-top: 28px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-art {
    height: 225px;
  }
  .browser-sketch {
    width: 86%;
    max-width: 340px;
    height: 171px;
  }
  .code-content {
    padding: 15px;
    gap: 14px;
  }
  .code-content pre {
    font-size: 10px;
  }
  .sketch-list span {
    font-size: 10px;
  }
  .project-info {
    padding: 25px;
  }
  .mini-home img {
    width: 175px;
    top: 10px;
  }
  .interest-grid {
    gap: 13px;
    margin-bottom: 28px;
  }
  .interest-card {
    padding: 22px 13px;
  }
  .interest-card .icon {
    width: 53px;
    height: 53px;
    margin-bottom: 15px;
  }
  .interest-card h2 {
    font-size: 25px;
  }
  .interest-card p {
    font-size: 12px;
  }
  .skills-panel {
    padding: 25px;
  }
  .skills-title {
    display: block;
    margin-bottom: 23px;
  }
  .skills-title h2 {
    font-size: 30px;
  }
  .skills-title p {
    font-size: 18px;
    margin-top: 9px;
  }
  .skills-rows {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .skill-group {
    padding-left: 17px;
  }
  .skill-group h3 {
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  main {
    animation: appear 0.45s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
img {
  height: auto;
}
.portrait-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
@media (max-width: 620px) {
  .sticky-notes {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    transform: none;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin: 27px 0 0;
    padding-right: 5px;
  }
  .sticky-notes .note {
    position: relative;
    left: auto;
    top: auto;
    width: 53px;
    height: 58px;
    font-size: 15px;
  }
  .sticky-notes .note:before {
    width: 5px;
    height: 12px;
    top: -6px;
    border-width: 1px;
  }
  .hero-art {
    order: 3;
    margin-top: -50px;
  }
}
@media print {
  .theme-toggle,
  .menu-toggle,
  .site-footer {
    display: none !important;
  }
  .wrap {
    width: 100%;
  }
  body {
    background: white;
    color: #26314b;
  }
  .panel,
  .nav-card {
    break-inside: avoid;
  }
  .project-details .detail-copy {
    display: block;
  }
  .hero {
    min-height: 480px;
  }
}

/* A soft card shuffle, with fixed columns so text never reflows on hover. */
.projects-main {
  width: min(1480px, calc(100% - 80px));
}
.projects-main .projects-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(
      0,
      1fr
    );
  gap: 22px;
  align-items: stretch;
  margin-top: 24px;
  isolation: isolate;
}
.projects-main .project {
  position: relative;
  min-width: 0;
  transform-origin: center 75%;
}
.projects-main .project-info {
  padding: 23px 20px;
}
.projects-main .project-info h2 {
  font-size: 32px;
}
.projects-main .project-info > p {
  margin-bottom: 22px;
}
.projects-main .project-info .project-kicker {
  font-size: 10px;
  letter-spacing: 1.3px;
  min-height: 33px;
  margin-bottom: 9px;
}
.projects-main .project-links {
  gap: 8px 16px;
}
.projects-main .project-links .button {
  padding: 10px 14px;
  gap: 8px;
}
@media (min-width: 1100px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .projects-main .project {
    transform-origin: center center;
    transition:
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.7s ease,
      border-color 0.7s ease;
  }
  .projects-grid[data-active] .project {
    transform: translate(-7px, 3px) rotate(-0.35deg) scale(0.99);
  }
  .projects-grid[data-active="1"] .project:nth-child(1),
  .projects-grid[data-active="2"] .project:nth-child(2),
  .projects-grid[data-active="3"] .project:nth-child(3),
  .projects-grid[data-active="4"] .project:nth-child(4) {
    transform: translateY(-9px) scale(1.025);
    box-shadow: 0 14px 38px -12px #51443124;
    border-color: #e0d5c3;
    z-index: 2;
  }
  .projects-grid[data-active="1"] .project:nth-child(1) ~ .project,
  .projects-grid[data-active="2"] .project:nth-child(2) ~ .project,
  .projects-grid[data-active="3"] .project:nth-child(3) ~ .project {
    transform: translate(7px, 3px) rotate(0.35deg) scale(0.99);
  }
  .projects-main .project-image-link img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .projects-main .project-image-link:hover img {
    transform: none;
  }
}
@media (max-width: 1099px) {
  .projects-main .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .projects-main {
    width: calc(100% - 40px);
  }
  .projects-main .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Compact About: one portrait and one short introduction. */
.about-main .page-heading {
  padding: 12px 0 28px;
}
.about-main .page-heading h1 {
  font-size: 58px;
}
.about-main .about-story {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 80px;
  align-items: center;
  margin: 8px 0 24px;
}
.about-photo-frame {
  position: relative;
  width: 100%;
  max-width: 330px;
  margin: 8px auto 14px;
  padding: 10px 10px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 24px #5144310b;
}
.about-photo-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -13px;
  left: calc(50% - 38px);
  width: 76px;
  height: 27px;
  background: #dfd6bda8;
  transform: rotate(5deg);
}
.about-photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 2px;
}
.about-photo-frame figcaption {
  font-family: Hand, cursive;
  font-size: 23px;
  text-align: center;
  margin-top: 10px;
}
.about-photo-frame figcaption span {
  color: var(--muted);
  margin-left: 6px;
}
.about-main .about-copy h2 {
  font-size: clamp(32px, 3.2vw, 43px);
  line-height: 1.2;
  margin-bottom: 22px;
}
.about-main .about-copy p {
  font-size: 16px;
  line-height: 1.85;
}
.about-main .about-copy strong {
  color: var(--ink);
  font-weight: 600;
}
.about-main .about-role {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 13px;
  padding: 6px 14px;
  margin: 0;
}
.about-main .social-links-labelled {
  margin-top: 20px;
}
html[data-theme="night"] .about-main .highlight {
  background: linear-gradient(
    transparent 58%,
    #705d3b 58%,
    #705d3b 89%,
    transparent 89%
  );
}
@media (max-width: 900px) {
  .about-main .about-story {
    gap: 35px;
  }
  .about-main .about-copy h2 {
    font-size: 33px;
  }
  .about-main .about-copy p {
    font-size: 14px;
  }
  .about-main .about-copy .about-role {
    font-size: 12px;
  }
}
@media (max-width: 620px) {
  .about-main .page-heading {
    padding: 10px 0 23px;
  }
  .about-main .page-heading h1 {
    font-size: 48px;
  }
  .about-main .about-story {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 8px 0 20px;
  }
  .about-photo-frame {
    max-width: 240px;
    padding: 8px 8px 11px;
  }
  .about-photo-frame figcaption {
    font-size: 20px;
    margin-top: 7px;
  }
  .about-main .about-copy h2 {
    font-size: 32px;
    margin-bottom: 18px;
  }
  .about-main .about-copy p {
    font-size: 15px;
    line-height: 1.8;
  }
  .about-main .about-copy .about-role {
    font-size: 13px;
  }
}

.about-project-link {
  text-decoration: underline;
  text-decoration-color: #cbb98f;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.about-project-link:hover {
  text-decoration-color: currentColor;
}

.about-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

/* A clear contact entry and an illustrated look beyond the work. */
.header-actions {
  gap: 24px;
}
.site-nav {
  gap: 28px;
}
.header-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 15px;
  min-height: 44px;
  border: 1px solid #dbc58c;
  border-radius: 999px;
  background: var(--yellow);
  color: #26314b;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s ease;
}
.header-connect .icon {
  width: 17px;
  height: 17px;
  margin-left: 4px;
}
.header-connect:hover {
  transform: translateY(-2px);
}
.interests-main .page-heading {
  padding-bottom: 28px;
}
.professional-interests {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px 28px;
  align-items: center;
  padding: 25px 30px;
  margin: 3px 0 34px;
}
.professional-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-row: span 2;
}
.professional-heading .icon {
  color: #c49b4a;
  width: 32px;
  height: 32px;
}
.professional-heading h2 {
  font-size: 30px;
}
.professional-interests > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.professional-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.professional-tags li {
  font-size: 11px;
  border-radius: 999px;
  background: var(--lavender);
  padding: 4px 11px;
}
.interest-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.interest-section-heading h2 {
  font-size: 32px;
}
.interest-section-heading > p {
  font-family: Hand, cursive;
  font-size: 20px;
  color: var(--muted);
  margin: 0;
}
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.hobby-card {
  padding: 17px 24px 25px;
}
.hobby-card.hobby-golf {
  background: var(--sage);
}
.hobby-card.hobby-dog {
  background: var(--peach);
}
.hobby-card.hobby-electronics {
  background: var(--lavender);
}
.hobby-art {
  height: 124px;
  width: 180px;
  max-width: 100%;
  margin: 0 auto 8px;
  color: var(--ink);
}
.hobby-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.hobby-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.tech-section {
  padding: 26px 30px 22px;
  margin: 3px 0 36px;
}
.tech-section .eyebrow {
  color: var(--muted);
  font-size: 9px;
  margin: 0 0 5px;
}
.top-skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.top-skill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.top-skill img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  flex-shrink: 0;
}
.top-skill span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.more-tech {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: center;
}
.more-tech h3 {
  font-size: 23px;
  color: var(--muted);
}
.other-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.other-skills li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.other-skills img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}
html[data-theme="night"] .top-skill img,
html[data-theme="night"] .other-skills img {
  background: #faf8f4;
  border-radius: 6px;
  padding: 3px;
}
@media (max-width: 1000px) {
  .header-actions {
    gap: 16px;
  }
  .site-nav {
    gap: 20px;
  }
  .site-nav a {
    font-size: 14px;
  }
  .header-connect span {
    display: none;
  }
  .top-skill {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .more-tech {
    grid-template-columns: 1fr;
  }
  .hobby-card {
    padding: 17px 18px 23px;
  }
  .hobby-card h3 {
    font-size: 25px;
  }
}
@media (min-width: 621px) and (max-width: 750px) {
  .site-header {
    width: calc(100% - 40px);
    gap: 14px;
  }
  .header-actions {
    gap: 10px;
  }
  .site-nav {
    gap: 14px;
  }
  .site-nav a {
    font-size: 12px;
  }
  .header-connect {
    padding: 8px 10px;
    font-size: 12px;
  }
  .header-connect .icon {
    display: none;
  }
}
@media (max-width: 620px) {
  .header-connect {
    margin-left: auto;
    margin-right: 10px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .header-connect .icon {
    display: none;
  }
  .theme-toggle {
    margin-left: 0;
  }
  .js .site-nav {
    gap: 1px;
  }
  .professional-interests {
    grid-template-columns: 1fr;
    padding: 23px;
    gap: 16px;
    margin-bottom: 28px;
  }
  .professional-heading {
    grid-row: auto;
  }
  .interest-section-heading {
    display: block;
  }
  .interest-section-heading h2 {
    margin-bottom: 8px;
  }
  .interest-section-heading > p {
    font-size: 18px;
  }
  .hobbies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hobby-card {
    padding: 20px 23px;
  }
  .hobby-art {
    height: 108px;
  }
  .hobby-card h3 {
    font-size: 28px;
  }
  .tech-section {
    padding: 23px;
  }
  .top-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .other-skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
.interests-main .little-star { left: calc(50% + 242px); }
@media (max-width: 620px) {
  .interests-main .little-star { display: none; }
}

/* Keep professional curiosity and tools together, followed by life outside work. */
.tech-intro {
  max-width: 850px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.skills-subtitle {
  font-size: 25px;
  margin: 0 0 14px;
}
.other-skills .aws-wordmark {
  width: 54px;
  height: 40px;
}

/* A small, personal note from anywhere in the portfolio. */
.contact-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 100px #26314b33;
  overflow-y: auto;
}
.contact-dialog::backdrop { background: #20283b66; backdrop-filter: blur(5px); }
html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-close {
  position: absolute; top: 12px; right: 14px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 28px;
}
.contact-close:hover { background: var(--paper); }
.contact-stamp { display: grid; place-items: center; width: 46px; height: 46px; background: var(--peach); border-radius: 15px; transform: rotate(-7deg); margin-bottom: 17px; }
.contact-stamp .icon { width: 27px; height: 27px; }
.contact-intro .eyebrow { font-size: 10px; margin: 0 0 5px; }
.contact-intro h2 { font-size: 42px; margin: 0 0 12px; }
.contact-intro > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin: 7px 0 18px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 400;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form :is(input, textarea):focus-visible { outline: 2px solid #ba944b; outline-offset: 3px; }
.contact-form :is(input, textarea)::placeholder { color: var(--muted); opacity: .8; }
.contact-honey { display: none; }
.contact-status { font-size: 13px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.contact-status:empty { display: none; }
.contact-send { width: 100%; justify-content: center; }
.contact-privacy { font-size: 11px; line-height: 1.6; text-align: center; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 620px) {
  .contact-dialog { padding: 26px 22px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-intro h2 { font-size: 36px; }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .hobbies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* All skills share one simple, readable grid. */
.top-skills { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.top-skill { flex-direction: column; justify-content: center; gap: 12px; min-height: 116px; text-align: center; }
.top-skill .aws-wordmark { width: 64px; height: 52px; }
@media (min-width: 621px) and (max-width: 1000px) {
  .top-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .top-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Give each interest photo a fuller, nearly edge-to-edge frame. */
.hobby-card { padding: 10px 10px 25px; }
.hobby-card .hobby-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  margin: 0 0 18px;
}
.hobby-card h3, .hobby-card > p {
  margin-left: 14px;
  margin-right: 14px;
}

/* Share photo, heading, and body rows so descriptions align across cards. */
@media (min-width: 621px) {
  .hobby-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
    align-items: start;
  }
}

/* A single soft shuffle on hover; card layout and text flow stay fixed. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hobby-card, .top-skill {
    position: relative;
    transform-origin: center 65%;
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1), box-shadow 420ms ease;
  }
  .hobby-card:hover, .top-skill:hover {
    z-index: 1;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px #26314b16;
    animation: interest-shuffle 680ms cubic-bezier(.22, 1, .36, 1) 1;
  }
}
@keyframes interest-shuffle {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translate(-2px, -5px) rotate(-.8deg); }
  52% { transform: translate(2px, -5px) rotate(.65deg); }
  76% { transform: translate(-.5px, -4px) rotate(-.2deg); }
  100% { transform: translateY(-4px) rotate(0); }
}

/* Contact feedback stays visible until the visitor dismisses it. */
.contact-dialog [hidden] { display: none !important; }
.contact-send:disabled { cursor: wait; opacity: .7; transform: none; box-shadow: none; }
.contact-status[data-state="error"] { padding: 12px 14px; border: 1px solid #c8947a; border-radius: 12px; background: var(--peach); color: var(--ink); }
.contact-fallback { font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.contact-fallback a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-success { text-align: center; padding: 25px 0 14px; }
.contact-success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; background: var(--sage); color: var(--ink); border-radius: 28px 32px 26px 34px; transform: rotate(-5deg); }
.contact-success-mark .icon { width: 38px; height: 38px; }
.contact-success .eyebrow { font-size: 10px; margin: 0 0 10px; }
.contact-success h2 { font-size: clamp(38px, 7vw, 52px); margin: 0 0 14px; }
.contact-success > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 28px; }
.contact-done { min-width: 180px; }
.contact-another { display: block; margin: 18px auto 0; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

.hobby-card.hobby-trading { background: var(--yellow); }
