:root {
  color-scheme: light;
  --ink: #26251f;
  --paper: #f3eee3;
  --card: #fffdf8;
  --line: #d8cfbd;
  --sage: #486653;
  --sage-dark: #30483a;
  --muted: #746e62;
  --clay: #b7674d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.shell {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font: 700 18px/1 Georgia, serif;
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 13px; text-decoration: none; }

.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font: 700 14px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button:disabled { cursor: not-allowed; opacity: .5; }

.eyebrow {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 { font-family: Georgia, serif; font-weight: 600; letter-spacing: -.035em; }
h1 { margin: 12px 0 18px; font-size: clamp(42px, 7vw, 78px); line-height: .98; }
h2 { margin: 0 0 8px; font-size: clamp(25px, 4vw, 38px); line-height: 1.12; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 50px;
  align-items: center;
  min-height: 72vh;
  padding: 55px 0 85px;
}

.hero-copy > p { max-width: 590px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.verdict-stack { position: relative; min-height: 420px; }
.verdict-card {
  position: absolute;
  width: min(330px, 92%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(56, 47, 34, .11);
}
.verdict-card:nth-child(1) { top: 10px; right: 8px; transform: rotate(3deg); }
.verdict-card:nth-child(2) { top: 145px; left: 0; transform: rotate(-4deg); }
.verdict-card:nth-child(3) { top: 278px; right: 22px; transform: rotate(2deg); }
.verdict-card strong { display: block; margin-bottom: 5px; }
.signal { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 13px; border-radius: 50%; color: #fff; font-weight: 800; }
.signal.good { background: var(--sage); }
.signal.mixed { background: #a86818; }
.signal.skip { background: var(--clay); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 0 90px; }
.feature { padding: 24px; border-top: 1px solid var(--line); }
.feature b { display: block; margin-bottom: 8px; }

.page-head { max-width: 740px; padding: 55px 0 30px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); }
.notice { max-width: 800px; margin-bottom: 24px; padding: 13px 16px; border-left: 3px solid var(--sage); background: #e9e3d7; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; padding-bottom: 24px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 32px rgba(65, 53, 34, .06); }
.card.wide { grid-column: 1 / -1; }
.card h2 { font-size: 27px; }
.hint { color: var(--muted); font-size: 13px; }

input[type="file"] { width: 100%; margin: 16px 0 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #faf7f0; }
select { width: 100%; margin: 6px 0 12px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
canvas { display: block; max-width: 100%; max-height: 520px; margin: 12px auto; border-radius: 10px; cursor: crosshair; }
.stage { display: none; }
.stage.visible { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result { margin-top: 14px; padding: 12px; border-radius: 10px; background: #ece8dd; }

.prose { max-width: 760px; padding: 45px 0 80px; }
.prose h1 { font-size: 48px; }
.prose h2 { margin-top: 32px; font-size: 25px; }

footer { margin-top: 45px; padding: 25px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .nav-links a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 38px; }
  .verdict-stack { min-height: 390px; }
  .feature-grid, .tool-grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .feature { padding-inline: 8px; }
}
