/* barnacle.cafe — a cream menu card on a dark café table.
   Same sticker language as the app itself: paper, ink outlines,
   hard offset shadows, coral + foam accents. */

:root {
  --paper: #fff9ec;
  --paper-2: #f7ebcf;
  --ink: #274540;
  --ink-soft: rgba(39, 69, 64, 0.78);
  --ink-faint: rgba(39, 69, 64, 0.4);
  --coral: #ff6f59;
  --coral-deep: #a83d2a;
  --foam: #7ed0ba;
  --foam-light: #cfe8df;
  --deep: #1e3b35;
  --wall: #f0e2c4;
  --wall-light: #faf1de;
  --display: "Baloo 2", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--wall);
}

body {
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  /* warm café wall: latte tan with a soft light spill from the top */
  background-color: var(--wall);
  background-image: radial-gradient(
    1300px 850px at 50% -180px,
    var(--wall-light) 0%,
    rgba(240, 226, 196, 0) 100%
  );
  background-repeat: no-repeat;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 56px) clamp(10px, 3vw, 24px) clamp(28px, 5vw, 64px);
}

/* faint paper grain over everything, so nothing reads as flat vector */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--coral);
  color: var(--paper);
}

/* ── the menu card ─────────────────────────────────────────── */

.card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 10px 0 rgba(164, 124, 79, 0.35);
  padding: clamp(28px, 7vw, 60px) clamp(20px, 6vw, 56px) clamp(32px, 6vw, 56px);
}

/* ── masthead ──────────────────────────────────────────────── */

.masthead {
  text-align: center;
}

.est {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-wrap: balance;
}

.est::before,
.est::after {
  content: "~";
  color: var(--coral);
  margin: 0 0.6em;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 0.35rem;
  text-wrap: balance;
}

.scene {
  width: min(240px, 60vw);
  height: auto;
  margin: 1.4rem auto 0.4rem;
  display: block;
  overflow: visible;
}

.tagline {
  max-width: 44ch;
  margin: 0.8rem auto 0;
  font-size: 1.02em;
  text-wrap: pretty;
}

.hours {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* critter: a slow bob, an occasional blink, wisps of steam */

.critter {
  animation: bob 4s ease-in-out infinite;
}

.eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.2s infinite;
}

.eye--right {
  animation-delay: 0.12s;
}

.wisp {
  animation: steam 3.6s ease-in-out infinite;
}

.w2 {
  animation-delay: 1.4s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes blink {
  0%, 91%, 97%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.08); }
}

@keyframes steam {
  0%, 100% { opacity: 0.15; transform: translateY(1.5px); }
  50% { opacity: 0.4; transform: translateY(-2.5px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .critter,
  .eye,
  .wisp {
    animation: none;
  }
}

/* ── sections ──────────────────────────────────────────────── */

.divider {
  display: flex;
  justify-content: center;
  margin: clamp(2rem, 5vw, 2.8rem) 0;
}

.divider svg {
  width: 110px;
  height: 10px;
  opacity: 0.85;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 1.1rem;
}

h2 em {
  color: var(--coral-deep);
}

section > p {
  margin-bottom: 0.9rem;
  text-wrap: pretty;
}

section > p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  border-radius: 3px;
  transition: color 120ms ease;
}

a:hover {
  color: var(--coral-deep);
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-2);
  border: 1.5px solid var(--ink-faint);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

kbd {
  font-family: var(--mono);
  font-size: 0.78em;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  box-shadow: 1.5px 2px 0 var(--ink);
  white-space: nowrap;
}

/* ── the menu proper ───────────────────────────────────────── */

.menu {
  list-style: none;
}

.menu li + li {
  margin-top: 1.35rem;
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.dish {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.leader {
  flex: 1;
  border-bottom: 2.5px dotted var(--ink-faint);
  transform: translateY(-0.28em);
  min-width: 2em;
}

.price {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.note {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.95em;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ── counter service (shortcuts) ───────────────────────────── */

.keys {
  max-width: 26rem;
  margin: 0 auto;
}

.key-row {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.42rem 0;
}

.key-row + .key-row {
  border-top: 1.5px dotted var(--ink-faint);
}

.key-row dt {
  flex-shrink: 0;
}

.key-row dd {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  gap: 0.4em;
}

/* ── the receipt ───────────────────────────────────────────── */

.receipt {
  max-width: 560px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.receipt .tide {
  width: 110px;
  height: 10px;
  margin-bottom: 1.1rem;
}

.receipt p {
  margin-bottom: 0.55rem;
  text-wrap: pretty;
}

.receipt a {
  color: var(--ink);
  text-decoration-color: var(--coral);
}

.receipt a:hover {
  color: var(--coral-deep);
}

.stamp {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--coral-deep);
}

/* ── small screens ─────────────────────────────────────────── */

@media (max-width: 420px) {
  .dish-line {
    flex-wrap: wrap;
  }
  .leader {
    min-width: 1em;
  }
}
