:root {
  --blue: #178bff;
  --blue-dark: #0869d2;
  --yellow: #ffd93d;
  --green: #bbf24a;
  --ink: #172b4d;
  --paper: #fbfaf5;
  --muted: #5b6675;
  --white: #fff;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --radius: 18px;
  --shadow: 6px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--yellow);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  min-height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: var(--blue);
  margin-left: 3px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header nav a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--blue-dark);
}

.site-header .nav-contact {
  padding: 0.65rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 610px;
  padding: 75px 10% 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  overflow: hidden;
  background: var(--blue);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 550px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.6rem, 7vw, 6.3rem);
}

h1 span {
  color: var(--yellow);
}

.hero-intro {
  max-width: 430px;
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50px;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.hero-art {
  position: relative;
  width: min(39vw, 420px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(4deg);
}

.sunburst {
  position: absolute;
  color: var(--yellow);
  font-size: clamp(13rem, 25vw, 23rem);
  line-height: 1;
}

.hero-sticker {
  position: relative;
  padding: 1.2rem 1.6rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  transform: rotate(-8deg);
}

.hero-spark {
  position: absolute;
  font-size: 2.5rem;
}

.spark-one {
  top: 12%;
  right: 16%;
}

.spark-two {
  bottom: 18%;
  left: 12%;
  color: var(--blue);
}

.hero-caption {
  position: absolute;
  right: -45px;
  bottom: 25px;
  font-size: 0.65rem;
  font-weight: 700;
  transform: rotate(-4deg);
}

.hero-tape {
  position: absolute;
  right: -2%;
  bottom: 20px;
  left: -2%;
  padding: 0.55rem;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  transform: rotate(-1deg);
}

.section-wrap {
  padding: 100px 10%;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.heading-mark {
  color: var(--blue);
}

.section-intro {
  max-width: 490px;
  color: var(--muted);
}

.about-layout {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.about-photo {
  position: relative;
  width: 42%;
  min-width: 260px;
  height: 390px;
  flex: 0 1 42%;
}

.about-photo img {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-note {
  position: absolute;
  right: -20px;
  bottom: 25px;
  padding: 0.65rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 700;
  transform: rotate(-5deg);
}

.about-copy {
  max-width: 530px;
  flex: 1;
}

.lead {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.about-copy > p:not(.lead),
.artist-copy > p:not(.lead) {
  color: var(--muted);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.about-tags span {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
}

.web-work {
  background: #f1f5fa;
}

.web-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.project-card {
  position: relative;
  height: 250px;
  flex: 1 1 calc(33.333% - 1.2rem);
  min-width: 220px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}

.project-card img {
  transition: transform 250ms ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.card-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-links {
  max-width: 720px;
  margin: 3rem auto 0;
}

.project-links > a {
  display: flex;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid #cbd3de;
  font-weight: 700;
  text-decoration: none;
}

.project-links > a:hover {
  color: var(--blue-dark);
}

.project-links > a span {
  color: var(--blue-dark);
}

.links-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.art-feature {
  position: relative;
  height: 350px;
  margin-bottom: 2.2rem;
}

.art-feature img {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.art-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: rotate(10deg);
}

.artist-copy {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.art-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.art-gallery img {
  height: 205px;
  flex: 1 1 calc(20% - 1rem);
  min-width: 150px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  background: var(--green);
}

.contact-copy {
  position: relative;
  max-width: 440px;
  flex: 1;
}

.contact h2 span {
  color: var(--blue-dark);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 370px;
}

.contact-doodle {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--blue-dark);
  font-size: 4rem;
  line-height: 1;
}

.contact-form {
  width: min(100%, 500px);
  flex: 1;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.form-field textarea {
  min-height: 135px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.form-field [aria-invalid="true"] {
  border-color: #b42318;
}

.error-message {
  display: block;
  min-height: 1.1em;
  margin-top: 0.25rem;
  color: #8f1d16;
  font-size: 0.8rem;
}

.form-status {
  min-height: 1.5em;
  margin: 0.8rem 0 0;
  font-weight: 700;
}

.form-note {
  margin: 0.3rem 0 0;
  color: #41522b;
  font-size: 0.8rem;
}

.site-footer {
  min-height: 90px;
  padding: 1.2rem 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer > a:last-child {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header {
    padding: 1rem 6%;
  }

  .site-header nav {
    gap: 0.8rem;
  }

  .site-header nav a {
    font-size: 0.78rem;
  }

  .site-header nav a:nth-child(2),
  .site-header nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 70px 8% 100px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .hero-art {
    width: min(75vw, 360px);
    align-self: center;
  }

  .section-wrap {
    padding: 75px 8%;
  }

  .about-layout,
  .contact {
    flex-direction: column;
    align-items: stretch;
  }

  .about-photo {
    width: 100%;
    height: 330px;
    flex-basis: auto;
  }

  .project-card {
    flex-basis: calc(50% - 1.2rem);
  }

  .contact-form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header nav {
    gap: 0.6rem;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    padding-right: 7%;
    padding-left: 7%;
  }

  .project-card {
    height: 220px;
    flex-basis: 100%;
  }

  .art-feature {
    height: 240px;
  }

  .art-gallery img {
    height: 155px;
    flex-basis: calc(50% - 1rem);
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
