:root {
  color-scheme: light;
  --carbon: #21231d;
  --dark: #292c24;
  --cream: #f6f3e7;
  --yellow: #f4d85b;
  --rule: #666455;
  --rule-dark: #898b7c;
  --leader: #8d8a78;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --section: clamp(44px, 6vw, 80px);
  --focus: var(--yellow);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--carbon); color: var(--cream); font: 1rem/1.58 var(--mono); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
h2, h3, legend { text-wrap: balance; }
p, summary { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
summary, button, input[type=color] { cursor: pointer; }
:focus-visible { outline: 2px dashed var(--focus); outline-offset: 3px; }
.counter, .printout, .pledge, .stubs { --focus: var(--carbon); }
.shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }

/* header */
.site-header .shell { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--yellow); font: 800 1.75rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; text-decoration: none; }
.wordmark svg { width: 21px; height: 26px; flex: none; translate: 0 -1px; }
nav { display: flex; gap: 0 28px; flex-wrap: wrap; font-size: .875rem; }
nav a { white-space: nowrap; padding-block: 10px; }

/* hero */
.counter { background: var(--yellow); color: var(--carbon); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(290px, 34vw, 372px); gap: clamp(32px, 7vw, 104px); align-items: center; padding-block: clamp(30px, 4vw, 52px); }
h1 { font-size: clamp(5.3rem, 10vw, 9.8rem); line-height: .76; font-weight: 800; letter-spacing: -.016em; text-transform: uppercase; }
h1 span { display: block; }
.lede { max-width: 44ch; margin-top: 26px; font-size: 1.06rem; }
.till { max-width: 540px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--rule); }
.till legend { padding: 0; font: 700 1.55rem/1.1 var(--display); margin-bottom: 10px; }
.till fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
label, .printed-header span, .pledge .label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
label { display: block; }
input { display: block; color: var(--carbon); border: 2px solid var(--carbon); border-radius: 0; margin-top: 4px; height: 46px; background: var(--cream); }
#destination { padding: 6px 12px; width: 100%; min-width: 0; font-size: 1rem; }
input[type=color] { width: 46px; padding: 3px; }
input[aria-invalid="true"] { border-style: dashed; }
.status { margin-top: 10px; min-height: calc(1.58em + 14px); font-size: .875rem; font-weight: 600; }
.status:not(:empty) { display: inline-block; min-height: 0; background: var(--carbon); color: var(--cream); padding: 7px 11px; }

/* receipt */
.printout { position: relative; color: var(--carbon); background: var(--cream); filter: drop-shadow(7px 8px 0 #27251a26); padding: 24px 26px 26px; margin-block: 7px; }
.printout::before, .printout::after { content: ""; position: absolute; inset-inline: 0; height: 7px; background: repeat-x 0 0 / 14px 7px; pointer-events: none; }
.printout::before { bottom: 100%; background-image: conic-gradient(from 135deg at 50% 0, var(--cream) 90deg, transparent 0); }
.printout::after { top: 100%; background-image: conic-gradient(from -45deg at 50% 100%, var(--cream) 90deg, transparent 0); }
.printed-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--rule); padding-bottom: 10px; }
.printed-header strong { font: 800 1.75rem/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.qr { position: relative; width: min(100%, 232px); aspect-ratio: 1; margin: 14px auto 10px; display: grid; place-items: center; }
.qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.is-void .qr svg { visibility: hidden; }
.is-void .qr::after { content: "VOID"; position: absolute; font: 800 3.4rem/1 var(--display); letter-spacing: .06em; border: 3px solid; padding: 2px 14px; rotate: -8deg; }
.is-void #printed-link, .is-void .total span:last-child { opacity: .3; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rows { border-block: 1px dashed var(--rule); padding-block: 9px; font-size: .84rem; }
.rows div { display: flex; align-items: baseline; gap: 7px; line-height: 1.7; }
.rows dt { display: flex; flex: 1 0 auto; gap: 7px; align-items: baseline; }
.rows dt::after { content: ""; flex: 1; min-width: 12px; border-bottom: 2px dotted var(--leader); translate: 0 -.2em; }
.rows dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font: 800 2rem/1.1 var(--display); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.receipt-note { font-size: .8rem; line-height: 1.45; margin-top: 10px; text-align: center; }

/* buttons */
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; font: 600 .875rem/1.2 var(--mono); text-align: center; text-decoration: none; border-radius: 0; border: 2px solid var(--carbon); background: var(--carbon); color: var(--cream); }
.downloads button { padding-inline: 4px; white-space: nowrap; }
button:hover, .button:hover { background: var(--yellow); color: var(--carbon); }
.outline { background: transparent; color: var(--carbon); }
button:disabled, button:disabled:hover { opacity: .55; cursor: default; background: var(--carbon); color: var(--cream); }
button.outline:disabled, button.outline:disabled:hover { background: transparent; color: var(--carbon); }

