:root {
  --brand: #47ab5a;
  --brand-deep: #23713a;
  --ink: #0e2a1c;
  --muted: #4a6455;
  --paper: #e7f6eb;
  --roll: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, p, ol { margin: 0; }
a { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
}

.logo { display: block; height: 2.5rem; width: auto; margin-bottom: clamp(2rem, 8vh, 5rem); }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 1rem; font-size: 1.25rem; color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand-deep);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--ink); }
.button small { font-size: 0.875rem; font-weight: 400; }
.hint { margin-top: 1rem; max-width: 34ch; font-size: 0.9375rem; color: var(--muted); }
.progress { margin-top: 2rem; padding-left: 1rem; border-left: 4px solid var(--brand); max-width: 40ch; }
.plain { margin-top: 2.5rem; padding: 0; border: 0; background: none; color: var(--brand-deep); font: inherit; text-decoration: underline; cursor: pointer; }

/* The version list hangs out of a till printer slot and ends in a torn edge. */
.printer { position: relative; padding: 0.55rem 1.25rem 0; }
.printer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1.1rem; border-radius: 0.55rem; background: var(--ink); }
.receipt {
  --tooth: 0.75rem;
  position: relative;
  padding: 2rem 1.5rem calc(1.75rem + var(--tooth));
  background: var(--roll);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat;
}
h2 { font-size: 1.125rem; padding-bottom: 1rem; }
ol { list-style: none; padding: 0; }
li { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; padding: 0.9rem 0; border-top: 2px dashed #bcd6c4; font-variant-numeric: tabular-nums; }
.version { display: flex; align-items: center; gap: 0.6rem; }
.version strong { font-size: 1.25rem; }
.tag { padding: 0.05rem 0.5rem; border-radius: 1rem; background: var(--paper); color: var(--brand-deep); font-size: 0.8125rem; font-weight: 600; }
time { color: var(--muted); font-size: 0.9375rem; align-self: center; }
.files { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; }
.files a { justify-self: start; }
.files span { color: var(--muted); font-size: 0.9375rem; }

.narrow { max-width: 26rem; margin: 0 auto; padding: clamp(2rem, 12vh, 8rem) 1.25rem; }
.narrow .logo { margin-bottom: 2rem; }
.narrow h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.narrow p { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
input { width: 100%; margin-bottom: 1rem; padding: 0.8rem 0.9rem; border: 2px solid var(--brand-deep); border-radius: 0.5rem; background: #fff; color: inherit; font: inherit; }
.error { color: #a11a1a; font-weight: 600; }

@media (max-width: 52rem) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .logo { margin-bottom: 2rem; }
}
