:root {
  --paper: #faf9f4;
  --ink: #242a25;
  --muted: #586257;
  --line: #cdd1c6;
  --green: #24583e;
  font: 100%/1.55 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body {
  width: min(100% - 2.5rem, 64rem);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.masthead, footer, footer nav, .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.masthead, footer { justify-content: space-between; padding: 1.25rem 0; }
.masthead { border-bottom: 1px solid var(--ink); }
.brand, h1, .price {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.brand { color: var(--ink); font-size: 2rem; text-decoration: none; }
main { flex: 1; padding: clamp(2.5rem, 6vw, 5rem) 0; }
h1 { max-width: 17ch; margin: 0 0 1rem; font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 1rem; }
p { max-width: 57ch; margin: 0 0 1.25rem; }
.intro { font-size: 1.15rem; color: var(--muted); }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.workspace section, .catalog { padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.picker { display: grid; gap: 0.5rem; margin: 1rem 0; color: var(--muted); }
input[type=file] {
  width: 100%;
  min-width: 0;
  padding: 1rem;
  border: 1px dashed #839386;
  border-radius: 0.4rem;
  background: #f0f2e9;
  color: var(--ink);
  font: inherit;
}
button, input::file-selector-button {
  padding: 0.55rem 1rem;
  border: 1px solid var(--green);
  border-radius: 0.35rem;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
input::file-selector-button { margin-right: 0.75rem; }
button:disabled { border-color: var(--line); background: #e8eae2; color: #535d53; cursor: default; }
.price { font-size: 2.6rem; font-variant-numeric: tabular-nums; }
.status { min-height: 1.6em; margin-top: 1.25rem; color: var(--green); }
.catalog { margin-top: 3rem; }
.catalog ul { list-style: none; padding: 0; }
.catalog li { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.catalog li a { font-size: 1.15rem; }
.prose { max-width: 42rem; }
.prose h1 { margin: 1.5rem 0; }
h1, p, a, .status { overflow-wrap: anywhere; }
footer { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
@media (max-width: 42rem) {
  .workspace { grid-template-columns: 1fr; gap: 1.5rem; }
}
