@font-face {
  font-family: Geist;
  src: url("../assets/geist.woff2");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f2ea;
  color: #191b1e;
  font-family: Geist, system-ui, sans-serif;
}
header,
main,
footer {
  max-width: 1000px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d7d2c8;
}
header span,
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}
h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin: 20px 0;
}
p {
  line-height: 1.65;
}
.intro {
  max-width: 750px;
  margin: 32px 0 40px;
}
.eyebrow {
  color: #b7390e;
}
.editor,
aside {
  padding: 26px;
  border: 1px solid #d7d2c8;
  background: #fffdf8;
  border-radius: 14px;
  margin-bottom: 24px;
}
label {
  display: block;
  font-weight: 650;
  margin-bottom: 18px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #bdb8ae;
  padding: 12px;
  background: white;
  border-radius: 6px;
  font: inherit;
  color: inherit;
  min-width: 0;
}
textarea {
  resize: vertical;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.hint {
  font-size: 13px;
  color: #62615d;
}
.card {
  padding: 20px 0;
  border-top: 1px solid #d7d2c8;
}
.card img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #e9e6df;
  border-radius: 6px;
}
.card label {
  margin-top: 14px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
button,
.download {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  padding: 13px 18px;
  background: #c43b10;
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.secondary {
  background: #e9e6df;
  color: #292b2d;
}
.quiet {
  background: transparent;
  color: #79341e;
  text-decoration: underline;
}
.small {
  padding: 8px 12px;
  font-size: 13px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 24px;
}
.step {
  color: #b7390e;
  border: 1px solid #d7d2c8;
  border-radius: 50%;
  padding: 9px;
  font-size: 12px;
}
.count {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}
.action-row {
  border-top: 1px solid #d7d2c8;
  padding-top: 18px;
  margin-bottom: 20px;
}
.picker {
  padding: 22px;
  border: 1px dashed #b7390e;
  border-radius: 8px;
  background: #faf3e9;
}
footer a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #205bbe;
  outline-offset: 3px;
}
#output {
  padding: 32px;
  background: white;
  margin-bottom: 24px;
  border: 1px solid #d7d2c8;
  overflow-wrap: anywhere;
}
#output p,
#output figcaption {
  white-space: pre-wrap;
}
#output figure {
  margin: 24px 0;
}
#output img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  margin: auto;
}
#output figcaption {
  padding: 12px 0;
}
#status {
  padding: 12px 0;
  margin-bottom: 0;
}
body.busy button {
  pointer-events: none;
}
h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  .editor,
  aside {
    padding: 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 9px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .count {
    font-size: 10px;
  }
  header span {
    font-size: 9px;
    letter-spacing: 1px;
  }
  #output {
    padding: 18px;
  }
}
[hidden] {
  display: none !important;
}
