/*
 * Kopitiam receipt. Every page is one paper chit on a counter: monospace line items, dashed rules,
 * a rubber stamp and numbered actions. Colours and fonts come from brand.theme (inline :root
 * overrides); these are the defaults.
 */
:root {
  --paper: #fbf7ee;
  --ink: #1d1a16;
  --ink-rgb: 29 26 22;
  --muted: #6b6258;
  --stamp: #b3261e;
  --stamp-rgb: 179 38 30;
  --ok: #1d6b37;
  --counter: color-mix(in srgb, var(--paper) 78%, var(--ink));
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --pad: 18px;
  --tooth: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  padding: 0 0 110px;
  background: var(--counter);
  color: var(--ink);
  font: 15px/1.5 var(--font-mono);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.18em;
}

/* ---------- The chit ---------- */

.chit {
  position: relative;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: calc(var(--tooth) + 14px) var(--pad) calc(var(--tooth) + 20px);
  background: var(--paper);
  /* Torn zig-zag top and bottom edges. */
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x;
}

.lead,
.item-desc,
address,
.faq p,
.gr-text,
.outlet-addr,
.mast-sub {
  font-family: var(--font-body);
}

.lead {
  margin: 0 0 10px;
  line-height: 1.6;
}

address {
  font-style: normal;
  margin: 0 0 6px;
}

.fine {
  margin: 6px 0;
  font-size: 12px;
  color: var(--muted);
}

.center {
  text-align: center;
}

/* Dashed rule, optionally labelled: ── OUTLETS ── */
.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed currentColor;
}

hr.rule {
  display: block;
  border: 0;
  border-top: 1.5px dashed var(--ink);
}

hr.rule::before,
hr.rule::after {
  content: none;
}

.leader {
  flex: 1;
  min-width: 14px;
  margin: 0 8px;
  border-bottom: 2px dotted rgb(var(--ink-rgb) / 0.35);
  transform: translateY(-4px);
}

/* ---------- Announcement ---------- */

.notice {
  margin: -14px calc(var(--pad) * -1) 18px;
  padding: 10px var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notice p {
  margin: 0;
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
}

.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mast-top a {
  text-decoration: none;
}

.mast-logo img {
  display: block;
  max-height: 48px;
  width: auto;
  margin: 0 auto 10px;
}

.masthead h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead h1 span {
  display: block;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.mast-sub {
  margin: 6px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
}

.mast-meta {
  margin: 10px 0 0;
}

.crumbs ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
}

.lang {
  font-size: 12px;
}

.lang [aria-current] {
  font-weight: 700;
}

/* ---------- Stamp ---------- */

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 12px auto 0;
  padding: 4px 12px 5px;
  border: 4px double var(--stamp);
  color: var(--stamp);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  animation: thunk 0.35s ease-out both;
}

.stamp strong {
  font-size: 18px;
  letter-spacing: 0.16em;
}

.stamp span {
  font-size: 11px;
}

.stamp.is-closed,
.stamp.is-soon {
  color: var(--muted);
  border-color: var(--muted);
}

.stamp.is-void {
  display: flex;
  width: max-content;
  margin: 24px auto;
  padding: 8px 28px;
  color: var(--stamp);
  border-color: var(--stamp);
  transform: rotate(-12deg);
}

.stamp.is-void strong {
  font-size: 34px;
}

@keyframes thunk {
  from {
    opacity: 0;
    transform: rotate(-4deg) scale(1.5);
  }
}

/* ---------- Totals ---------- */

