@font-face {
  font-family: Plex;
  src: url('/assets/fonts/ibm-plex-sans/logo.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: PlexMono;
  src: url('/assets/fonts/ibm-plex-mono/logo.woff2') format('woff2');
  font-display: swap;
  font-weight: 500;
}
:root {
  --paper: #f4f4f1;
  --surface: #fff;
  --ink: #14171c;
  --muted: #434a54;
  --line: #c9cdd0;
  --navy: #1e3f66;
  --green: var(--navy);
  background: var(--paper);
  font:
    100%/1.55 Plex,
    system-ui,
    sans-serif;
  color: var(--ink);
}
body {
  width: min(calc(100% - 3rem), 78rem);
}
main {
  min-width: 0;
  padding: 0 0 4rem;
}
.masthead {
  border-bottom: 1px solid var(--line);
  min-height: 4.2rem;
  padding: 0.6rem 0;
}
.masthead .product-name {
  letter-spacing: -0.035em;
}
h1,
h2,
h3,
.price-number {
  font-family: inherit;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.25rem);
  max-width: 17ch;
  margin: 0 0 0.9rem;
}
h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}
h3 {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}
h2,
h3,
p {
  margin-block: 0 0.8rem;
}
p {
  max-width: 62ch;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
}
a {
  color: var(--navy);
}
button,
.button {
  min-height: 44px;
  max-width: 100%;
  padding: 0.6rem 1.1rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 0.3rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #152f4d;
}
button:disabled {
  color: #59626c;
  background: #e6e8e9;
  cursor: default;
}
:is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
label,
legend {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}
label {
  display: grid;
  gap: 0.28rem;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  width: 100%;
  background: white;
  border: 1px solid #9ba3aa;
  border-radius: 0.25rem;
  padding: 0.55rem 0.68rem;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
}
input[readonly] {
  background: #eeefed;
}
input[type='range'] {
  padding: 0;
  accent-color: var(--navy);
}
.quiet,
button.chip,
.edit-history button {
  color: var(--navy);
  background: transparent;
  border-color: transparent;
}
button.quiet:hover,
.edit-history button:hover {
  background: #e5e9ec;
}
.quiet {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.95rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(17rem, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4.6rem) 0;
  align-items: center;
}
.hero-form {
  max-width: 34rem;
}
.hero form {
  margin-top: 1.45rem;
}
.hero .data-note {
  color: var(--muted);
  margin: 0.35rem 0 0.8rem;
}
#business {
  font-size: 1.13rem;
  padding: 0.65rem 0.8rem;
}
.specimen {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.65rem 0.65rem 0;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #e6e9e5;
}
.specimen canvas {
  flex: 1;
  height: 0;
  min-height: 20rem;
}
.specimen-caption,
.tile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.specimen-caption {
  padding: 0.6rem 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.swatches,
.palette {
  display: flex;
  gap: 0.16rem;
}
.swatches i,
.palette i {
  display: block;
  width: 1.25rem;
  height: 0.7rem;
  background: var(--swatch);
  border: 1px solid #0002;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-title h2 {
  margin: 0;
}
#gallery-count,
.amount,
.price-number {
  font-family: PlexMono, monospace;
  font-variant-numeric: tabular-nums;
}
#gallery-count {
  color: var(--muted);
}
.gallery-section,
.studio-editor,
.package,
.guide-links,
.footnote {
  border-top: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}
