:root {
  --cream: #fffdf8;
  --paper: #faf8f1;
  --ink: #2f2c22;
  --olive: #747553;
  --olive-deep: #4f4a34;
  --sage: #b4b68e;
  --hairline: #d9d5c6;
  --accent: #d64635;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
.page { max-width: 1080px; margin: 0 auto; padding: 28px 40px 64px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { height: 30px; width: auto; display: block; }
.brand-rule { width: 1px; height: 22px; background: var(--hairline); }
.brand-tool { font-weight: 600; font-size: 15px; color: var(--olive-deep); }
.tagline { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive-deep); }

.hero { padding: 72px 0 56px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--olive-deep); display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.eyebrow-rule { display: inline-block; width: 56px; height: 1px; background: var(--olive); }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.2vw, 88px); line-height: 1.02; letter-spacing: -0.01em;
}
h1 em { color: var(--olive); font-style: italic; }
.lede { max-width: 46ch; margin-top: 26px; color: #4c4839; font-size: 17px; }

.panel {
  background: var(--paper); border: 1px solid var(--hairline);
  padding: 34px 38px 40px; margin-bottom: 28px;
}
.panel.hidden { display: none; }
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-deep);
  margin-bottom: 14px;
}
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-bottom: 22px; }

.dropzone {
  border: 1.5px dashed var(--sage); background: var(--cream);
  padding: 54px 24px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--olive); background: #fdfcf6; }
.dropzone:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.dz-arrow { font-size: 26px; color: var(--olive); margin-bottom: 10px; }
.dz-sub { color: #6b6752; font-size: 14px; margin-top: 4px; }

.btn {
  display: inline-block; margin-top: 18px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: var(--olive-deep); background: transparent;
  border: 1px solid var(--olive); padding: 10px 22px;
  cursor: pointer; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--olive); color: var(--cream); }
.btn.primary { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--cream); }
.btn.primary:hover { background: var(--olive); border-color: var(--olive); }
.btn.ghost { border-color: var(--hairline); color: #5b5744; }
.btn.ghost:hover { border-color: var(--olive); background: transparent; color: var(--olive-deep); }

.work-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(220px,1fr); gap: 34px; align-items: start; }
.frame { border: 1px solid var(--hairline); background: var(--cream); padding: 14px; }
.frame img { display: block; width: 100%; height: auto; }
.checker {
  background-image:
    linear-gradient(45deg, #e8e4d6 25%, transparent 25%, transparent 75%, #e8e4d6 75%),
    linear-gradient(45deg, #e8e4d6 25%, transparent 25%, transparent 75%, #e8e4d6 75%);
  background-color: #f5f2e7;
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
.work-side { padding-top: 6px; }
.work-side .btn { display: block; text-align: center; margin-top: 0; margin-bottom: 12px; }

.progress { height: 3px; background: #e4e0d1; margin: 14px 0 12px; }
.progress-bar { height: 100%; width: 0%; background: var(--olive); transition: width .25s ease; }
.status { font-size: 15px; color: var(--olive-deep); font-weight: 500; }
.quiet { font-size: 13px; color: #7a765f; margin-top: 10px; }

#error-text { margin-bottom: 6px; }
.site-footer {
  border-top: 1px solid var(--hairline); padding-top: 22px;
  font-size: 14px; color: var(--olive-deep);
}
.site-footer .slash { margin: 0 8px; color: var(--hairline); }

@media (max-width: 760px) {
  .page { padding: 20px 18px 48px; }
  .hero { padding: 48px 0 40px; }
  .panel { padding: 24px 20px 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .tagline { display: none; }
}

.owner-link { background: none; border: none; padding: 0; font: inherit; color: #7a765f; text-decoration: underline; cursor: pointer; }
.owner-link:hover { color: #55523f; }

.owner-form { margin-top: 8px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.owner-form.hidden { display: none; }
.owner-form input { font: inherit; padding: 6px 10px; border: 1px solid #d8d4c4; border-radius: 6px; width: 220px; }