.totals {
  margin: 12px 0 0;
  padding: 6px 0;
  border-top: 1.5px dashed var(--ink);
  border-bottom: 1.5px dashed var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.totals div,
.lines .li {
  display: flex;
  align-items: baseline;
  padding: 3px 0;
}

.totals dt,
.totals dd,
.lines dt,
.lines dd {
  margin: 0;
}

.totals dd,
.lines dd {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Actions ---------- */

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 6px;
}

.act {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s;
}

.act.is-primary {
  background: var(--ink);
  color: var(--paper);
}

.act:active {
  transform: translateY(2px);
}

.act .icon {
  margin-right: 10px;
}

.act .leader {
  border-color: currentColor;
  opacity: 0.35;
}

.act-no {
  margin-right: 10px;
  font-size: 11px;
  opacity: 0.65;
}

.act-sub {
  max-width: 45%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.act-arrow {
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 12px/1 var(--font-mono);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.private a {
  display: block;
  margin: 10px 0 0;
  padding: 12px;
  border: 1.5px dashed var(--ink);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.links {
  margin: 0;
}

.line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-bottom: 1px dashed rgb(var(--ink-rgb) / 0.5);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.line .leader {
  margin: 0;
}

/* ---------- As seen on: a press clipping, then a rail of creator reels ---------- */

.clip {
  position: relative;
  margin: 8px 6px 0;
  padding: 14px 14px 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  transform: rotate(-0.6deg);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

/* Masking tape holding the clipping to the receipt. */
.clip::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 84px;
  height: 20px;
  margin-left: -42px;
  background: rgb(var(--stamp-rgb) / 0.16);
  transform: rotate(2deg);
}

.clip-mast {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 3px double #111;
  font-size: 12px;
}

.clip-mast strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.clip-mast span {
  font-family: var(--font-mono);
  color: #555;
  white-space: nowrap;
}

.clip-head {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.clip-head a {
  color: inherit;
  text-decoration: none;
}

.clip-read {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.reels-head {
  display: flex;
  justify-content: space-between;
  margin: 26px 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.reels-head span + span {
  color: var(--muted);
  font-weight: 400;
}

.reels {
  display: flex;
  gap: 10px;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}

.reel {
  position: relative;
  display: block;
  flex: 0 0 42%;
  max-width: 190px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}

.reel-wide {
  max-width: none;
  aspect-ratio: 16 / 9;
  border-width: 1px;
}

.reel picture,
.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shade the bottom so the caption reads on any poster. */
.reel::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.82));
}

.reel-wide::after {
  display: none;
}

.reel-plat {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.reel-plat svg {
  width: 11px;
  height: 11px;
}

.reel-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgb(var(--stamp-rgb) / 0.92);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
}

.reel-play::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 17px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}

.reel-cap {
  position: absolute;
  z-index: 1;
  inset: auto 8px 8px;
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.reel-cap strong {
  font-family: var(--font-mono);
  font-size: 11px;
}

.reel-cap span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}

.player .player-frame {
  margin: 0 var(--pad);
  aspect-ratio: 16 / 9;
  background: #000;
}

.player .player-frame.is-tall {
  aspect-ratio: 9 / 16;
  max-height: 62vh;
  margin-inline: auto;
}

.player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-out {
  display: block;
  margin: 12px var(--pad) 0;
  font-weight: 700;
  text-align: center;
}

.press-line {
  min-height: 56px;
}

.press-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
}

.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.85);
}

.lightbox img {
  display: block;
  max-width: 100vw;
  max-height: 90vh;
}

.lightbox .sheet-close {
  position: fixed;
  top: 12px;
  right: 12px;
  background: var(--paper);
}

/* ---------- Photos (stapled strip) ---------- */

.photos {
  display: flex;
  gap: 12px;
  margin: 22px calc(var(--pad) * -1) 0;
  padding: 6px var(--pad) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photos figure {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 6px 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  transform: rotate(-1deg);
  scroll-snap-align: center;
}

.photos figure:nth-child(even) {
  transform: rotate(1deg);
}

.photos figure:only-child {
  margin-inline: auto;
}

.photos figure::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 34px;
  height: 7px;
  margin-left: -17px;
  border: 2px solid #9a948c;
  border-bottom: 0;
}

/* Fixed height, natural width: landscape and portrait photos keep their shape. */
.photos video,
.photos img {
  display: block;
  width: auto;
  height: 280px;
  max-width: 82vw;
  object-fit: cover;
  background: var(--ink);
}

.photos figcaption {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
}

/* ---------- Outlets ---------- */

.outlets-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.outlet {
  padding: 12px 0;
  border-bottom: 1.5px dashed rgb(var(--ink-rgb) / 0.5);
}

.outlet-line {
  display: flex;
  align-items: baseline;
}

.outlet h3 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.outlet h3 a {
  text-decoration: none;
}

.outlet-distance {
  margin-right: 8px;
  font-size: 12px;
}

