@import url("templates/fonts/work-sans/fonts.css");
@import url("templates/fonts/young-serif/fonts.css");
:root {
  --ink: #231c36;
  --paper: #fffdf8;
  --purple: #4824aa;
  --violet: #7048e8;
  --lime: #dcec85;
  --line: #d9d1e3;
  --muted: #655a72;
  --tint: #f1ebff;
  --font-body: "Work Sans", Arial, sans-serif;
  --font-heading: "Young Serif", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font-body);
}
a {
  color: var(--purple);
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--purple);
  background: var(--purple);
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 600;
}
button:hover {
  background: #351980;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c54418;
  outline-offset: 4px;
}
p {
  max-width: 60ch;
}
h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--font-heading);
}
h1 {
  font-size: clamp(2.875rem, 1rem + 5vw, 5.625rem);
  letter-spacing: -0.045em;
  max-width: 11ch;
  margin: 22px 0 28px;
}
h2 {
  font-size: clamp(2.125rem, 1rem + 3vw, 3.625rem);
  letter-spacing: -0.035em;
  margin: 14px 0 25px;
  max-width: 20ch;
}
h3 {
  font-weight: 600;
  font-size: 1.4375rem;
}
strong {
  font-weight: 650;
}
code,
pre {
  font:
    0.875rem/1.65 ui-monospace,
    Consolas,
    monospace;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: 1320px;
  margin: auto;
  padding: 0 48px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: white;
  padding: 16px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.5625rem;
  font-weight: 650;
  letter-spacing: -0.05em;
}
.brand img {
  width: 38px;
  height: 38px;
}
.top nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.top nav a {
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 70px;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple);
}
.hero .intro {
  font-size: 1.3125rem;
  line-height: 1.5;
}
.actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 30px 0;
}
.button {
  display: inline-block;
  background: var(--purple);
  color: white;
  text-decoration: none;
  padding: 13px 23px;
  border-radius: 5px;
  font-weight: 600;
}
.folio {
  background: var(--purple);
  color: var(--paper);
  padding: 34px;
  align-self: center;
  position: relative;
  box-shadow: 14px 14px 0 var(--lime);
  border-radius: 4px;
}
.folio .kicker {
  color: var(--lime);
}
.folio h2 {
  font-size: 2.4375rem;
}
.folio .sample {
  background: var(--paper);
  color: var(--ink);
  padding: 25px;
  margin-top: 24px;
}
.folio .sample .kicker {
  color: var(--purple);
}
.folio .sample p {
  font-size: 0.875rem;
}
.folio .sample h3 {
  font-family: var(--font-heading);
  font-size: 1.9375rem;
  margin: 6px 0;
}
.folio .sample strong {
  color: var(--purple);
}
.swatches {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.swatches span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ffffff80;
}
.swatches span:nth-child(1) {
  background: #dcec85;
}
.swatches span:nth-child(2) {
  background: #fffdf8;
}
.swatches span:nth-child(3) {
  background: #bfacff;
}
.folio .rule {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #b6a2ef;
  margin-top: 24px;
  padding-top: 18px;
  font-size: 0.75rem;
}
.strip {
  background: var(--ink);
  color: white;
  padding: 22px 0;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.strip strong {
  color: var(--lime);
}
section.chapter {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}
.section-head p {
  max-width: 42ch;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 54px;
}
.steps li:before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 650;
}
.steps h3 {
  margin: 0 0 7px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.tinted {
  background: var(--tint);
}
.builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.fields label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.fields select,
.fields textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #8a7c9a;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  margin: 0 0 22px;
}
.fields textarea {
  min-height: 110px;
  resize: vertical;
}
.prompt {
  background: var(--ink);
  color: white;
  padding: 30px;
  min-height: 290px;
  border-radius: 5px;
}
.prompt .kicker {
  color: var(--lime);
}
.prompt pre {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 25px 0;
  min-height: 110px;
}
.prompt button {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.hint {
  font-size: 0.8125rem;
  color: var(--muted);
}
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.capabilities article {
  border-top: 3px solid var(--purple);
  padding-top: 15px;
}
.capabilities p {
  font-size: 1rem;
  color: var(--muted);
}
.capabilities a {
  font-size: 0.875rem;
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.filters button {
  background: transparent;
  color: var(--purple);
  padding: 8px 18px;
}
.filters button[aria-pressed="true"] {
  background: var(--purple);
  color: white;
}
.search {
  margin-left: auto;
  max-width: 100%;
  min-width: 200px;
  border: 1px solid #8a7c9a;
  border-radius: 4px;
  padding: 9px 14px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.showcase-grid article[hidden] {
  display: none;
}
.showcase-grid a {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.showcase-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  background: #eee;
  border-radius: 4px;
}
.showcase-grid a:hover img {
  outline: 3px solid var(--violet);
}
.showcase-grid span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 16px;
}
.showcase-grid h3 {
  font-size: 1.25rem;
  margin: 8px 0 25px;
}
.gallery-note {
  font-size: 0.875rem;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  font-size: 1rem;
}
.install {
  background: var(--ink);
  color: white;
}
.install .kicker {
  color: var(--lime);
}
.install h2 {
  color: var(--paper);
}
.install select {
  padding: 12px;
  max-width: 100%;
  background: white;
  border: 0;
  border-radius: 4px;
}
.install label {
  display: block;
  margin-bottom: 8px;
}
.install a {
  color: var(--lime);
}
.install pre {
  border: 1px solid #887797;
  padding: 20px;
  min-height: 100px;
}
.install .hint {
  color: #d7cbe2;
}
.fineprint {
  padding: 55px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.fineprint h2 {
  font: 600 18px var(--font-body);
}
.fineprint p {
  max-width: 90ch;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  font-size: 0.8125rem;
}
#notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: white;
  padding: 0 16px;
  z-index: 20;
}
#notice:not(:empty) {
  padding: 12px 16px;
}
.alias {
  display: block;
  scroll-margin-top: 100px;
}
noscript {
  display: block;
  padding: 20px;
  background: var(--lime);
}
@media (max-width: 900px) {
  .wrap {
    padding: 0 25px;
  }
  .hero,
  .split,
  .builder {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 50px;
  }
  .folio {
    margin-right: 14px;
  }
  .capabilities {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-head {
    display: block;
  }
  .top nav {
    gap: 14px;
  }
  .top .wrap {
    gap: 15px;
  }
  .hero h1 {
    max-width: 14ch;
  }
  .search {
    margin-left: 0;
    width: 100%;
  }
  section.chapter {
    padding: 55px 0;
  }
}
@media (max-width: 520px) {
  .top .wrap {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .top nav {
    font-size: 0.75rem;
  }
  .brand {
    font-size: 1.375rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .hero .intro {
    font-size: 1.1875rem;
  }
  .folio {
    padding: 23px;
  }
  .folio h2 {
    font-size: 2rem;
  }
  .capabilities,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid img {
    aspect-ratio: 16/10;
  }
  .foot {
    flex-wrap: wrap;
  }
  .wrap {
    padding: 0 20px;
  }
  .strip .wrap {
    gap: 10px;
  }
  .prompt {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }
  body {
    background: white;
    font-size: 10pt;
    color: black;
  }
  .top,
  .filters,
  .actions,
  button,
  .skip,
  #notice,
  .builder .fields,
  .install select,
  .install label {
    display: none;
  }
  .wrap {
    padding: 0;
    max-width: none;
  }
  .hero,
  .split,
  .builder {
    display: block;
  }
  .hero {
    padding: 0;
  }
  .hero h1 {
    font-size: 42pt;
    max-width: 15ch;
  }
  .folio {
    box-shadow: none;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #888;
    background: white;
    color: black;
  }
  .folio .kicker,
  .folio h2,
  .install h2,
  .install .kicker {
    color: black;
  }
  .folio .sample {
    padding: 0;
  }
  .strip,
  .tinted,
  .install,
  .prompt {
    background: white;
    color: black;
  }
  .strip {
    border-block: 1px solid #888;
    padding: 8px 0;
  }
  .strip strong,
  .prompt .kicker,
  .install a {
    color: black;
  }
  .chapter,
  section.chapter {
    padding: 24px 0;
    break-inside: auto;
  }
  h2 {
    font-size: 25pt;
  }
  h3 {
    font-size: 14pt;
  }
  h2,
  h3,
  summary {
    break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
  .capabilities {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .capabilities article,
  .steps li {
    break-inside: avoid;
  }
  .showcase-grid {
    display: none;
  }
  .gallery-note:after {
    content: " Browse the full gallery at jongos.github.io/Dazzler/templates/";
  }
  .fineprint {
    padding: 20px 0;
  }
  .prompt {
    border: 1px solid #888;
    min-height: 0;
  }
  .prompt pre {
    min-height: 0;
  }
  details:not([open]) > *:not(summary) {
    display: block;
  }
  .hint,
  .install .hint {
    color: #444;
  }
  a {
    color: #302050;
  }
  .swatches {
    display: none;
  }
}
@media print {
  .section-head {
    display: block;
    margin-bottom: 12px;
  }
  .kicker {
    break-after: avoid;
  }
  .prompt,
  .folio,
  .capabilities,
  details {
    break-inside: avoid;
  }
  .section-head {
    break-after: avoid;
  }
  #results {
    display: none;
  }
  .fineprint h2 {
    max-width: none;
  }
  .gallery-note:after {
    content: none;
  }
  #templates {
    display: none;
  }
}
@media print {
  section.chapter {
    break-before: page;
    padding-top: 0;
  }
  #templates {
    display: none;
  }
  .section-head,
  .section-head p,
  .split > div > p,
  .builder {
    break-inside: avoid;
  }
  .section-head {
    break-after: avoid;
  }
  .kicker {
    margin-top: 0;
  }
  .capabilities p {
    font-size: 10pt;
  }
  .capabilities {
    gap: 16px;
  }
  .fineprint {
    break-before: auto;
  }
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
