:root {
  --ink: #202326;
  --muted: #707575;
  --paper: #f5f3ee;
  --panel: #fffdf8;
  --line: #dddcd4;
  --accent: #d95f3e;
  --accent-dark: #a83f2a;
  --green: #3e8062;
  --shadow: 0 24px 70px rgba(35, 37, 33, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.site-header, main, .site-footer { max-width: 1160px; margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px; }
.brand { display: flex; gap: 10px; align-items: center; font: 700 15px/1 'Courier New', monospace; letter-spacing: .02em; }
.brand-mark { display: block; width: 26px; height: 26px; flex: 0 0 26px; }
nav { display: flex; gap: 26px; align-items: center; font: 12px 'Courier New', monospace; }
nav a { color: var(--muted); }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active { border-bottom: 1px solid var(--accent); padding-bottom: 5px; }
.github-link { color: var(--ink); }
main { padding: 25px 32px 96px; }
.hero { max-width: 740px; padding: 0 8px 30px; }
.eyebrow, .section-label { color: var(--accent-dark); font: 700 11px 'Courier New', monospace; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.live-dot, .success-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); }
h1 { margin: 12px 0 10px; font-size: clamp(40px, 5vw, 62px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
h1 em { color: var(--accent); font-style: italic; }
.intro { max-width: 450px; margin: 0; color: var(--muted); font-size: 15px; }
.workspace { padding: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.workspace-topline { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-label { margin: 0 0 7px; }
h2 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.shortcut { display: flex; gap: 7px; align-items: center; color: var(--muted); font: 11px 'Courier New', monospace; }
kbd { min-width: 27px; padding: 5px 7px; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; background: var(--paper); text-align: center; }
.paste-surface { min-height: 400px; display: grid; place-items: center; border: 2px dashed #c5c5bb; background: linear-gradient(135deg, rgba(245,243,238,.8), rgba(255,253,248,.8)); outline: none; }
.paste-surface:focus, .paste-surface:hover { border-color: var(--accent); }
.surface-empty, .surface-loading { text-align: center; }
.paste-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 17px; color: var(--accent); border: 1px solid #e7aa98; border-radius: 50%; font: 28px/1 Georgia, serif; transform: rotate(180deg); }
h3 { margin: 0; font-size: 20px; font-weight: 400; }
.surface-empty p { margin: 8px 0 23px; color: var(--muted); font-size: 15px; }
.surface-note { color: #9a9b94; font: 10px 'Courier New', monospace; text-transform: uppercase; letter-spacing: .08em; }
.spinner { display: block; width: 34px; height: 34px; margin: 0 auto 18px; border: 2px solid #edd3ca; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview { width: 100%; height: 100%; min-height: 390px; padding: 18px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; color: var(--green); font: 11px 'Courier New', monospace; }
.preview-bar span { display: flex; align-items: center; gap: 8px; }
.preview-bar button { border: 0; padding: 0; color: var(--muted); background: transparent; cursor: pointer; font: inherit; }
.preview-bar button:hover { color: var(--accent-dark); }
.image-frame { display: grid; place-items: center; height: 320px; overflow: hidden; background: #ebe9e2; }
.image-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.status { margin: 15px 0 0; color: var(--muted); text-align: right; font: 11px 'Courier New', monospace; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; padding: 75px 8px 0; }
.detail-number { color: var(--accent); font: 11px 'Courier New', monospace; }
.details h3 { margin-top: 14px; font-size: 21px; }
.details p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.legal-page { padding-bottom: 80px; }
.legal-page .hero { padding-bottom: 55px; }
.legal-copy { max-width: 680px; padding: 34px 0 0 8px; border-top: 1px solid var(--line); }
.legal-copy h2 { margin: 34px 0 9px; font-size: 25px; }
.legal-copy p:not(.section-label) { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; }
.site-footer { display: flex; justify-content: space-between; padding: 26px 32px 38px; border-top: 1px solid var(--line); color: #92938c; font: 10px 'Courier New', monospace; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .site-header { align-items: flex-start; padding: 22px 20px; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  nav .github-link { display: none; }
  main { padding: 25px 20px 70px; }
  .hero { padding-bottom: 48px; }
  h1 { font-size: 45px; }
  .workspace { padding: 22px 16px; }
  .workspace-topline { align-items: flex-start; flex-direction: column; gap: 17px; }
  .paste-surface, .preview { min-height: 330px; }
  .image-frame { height: 260px; }
  .details { grid-template-columns: 1fr; gap: 30px; padding-top: 55px; }
  .legal-copy { padding-left: 0; }
  .site-footer { flex-direction: column; gap: 8px; padding: 22px 20px 30px; }
}