@font-face {
  font-family: Bricolage;
  src: url('bricolage.woff2') format('woff2');
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #e8e3d9;
  color: #1a1a1a;
  font-family: Bricolage,Arial,sans-serif;
}
.header,main,footer {
  max-width: 1560px;
  margin: auto;
}
.header {
  padding: 28px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #bcb8af;
  font-size: 13px;
}
.header strong {
  font-size: 20px;
  letter-spacing: -1px;
}
.header strong span {
  font-size: 9px;
  vertical-align: top;
}
.header>span,.eyebrow,.label,.small,.overline,.gallery-note {
  font-size: 11px;
  letter-spacing: .08em;
}
.header>span {
  color: #514f4a;
}
.intro {
  padding: 85px 4% 80px;
}
.eyebrow {
  color: #1936cf;
  font-weight: 700;
}
.intro h1 {
  font-size: clamp(58px,8.3vw,128px);
  line-height: .91;
  letter-spacing: -.065em;
  margin: 38px 0 45px;
  font-weight: 700;
}
.intro h1 em,.checks h2 em {
  font-family: Georgia,serif;
  font-weight: 400;
}
.intro-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.intro-bottom p {
  font-size: 20px;
  line-height: 1.45;
  max-width: 580px;
  margin: 0;
}
.intro-bottom a {
  font-size: 14px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid;
  padding: 12px 0;
  min-width: 200px;
  display: flex;
  justify-content: space-between;
}
.workspace {
  padding: 0 4%;
  display: grid;
  grid-template-columns: 310px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}