button.chip {
  border: 1px solid #a0a6a9;
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}
button.chip[aria-pressed='true'] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 0.85rem;
}
button.tile {
  display: block;
  padding: 0;
  text-align: start;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.tile canvas {
  aspect-ratio: 1.65;
  height: auto;
  border: 1px solid #0001;
}
.tile:hover canvas,
.tile:focus-visible canvas {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.tile[aria-pressed='true'] canvas {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.tile-caption {
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.125rem 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.layout-label,
.note,
.data-note,
.application figcaption {
  color: var(--muted);
  font-size: 0.85rem;
}
.note {
  max-width: 74ch;
}
.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(19rem, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
#editor-art {
  aspect-ratio: 1.55;
  height: auto;
  border: 1px solid var(--line);
}
.edit-history {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  margin: 0.2rem 0;
}
.edit-history button {
  font-size: 0.92rem;
}
.edit-history button:disabled {
  color: #64696e;
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.application {
  min-width: 0;
  margin: 0;
}
.application > div {
  aspect-ratio: 1.28;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
}
.application canvas {
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.application.avatar canvas {
  width: 85%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
}
.application.tab > div {
  position: relative;
  background: linear-gradient(to bottom, #e1e5e7 0 28%, white 28%);
}
.application.tab canvas {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
}
.application figcaption {
  margin: 0.3rem 0;
}
.edit-controls {
  display: grid;
  gap: 0.8rem;
}
.form-pair,
.colour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.edit-controls fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.palette {
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 0.25rem;
}
.palette:hover,
.palette[aria-pressed='true'] {
  background: #e5edf2;
  border-color: var(--navy);
}
.palette i {
  width: 0.8rem;
  height: 1.25rem;
  border: none;
}
details {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.6rem 0;
  color: var(--navy);
}
details[open] > summary {
  margin-bottom: 0.5rem;
}
.hex-pair {
  display: flex;
  gap: 0.25rem;
}
.hex-pair input[type='color'] {
  width: 44px;
  flex: none;
  padding: 0.1rem;
}
.colour-grid {
  padding-bottom: 0.5rem;
}
.checkout-band,
.package {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: start;
}
.checkout-band {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.checkout-band .amount {
  margin-left: 0.8rem;
}
.checkout-band p {
  margin: 0.5rem 0 0;
}
.checkout-band .note {
  margin-top: 0;
}
.price-number {
  font-size: clamp(1.65rem, 3.5vw, 2.7rem);
  margin: 1rem 0;
}
.file-list {
  margin: 0;
}
.file-list > div {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}
.file-list dt {
  font-weight: 600;
}
.file-list dd {
  margin: 0.2rem 0;
  color: var(--muted);
}
.guide-links {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}
.guide-links nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}
.guide-links a,
.footnote a,
.reading p > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#guide {
  padding: 0.7rem 0;
}
#guide p {
  max-width: 72ch;
}
.footnote {
  padding-bottom: 0;
}
.reading {
  max-width: 50rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto;
}
.reading h1 {
  max-width: 21ch;
}
.reading h2 {
  margin: 2rem 0 0.8rem;
}
.reading pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.88rem;
  padding: 1rem;
  background: white;
}
.reading .button {
  display: inline-flex;
  align-items: center;
}
.reading small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.7rem;
}
.reading details > p {
  overflow-wrap: anywhere;
}
dialog {
  width: min(38rem, calc(100% - 2rem));
  max-height: 86svh;
  border: 1px solid #9da3aa;
  color: var(--ink);
  border-radius: 0.45rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: var(--paper);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgba(20, 23, 28, 0.43);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head .quiet {
  padding: 0.35rem;
}
dialog > label {
  margin: 1rem 0;
}
dialog .file-list {
  margin: 1rem 0;
}
.confirm-name {
  overflow-wrap: anywhere;
}
.saved-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
button.saved-logo {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  text-align: start;
  color: var(--ink);
  background: white;
  border-color: var(--line);
  padding: 0.35rem;
}
.saved-logo canvas {
  height: 3rem;
}
.saved-logo span {
  overflow-wrap: anywhere;
}
.saved-logo small {
  font-weight: 400;
}
#return-status:not(:empty),
.feedback:not(:empty),
#readability:not(:empty) {
  padding: 0.65rem 1rem;
  border-left: 3px solid var(--navy);
  background: #e6edf5;
  margin: 1rem 0;
}
#return-status p {
  margin: 0.3rem 0;
}
footer {
  gap: 0.75rem;
}
footer nav {
  gap: 0.65rem;
}
section,
details,
form {
  scroll-margin-top: 1rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 64rem) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    gap: 2rem;
  }
  .edit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 1fr);
  }
}
@media (max-width: 46rem) {
  body {
    width: calc(100% - 2rem);
  }
  .hero,
  .edit-grid,
  .checkout-band,
  .package,
  .guide-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .hero-form {
    max-width: none;
  }
  .specimen canvas {
    min-height: 0;
    flex: none;
    height: auto;
    aspect-ratio: 1.9;
  }
  .specimen {
    padding: 0.4rem 0.4rem 0;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .tile-caption {
    display: block;
  }
  .layout-label {
    display: block;
  }
  .edit-grid {
    gap: 1rem;
  }
  .proof-strip {
    gap: 0.25rem;
  }
  .application figcaption {
    font-size: 0.75rem;
  }
  .checkout-band {
    padding: 1rem;
  }
  .guide-links nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .amount {
    font-size: 0.88rem;
  }
  .chips {
    gap: 0.3rem;
  }
  button.chip {
    padding: 0.35rem 0.68rem;
  }
}
@media (max-width: 360px) {
  body {
    width: calc(100% - 1.25rem);
  }
  .form-pair,
  .colour-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-utilities select {
    width: 5.6rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  canvas,
  .specimen,
  .tiles,
  .proof-strip,
  dialog,
  .studio-editor,
  .hero-form,
  #start {
    display: none !important;
  }
}
