.m-sample {
  --table: #b2b590;
  --fold: #c9a9c1;
  --rim: #b29575;
}
.m-sample[data-tone="1"] {
  --table: #83a1ae;
  --fold: #4a6b8a;
  --rim: #b5a389;
}
.m-sample[data-tone="2"] {
  --table: #d3d2be;
  --fold: #fff7e2;
  --rim: #868b70;
}
.m-visual {
  position: relative;
  aspect-ratio: 1.08;
  overflow: hidden;
  background: var(--table);
  display: grid;
  place-items: center;
  transition: background-color 0.4s;
}
.m-visual i {
  position: absolute;
}
.m-visual .mat {
  width: 77%;
  height: 80%;
  border: 2px dashed #67553677;
  border-radius: 48%;
}
.m-visual .plate {
  width: 62%;
  aspect-ratio: 1;
  background: #f5ead7;
  border-radius: 50%;
  border: 7px double var(--rim);
  box-shadow: 3px 10px 12px #3d382833;
}
.m-visual .napkin {
  width: 50%;
  height: 30%;
  rotate: -26deg;
  background: repeating-linear-gradient(
    90deg,
    var(--fold) 0 4px,
    color-mix(in srgb, var(--fold), #685a59 12%) 5px
  );
  box-shadow: 2px 5px 5px #39312440;
}
.m-visual .sprig {
  width: 18%;
  height: 23%;
  background: #67744a;
  border-radius: 90% 0 90% 0;
  transform: rotate(18deg);
}
body {
  --ink: #2d1730;
  --fuchsia: #e4acd9;
  --green: #c2dc77;
  --line: #bfaebc;
  background: #fbf6fa;
  color: var(--ink);
  font-family: "Bricolage Grotesque", Arial, sans-serif;
}
main {
  max-width: 1600px;
  margin: auto;
}
.m-nav,
.m-nav nav,
.m-logotype,
.m-foot {
  display: flex;
  align-items: center;
}
.m-nav {
  padding: 16px 4%;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}
.m-logotype {
  gap: 8px;
  font:
    400 clamp(35px, 4vw, 64px) / 0.82 "Archivo Black",
    sans-serif;
  letter-spacing: -0.09em;
  text-decoration: none;
}
.m-logotype span {
  font:
    640 12px/0.94 "Bricolage Grotesque",
    sans-serif;
  letter-spacing: 0;
}
.m-nav nav {
  gap: clamp(10px, 2.4vw, 38px);
}
a {
  text-underline-offset: 4px;
}
.m-nav nav a {
  font-size: 14px;
  font-weight: 650;
}
.m-board {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 3vw;
  padding: clamp(28px, 4vw, 70px) 6%;
  overflow: hidden;
  background: var(--fuchsia);
}
.m-hero-copy {
  z-index: 1;
  max-width: 36ch;
}
.m-hero-copy > p:first-child,
.m-feature figcaption,
.m-commissions small,
.m-nav nav a:last-child,
.m-platemark span,
.m-tags,
.m-lab legend {
  font:
    400 12px/1.4 "Space Mono",
    monospace;
}
.m-hero-copy h1 {
  margin: 18px 0;
  font:
    400 clamp(70px, 10vw, 166px) / 0.77 "Archivo Black",
    sans-serif;
  letter-spacing: -0.096em;
}
.m-hero-copy > a,
.m-tags a,
.m-enquiry button {
  display: inline-block;
  width: fit-content;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 650;
}
.m-platemark {
  width: min(100%, 550px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
  position: relative;
  border: 8px solid #ddb9d5;
  outline: 2px dashed var(--ink);
  outline-offset: 5px;
}
.m-platemark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-platemark span {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  background: #fffcee;
  color: var(--ink);
  white-space: nowrap;
  padding: 5px 12px;
}
.m-tags {
  position: absolute;
  right: 3%;
  top: 12%;
  z-index: 2;
  background: var(--green);
  padding: 11px 17px;
  rotate: 7deg;
  box-shadow: 2px 3px 0 var(--ink);
}
.m-tags a {
  display: block;
  padding: 0;
  color: inherit;
  background: none;
  text-decoration: underline;
  margin: 3px 0 0;
}
.m-lab,
.m-feature,
.m-craft,
.m-measure,
.m-enquiry,
.m-commissions {
  padding: clamp(25px, 4.5vw, 78px) 6%;
  border-top: 2px solid var(--ink);
}
h2 {
  font:
    730 clamp(30px, 4vw, 64px) / 0.98 "Bricolage Grotesque",
    sans-serif;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
h2 + p,
.m-commissions details p,
.m-craft p,
.m-measure p,
.m-enquiry p {
  margin-top: 12px;
}
.m-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8%;
  background: #fcf8ed;
}
.m-lab h2,
.m-feature h2,
.m-commissions h2,
.m-enquiry h2 {
  margin: 7px 0 14px;
}
.m-lab fieldset {
  border: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 10px;
}
.m-lab legend {
  margin-bottom: 5px;
}
.m-lab label {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}
.m-lab label:has(:checked) {
  background: #eac9e5;
}
.m-lab input {
  accent-color: var(--ink);
}
#palette-note {
  max-width: 48ch;
  min-height: 3em;
}
.m-sample {
  max-width: 370px;
  width: 100%;
  margin: auto;
}
.m-lab figcaption {
  padding: 9px 0;
}
.m-visual {
  border-radius: 42% 42% 0 0;
}
.m-feature {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  align-items: end;
  gap: 4%;
  background: #d7e2c1;
}
.m-feature figure img,
.m-craft figure img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1.65;
}
.m-feature figcaption,
.m-craft figcaption {
  padding-top: 5px;
}
.m-feature dl {
  margin-top: 17px;
}
.m-feature dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid #62705d;
}
.m-feature dd {
  text-align: right;
}
.m-commissions {
  background: #fff;
}
.m-commissions > .m-section-title {
  max-width: 62ch;
}
.m-services {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.m-services details {
  padding: 16px;
  background: #eedeea;
  border-radius: 10px 10px 0 0;
}
.m-services details:nth-child(2) {
  background: #dbe9a9;
}
.m-services details:nth-child(3) {
  background: #dae3f0;
}
.m-services summary {
  font-size: 20px;
  font-weight: 700;
}
.m-services small {
  display: block;
  margin-bottom: 5px;
}
.m-services a {
  display: inline-block;
  margin-top: 12px;
}
.m-craft,
.m-measure,
.m-enquiry {
  display: grid;
  align-items: start;
  gap: 6%;
  grid-template-columns: 1fr 1fr;
}
.m-craft {
  background: #f1e5ed;
}
.m-craft ol {
  padding-left: 19px;
}
.m-craft li {
  margin-top: 6px;
}
.m-measure {
  grid-template-columns: 1fr 0.75fr 1fr;
  background: #fff;
}
.m-outline {
  position: relative;
  background: #d8bfab;
  aspect-ratio: 1.8;
  border: 2px dashed #6e625e;
  display: grid;
  place-content: center;
  text-align: center;
}
.m-outline span,
.m-measure figcaption {
  font-size: 12px;
}
.m-enquiry {
  background: #dfb5d8;
}
.m-enquiry form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.m-enquiry label {
  display: grid;
  gap: 3px;
  align-content: start;
}
.m-enquiry :is(select, input, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 7px;
  border: 1px solid #5b3a57;
  background: #fffafb;
  color: var(--ink);
}
.m-wide,
.m-enquiry output {
  grid-column: 1/-1;
}
.m-enquiry output {
  background: white;
  padding: 12px;
}
.m-enquiry button {
  margin: 0;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}
.m-foot {
  justify-content: space-between;
  padding: 18px 6%;
  border-top: 2px solid var(--ink);
}
@keyframes tray-in {
  from {
    transform: translate(13%, 7%) rotate(9deg);
  }
  to {
    transform: translate(0, 0) rotate(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .m-board.in-view .m-platemark,
  .m-lab.in-view .napkin {
    animation: tray-in 750ms ease-out both;
  }
}
@media (max-width: 700px) {
  .m-nav nav a:first-child {
    display: none;
  }
  .m-board {
    grid-template-columns: 1.05fr 1fr;
    padding: 27px 5%;
    gap: 13px;
  }
  .m-platemark {
    border-width: 3px;
  }
  .m-platemark span {
    display: none;
  }
  .m-hero-copy h1 {
    font-size: clamp(47px, 12.8vw, 89px);
  }
  .m-hero-copy > p:first-child {
    font-size: 10px;
  }
  .m-hero-copy > p {
    font-size: 14px;
  }
  .m-hero-copy > a {
    font-size: 13px;
    padding: 8px 10px;
  }
  .m-tags {
    top: auto;
    right: 6%;
    bottom: 10%;
    font-size: 10px;
    padding: 6px 9px;
  }
  .m-lab,
  .m-feature,
  .m-craft,
  .m-measure,
  .m-enquiry {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .m-sample {
    max-width: 265px;
  }
  .m-services {
    grid-template-columns: 1fr;
  }
  .m-craft figure {
    max-width: 440px;
  }
  .m-measure figure {
    max-width: 205px;
  }
  .m-nav nav {
    gap: 10px;
  }
  .m-nav nav a {
    font-size: 12px;
  }
  .m-feature figure {
    order: 2;
  }
  .m-enquiry form {
    grid-template-columns: 1fr;
  }
  .m-feature figcaption {
    font-size: 11px;
  }
}
