:root {
  --paper: #fff7e3;
  --paper-deep: #f4dfad;
  --ink: #15110d;
  --muted: #6b5f50;
  --red: #e9472b;
  --blue: #1f75bb;
  --yellow: #f5c84b;
  --green: #69a36d;
  --white: #fffdf7;
  --shadow: 0 18px 40px rgba(21, 17, 13, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 17, 13, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(21, 17, 13, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  padding: 20px 0 12px;
}

.logo,
.nav,
.site-footer a {
  font-weight: 700;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 46% 54% 49% 51%;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
  transform: rotate(-8deg);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.nav a,
.site-footer a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

main {
  overflow: hidden;
}

.hero,
.gallery-section,
.about {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  overflow: hidden;
  min-height: min(620px, calc(78svh - 88px));
  padding: 18px 0 32px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 8.4vw, 7.4rem);
  letter-spacing: 0;
}

.hero-copy > p:last-child,
.about > p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-board {
  position: relative;
  min-height: 410px;
}

.paper {
  position: absolute;
  display: block;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.paper::before,
.paper::after {
  position: absolute;
  content: "";
  border: 3px solid var(--ink);
  border-color: var(--ink) transparent transparent transparent;
  border-radius: 50%;
}

.paper-one {
  inset: 48px 84px auto auto;
  width: min(58vw, 330px);
  aspect-ratio: 4 / 5;
  transform: rotate(8deg);
}

.paper-one::before {
  top: 24%;
  left: 18%;
  width: 58%;
  height: 28%;
  transform: rotate(-12deg);
}

.paper-one::after {
  top: 58%;
  left: 24%;
  width: 42%;
  height: 20%;
  transform: rotate(16deg);
}

.paper-two {
  inset: auto auto 28px 18px;
  width: min(48vw, 290px);
  aspect-ratio: 5 / 4;
  background: var(--yellow);
  transform: rotate(-9deg);
}

.paper-two::before {
  top: 34%;
  left: 17%;
  width: 62%;
  height: 32%;
  transform: rotate(8deg);
}

.paper-two::after {
  display: none;
}

.paper-three {
  inset: 188px auto auto 78px;
  width: min(28vw, 175px);
  aspect-ratio: 1;
  background: var(--blue);
  transform: rotate(16deg);
}

.paper-three::before,
.paper-three::after {
  display: none;
}

.ink-line {
  position: absolute;
  display: block;
  border-top: 4px solid var(--ink);
  border-radius: 50%;
}

.line-one {
  top: 28px;
  right: 34px;
  width: 190px;
  height: 80px;
  transform: rotate(-18deg);
}

.line-two {
  right: 8px;
  bottom: 116px;
  width: 230px;
  height: 95px;
  transform: rotate(12deg);
}

.gallery-section {
  padding: 30px 0 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-top: 3px solid var(--ink);
  padding-top: 22px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
}

.art-card {
  min-width: 0;
}

.art-card.feature {
  grid-column: span 2;
}

.art-link {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 200, 75, 0.18), transparent 42%),
    var(--white);
  box-shadow: 7px 7px 0 var(--ink);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.art-link:hover,
.art-link:focus-visible {
  box-shadow: 10px 10px 0 var(--red);
  transform: translate(-3px, -3px) rotate(-0.4deg);
}

.art-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.art-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px 6px;
  pointer-events: none;
}

.feature .art-link {
  min-height: 520px;
}

.art-card:nth-child(4n + 2) .art-link {
  background:
    linear-gradient(135deg, rgba(31, 117, 187, 0.16), transparent 42%),
    var(--white);
}

.art-card:nth-child(4n + 3) .art-link {
  background:
    linear-gradient(135deg, rgba(105, 163, 109, 0.16), transparent 42%),
    var(--white);
}

.art-card:nth-child(4n + 4) .art-link {
  background:
    linear-gradient(135deg, rgba(233, 71, 43, 0.13), transparent 42%),
    var(--white);
}

.art-meta {
  padding: 18px 4px 2px;
}

.art-meta h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.art-meta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
  padding: 72px 0;
  border-top: 3px solid var(--ink);
}

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 28px 0 40px;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-board {
    min-height: 130px;
  }

  .paper-one {
    right: 24px;
    width: min(54vw, 230px);
  }

  .paper-two {
    left: 8px;
    width: min(48vw, 210px);
  }

  .paper-three {
    left: 28%;
    width: min(26vw, 112px);
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-card.feature {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 0;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .art-card.feature {
    grid-column: auto;
  }

}