/* sections */
h2 { font-size: clamp(2.7rem, 5.3vw, 4.7rem); line-height: .94; letter-spacing: -.013em; font-weight: 700; }
.promise, .process, .price-section, .faq { padding-block: var(--section); }
.promise, .process, .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8%; align-items: start; }
.process, .price-section, .faq { border-top: 1px solid #65685c; }
.problem h2, .process h2, .price-section h2 { margin-bottom: .38em; }
.problem h2 { color: var(--yellow); font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
.problem p { max-width: 36ch; }
.pledge { background: var(--cream); color: var(--carbon); padding: 30px 32px; outline: 1px dashed var(--rule); outline-offset: -10px; }
.pledge .label { display: block; margin-bottom: 12px; }
.pledge h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: .96; margin-bottom: 16px; }
.pledge p { max-width: 54ch; }
.pledge p + p { margin-top: 10px; }
.pledge .terms { display: inline-block; margin-top: 16px; padding-block: 10px; font-size: .875rem; font-weight: 600; }
.process h2, .price-section h2, .faq h2 { font-size: clamp(2.5rem, 4.2vw, 3.9rem); }
.process ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li { display: grid; grid-template-columns: 35px 1fr; gap: 11px; counter-increment: step; padding-block: 12px; border-bottom: 1px dashed var(--rule-dark); }
.process li:first-child { padding-top: 0; }
.process li:last-child { border-bottom: 0; padding-bottom: 0; }
.process li::before { content: counter(step, decimal-leading-zero); color: var(--yellow); font-weight: 500; }

/* pricing stubs */
.stubs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--cream); color: var(--carbon); }
.stubs article { position: relative; display: flex; flex-direction: column; align-items: start; padding: 30px 34px 32px; }
.stubs article + article { border-left: 2px dashed #737263; }
.stubs article + article::before, .stubs article + article::after { content: ""; position: absolute; left: -11px; width: 20px; height: 10px; background: var(--carbon); }
.stubs article + article::before { top: 0; border-radius: 0 0 20px 20px; }
.stubs article + article::after { bottom: 0; border-radius: 20px 20px 0 0; }
.stubs h3 { font-size: 1.7rem; font-weight: 700; }
.rate { font: 800 4.6rem/.94 var(--display); margin-block: 6px 4px; font-variant-numeric: tabular-nums; }
.rate small { font-size: 1.45rem; font-weight: 600; }
.alt { font: 700 1.45rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stubs .rows { width: 100%; margin-block: 16px 14px; font-size: .9rem; }
.stubs .rows div { line-height: 1.9; flex-wrap: wrap; }
.stubs .rows dd { font-weight: 600; margin-left: auto; }
.stubs .fine { font-size: .875rem; margin-bottom: 18px; }
.stubs .button { margin-top: auto; }

/* faq */
details { border-bottom: 1px dashed var(--rule-dark); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; font-weight: 600; }
.faq > div { margin-top: -13px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--yellow); font-weight: 500; }
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--yellow); }
details p { max-width: 58ch; padding-bottom: 16px; }

