/* eStore Operations: the website. One page, no framework, no script.
   The look is a shop counter: ink, a price-sticker yellow, thermal paper and perforated edges. */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #19222e;
  --ink-2: #46515f;
  --counter: #f2f3f5; /* the page */
  --paper: #ffffff; /* receipt paper */
  --line: #cfd4db;
  --sticker: #ffc93c;
  --sticker-ink: #19222e;
  --paid: #0e7a5f;
  --slash: #d8432e;
  --max: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  font-family: 'Bricolage', system-ui, sans-serif;
  color: var(--ink);
  background: var(--counter);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-size: 1.0625rem;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.ssr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--counter) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px dashed var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--sticker);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-tag {
  background: var(--sticker);
  color: var(--sticker-ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-line {
  background: transparent;
}
.btn-line:hover {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

/* ---- hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) var(--gutter) clamp(48px, 8vw, 96px);
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 700;
  max-width: 14ch;
}
.lead {
  margin-top: 22px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.fine {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* the receipt: the one memorable thing on the page */
.till {
  margin: 0;
  justify-self: center;
  width: min(100%, 380px);
}
.slot {
  height: 14px;
  background: var(--ink);
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.12);
}
.paper {
  position: relative;
  background: var(--paper);
  padding: 22px 22px 34px;
  margin: 0 12px;
  box-shadow:
    0 1px 0 var(--line),
    0 22px 40px -22px rgba(25, 34, 46, 0.45);
  /* torn bottom edge */
  --tooth: 10px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% /
    var(--tooth) 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% /
    var(--tooth) 100%;
}
.receipt {
  margin: 0;
  font:
    400 0.84rem/1.7 'Plex Mono',
    ui-monospace,
    monospace;
  color: var(--ink);
  white-space: pre-wrap;
}
.l {
  display: block;
  opacity: 0;
  transform: translateY(-6px);
  animation: print 0.28s ease-out forwards;
  animation-delay: calc(var(--i) * 110ms + 250ms);
}
@keyframes print {
  to {
    opacity: 1;
    transform: none;
  }
}
.l.c {
  text-align: center;
}
.l.b {
  font-weight: 600;
}
.l.big {
  font-size: 1.05rem;
  font-weight: 600;
}
.l.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.l.rule {
  border-top: 2px dashed var(--line);
  margin: 6px 0;
  height: 0;
}
.l.ok {
  color: var(--paid);
}
.l.bars {
  height: 38px;
  margin-top: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 9px,
    var(--ink) 9px 12px,
    transparent 12px 14px
  );
}
.till figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ---- sections ---- */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) var(--gutter);
  border-top: 2px dashed var(--line);
}
.block-head {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.block-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
}
.block-head p {
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* the bill: a ruled list, each line a thing the shop gets */
.bill {
  margin: 0;
  display: grid;
}
.bill > div {
  display: grid;
  gap: 4px 32px;
  padding: 18px 0;
  border-top: 1px dashed var(--ink-2);
}
.bill > div:last-child {
  border-bottom: 1px dashed var(--ink-2);
}
.bill dt {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.bill dd {
  margin: 0;
  color: var(--ink-2);
  max-width: 42em;
}

/* kinds of shop: price stickers on a shelf */
.kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px 32px;
}
.kinds li {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-left: 18px;
  border-left: 2px dashed var(--line);
}
.sticker {
  justify-self: start;
  background: var(--sticker);
  color: var(--sticker-ink);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 6px 14px;
  border-radius: 6px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.sticker.s2 {
  transform: rotate(1.5deg);
}
.sticker.s3 {
  transform: rotate(-1deg);
}
.sticker.s4 {
  transform: rotate(2deg);
}
.kinds p {
  color: var(--ink-2);
}

/* the steps: a real sequence, so they are numbered */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.steps li {
  counter-increment: step;
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font:
    600 0.95rem 'Plex Mono',
    monospace;
  color: var(--ink-2);
}
.steps h3 {
  font-size: 1.35rem;
}
.steps p {
  color: var(--ink-2);
}

/* partners: the one dark band */
.partners {
  background: var(--ink);
  color: #fff;
  margin-top: clamp(16px, 3vw, 32px);
}
.partners-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) var(--gutter);
  display: grid;
  gap: 32px;
  align-items: center;
}
.partners h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  max-width: 20ch;
}
.partners p {
  margin-top: 16px;
  color: #d5dbe3;
  max-width: 40em;
}
.partners-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.partners .btn-tag {
  border-color: var(--sticker);
  box-shadow: 3px 3px 0 #fff;
}

/* ---- footer ---- */
.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.foot nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.foot nav a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  justify-self: start;
}
.foot nav a:hover {
  border-bottom-color: var(--ink);
}

/* ---- wider screens ---- */
@media (min-width: 720px) {
  .kinds {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .bill > div {
    grid-template-columns: minmax(180px, 0.45fr) 1fr;
    align-items: baseline;
  }
}
@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .kinds {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .partners-in {
    grid-template-columns: 1.4fr 1fr;
  }
  .partners-cta {
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .top .btn {
    margin-left: auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
  }
}

/* nothing moves for people who ask for less */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .l {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
@media print {
  .top,
  .partners-cta,
  .cta {
    display: none;
  }
}
