:root {
  --paper: #f7efe7;
  --paper-soft: #fff9ef;
  --ink: #211915;
  --faded: #65564d;
  --rose: #c88b97;
  --rose-deep: #7f3e4e;
  --blush: #edd1d8;
  --sage: #b9d2ac;
  --green: #6e7d56;
  --blue: #a7c9d4;
  --lilac: #c4afd0;
  --butter: #f1dc91;
  --line: rgba(33, 25, 21, 0.28);
  --shadow: 9px 10px 0 rgba(33, 25, 21, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(33, 25, 21, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(33, 25, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family:
    Avenir Next,
    Avenir,
    Helvetica Neue,
    Arial,
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.55;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 139, 151, 0.34), transparent 25%),
    radial-gradient(circle at 80% 7%, rgba(167, 201, 212, 0.34), transparent 24%),
    radial-gradient(circle at 70% 88%, rgba(185, 210, 172, 0.38), transparent 28%),
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 10px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

button,
input,
textarea {
  font: inherit;
}

.topline {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 46px);
  color: var(--ink);
  pointer-events: none;
}

.topline > * {
  pointer-events: auto;
}

.topline p {
  width: fit-content;
  margin: 0;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px 5px 7px 4px;
  background: rgba(255, 249, 239, 0.88);
  box-shadow: 4px 5px 0 rgba(200, 139, 151, 0.7);
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1.2rem;
  font-weight: 700;
  transform: rotate(-1.5deg);
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 4px 4px 0 var(--butter);
  font-family: Georgia, Times, serif;
  font-weight: 800;
  text-decoration: none;
}

.dm-link {
  padding: 9px 14px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 4px 4px 0 var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(26px, 5vw, 72px);
  min-height: 100svh;
  padding: 116px clamp(18px, 5vw, 70px) 70px;
  isolation: isolate;
}

.desk::after {
  position: absolute;
  right: 8vw;
  bottom: 5vh;
  z-index: -1;
  width: min(520px, 45vw);
  height: min(520px, 45vw);
  border: 2px solid rgba(33, 25, 21, 0.1);
  border-radius: 48% 52% 45% 55%;
  content: "";
  background: rgba(237, 209, 216, 0.48);
  transform: rotate(11deg);
}

.art-board {
  position: relative;
  min-width: 0;
  min-height: 650px;
}

.paper-frame {
  position: absolute;
  margin: 0;
  padding: 12px 12px 42px;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 4px 8px 5px 7px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.paper-frame::before {
  position: absolute;
  top: -18px;
  left: 42%;
  width: 92px;
  height: 30px;
  border: 1px solid rgba(33, 25, 21, 0.18);
  content: "";
  background: rgba(241, 220, 145, 0.82);
  transform: rotate(-4deg);
}

.paper-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid rgba(33, 25, 21, 0.2);
  filter: saturate(0.95) contrast(0.97);
}

.paper-frame figcaption,
.tiny,
.scribble-list,
.steps,
.footer {
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
}

.paper-frame figcaption {
  position: absolute;
  right: 14px;
  bottom: 9px;
  left: 14px;
  color: var(--faded);
  font-size: 1.05rem;
  font-weight: 700;
}

.frame-large {
  top: 78px;
  left: 3%;
  width: min(660px, 88%);
  height: 390px;
  transform: rotate(-2.5deg);
}

.frame-bed {
  right: 2%;
  bottom: 2%;
  width: min(360px, 46%);
  height: 310px;
  transform: rotate(3.2deg);
}

.frame-chair {
  bottom: 58px;
  left: 0;
  width: min(350px, 44%);
  height: 300px;
  transform: rotate(-5deg);
}

.note {
  align-self: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 2px solid var(--ink);
  border-radius: 8px 4px 7px 5px;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(33, 25, 21, 0.11) 34px 36px),
    linear-gradient(92deg, rgba(255, 249, 239, 0.96), rgba(247, 239, 231, 0.96));
  box-shadow: 12px 14px 0 rgba(110, 125, 86, 0.26);
  transform: rotate(0.6deg);
}

.tiny {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: 1rem;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 520px;
  font-size: clamp(3rem, 5.1vw, 4.85rem);
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--faded);
  font-size: 1.08rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.scribble-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.scribble-list li {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--blush);
  font-size: 0.98rem;
  font-weight: 800;
  transform: rotate(-1deg);
}

.scribble-list li:nth-child(2) {
  background: var(--sage);
  transform: rotate(1.6deg);
}

