:root {
  --night: #0c1716;
  --paper: #f3e7cf;
  --paper-soft: #ebdfc6;
  --halo: 0 0 1px #000, 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 12px rgba(4, 9, 9, 0.9), 0 0 26px rgba(4, 9, 9, 0.75);
  --ink: #1f1209;
  --ink-soft: #5b402a;
  --goldfish: #ef4a2f;
  --bulb: #ffcf7a;

  --hand: "Nanum Pen Script", "Comic Sans MS", cursive;
  --body: "Mukta", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bulb); outline-offset: 4px; border-radius: 2px; }

/* A soft pool of shadow behind text that sits on the painted wall, so it stays readable
   whatever the paint behind it is doing. No edge, no panel. */
.pool { position: relative; isolation: isolate; text-shadow: var(--halo); }
.pool::before {
  content: "";
  position: absolute;
  inset: -6px -14px;
  z-index: -1;
  border-radius: 40%;
  background: rgba(5, 11, 11, 0.62);
  box-shadow: 0 0 36px 28px rgba(5, 11, 11, 0.62);
  pointer-events: none;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- The stall wall (fixed backdrop) ---------- */
.wall {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 23, 22, 0.15) 0%, rgba(12, 23, 22, 0.55) 55%, rgba(12, 23, 22, 0.9) 100%),
    url("assets/wall.webp") center top / cover no-repeat;
}
.dim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #050b0b;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.bulb-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60vmax 45vmax at 70% 6%, rgba(255, 196, 110, 0.20), transparent 70%);
  animation: flicker 9s steps(1) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 0.82; }
  42% { opacity: 1; }
  43.5% { opacity: 0.7; }
  44% { opacity: 1; }
  77% { opacity: 0.9; }
  78% { opacity: 1; }
}

/* Anything that hangs. JS sets --r (radians) every frame. */
.swing {
  transform: rotate(calc(var(--r, 0) * 1rad));
  will-change: transform;
}

/* ---------- Stall front ---------- */
.stall {
  position: relative;
  min-height: 100svh;
  padding: clamp(20px, 4vw, 48px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(16px, 4vw, 64px);
}
.sign-wrap { grid-column: 1; margin: 0; font-size: 1rem; }
.sign {
  width: min(100%, 760px);
  transform-origin: 50% 0;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}
.hello {
  grid-column: 1;
  margin-top: clamp(20px, 3vw, 36px);
  max-width: 22ch;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
}
.hello-big {
  display: block;
  font-size: 1.45em;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: #fff4dc;
}
.nudge {
  grid-column: 1;
  justify-self: start;
  margin-top: 22px;
  text-shadow: var(--halo);
  font-family: var(--hand);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--bulb);
  transform: rotate(-2deg);
  transform-origin: left;
}
.still {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin-top: 18px;
  padding: 10px 16px 8px;
  border: 2px solid rgba(243, 231, 207, 0.7);
  border-radius: 6px;
  background: rgba(5, 11, 11, 0.7);
  color: var(--paper);
  font: 400 1.6rem/1 var(--hand);
  cursor: pointer;
}
.still:hover { border-color: var(--bulb); color: var(--bulb); }
.hero-bag {
  grid-column: 2;
  grid-row: 1 / 5;
  justify-self: center;
  align-self: start;
  width: min(100%, 500px);
  /* the string runs off the top of the screen */
  margin-top: calc(-1 * clamp(20px, 4vw, 48px) - 30px);
  transform-origin: 46% 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  cursor: grab;
}

@media (max-width: 760px) {
  .stall {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    padding-bottom: 24px;
  }
  .still {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin-top: 18px;
  padding: 10px 16px 8px;
  border: 2px solid rgba(243, 231, 207, 0.7);
  border-radius: 6px;
  background: rgba(5, 11, 11, 0.7);
  color: var(--paper);
  font: 400 1.6rem/1 var(--hand);
  cursor: pointer;
}
.still:hover { border-color: var(--bulb); color: var(--bulb); }
.hero-bag {
    grid-column: 1;
    grid-row: auto;
    width: min(72%, 320px);
    margin-top: 8px;
    justify-self: end;
  }
  .hello, .nudge, .still, .sign-wrap { grid-column: 1; }
}

