/* slop.place
   The ground is institutional canteen green; the labels are paper. The joke is
   that the slop arrives with a regulatory panel, so the panel is set with the
   real thing's typographic rules — thick, medium and hairline dividers, tight
   leading, numbers hard right. */

:root {
  --tray:        #7E9068;  /* melamine green, the page ground */
  --tray-deep:   #6C7C59;  /* the same tray, in shadow */
  --tray-dark:   #4A5640;  /* under the counter */
  --paper:       #F7F4EA;  /* label stock */
  --paper-edge:  #E4DFCE;
  --ink:         #171A11;  /* near-black, green cast */
  --ink-soft:    #3E442F;
  --slop:        #A8CE7B;  /* the bright edge of the slop */

  --display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --body:    "Archivo", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--tray);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  /* A speckle, so the green reads as a wiped-down surface rather than a fill. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

/* ── bar ─────────────────────────────────────────────────────────────── */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand img { display: block; border-radius: 7px; }

.bar-link {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 140ms ease;
}
.bar-link:hover { border-color: var(--ink); }

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
.hero > * { min-width: 0; }

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
  }
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.4vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow-wrap: anywhere;
  animation: rise 620ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-title .line:nth-child(1) { animation-delay: 40ms; }
.hero-title .line:nth-child(2) { animation-delay: 90ms; }
.hero-title .line:nth-child(3) { animation-delay: 140ms; }
.hero-title .line:nth-child(4) { animation-delay: 210ms; }
.hero-title .line:nth-child(5) { animation-delay: 260ms; }

.line--slop { color: var(--paper); }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: none; }
}

.hero-note {
  max-width: 44ch;
  animation: rise 620ms cubic-bezier(0.2, 0.7, 0.3, 1) 340ms both;
}
.hero-note p { margin: 0 0 1rem; }
.hero-note p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ── serving ─────────────────────────────────────────────────────────── */

.serving {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 2px solid var(--ink);
  background: var(--tray-deep);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}

.serving-title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  word-break: break-word;
}

.serving-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.serving-grid > * { min-width: 0; }

@media (min-width: 62rem) {
  .serving-grid { grid-template-columns: 24rem minmax(0, 1fr); }
}

/* ── the label ───────────────────────────────────────────────────────── */

.label {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 1.05rem 1.1rem 1.2rem;
  font-family: var(--body);
  line-height: 1.25;
  box-shadow: 8px 8px 0 var(--tray-dark);
}

.label-title {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  text-transform: none;
}

/* The real panel's dividers carry the hierarchy, so they are sized, not styled. */
.rule { background: var(--ink); }
.rule--hair   { height: 1px;  margin: 0.4rem 0; }
.rule--medium { height: 5px;  margin: 0.5rem 0; }
.rule--thick  { height: 10px; margin: 0.5rem 0; }

.label-serving { margin: 0; font-size: 0.9rem; }

.label-serving-size,
.label-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.15rem 0 0;
  font-weight: 700;
}
.label-serving-size { font-size: 0.95rem; }

.label-amount {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.label-headline {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.1;
  margin-top: 0.15rem;
}
.label-headline strong { font-size: 2.1rem; line-height: 0.9; }

.label-col {
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
}

.label-rows, .label-minor { margin: 0; }

.row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto 3.4rem;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-top: 1px solid var(--ink);
}
.label-rows .row:first-child { border-top: 0; }

.row dt { font-size: 0.88rem; min-width: 0; overflow-wrap: anywhere; }
.row dt em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.row dd { margin: 0; font-family: var(--mono); font-size: 0.88rem; }
.row .v { font-weight: 600; }
.row .p { text-align: right; font-weight: 600; }

.row--emph dt, .row--emph dd { font-weight: 700; }

.label-minor .row { grid-template-columns: minmax(0, 1fr) auto; }

.label-foot {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ── serving copy ────────────────────────────────────────────────────── */

.serving-copy { max-width: var(--measure); min-width: 0; }
.serving-copy p { margin: 0 0 1.15rem; }

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.45;
  font-weight: 500;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.install { margin: 1.75rem 0; }

.install-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}

.install pre {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--slop);
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}
.install pre code { font-family: var(--mono); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--tray-dark); }

.cta--ghost { background: transparent; color: var(--ink); }
.cta--ghost:hover { box-shadow: 4px 4px 0 var(--tray-dark); }

/* ── kitchen ─────────────────────────────────────────────────────────── */

.kitchen {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 2px solid var(--ink);
}

.kitchen-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
}

.kitchen-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
.kitchen-grid > * { min-width: 0; }
@media (min-width: 48rem) {
  .kitchen-grid { grid-template-columns: repeat(3, 1fr); }
}

.dish {
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
}
.dish h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.dish p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ── caveat ──────────────────────────────────────────────────────────── */

.caveat {
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.caveat p {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}
.caveat strong { color: var(--slop); }

/* ── foot ────────────────────────────────────────────────────────────── */

.foot {
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.foot p { margin: 0; }
.foot a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-quiet { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