.scribble-list li:nth-child(3) {
  background: var(--blue);
  transform: rotate(-2deg);
}

.scribble-list li:nth-child(4) {
  background: var(--butter);
  transform: rotate(1deg);
}

.inquiry-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 5px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 6px 2px;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-bottom-color: var(--rose-deep);
  box-shadow: 0 5px 0 rgba(196, 175, 208, 0.38);
}

.mood-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.mood-picks legend {
  flex: 0 0 100%;
  margin-bottom: 2px;
}

.mood-picks input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mood-picks span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.72);
  cursor: pointer;
  font-weight: 800;
}

.mood-picks input:checked + span {
  background: var(--sage);
  box-shadow: 3px 3px 0 var(--rose);
}

.send-note {
  width: fit-content;
  min-height: 48px;
  padding: 12px 20px;
  color: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--rose);
  cursor: pointer;
  font-weight: 900;
}

.send-note:hover,
.send-note:focus-visible {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--blue);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.work-strip,
.process {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 70px);
  border-top: 2px solid var(--ink);
}

.work-strip {
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.62), rgba(237, 209, 216, 0.38)),
    var(--paper);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(240px, 460px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 30px;
}

.section-title h2,
.process h2 {
  max-width: 620px;
  font-size: clamp(2.25rem, 4.4vw, 4.2rem);
}

.scroll-gallery {
  display: grid;
  grid-auto-columns: minmax(270px, 36vw);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 4px 22px;
  scroll-snap-type: x proximity;
}

.scroll-gallery figure {
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-soft);
  box-shadow: 7px 8px 0 rgba(33, 25, 21, 0.12);
  scroll-snap-align: start;
  transform: rotate(-1deg);
}

.scroll-gallery figure:nth-child(even) {
  transform: rotate(1.2deg);
}

.scroll-gallery img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transform: scale(1.04);
}

.scroll-gallery figcaption {
  padding: 13px 15px 15px;
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1.2rem;
  font-weight: 900;
}

.process {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  background:
    linear-gradient(120deg, rgba(167, 201, 212, 0.62), rgba(185, 210, 172, 0.72)),
    var(--blue);
}

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

.steps li {
  min-height: 210px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 249, 239, 0.78);
  box-shadow: 6px 6px 0 rgba(127, 62, 78, 0.18);
  transform: rotate(-1.2deg);
}

.steps li:nth-child(2) {
  transform: rotate(1deg);
}

.steps li:nth-child(3) {
  transform: rotate(-0.4deg);
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.steps span {
  color: var(--faded);
  font-size: 1.05rem;
  line-height: 1.35;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: var(--paper-soft);
  background: var(--ink);
  font-weight: 900;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--paper-soft);
}

@media (max-width: 980px) {
  .topline {
    position: absolute;
  }

  .desk {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 92px;
  }

  .art-board {
    min-height: 590px;
    order: 2;
  }

  .note {
    order: 1;
  }

  .frame-large {
    width: 82%;
  }

  .frame-bed,
  .frame-chair {
    width: 43%;
  }

  .section-title,
  .process {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .topline {
    padding: 14px;
  }

  .topline p {
    display: none;
  }

  .dm-link {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desk {
    gap: 28px;
    min-height: auto;
    padding: 82px 14px 44px;
  }

  .note {
    justify-self: start;
    width: 340px;
    max-width: calc(100% - 20px);
    padding: 23px 18px;
    transform: none;
  }

  h1 {
    max-width: 100%;
    font-size: 2.35rem;
    line-height: 1;
  }

  .lead {
    font-size: 1rem;
  }

  .scribble-list {
    gap: 7px;
  }

  .scribble-list li {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .art-board {
    min-height: 500px;
  }

  .paper-frame {
    padding: 9px 9px 35px;
  }

  .paper-frame figcaption {
    font-size: 0.94rem;
  }

  .frame-large {
    top: 28px;
    left: 2%;
    width: 92%;
    height: 260px;
  }

  .frame-chair {
    bottom: 12px;
    left: 2%;
    width: 51%;
    height: 210px;
  }

  .frame-bed {
    right: 2%;
    bottom: 48px;
    width: 52%;
    height: 230px;
  }

  .work-strip,
  .process {
    padding: 58px 14px;
  }

  .scroll-gallery {
    grid-auto-columns: 82vw;
  }

  .scroll-gallery figure {
    min-height: 330px;
  }

  .scroll-gallery img {
    height: 272px;
  }

  .footer {
    flex-direction: column;
    padding: 24px 14px;
  }
}