.controls {
  background: #faf8f1;
  padding: 26px;
  position: sticky;
  top: 16px;
}
.controls h2,.canvas h2 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 20px 0 12px;
}
.controls>p:not(.eyebrow):not(.small) {
  font-size: 14px;
  line-height: 1.5;
  color: #53514c;
}
.label {
  display: block;
  margin: 30px 0 10px;
  font-weight: bold;
}
.controls select {
  width: 100%;
  background: #eeeae0;
  padding: 14px;
  border: 1px solid #c9c3b7;
  font: inherit;
}
.colors {
  margin: 24px 0;
}
.color-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}
.color-row input[type=color] {
  appearance: none;
  border: 1px solid #aaa;
  background: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.color-row input[type=color]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-row input[type=color]::-webkit-color-swatch {
  border: 0;
}
.color-row label {
  display: block;
  font-size: 13px;
  font-weight: bold;
}
.color-row input[type=text] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c6c0b5;
  background: transparent;
  padding: 5px 0;
  font: 13px monospace;
  text-transform: uppercase;
}
.color-row input[aria-invalid=true] {
  border-color: #a52d24;
  outline: 2px solid #a52d24;
}
.error {
  display: block;
  color: #a52d24;
  font-size: 12px;
  min-height: 0;
}
.button {
  border: 0;
  padding: 15px 16px;
  font: 700 14px Bricolage,Arial;
  cursor: pointer;
  min-height: 48px;
}
.button.dark {
  background: #1a1a1a;
  color: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.small {
  line-height: 1.5;
  color: #5a5751;
  letter-spacing: 0;
}
.text-button {
  font: 700 13px Bricolage,Arial;
  background: none;
  border: 0;
  padding: 10px 0;
  text-decoration: underline;
  cursor: pointer;
}
.canvas {
  background: #1a1a1a;
  padding: 36px;
  color: #faf8f1;
}
.canvas-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 30px;
}
.canvas-heading .eyebrow {
  color: #a4b4ff;
}
.canvas-heading h2 {
  font-size: 38px;
}
.canvas-heading>p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 265px;
}
.gallery {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}
.sample {
  overflow: hidden;
  position: relative;
}
.website {
  background: var(--paper);
  color: var(--ink);
  min-height: 450px;
  padding: 23px;
  display: flex;
  flex-direction: column;
}
.sample-top,.poster-top,.web-bottom,.pack-caption,.box-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: .05em;
}
.sample-top {
  border-bottom: 1px solid currentColor;
  padding-bottom: 15px;
}
.sample-top b {
  font-size: 12px;
}
.sample-top b span {
  font-size: 7px;
  vertical-align: top;
}
.web-content {
  position: relative;
  z-index: 1;
  padding-top: 38px;
}
.web-content h3 {
  font-size: clamp(30px,3.5vw,52px);
  line-height: .96;
  letter-spacing: -.06em;
  margin: 18px 0;
}
.web-content h3 span {
  color: var(--accent);
}
.web-content>p:not(.overline) {
  max-width: 225px;
  font-size: 13px;
  line-height: 1.45;
}
.sample-button {
  display: inline-block;
  background: var(--primary);
  color: var(--paper);
  font-size: 11px;
  padding: 12px 15px;
  margin-top: 14px;
}
.web-art {
  position: absolute;
  right: 25px;
  bottom: 60px;
  width: 30%;
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 50%;
  position: relative;
  right: auto;
  bottom: auto;
  width: 100px;
  min-height: 100px;
  margin: 12px 0 0 auto;
  flex: none;
}
.web-art i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--accent);
  width: 34%;
  height: 34%;
  top: 33%;
  left: 33%;
}
.web-art i:nth-child(2) {
  background: var(--primary);
  width: 14%;
  height: 14%;
  top: 8%;
  left: 55%;
}
.web-art i:nth-child(3) {
  background: var(--ink);
  width: 10%;
  height: 10%;
  top: 70%;
  left: 15%;
}
.web-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.poster {
  min-height: 450px;
  background: var(--primary);
  color: var(--paper);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.poster-top {
  border-bottom: 1px solid currentColor;
  padding-bottom: 14px;
}
.poster h3 {
  position: relative;
  font-size: clamp(30px,3.2vw,49px);
  line-height: .89;
  letter-spacing: -.055em;
  margin: 40px 0 20px;
  z-index: 1;
}
.poster h3 em {
  font: italic .83em Georgia,serif;
}
.poster-shapes {
  position: absolute;
  right: -20px;
  top: 70px;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soft);
}
.poster-shapes i {
  position: absolute;
  width: 40%;
  height: 40%;
  background: var(--accent);
  border-radius: 50%;
  top: 30%;
  left: 30%;
}
.poster-bottom {
  margin-top: auto;
  background: var(--accent);
  color: var(--paper);
  padding: 15px;
}
.packaging {
  grid-column: 1/-1;
  min-height: 330px;
  background: var(--soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.pack-back {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.pack-circle {
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  inset: 18px;
}
.box-product {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  width: 290px;
  min-height: 235px;
  padding: 22px;
  box-shadow: 12px 12px 0 var(--primary);
}
.box-product>p {
  font-size: 8px;
}
.box-product h3 {
  font-size: 42px;
  line-height: .85;
  letter-spacing: -.05em;
  margin: 35px 0 25px;
}
.box-product h3 span {
  color: var(--accent);
}
.seal {
  position: absolute;
  right: 22px;
  top: 55px;
  background: var(--accent);
  color: var(--paper);
  padding: 8px;
  font-size: 8px;
}
.box-label {
  background: var(--primary);
  color: var(--paper);
  padding: 10px;
  font-size: 8px;
}
.pack-caption {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
}
.gallery-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #bebbb4;
  margin: 24px 0 0;
}
.checks {
  padding: 120px 4%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}
.checks h2,.next h2 {
  font-size: clamp(36px,4vw,62px);
  line-height: 1.02;
  letter-spacing: -.05em;
  margin: 25px 0;
}
.checks p:not(.eyebrow),.next p:not(.eyebrow) {
  line-height: 1.55;
  max-width: 480px;
}
.contrast {
  background: #faf8f1;
  padding: 25px;
}
.contrast-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid #d5d0c5;
}
.contrast-row:last-child {
  border: 0;
}
.contrast-row strong {
  font-size: 15px;
}
.contrast-row span {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}
.ratio {
  font-size: 23px;
  font-weight: bold;
}
.pass {
  color: #27633e;
}
.fail {
  color: #a02e22;
}
.next {
  background: #1936cf;
  color: white;
  padding: 80px 4%;
}
.next .eyebrow {
  color: #c7d0ff;
}
.next nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.next a {
  color: white;
  text-underline-offset: 5px;
}
footer {
  padding: 45px 4%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: bold;
}
footer span {
  font-size: 10px;
  font-weight: 400;
}
:focus-visible {
  outline: 3px solid #ef7043;
  outline-offset: 3px;
}
@media(max-width:850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .controls {
    position: static;
  }
  .colors {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 0 15px;
  }
  .canvas {
    padding: 24px;
  }
  .checks {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 80px 4%;
  }
}
@media(max-width:580px) {
  .header>span {
    font-size: 9px;
  }
  .intro {
    padding: 65px 5%;
  }
  .intro h1 {
    font-size: 57px;
  }
  .intro-bottom {
    display: block;
  }
  .intro-bottom p {
    font-size: 17px;
  }
  .intro-bottom a {
    margin-top: 20px;
  }
  .workspace {
    padding: 0 4%;
    gap: 12px;
  }
  .controls {
    padding: 22px;
  }
  .colors {
    grid-template-columns: 1fr 1fr;
  }
  .canvas {
    padding: 20px;
  }
  .canvas-heading {
    display: block;
  }
  .canvas-heading h2 {
    font-size: 34px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .website,.poster {
    min-height: 400px;
  }
  .web-content h3 {
    font-size: 43px;
  }
  .poster h3 {
    font-size: 44px;
  }
  .packaging {
    grid-column: auto;
    min-height: 320px;
  }
  .gallery-note span {
    display: none;
  }
  .checks {
    padding: 80px 5%;
  }
  .next {
    padding: 65px 5%;
  }
  .next nav {
    display: grid;
    gap: 20px;
  }
  footer {
    display: grid;
  }
  .sample-top span {
    font-size: 8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media(max-width:400px) {
  .box-product {
    width: min(100%,290px);
  }
  .pack-back {
    width: min(85%,290px);
    height: auto;
    aspect-ratio: 1;
  }
  .packaging {
    padding: 24px 18px;
  }
}
:root {
  --primary: #780000;
  --accent: #c1121f;
  --paper: #fdf0d5;
  --ink: #003049;
  --soft: #669bbc;
}
.noscript {
  padding: 20px 4%;
  background: #faf8f1;
}
.keep {
  max-width: 500px;
  margin-top: 32px;
}
.keep label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.keep textarea {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 14px;
  background: #faf8f1;
  color: #1a1a1a;
  border: 0;
  font: 14px/1.5 monospace;
}
.keep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.keep-actions button {
  background: #1a1a1a;
  color: #fff;
}
#copy-status {
  min-height: 1.5em;
  font-size: 13px;
}

.controls[hidden], .checks[hidden], .keep[hidden] {
  display: none;
}

.keep-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.generate {
  width: 100%;
  margin-top: 12px;
  background: #1936cf;
  color: #fff;
  display: flex;
  justify-content: space-between;
}
.generate:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.keep-color {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 12px;
  cursor: pointer;
}
.keep-color input {
  min-width: 18px;
  min-height: 18px;
}
.variants {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.variant {
  width: 100%;
  padding: 10px;
  background: #eeeae0;
  border: 1px solid #bcb8af;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.variant-swatches {
  display: flex;
  margin-top: 8px;
}
.variant-swatches span {
  height: 28px;
  flex: 1;
}

.variant[aria-pressed="true"] {
  border: 2px solid #1936cf;
}
.variant-state { display: block; font-size: 12px; font-weight: 700; margin-top: 5px; }
