:root {
  color-scheme: light;
  --bg: #f3efe5;
  --card: #fffcf6;
  --ink: #2d2821;
  --muted: #5b5145;
  --border: #cfc0a9;
  --accent: #753c29;
  font: 16px/1.53 "Instrument Sans", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-underline-offset: .2em; }
.wrap { width: min(1135px, calc(100% - 3rem)); margin-inline: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 62px; border-bottom: 1px solid var(--border); }
.brand { font-weight: 850; color: var(--ink); text-decoration: none; }
.hero { padding: 2.95rem 0 1.8rem; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font: 700 clamp(2.8rem, 7vw, 5.5rem)/.99 "Instrument Serif", Georgia, serif; margin: 0; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: .75rem 0 0; }
.work { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.22fr); gap: 1rem; align-items: start; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: clamp(1rem, 2.65vw, 1.55rem); }
h2 { margin: 0 0 .5rem; font-size: clamp(1.36rem, 3.2vw, 1.85rem); }
h3 { margin: 0; font-size: 1.05rem; }
label { display: block; margin: .62rem 0 .19rem; font-weight: 750; font-size: .9rem; }
input { width: 100%; min-width: 0; background: white; color: var(--ink); border: 1px solid #a19075; border-radius: 6px; padding: .5rem .6rem; font: inherit; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .7rem; }
.muted { margin: .45rem 0 .65rem; color: var(--muted); font-size: .86rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
button { min-height: 42px; border: 1px solid var(--accent); border-radius: 6px; color: white; background: var(--accent); padding: .42rem .72rem; font: inherit; font-weight: 750; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:not(:disabled):hover { filter: brightness(.9); }
.secondary { color: var(--accent); background: transparent; }
.compact { min-height: 34px; padding: .23rem .47rem; font-size: .78rem; }
:focus-visible { outline: 3px solid #9b5036; outline-offset: 3px; }
.catalog-head, .workflow-head { display: flex; justify-content: space-between; align-items: start; gap: .5rem; flex-wrap: wrap; }
.workflow { border: 1px solid var(--border); border-radius: 8px; margin-top: .65rem; padding: .72rem; background: #fffaf1; }
.workflow dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: .65rem 0 0; }
.workflow dl > div { padding: .45rem .5rem; background: #f2e5d3; border-radius: 5px; overflow-wrap: anywhere; }
dt { font-size: .74rem; color: var(--muted); font-weight: 740; }
dd { margin: .15rem 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { margin-top: .65rem; color: var(--muted); padding: .75rem; background: #f5ecdf; border-radius: 6px; }
.guide { max-width: 49rem; padding: 2.4rem 0 1.4rem; }
.guide p { color: var(--muted); }
footer { border-top: 1px solid var(--border); padding: 1rem 0; font-weight: 750; }
@media (max-width: 780px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero { padding-top: 2rem; }
  .work { grid-template-columns: 1fr; }
}
