main {
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}
main h1,
main h2,
main h3,
main p,
main figure {
  margin: 0;
}
main img {
  display: block;
  max-width: 100%;
}
main a {
  color: inherit;
}
main summary {
  cursor: pointer;
}
main details p {
  margin-top: 0.65rem;
}
main :focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
main section[id] {
  scroll-margin-top: 1rem;
}
main {
  background: #fff7d9;
  color: #282c1d;
}
.tb-bar {
  padding: 17px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #314c37;
  color: #fef9da;
}
.tb-bar a:first-child {
  font:
    bold 27px Georgia,
    serif;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.tb-bar span,
.tb-bar a:last-child {
  font-size: 13px;
}
.tb-counter {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 5vw;
  padding: 6vw 7vw;
  background: repeating-linear-gradient(
    90deg,
    #dbe3bb 0 37px,
    #e0e8c1 37px 74px
  );
}
.tb-head > p:first-child {
  font:
    600 13px "JetBrains Mono",
    monospace;
}
.tb-head h1 {
  font:
    700 clamp(62px, 7.8vw, 127px) / 0.89 Georgia,
    serif;
  letter-spacing: -0.095em;
  margin: 23px 0;
  color: #263d2c;
}
.tb-head h1 em {
  font-weight: 400;
}
.tb-head > p:last-of-type {
  max-width: 38ch;
}
.tb-head .request {
  display: inline-block;
  padding: 10px 16px;
  background: #284531;
  color: #fff7d9;
  margin-top: 21px;
  text-decoration: none;
}
.tb-receipt {
  background: #fffdf1;
  color: #293d2b;
  box-shadow: 4px 8px 0 #334d3624;
  text-align: center;
  width: min(100%, 340px);
  justify-self: center;
  padding: 26px min(4vw, 48px) 32px;
  position: relative;
  transform: rotate(3deg);
  font:
    13px/1.55 "JetBrains Mono",
    monospace;
}
.tb-receipt:after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 10px;
  background:
    linear-gradient(135deg, #fffdf1 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(225deg, #fffdf1 25%, transparent 25%) 0 0/14px 14px;
}
.tb-label {
  font:
    700 clamp(27px, 3vw, 44px) / 1.1 Georgia,
    serif;
  letter-spacing: -0.065em;
}
.tb-dash {
  border-top: 2px dashed #959c87;
  margin: 17px 0;
}
.tb-total {
  display: flex;
  flex-direction: column;
}
.tb-total strong {
  font:
    700 clamp(40px, 5vw, 80px) / 1.05 Georgia,
    serif;
  letter-spacing: -0.08em;
}
.barcode {
  height: 26px;
  width: 65%;
  margin: 20px auto 0;
  background: repeating-linear-gradient(
    90deg,
    #39422d 0 2px,
    transparent 2px 5px,
    #39422d 5px 9px,
    transparent 9px 13px,
    #39422d 13px 14px,
    transparent 14px 16px
  );
}
.tb-products {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6vw;
  padding: 6vw;
}
.tb-products h2,
.tb-desk h2 {
  font:
    700 clamp(35px, 4.6vw, 70px) / 1 Georgia,
    serif;
  letter-spacing: -0.07em;
}
.tb-products ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tb-products li {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px dashed;
  padding: 18px 0;
}
.tb-products li a {
  min-width: 7.5em;
  align-self: start;
  text-align: right;
  font:
    14px "JetBrains Mono",
    monospace;
}
.tb-products h3 {
  font:
    700 21px Georgia,
    serif;
}
.tb-products li p {
  margin-top: 7px;
}
.tb-desk {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5vw;
  padding: 4vw 6vw;
  background: #e0e7ca;
  align-items: center;
}
.tb-desk img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}
.tb-desk h2 {
  margin-bottom: 18px;
}
.tb-desk details {
  margin: 15px 0;
}
@media (max-width: 650px) {
  .tb-bar span {
    display: none;
  }
  .tb-counter,
  .tb-products,
  .tb-desk {
    grid-template-columns: 1fr;
    padding: 35px 22px;
  }
  .tb-receipt {
    max-width: 260px;
    transform: rotate(2deg);
    margin: 14px 0;
  }
  .tb-head h1 {
    margin: 16px 0;
  }
  .tb-products li {
    display: block;
  }
  .tb-products li a {
    display: inline-block;
    margin-top: 10px;
    text-align: left;
  }
}

main {
  --inquiry-bg: #fffbea;
  --inquiry-ink: #293b25;
  --inquiry-button: #345238;
  --inquiry-button-text: #fff8dd;
}
.tb-total strong {
  font-size: clamp(25px, 3.2vw, 44px);
  overflow-wrap: anywhere;
}
.tb-label {
  text-transform: uppercase;
}