.status {
  padding: 1px 6px;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status:empty {
  display: none;
}

.status.is-closed,
.status.is-soon {
  color: var(--muted);
  border-color: var(--muted);
}

.outlet-addr {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.outlet-btns {
  display: flex;
  gap: 8px;
  margin: 0;
}

.map {
  height: 260px;
  margin: 10px 0;
  border: 2px solid var(--ink);
}

/* ---------- Hours ---------- */

.lines {
  margin: 0;
}

.lines .li.is-today {
  color: var(--stamp);
  font-weight: 700;
}

.hours-special .label {
  margin: 10px 0 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Menu items (order chit) ---------- */

.chips {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  margin: 14px calc(var(--pad) * -1) 0;
  padding: 10px var(--pad);
  overflow-x: auto;
  background: var(--paper);
  border-bottom: 1.5px dashed var(--ink);
  scrollbar-width: none;
}

.chips a {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.price-note {
  margin: 12px 0;
  padding: 8px 10px;
  border: 1.5px dashed var(--stamp);
  color: var(--stamp);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.item-alt {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.items.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.item.card {
  display: flex;
  flex-direction: column;
  padding: 0 0 10px;
  border: 2px solid var(--ink);
  background: #fff;
}

.item.card .card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.item.card .card-blank {
  display: grid;
  place-items: center;
  background: var(--counter);
  font-size: 30px;
}

.item.card .item-line {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 8px 0;
}

.item.card .item-line .leader {
  display: none;
}

.item.card .item-price {
  color: var(--stamp);
}

.item.card .item-tags,
.item.card .item-desc {
  margin: 4px 8px 0;
}

.item.card .item-desc {
  font-size: 13px;
}

.price-head {
  margin: 0 0 2px;
  font-size: 11px;
  text-align: right;
  color: var(--muted);
}

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  padding: 9px 0;
  border-bottom: 1px dotted rgb(var(--ink-rgb) / 0.3);
}

.item-line {
  display: flex;
  align-items: baseline;
  font-weight: 700;
}

.item-no {
  flex-shrink: 0;
  width: 28px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.item-price {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.item-tags,
.item-desc {
  margin: 3px 0 0 28px;
}

.item-desc {
  font-size: 14px;
  color: var(--muted);
}

.item.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  column-gap: 12px;
}

.item.has-photo > :not(picture):not(.item-photo) {
  grid-column: 1;
}

.item.has-photo > picture,
.item.has-photo > .item-photo {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.item-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.tag {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag::before {
  content: "[";
}

.tag::after {
  content: "]";
}

.tag-spicy,
.tag-signature,
.tag-bestseller,
.tag-new {
  color: var(--stamp);
}

.tag-vegetarian,
.tag-vegan,
.halal-certified,
.halal-muslim-owned,
.halal-pork-free {
  color: var(--ok);
}

.tag-when {
  color: var(--ink);
}

.tag-soldout {
  color: var(--paper);
  background: var(--stamp);
  padding: 0 4px;
}

.tag-soldout::before,
.tag-soldout::after {
  content: none;
}

.item.is-soldout .item-name,
.item.is-soldout .item-price {
  text-decoration: line-through;
  color: var(--muted);
}

.item.is-off {
  opacity: 0.45;
}

.specials {
  border: 2px solid var(--ink);
  margin-top: 18px;
  padding: 0 12px 8px;
}

.specials .rule {
  margin-top: 12px;
}

.pay-qrs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}

.pay-qr {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1.5px dashed var(--ink);
  text-align: center;
}

.pay-qr img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.pay-qr figcaption {
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 13px;
  text-transform: uppercase;
}

.more {
  margin: 12px 0 0;
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- FAQ, press, embeds ---------- */

.faq details {
  border-bottom: 1.5px dashed rgb(var(--ink-rgb) / 0.5);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.press {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  text-transform: uppercase;
  font-size: 13px;
}

.press img {
  max-height: 26px;
  width: auto;
  filter: grayscale(1);
}

.embed {
  width: 100%;
  border: 0;
}

/* ---------- Google reviews ---------- */

.gr-summary {
  margin: 0 0 8px;
  font-weight: 700;
}

.gr-stars {
  color: var(--stamp);
}

.gr-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gr-photo {
  flex: 0 0 60%;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.gr-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gr-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gr-review {
  padding: 10px 0;
  border-bottom: 1px dotted rgb(var(--ink-rgb) / 0.3);
}

.gr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.gr-head img {
  border-radius: 50%;
}

.gr-meta {
  margin: 4px 0;
  font-size: 12px;
  color: var(--muted);
}

.gr-text {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gr-text.is-open {
  display: block;
}

.gr-more {
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--ink);
  font: 700 12px var(--font-mono);
  text-decoration: underline;
  cursor: pointer;
}

.gr-links {
  font-size: 13px;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 30px;
  font-size: 12px;
  text-align: center;
}

.foot-no {
  margin: 0 0 14px;
  color: var(--muted);
}

.nap {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.nap a {
  font-weight: 700;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  text-transform: uppercase;
}

.credit {
  color: var(--muted);
}

/* ---------- Phone bar ---------- */

.bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  width: min(480px, 100%);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 2px solid var(--ink);
  transform: translateX(-50%);
  transition: transform 0.2s ease-out;
}

.bar[hidden] {
  display: grid;
  transform: translate(-50%, 110%);
}

.bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.bar a:first-child {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Sheet (prints out from the bottom) ---------- */

.sheet {
  width: min(480px, 100%);
  max-width: 100%;
  max-height: 82vh;
  margin: auto auto 0;
  padding: var(--tooth) 0 calc(14px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x, linear-gradient(#000 0 0) bottom / 100% 51% no-repeat;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x, linear-gradient(#000 0 0) bottom / 100% 51% no-repeat;
}

.sheet[open] {
  animation: feed 0.22s ease-out;
}

.sheet::backdrop {
  background: rgb(var(--ink-rgb) / 0.5);
}

@keyframes feed {
  from {
    transform: translateY(100%);
  }
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--pad);
  border-bottom: 1.5px dashed var(--ink);
}

.sheet-head h2 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sheet-close {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.sheet-body {
  padding: 0 var(--pad);
}

.sheet h3 {
  display: flex;
  align-items: baseline;
  margin: 16px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet h3 .status {
  margin-left: auto;
}

.sheet-opt {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px dashed rgb(var(--ink-rgb) / 0.5);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- Motion and larger screens ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 560px) {
  body {
    padding-top: 40px;
  }

  :root {
    --pad: 28px;
  }
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .bar,
  .actions,
  .chips {
    display: none !important;
  }

  .chit {
    -webkit-mask: none;
    mask: none;
  }
}
