@property --bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #f3ece2;
}

:root {
  --bg: #f3ece2;
  --ink: #2c2722;
  --muted: #6b635a;
  --line: rgba(44, 39, 34, 0.12);
  --cool-bg-opacity: 0.2;
  --font-display: "Arial Black", Arial, sans-serif;
  --font-text: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

html,
body,
a,
a:link,
a:visited,
a:hover,
a:active,
button {
  /* cursor: url("images/hand.png") 6 2, auto; */
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-synthesis: none;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--ink);
}

.top-nav .nav-split {
  margin-left: 0.15rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.mood-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mood-switch-text {
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.mood-switch-text.is-active {
  color: var(--ink);
}

.mood-switch-control {
  position: relative;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 1.35rem;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
}

.mood-switch-thumb {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.2s ease;
}

.mood-switch-control[aria-checked="false"] .mood-switch-thumb {
  transform: translateX(1.1rem);
}

.mood-hand {
  position: absolute;
  z-index: 6;
  top: 0.15rem;
  left: 5.15rem;
  width: 4.75rem;
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform-origin: 12% 18%;
  filter: drop-shadow(0 1px 0 var(--ink));
}

.mood-switch.is-hand-flipping .mood-hand {
  animation: mood-hand-flip 1.15s ease-in-out forwards;
}

@keyframes mood-hand-flip {
  0% {
    opacity: 0;
    transform: translate(2.5rem, 4.5rem) rotate(-28deg);
  }
  28% {
    opacity: 1;
    transform: translate(0.15rem, 0.35rem) rotate(-12deg);
  }
  42% {
    transform: translate(0.05rem, 0.55rem) rotate(-10deg) scale(0.94);
  }
  62% {
    transform: translate(-1.85rem, 0.5rem) rotate(-6deg) scale(0.94);
  }
  82%,
  100% {
    opacity: 0;
    transform: translate(-1.4rem, 4.75rem) rotate(8deg);
  }
}

.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-face-wrap {
  position: relative;
  width: min(320px, 70vw);
  margin: 0 auto 1.5rem;
  user-select: none;
}

.hero-eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.eyeball,
.lid {
  transform-box: fill-box;
  transform-origin: center;
}

.lid {
  transform: scaleY(0);
}

.hero-face-wrap.is-blinking .eyeball {
  animation: blink-eyeball 0.22s ease-in-out;
}

.hero-face-wrap.is-blinking .lid {
  animation: blink-lid 0.22s ease-in-out;
}

@keyframes blink-eyeball {
  0%,
  100% {
    transform: scaleY(1);
  }
  45%,
  55% {
    transform: scaleY(0.06);
  }
}

@keyframes blink-lid {
  0%,
  100% {
    transform: scaleY(0);
  }
  45%,
  55% {
    transform: scaleY(1);
  }
}

.fly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: #111;
  pointer-events: none;
  will-change: transform;
}

.fly[hidden] {
  display: none !important;
}

.fortune-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  width: 7.5rem;
  padding: 0;
  border: 0;
  background: none;
  transform-origin: center center;
  transition: transform 0.25s ease;
}

.fortune-cookie img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  pointer-events: none;
}

.fortune-cookie:hover,
.fortune-cookie:focus-visible {
  transform: scale(1.08);
}

html[data-mood="cool"] {
  /* --font-display: "Bungee", system-ui, sans-serif; */
  --font-text: "Fredoka", system-ui, sans-serif;
  animation: cool-bg 28s ease-in-out infinite;
}

html[data-mood="cool"] body {
  font-weight: 400;
  isolation: isolate;
}

html[data-mood="cool"] .hero h1,
html[data-mood="cool"] .post-list h3,
html[data-mood="cool"] .services-list h3,
html[data-mood="cool"] .project-details h3,
html[data-mood="cool"] .project-feed-header h3 {
  font-weight: 400;
}

html[data-mood="cool"] .about p,
html[data-mood="cool"] .services-list p,
html[data-mood="cool"] .post-list p,
html[data-mood="cool"] .project-details-text,
html[data-mood="cool"] .project-feed-text {
  font-weight: 500;
}

html[data-mood="cool"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("1.png");
  background-repeat: repeat;
  background-size: var(--cool-tile-w) var(--cool-tile-h);
  mix-blend-mode: screen;
  opacity: var(--cool-bg-opacity);
  animation: cool-scroll 80s linear infinite;
  --cool-tile-w: min(26rem, 72vw);
  --cool-tile-h: calc(var(--cool-tile-w) * 1.4895);
}

html[data-mood="boring"] {
  --bg: #f3ece2;
}

@keyframes cool-bg {
  0%,
  100% {
    --bg: #444444;
  }
  50% {
    --bg: #666666;
  }
}

@keyframes cool-scroll {
  from {
    background-position: 50% 0;
  }
  to {
    background-position: 50% var(--cool-tile-h);
  }
}

html[data-mood="boring"] .fortune-cookie,
html[data-mood="boring"] .fly {
  display: none !important;
}

html[data-mood="boring"] .logo:hover,
html[data-mood="boring"] .top-nav a:hover,
html[data-mood="boring"] .hero h1:hover,
html[data-mood="boring"] .work h2:hover,
html[data-mood="boring"] .services h2:hover,
html[data-mood="boring"] .about h2:hover,
html[data-mood="boring"] .blog h2:hover,
html[data-mood="boring"] .post-list h3:hover,
html[data-mood="boring"] .services-list h3:hover,
html[data-mood="boring"] .social-list a:hover,
html[data-mood="boring"] .project-card:hover .project-card-media img,
html[data-mood="boring"] .project-card:focus-visible .project-card-media img {
  transform: none;
}

