*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #f7f2ea;
  color: #2a2420;
  line-height: 1.65;
  min-height: 100vh;
  padding-left: 112px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --paper: #f7f2ea;
  --receipt: #fffef8;
  --ink: #2a2420;
  --muted: #6b635c;
  --coral: #c45c3a;
  --line: #e0d8cc;
  --sans: 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ——— RECEIPT RAIL left (thermal ticket — not punches, shingles, stamps, drawers) ——— */
.receipt {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100px;
  z-index: 100;
  background: var(--receipt);
  border-right: 1px dashed #c8bfb0;
  box-shadow: 4px 0 16px rgba(42,36,32,0.06);
  display: flex;
  flex-direction: column;
  padding: 28px 0 20px;
  overflow-y: auto;
}
.receipt .store {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  padding: 0 8px 16px;
  border-bottom: 1px dashed #c8bfb0;
  margin-bottom: 12px;
  line-height: 1.4;
}
.receipt .store strong {
  display: block;
  font-size: 0.72rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.receipt a {
  display: block;
  padding: 14px 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dotted #d4cbbf;
  transition: color 0.12s, background 0.12s;
}
.receipt a:hover { color: var(--ink); background: rgba(196,92,58,0.06); }
.receipt a.on {
  color: var(--coral);
  background: rgba(196,92,58,0.1);
}
.receipt .tear {
  margin-top: auto;
  padding: 12px 8px 0;
  font-family: var(--mono);
  font-size: 0.5rem;
  text-align: center;
  color: #a89e92;
  letter-spacing: 0.06em;
}

/* ——— AISLE: editorial magazine block ——— */
.aisle {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 28px 64px;
}
.aisle .k {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.aisle h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}
.aisle .lede {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 440px;
}
.aisle .strip {
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 28px;
}
.aisle .strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.aisle p {
  font-family: var(--sans);
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.98rem;
}

/* ——— SHELF: uneven stacked slips ——— */
.shelf {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 28px 64px;
}
.shelf .k {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.shelf h1 {
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 28px;
}
.slip {
  background: var(--receipt);
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin-bottom: 14px;
  position: relative;
}
.slip:nth-child(odd) { margin-left: 0; }
.slip:nth-child(even) { margin-left: 28px; max-width: calc(100% - 28px); }
.slip .n {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--coral);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.slip h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}
.slip p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— TILL: checkout stub ——— */
.till-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.stub {
  width: 100%;
  max-width: 380px;
  background: var(--receipt);
  border: 1px solid var(--line);
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(42,36,32,0.08);
}
.stub .top {
  text-align: center;
  border-bottom: 1px dashed #c8bfb0;
  padding-bottom: 14px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stub .top strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.stub h1 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 12px;
  text-align: center;
}
.stub .meta {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: center;
}
.stub .meta a {
  color: var(--coral);
  font-weight: 600;
}
.stub label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.stub input,
.stub textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.stub input:focus,
.stub textarea:focus {
  outline: none;
  border-bottom-color: var(--coral);
}
.stub textarea {
  min-height: 80px;
  border: 1px solid var(--line);
  padding: 10px;
  resize: vertical;
}
.stub button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.stub button:hover { background: var(--coral); }

.ft {
  text-align: center;
  padding: 20px 24px 40px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}
.ft strong { color: var(--ink); }

@media (max-width: 640px) {
  body { padding-left: 0; padding-bottom: 72px; }
  .receipt {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    border-right: none;
    border-top: 1px dashed #c8bfb0;
    padding: 0;
    box-shadow: 0 -4px 16px rgba(42,36,32,0.06);
  }
  .receipt .store,
  .receipt .tear { display: none; }
  .receipt a {
    flex: 1;
    border-bottom: none;
    border-right: 1px dotted #d4cbbf;
    padding: 16px 6px;
  }
  .receipt a:last-child { border-right: none; }
  .slip:nth-child(even) { margin-left: 0; max-width: 100%; }
}
