:root {
  --mist: #e7eee8;
  --paper: #fbfcfa;
  --ink: #16252a;
  --ink-soft: #3d4f54;
  --green: #2e6b4e;
  --green-deep: #234f3a;
  --gold: #b8842a;
  --line: #c9d6cc;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

main { flex: 1; outline: none; }

a { color: var(--green-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

/* Header and footer */
.site-header {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
  padding: 1.5rem 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.wordmark {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  font-variation-settings: "wdth" 85;
  color: var(--ink); text-decoration: none;
}
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.site-footer {
  width: min(100% - 2.5rem, 62rem);
  margin: 4rem auto 0;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.95rem;
}
.site-footer p { margin: 0; }

/* Type */
h1, h2 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 680; font-variation-settings: "wdth" 88; margin-bottom: 0.75rem; }

.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 38rem; color: var(--ink-soft); margin: 1.5rem 0 0; line-height: 1.5; }

p { margin: 0 0 1rem; max-width: 40rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--green); color: var(--paper);
  padding: 0.7rem 1.25rem; border-radius: 0.5rem;
  font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--green-deep); color: var(--paper); }

/* Product section */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}

/* The receipt slip: the one memorable element */
.slip-wrap { display: flex; justify-content: center; padding: 0.5rem 0 2rem; }
.slip {
  position: relative;
  width: 100%; max-width: 18rem;
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.75rem;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
  transform: rotate(1.6deg);
  filter: drop-shadow(0 10px 18px rgba(22, 37, 42, 0.14));
  animation: print 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.slip::after {
  content: "";
  position: absolute; left: 0; right: 0; top: calc(100% - 1px);
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M0 0h14L7 13z' fill='%23fbfcfa'/%3E%3C/svg%3E") left top repeat-x;
}
.slip-head { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px dashed var(--line); }
.slip ul { list-style: none; margin: 0; padding: 0; }
.slip li, .slip-total { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; margin: 0; }
.slip-total { border-top: 2px dashed var(--line); margin-top: 0.75rem; padding-top: 0.85rem; font-weight: 700; font-size: 1.15rem; }
.slip-total span:last-child { color: var(--green-deep); }
.slip-note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

@keyframes print {
  from { opacity: 0; transform: translateY(-1.5rem) rotate(1.6deg); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: translateY(0) rotate(1.6deg); clip-path: inset(0 0 0 0); }
}

/* Prose and contact */
.prose { padding-bottom: 1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; max-width: 40rem; }
.prose li { margin-bottom: 0.5rem; }
code { background: rgba(22, 37, 42, 0.07); padding: 0.05em 0.3em; border-radius: 4px; font-size: 0.92em; }
.policy h2 { font-size: 1.35rem; }
.policy .lead { max-width: 40rem; }
.contact-spacer { padding-top: 1rem; }

@media (max-width: 44rem) {
  .product { grid-template-columns: 1fr; }
  .slip-wrap { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .slip { animation: none; }
}
