:root {
  --poppy: #FAAB2E;
  --poppy-dark: #E07814;
  --ink: #0F1219;
  --cream: #F5F0D6;
  --cream-dim: rgba(245, 240, 214, 0.6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
a { color: var(--poppy); }
hr {
  border: none;
  border-top: 1px dashed rgba(245, 240, 214, 0.25);
  width: 100%;
  margin-top: 3rem;
}
nav {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
nav a {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: var(--cream); }
nav a.current {
  color: var(--cream);
  font-weight: 600;
}
h1 {
  color: var(--poppy);
  margin-bottom: 1.5rem;
}
.bill {
  background: #FDFAEC;
  color: #3A3428;
  /* The receipt stays monospaced, like the app's printed bill. */
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  text-align: left;
  padding: 1.2rem 1.4rem 1.4rem;
  transform: rotate(1.5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.bill header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  white-space: nowrap;
  font-weight: bold;
  letter-spacing: 0.08em;
  border-bottom: 1px dashed #999;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
/* The date: regular weight at 70% ink, as in the app. */
.bill header span + span {
  font-weight: normal;
  color: rgba(58, 52, 40, 0.7);
}
.bill table { border-collapse: collapse; width: 100%; }
.bill td { padding: 0.15rem 0; }
.bill tbody tr:last-child td { padding-bottom: 0.5rem; }
.bill td + td { text-align: right; padding-left: 2.5rem; }
.bill .total td {
  border-top: 1px dashed #999;
  font-weight: bold;
  padding-top: 0.5rem;
}
.bill .event td {
  font-style: italic;
  color: rgba(58, 52, 40, 0.6);
}