.hero-face {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero h1 {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
}

.work {
  padding: 0 2rem 4rem;
}

.work h2,
.services h2,
.about h2,
.blog h2 {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(16rem, 42%) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 3rem;
  padding: 0 2rem 0 0;
  text-align: left;
}

.about-copy {
  max-width: 32rem;
  width: 100%;
  padding: 3rem 0 4rem;
  text-align: left;
  align-self: center;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: bottom left;
}

.services {
  padding: 0 2rem 4rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin: 0;
  padding: 0;
  max-width: 52rem;
  list-style: none;
}

.services-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
}

.services-list p {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}

.about p {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}

.site-footer {
  background: #000;
  color: #f3ece2;
  padding: 2.25rem 2rem;
  margin-top: auto;
}

.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.site-footer-name {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.site-footer-nav a {
  color: rgba(243, 236, 226, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: #f3ece2;
}

.site-footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer-label {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: #f3ece2;
}

.site-footer .social-list {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
}

.site-footer .social-list a {
  width: 2.25rem;
  height: 2.25rem;
  color: #f3ece2;
}

.site-footer-meta {
  margin-left: auto;
  text-align: right;
}

.site-footer-copy {
  margin: 0.35rem 0 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(243, 236, 226, 0.55);
}

.blog {
  padding: 3rem 2rem 4rem;
}

.post-list {
  margin: 0;
  padding: 0;
  max-width: 38rem;
  list-style: none;
}

.post-list li + li {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-list time {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
}

.post-list p {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}

.top-nav a[aria-current="page"] {
  color: var(--ink);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.social-list svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.logo,
.top-nav a,
.hero h1,
.work h2,
.services h2,
.about h2,
.blog h2,
.post-list h3,
.services-list h3,
.social-list a {
  transform-origin: center center;
  transition: transform 0.25s ease, color 0.2s ease;
}

.logo:hover,
.top-nav a:hover,
.hero h1:hover,
.work h2:hover,
.services h2:hover,
.about h2:hover,
.blog h2:hover,
.post-list h3:hover,
.services-list h3:hover,
.social-list a:hover {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  html[data-mood="cool"] {
    animation: none;
  }

  html[data-mood="cool"] body::before {
    animation: none;
  }

  .mood-switch.is-hand-flipping .mood-hand {
    animation: none;
  }

  .fly {
    display: none !important;
  }

  .logo,
  .top-nav a,
  .hero h1,
  .work h2,
  .services h2,
  .about h2,
  .blog h2,
  .post-list h3,
  .services-list h3,
  .social-list a {
    transition: none;
  }

  .logo:hover,
  .top-nav a:hover,
  .hero h1:hover,
  .work h2:hover,
  .services h2:hover,
  .about h2:hover,
  .blog h2:hover,
  .post-list h3:hover,
  .services-list h3:hover,
  .social-list a:hover,
  .fortune-cookie:hover,
  .fortune-cookie:focus-visible,
  .project-card:hover .project-card-media img,
  .project-grid li:hover .project-card-media img {
    transform: none;
  }

  .project-card-media img,
  .fortune-cookie,
  .mood-switch-thumb {
    transition: none;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.project-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-media img,
.project-card:focus-visible .project-card-media img {
  transform: scale(1.12);
}

.project-modal[hidden] {
  display: none !important;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 39, 34, 0.45);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  padding: 2.5rem 1.75rem 1.75rem;
  border-radius: 20px;
}

.project-modal[data-layout="grid"] .project-modal-dialog {
  width: min(1080px, 100%);
}

.project-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 2rem;
  line-height: 1;
}

.project-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.75rem;
  align-items: start;
}

.project-gallery-stage {
  position: relative;
}

.project-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(44, 39, 34, 0.06);
}

.project-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.project-gallery-prev {
  left: 0.5rem;
}

.project-gallery-next {
  right: 0.5rem;
}

.project-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.project-gallery-thumbs button {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 2px solid transparent;
  background: none;
}

.project-gallery-thumbs button[aria-selected="true"] {
  border-color: var(--ink);
}

.project-gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
}

.project-details-text {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
}

.project-feed[hidden],
.project-modal-layout[hidden] {
  display: none !important;
}

.project-feed-header {
  max-width: 36rem;
  margin: 0 0 2rem;
  text-align: left;
}

.project-feed-header h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
}

.project-feed-text {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
}

.project-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.project-feed-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 0.75rem;
}

.project-feed-grid figure {
  margin: 0;
}

.project-feed-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(44, 39, 34, 0.06);
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-feed-grid,
  .project-feed-row {
    gap: 0.6rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 7.5rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .work,
  .services {
    padding: 0 1.25rem 3rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .about-copy {
    order: -1;
    max-width: none;
    padding: 0 1.25rem 0.5rem;
    text-align: left;
  }

  .about-photo {
    width: min(22rem, 100%);
    justify-self: start;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer {
    padding: 1.75rem 1.25rem;
  }

  .blog {
    padding: 2rem 1.25rem 3rem;
  }

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

  .project-modal {
    padding: 0.75rem;
    align-items: stretch;
  }

  .project-modal-dialog {
    max-height: calc(100vh - 1.5rem);
    padding: 2.5rem 1rem 1.25rem;
  }

  .project-feed-row[data-cols="4"],
  .project-feed-row[data-cols="5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 
h2 {
  font-size: 20px !important;
  color:grey !important;
  /* font-family: 'Courier New', Courier, monospace !important; 
} 
*/