/* footer */
footer { border-top: 1px dashed var(--rule-dark); padding-block: 40px 44px; }
footer .shell { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 13px 29px; }
footer nav { gap: 0 16px; }
footer .contact { color: var(--yellow); font: 800 clamp(2rem, 4.6vw, 3.2rem)/1 var(--display); text-decoration: none; }
footer .contact:hover { text-decoration: underline; text-decoration-thickness: 3px; }
footer .seller { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--rule-dark); }

@media (max-width: 825px) {
  h1 { font-size: clamp(4.2rem, 11vw, 7rem); }
}
@media (min-width: 681px) and (max-width: 880px) {
  .till fieldset { grid-template-columns: auto auto 1fr; }
  .till fieldset > label:first-of-type { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .site-header .shell { min-height: 60px; gap: 7px; }
  .wordmark { font-size: 1.45rem; gap: 7px; }
  .wordmark svg { width: 18px; height: 22px; }
  .site-header nav { gap: 0 14px; font-size: .82rem; }
  .hero { display: block; padding-block: 24px 34px; }
  h1 { font-size: clamp(4.3rem, 20vw, 7rem); }
  .lede { font-size: 1rem; margin-top: 14px; }
  .till { margin-top: 18px; padding-top: 16px; }
  .till fieldset { gap: 7px; }
  .status { min-height: 0; margin-block: 8px 20px; }
  .printout { width: min(calc(100% - 14px), 346px); margin-inline: auto; padding: 18px 20px 20px; }
  .qr { width: min(100%, 190px); margin-block: 8px 6px; }
  .promise, .process, .faq { grid-template-columns: 1fr; gap: 23px; }
  .faq { gap: 18px; }
  .pledge { padding: 26px 24px; }
  .stubs { grid-template-columns: 1fr; }
  .stubs article { padding: 24px 22px 26px; }
  .stubs .button { width: 100%; }
  .stubs article + article { border-left: 0; border-top: 2px dashed #737263; }
  .stubs article + article::before, .stubs article + article::after { top: -10px; width: 10px; height: 20px; }
  .stubs article + article::before { left: 0; border-radius: 0 20px 20px 0; }
  .stubs article + article::after { left: auto; right: 0; border-radius: 20px 0 0 20px; }
  footer { padding-block: 32px 36px; }
  footer .shell { flex-direction: column; align-items: start; gap: 18px; }
  footer nav { max-width: 270px; }
}
@media (max-width: 680px) and (max-height: 760px) {
  .qr { width: min(100%, 168px); }
}
@media (max-width: 374px) {
  .wordmark svg { display: none; }
  .site-header nav { gap: 0 10px; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 24px); }
}

/* inner pages */
.stack > * + * { margin-top: 12px; }
.hero h1.long { font-size: clamp(3.6rem, 6.6vw, 6.4rem); line-height: .82; }
.pledge .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pledge .outline { background: transparent; color: var(--carbon); }
.pledge .outline:hover { background: var(--yellow); }
.stamp .total span:last-child { opacity: 1; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* legal pages */
.doc-page { padding-block: clamp(30px, 5vw, 60px) var(--section); }
.printout.doc { width: auto; max-width: calc(68ch + 104px); margin-inline: auto; padding: clamp(24px, 5vw, 52px); }
.doc h1 { font-size: clamp(3rem, 7vw, 4.6rem); line-height: .9; margin-top: 22px; }
.doc .meta { margin-top: 12px; font-size: .84rem; }
.doc h2 { font-size: clamp(1.7rem, 3.2vw, 2.15rem); line-height: 1; letter-spacing: 0; margin-top: 38px; }
.doc :is(p, ul, ol, dl) { margin: 12px 0 0; max-width: 68ch; }
.doc :is(ul, ol) { padding-left: 1.3em; }
.doc ul { list-style: square; }
.doc li + li { margin-top: 6px; }
.doc a { font-weight: 600; }
.doc .rows { margin-top: 22px; }
.doc .rows dd { margin-left: auto; white-space: normal; text-align: right; font-weight: 600; }
.doc .button { margin-top: 16px; }
@media (max-width: 680px) {
  .hero h1.long { font-size: clamp(3.3rem, 15vw, 5rem); }
}
