* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font: 16px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: #301b18;
  background: #f9f5ed;
  --ink: #301b18;
  --muted: #675651;
  --line: #e6d8ca;
  --accent: #a3442c;
}
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 64px), 1160px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #fffdf7; }
.top .frame { display: flex; align-items: center; justify-content: space-between; min-height: 65px; gap: 16px; }
a { color: #833720; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 720; }
.brand img { border-radius: 8px; }
.intro { margin: 47px 0 26px; }
h1 { font: 600 clamp(38px, 6.3vw, 73px)/1.08 Georgia, serif; letter-spacing: -.065em; margin: 0; }
.intro p { max-width: 650px; margin: 11px 0 0; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 278px minmax(0, 1fr); gap: 18px; align-items: start; }
.controls, .preview { background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; }
.controls { display: grid; gap: 8px; padding: 20px; }
.field { font-size: 13px; font-weight: 720; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; font-weight: 670; }
button:disabled { opacity: .45; cursor: default; }
button, input { min-height: 41px; border: 1px solid #cbb9af; border-radius: 6px; background: #fffdf7; }
button:hover:not(:disabled) { background: #f9eee5; }
.samples, .presets { display: flex; gap: 7px; }
.samples button, .presets button { flex: 1; min-height: 37px; font-size: 13px; }
input { padding: 8px 12px; min-width: 0; width: 100%; }
.presets button[aria-pressed="true"] { background: #f6e0d3; border-color: #ad6d59; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; margin-top: 9px; }
.primary:hover:not(:disabled) { background: #873522; }
:focus-visible { outline: 3px solid #9a4a30; outline-offset: 3px; }
.small, .again { font-size: 12px; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.again { color: #833720; }
.small:empty { display: none; }
.small[data-error] { color: #9a291a; }
.separator { border-bottom: 1px solid var(--line); margin-block: 7px; }
.preview { overflow: hidden; }
.preview-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.preview-header h2 { margin: 0; font-size: 15px; }
.preview-header span { color: var(--muted); font-size: 12px; }
.empty { min-height: 337px; padding: 18px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty img { border-radius: 18px; }
.art { min-height: 263px; display: grid; place-items: center; padding: 17px; background: #e9dfd1; }
.art img { display: block; max-width: 100%; max-height: 365px; object-fit: contain; border-radius: 5px;
  background: repeating-conic-gradient(#e4d6c8 0 25%, #faf7f0 0 50%) 50% / 16px 16px; }
dl { margin: 0; padding: 12px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 12px; }
dd { font-weight: 720; font-size: 14px; margin: 3px 0 0; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 17px; padding-block: 22px; font-size: 12px; color: var(--muted); }
nav { display: flex; gap: 16px; }
.visually-hidden { clip-path: inset(50%); width: 1px; height: 1px; position: absolute; overflow: hidden; }
.info { max-width: 760px; padding-block: 48px; }
.info h1 { font-size: clamp(34px, 6vw, 52px); }
.info section { margin-top: 30px; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 28px); }
  .intro { margin-top: 29px; }
  .workspace { grid-template-columns: 1fr; }
  .art { min-height: 0; }
}