@media (max-width: 650px) {
  .tb-counter,
  .tb-products,
  .tb-desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .tb-head,
  .tb-receipt,
  .tb-products ol,
  .tb-desk > div {
    min-width: 0;
  }
  .tb-receipt {
    width: min(calc(100% - 12px), 260px);
  }
  .tb-head h1 {
    font-size: clamp(48px, 15vw, 68px);
    overflow-wrap: anywhere;
  }
  .tb-total strong {
    font-size: clamp(23px, 7.9vw, 39px);
  }
}

.tb-night {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #364231;
  color: #fff8dc;
  align-items: center;
}
.tb-night figure {
  height: 100%;
  min-height: 330px;
}
.tb-night img {
  width: 100%;
  height: 100%;
  max-height: 550px;
  object-fit: cover;
}
.tb-night > div {
  padding: 7% 9%;
}
.tb-night h2,
.tb-sheet h2,
.tb-bundle h2,
.tb-order h2 {
  font:
    600 clamp(35px, 5vw, 71px) / 1 "DM Sans",
    sans-serif;
  letter-spacing: -0.07em;
}
.tb-night p,
.tb-bundle p,
.tb-order p {
  margin: 12px 0;
}
.tb-night div > p:first-child,
.tb-order div > p:first-child {
  font:
    12px "JetBrains Mono",
    monospace;
}
.tb-sheet {
  background: #faf7e9;
  padding: 5% 8%;
  border-block: 1px solid #a8ad8d;
}
.tb-sheet header {
  max-width: 740px;
}
.tb-sheet h2 {
  margin: 8px 0;
}
.tb-sheet table {
  border-collapse: collapse;
  width: 100%;
  margin: 22px 0 12px;
}
.tb-sheet caption {
  text-align: left;
  font-size: 12px;
  padding-bottom: 8px;
}
.tb-sheet th,
.tb-sheet td {
  border-bottom: 1px solid #b1b39c;
  text-align: left;
  padding: 10px 6px;
}
.tb-sheet td:nth-child(2) {
  font-family: "JetBrains Mono", monospace;
}
.tb-sheet > p {
  max-width: 75ch;
}
.tb-bundle {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8%;
  align-items: center;
  padding: 5% 10%;
}
.tb-slips {
  height: 170px;
  position: relative;
}
.tb-slips i {
  position: absolute;
  inset: 8% 30% 10% 4%;
  background: repeating-linear-gradient(#fff9eb 0 20px, #ddd8c4 20px 21px);
  padding: 13px;
  color: #34412c;
  border: 1px solid #a9a795;
  transform: rotate(-11deg);
  font:
    12px "JetBrains Mono",
    monospace;
}
.tb-slips i:nth-child(2) {
  transform: translateX(20%) rotate(8deg);
  background-color: #e5dda7;
}
.tb-slips i:last-child {
  transform: translateX(43%) rotate(17deg);
}
.tb-bundle fieldset {
  border: 0;
  margin: 12px 0;
  padding: 0;
}
.tb-bundle legend {
  font-weight: 650;
}
.tb-bundle label {
  display: block;
  padding: 3px 0;
}
.tb-bundle output {
  font-size: 13px;
}
.tb-order {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  padding: 5% 8%;
  background: #c9d4a9;
  border-block: 2px dashed #778662;
}
.close-line {
  background: #323d2c;
  color: #fff8df;
}
@keyframes feed-receipt {
  from {
    clip-path: inset(0 0 88%);
    translate: 0 -15px;
  }
  to {
    clip-path: inset(0);
    translate: 0 0;
  }
}
@keyframes collect-slips {
  from {
    translate: -25px -28px;
    rotate: -8deg;
  }
  to {
    translate: 0;
    rotate: 0deg;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .tb-receipt {
    animation: feed-receipt 1.15s cubic-bezier(0.23, 0.65, 0.2, 1);
  }
  .tb-bundle.in-view .tb-slips i {
    animation: collect-slips 0.75s ease-out both;
  }
  .tb-bundle.in-view i:nth-child(2) {
    animation-delay: 0.16s;
  }
  .tb-bundle.in-view i:last-child {
    animation-delay: 0.32s;
  }
}
@media (max-width: 660px) {
  .tb-night,
  .tb-bundle,
  .tb-order {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tb-night figure {
    min-height: 0;
  }
  .tb-night img {
    height: 220px;
  }
  .tb-sheet {
    padding: 27px 5%;
  }
  .tb-sheet table {
    font-size: 13px;
  }
  .tb-sheet th,
  .tb-sheet td {
    padding: 7px 3px;
  }
  .tb-slips {
    max-width: 240px;
    height: 130px;
  }
  .tb-bundle,
  .tb-order {
    padding: 28px 7%;
  }
}
.tb-order form {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}
.tb-order label {
  display: grid;
  gap: 5px;
  font:
    600 14px/1.35 "DM Sans",
    sans-serif;
}
.tb-order select,
.tb-order textarea,
.tb-order input {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #686e67;
  color: #202820;
  background: #fff;
  font:
    400 16px/1.35 "DM Sans",
    sans-serif;
}
.tb-order button {
  border: 0;
  padding: 12px 16px;
  width: fit-content;
  min-height: 44px;
  background: #35442d;
  color: #fffade;
  font-weight: 650;
  text-align: left;
}
.tb-order output:not(:empty) {
  display: block;
  white-space: pre-line;
  border-left: 3px solid currentColor;
  padding: 10px 12px;
  background: rgba(127, 127, 127, 0.09);
}
.tb-order output:empty,
.tb-order output:empty + [data-save-copy] {
  display: none;
}
.tb-order [data-save-copy] {
  font-size: 13px;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  padding-inline: 0;
}
.close-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 24px 5%;
  border-top: 1px solid currentColor;
}
.close-line nav {
  display: flex;
  gap: 9px 19px;
  flex-wrap: wrap;
  font-size: 14px;
}
.close-line a {
  text-underline-offset: 3px;
}
.close-line strong {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.tb-countertop {
  display: grid;
  grid-template-columns: 1.15fr minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 6vw, 100px);
  padding: clamp(30px, 6vw, 90px) 8%;
  background: #3d5036;
  color: #fff9df;
}
.tb-countertop .tb-desk {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
}
.tb-countertop .tb-desk figure {
  margin: 0 0 24px;
}
.tb-countertop .tb-desk img {
  max-height: 330px;
  width: 100%;
  object-fit: cover;
}
.tb-countertop .tb-order {
  display: block;
  background: #fff9df;
  color: #253422;
  border: 0;
  padding: clamp(25px, 3vw, 52px);
  filter: drop-shadow(3px 5px 0 #263423);
  position: relative;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -135deg at 50% 100%, #000 90deg, transparent 0) bottom /
      16px 8px repeat-x;
}
.tb-order > div {
  text-align: center;
  border-bottom: 2px dashed #7c8467;
  padding-bottom: 11px;
}
.tb-order form {
  margin: 14px auto 0;
}
.tb-order :is(select, input) {
  border: 0;
  border-bottom: 1px dotted #7c8467;
  background: transparent;
  padding: 7px 0;
}
.tb-order form button {
  justify-self: stretch;
  text-align: center;
}
.tb-code {
  width: 105px;
  height: 23px;
  background: repeating-linear-gradient(
    90deg,
    #354131 0 2px,
    transparent 2px 3px,
    #354131 3px 5px,
    transparent 5px 8px
  );
  margin: 3px auto 0;
}
@media (max-width: 700px) {
  .tb-countertop {
    grid-template-columns: 1fr;
    padding: 30px 7%;
  }
  .tb-countertop .tb-order {
    width: min(100%, 480px);
    margin: auto;
  }
}

.tb-bar {
  background: #233e32;
  color: #fff6ce;
}
.tb-counter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  background: #ffe49a;
  color: #1d382e;
  align-items: stretch;
  border-bottom: 10px solid #984e33;
}
.tb-window {
  position: relative;
  min-height: clamp(330px, 35vw, 570px);
}
.tb-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tb-painted {
  padding: clamp(30px, 4.5vw, 80px);
  align-self: center;
}
.tb-painted p:first-child {
  font:
    700 13px/1.4 "Courier Prime",
    monospace;
}
.tb-painted h1 {
  font:
    400 clamp(43px, 5vw, 85px) / 1.03 "Young Serif",
    Georgia,
    serif;
  letter-spacing: -0.065em;
  margin: 19px 0;
  color: #264233;
}
.tb-painted p {
  max-width: 40ch;
}
.tb-painted .request {
  display: inline-flex;
  padding: 12px 0;
  color: #25372e;
  font-weight: 750;
}
.tb-ledger-book {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  align-items: stretch;
  background: #f7f0d8;
}
.tb-ledger-book .tb-sheet,
.tb-ledger-book .tb-night {
  display: block;
  padding: clamp(26px, 4vw, 65px);
}
.tb-ledger-book .tb-night {
  align-self: stretch;
  background: #334d40;
  color: #fff4d7;
}
.tb-night > div {
  padding: 0;
}
.tb-night h2 {
  font:
    400 clamp(32px, 3.5vw, 57px) / 1.05 "Young Serif",
    Georgia;
}
.tb-products {
  background: #fff4d2;
}
.tb-sheet {
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, #a0beb84d 26px 27px),
    #f9f5dd;
}
.tb-bundle {
  border-block: 3px double #4e614e;
}
.tb-order form input[readonly] {
  height: auto;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .tb-counter,
  .tb-ledger-book {
    grid-template-columns: 1fr;
  }
  .tb-window {
    min-height: 0;
    height: 47vw;
    max-height: 300px;
  }
  .tb-painted {
    padding: 24px 6vw;
  }
  .tb-painted h1 {
    font-size: clamp(40px, 9vw, 66px);
    margin: 10px 0;
  }
  .tb-ledger-book .tb-night {
    padding: 30px 6vw;
  }
}
