@font-face {
  font-family: DM;
  src: url(fonts/dm.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(fonts/instrument.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(fonts/instrumenti.ttf) format("truetype");
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f8f6f0;
  --ink: #233e35;
  --green: #203f34;
  --rust: #a0442c;
  --edge: #d4d6c9;
  --mute: #526258;
  --serif: Instrument, Georgia, serif;
  --sans: DM, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
p {
  margin: 0;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid #b44e2e;
  outline-offset: 4px;
}
.wrap {
  width: min(1320px, calc(100% - 9vw));
  margin-inline: auto;
}
.top {
  border-bottom: 1px solid var(--edge);
}
.top-inner,
.top nav,
.wordmark,
.row,
.key-head,
.info-row,
.footer,
.viewer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-inner {
  min-height: 82px;
}
.wordmark {
  gap: 11px;
  font: 34px var(--serif);
  text-decoration: none;
  letter-spacing: -0.035em;
}
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 27px;
  transform: skew(-16deg);
}
.brand-mark i {
  width: 7px;
  background: var(--green);
  height: 23px;
  border-radius: 5px 5px 1px 1px;
}
.brand-mark i:first-child {
  height: 17px;
  background: #b86142;
}
.brand-mark i:last-child {
  height: 27px;
  background: #798357;
}
.top nav {
  gap: 28px;
  font-size: 0.91rem;
  font-weight: 550;
}
.top nav a {
  text-decoration: none;
}
.top nav a:hover,
.text-link:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-action {
  border: 1px solid #9ca79b;
  border-radius: 30px;
  padding: 8px 20px;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 4vw;
  align-items: center;
  padding: clamp(42px, 7vw, 100px) 0 clamp(42px, 6vw, 80px);
}
.hero-copy {
  padding-bottom: 18px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}
.little-line {
  width: 24px;
  height: 2px;
  background: var(--rust);
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(54px, 6.3vw, 92px);
}
h1 em {
  color: var(--rust);
  font-weight: 400;
}
.hero h1 {
  font-size: clamp(64px, 7.45vw, 113px);
  margin: 23px 0;
  line-height: 0.93;
}
.hero-copy > p,
.pagehead > p,
.account > p,
.empty > p,
.download-panel > p,
.project-head > p {
  color: var(--mute);
  max-width: 52ch;
}
.hero-copy > p {
  font-size: clamp(16px, 1.45vw, 21px);
  max-width: 36ch;
  line-height: 1.55;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green);
  color: #fffdf6;
  padding: 13px 23px;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 49px;
}
.button:hover {
  background: #355746;
}
.hero .button {
  margin-top: 28px;
}
.sample {
  min-width: 0;
}
.sample-mat {
  background: #dddfd0;
  padding: clamp(13px, 2.1vw, 31px);
  border: 1px solid #c9ccbb;
  border-radius: 2px;
}
.compare {
  position: relative;
  --split: 66%;
  aspect-ratio: 1.5;
  background: #f4f2e9;
  box-shadow: 0 2px 9px #27322533;
  overflow: hidden;
}
.compare img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.compare .outline-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split));
}
.divider {
  position: absolute;
  left: var(--split);
  top: 0;
  height: 100%;
  border-left: 2px solid #f9f8f0;
  pointer-events: none;
}
.divider b {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 8px #203a302b;
  font-size: 20px;
  white-space: pre;
}
.compare input {
  margin: 0;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
}
.compare:focus-within {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
.sample figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--mute);
  font-size: 0.79rem;
  margin-top: 9px;
}
.sample figcaption span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--rust);
  border-radius: 50%;
}
.set-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 35px;
  border-top: 1px solid var(--edge);
}
h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}
.set-strip h2 {
  font-size: 34px;
  margin: 5px 0;
}
.set-strip p,
.small,
small {
  font-size: 0.85rem;
  color: var(--mute);
}
.spectrum {
  display: flex;
  align-items: center;
}
.spectrum i {
  display: block;
  width: clamp(16px, 2.05vw, 32px);
  height: clamp(26px, 3vw, 44px);
  background: var(--paint);
  border: 2px solid var(--paper);
  border-radius: 50%;
  margin-left: -4px;
  transform: rotate(13deg);
}
.text-link {
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid #9ba89b;
  padding-bottom: 2px;
}
.footer {
  border-top: 1px solid var(--edge);
  padding: 22px 0;
  margin-top: 35px;
  font-size: 0.78rem;
  color: var(--mute);
}
.footer a {
  text-decoration: none;
}
.skip {
  position: fixed;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.pagehead,
.project-head {
  padding: 55px 0 30px;
}
.pagehead h1,
.project-head h1,
.upload-shell h1,
.account h1 {
  margin: 12px 0 20px;
}
.pagehead > p {
  margin-bottom: 12px;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0 22px;
}
.paint {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--edge);
  font-size: 0.91rem;
}
.paint b {
  font-size: 0.78rem;
  color: var(--mute);
  margin-right: 4px;
}
.paint small {
  display: block;
  font-size: 0.73rem;
  margin-top: 1px;
}
.chip {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paint);
  box-shadow: inset 0 0 0 1px #10190c19;
}
.account,
.upload-shell {
  max-width: 525px;
  margin: clamp(44px, 7vw, 95px) auto;
}
.account h1,
.upload-shell h1 {
  font-size: clamp(48px, 5.1vw, 72px);
}
.account > p {
  margin: 15px 0;
}
.account .stack {
  margin-top: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.stack label {
  font-weight: 600;
  font-size: 0.9rem;
}
.stack input:not([type="file"]),
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid #abb5a6;
  border-radius: 4px;
}
.stack > small {
  margin-top: -13px;
}
.sub-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.error,
.notice {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.94rem;
}
.error {
  color: #8e3125 !important;
  background: #f4e3db;
}
.notice {
  background: #e2e9d8;
  margin-top: 20px;
}
.back {
  display: inline-block;
  text-decoration: none;
  color: var(--mute);
  font-size: 0.86rem;
  margin-bottom: 23px;
}
.empty,
.download-panel {
  background: #eeeee3;
  border: 1px solid var(--edge);
  padding: 26px;
}
.empty {
  padding: 40px;
}
.empty p,
.empty .text-link {
  margin-top: 10px;
}
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 28px 15px;
  border: 1.5px dashed #889982;
  border-radius: 7px;
  background: #eeeee4;
  gap: 6px;
}
.drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop:focus-within,
.drop.drag {
  outline: 3px solid #a9593f;
}
.up-icon {
  font-size: 30px;
}
.info-row {
  border-block: 1px solid var(--edge);
  padding: 12px 0;
  font-size: 0.87rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 24px;
}
.card {
  display: block;
  text-decoration: none;
  min-width: 0;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 14px;
}
.card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  background: #daded0;
}
.card h2 {
  font-size: 29px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.project-head h1 {
  font-size: clamp(44px, 5.5vw, 77px);
  overflow-wrap: anywhere;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 300px);
  align-items: start;
  gap: 22px;
}
.viewer {
  min-width: 0;
  border: 1px solid var(--edge);
  background: #e7e7dc;
}
.view-controls,
.viewer-bottom {
  display: flex;
  gap: 5px;
  background: var(--paper);
  padding: 10px 12px;
}
.view-controls button,
.viewer-bottom button {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.86rem;
}
.view-controls button[aria-pressed="true"],
.viewer-bottom button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.viewport {
  height: clamp(280px, 49vw, 570px);
  overflow: auto;
  padding: 12px;
  display: flex;
}
.viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: auto;
}
.viewport.zoom img {
  width: 200%;
  min-width: 200%;
  height: auto;
  object-fit: fill;
  margin: auto 0;
}
.viewport.zoom {
  display: block;
}
.viewer-bottom {
  border-top: 1px solid var(--edge);
  font-size: 0.77rem;
  color: var(--mute);
}
.viewer-bottom button {
  border-color: var(--edge);
}
.download-panel h2 {
  margin-top: 10px;
}
.download-panel p {
  margin: 14px 0;
}
.download-panel .button {
  width: 100%;
  justify-content: center;
}
.download-panel .text-link {
  display: table;
  margin-top: 14px;
}
.key-head {
  margin: 40px 0 8px;
}
.key-head h2 {
  margin: 8px 0;
}
.key-head + .small {
  margin-bottom: 15px;
}
.delete {
  margin: 32px 0;
  font-size: 0.86rem;
  color: var(--mute);
}
.delete p {
  margin: 12px 0;
}
.spinner {
  display: block;
  width: 23px;
  height: 23px;
  border: 2px solid #9da491;
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
  margin-bottom: 18px;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(52px, 8vw, 68px);
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .download-panel .button {
    width: auto;
  }
  .spectrum i:nth-child(even) {
    display: none;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .top-inner {
    min-height: 66px;
  }
  .wordmark {
    font-size: 29px;
    gap: 8px;
  }
  .top nav {
    gap: 12px;
    font-size: 0.81rem;
  }
  .nav-action {
    padding: 6px 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 38px 0 25px;
    gap: 20px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: 69px;
    margin: 14px 0;
  }
  .hero-copy > p {
    max-width: 38ch;
  }
  .hero .button {
    margin-top: 18px;
  }
  .sample-mat {
    padding: 14px;
  }
  .set-strip {
    gap: 13px;
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .set-strip .spectrum {
    display: none;
  }
  .set-strip h2 {
    font-size: 27px;
  }
  .footer {
    margin-top: 24px;
    gap: 12px;
  }
  .row,
  .key-head {
    align-items: flex-start;
    gap: 12px;
  }
  .row .button {
    padding: 10px 14px;
    gap: 9px;
  }
  .pagehead,
  .project-head {
    padding: 32px 0 20px;
  }
  .account,
  .upload-shell {
    margin: 34px auto;
  }
  .palette-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0 10px;
  }
  .paint {
    font-size: 0.8rem;
    gap: 6px;
  }
  .chip {
    width: 28px;
    height: 28px;
  }
  .viewer-bottom {
    align-items: center;
  }
  .key-head {
    flex-wrap: wrap;
  }
}