/* ---------- The line of bags ---------- */
.line { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.rows { display: grid; gap: clamp(24px, 4vw, 56px); }
.row { position: relative; padding-top: 34px; }
.pole {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 54px;
  background: url("assets/pole.webp") left center / auto 100% repeat-x;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
  z-index: 2;
}
.row-items {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: clamp(16px, 4vw, 64px);
  padding: 0 var(--gutter);
  align-items: start;
}

.hanger {
  position: relative;
  display: grid;
  grid-template-columns: 62% 38%;
  align-items: start;
}
.hanger .bag {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: -14px;
  transform-origin: 48% 0;
  text-decoration: none;
  cursor: grab;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.55));
}
.hanger .bag > img { width: 100%; }

/* Paper price tag on its own thread from the pole. The thread meets the
   painted string at 66% across the tag. */
.tag {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  margin-left: -14%;
  padding-top: 46%;
  transform-origin: 66% 0;
  color: var(--ink);
  font-family: var(--hand);
  pointer-events: none;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.5));
}
.tag::before {
  content: "";
  position: absolute;
  left: calc(66% - 1px);
  top: -14px;
  height: calc(46% + 16px);
  border-left: 2px solid rgba(236, 230, 214, 0.85);
}
.tag-paper {
  position: relative;
  aspect-ratio: 520 / 918;
  background: url("assets/tag.webp") center / 100% 100% no-repeat;
}
.tag-ink {
  position: absolute;
  left: 6%;
  right: 23%;
  top: 41%;
  bottom: 6%;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  line-height: 0.95;
  container-type: inline-size;
}
.tag-name {
  font-size: 25cqi;
  color: #6a1209;
  transform: rotate(-4deg);
  white-space: nowrap;
}
.tag-kind { font-size: 21cqi; margin-top: 12%; padding-top: 4%; border-top: 1.5px solid rgba(42, 27, 16, 0.45); }

.blurb {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 34ch;
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--paper-soft);
}
.blurb a { color: var(--paper); font-weight: 600; text-underline-offset: 3px; }

.aquarium {
  justify-self: start;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: clamp(40px, 6vw, 72px) var(--gutter) 0;
  font-family: var(--hand);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
  color: var(--bulb);
}
.aquarium a { color: var(--paper); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* ---------- Today's catch ---------- */
.catch {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(48px, 8vw, 120px) var(--gutter);
}
.big-tag {
  position: relative;
  width: 100%;
  aspect-ratio: 520 / 918;
  background: url("assets/tag.webp") center / 100% 100% no-repeat;
  transform-origin: 62% 2%;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
  color: var(--ink);
  font-family: var(--hand);
  cursor: pointer;
}
.big-tag-ink {
  position: absolute;
  left: 9%;
  right: 25%;
  top: 40%;
  bottom: 5%;
  display: grid;
  align-content: start;
  gap: 12px;
  container-type: inline-size;
}
.catch-title {
  font-weight: 400;
  font-size: 20cqi;
  line-height: 1;
  color: #6a1209;
  transform: rotate(-3deg);
  margin-bottom: 4px;
}
.tag-note { font-size: 11cqi; line-height: 1.02; }

.notes { max-width: 52ch; padding-top: clamp(0px, 4vw, 48px); }
.notes h3 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  line-height: 1;
  color: var(--bulb);
  margin: 0 0 10px;
}
.notes h3 + p, .notes h3 + ul { margin-bottom: 36px; }
.notes p, .notes li { color: var(--paper-soft); font-size: 1.125rem; line-height: 1.55; }
.notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notes li { padding-left: 22px; position: relative; }
.notes li::before {
  content: "~";
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--goldfish);
}

@media (max-width: 760px) {
  .catch { grid-template-columns: 1fr; }
  .big-tag { width: min(88%, 380px); }
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px clamp(32px, 6vw, 80px);
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
}
.small-tag {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 520 / 918;
  background: url("assets/tag.webp") center / 100% 100% no-repeat;
  transform-origin: 62% 2%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
  font-family: var(--hand);
  color: var(--ink);
}
.small-tag-ink {
  position: absolute;
  left: 8%;
  right: 24%;
  top: 42%;
  display: grid;
  gap: 8px;
  text-align: center;
  container-type: inline-size;
}
.small-tag h2 { font-weight: 400; font-size: 17cqi; line-height: 1; }
.small-tag a {
  font-size: 12.5cqi;
  line-height: 1;
  color: #6a1209;
  white-space: nowrap;
  text-underline-offset: 3px;
}
.contact-line {
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.22;
}

.foot {
  padding: 24px var(--gutter) 32px;
  color: var(--paper-soft);
  font-size: 0.95rem;
  border-top: 1px solid rgba(243, 231, 207, 0.12);
  background: rgba(8, 14, 13, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #050b0b;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.bulb-light { animation: none; }
}
