@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/InstrumentSerif-Regular-93698d45.ttf") format("truetype");
}

:root {
  --paper: #f7f5f0;
  --surround: #e9e6e0;
  --ink: #1a1815;
  --muted-ink: #625e58;
  --quiet-ink: #6f6a64;
  --faint-ink: #9a948c;
  --field: #ece8e0;
  --panel: #f1eee7;
  --hairline: rgb(26 24 21 / 12%);
  --display: "Instrument Serif", Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--surround);
  color: var(--ink);
  font-family: var(--body);
}

body { margin: 0; }

.page {
  width: min(100%, 48rem);
  min-height: 100vh;
  margin-inline: auto;
  background: var(--paper);
}

a { color: inherit; }

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.15rem solid currentColor;
  outline-offset: 0.25rem;
}

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

/* The one quiet masthead stays in the document flow on every page. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.375rem 1.125rem;
  border-bottom: 1px solid rgb(26 24 21 / 14%);
  background: var(--paper);
}

.bar__lockup {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.mark {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.bar__wordmark {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.bar__status {
  flex: none;
  margin: 0 0 0 auto;
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.59375rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bar__status:empty { display: none; }

.cocktail-card h2,
.cocktail-card h3,
.ingredient-card h3,
.recipe h1 {
  font-family: var(--display);
  font-weight: 400;
}

.filters__clear {
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.65625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-underline-offset: 0.2em;
}

.cocktail-list,
.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cocktail-card,
.ingredient-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #e8e0d3;
  text-decoration: none;
}

.cocktail-card__photograph,
.ingredient-card__photograph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cocktail-card::after,
.ingredient-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgb(18 15 11 / 58%) 0%,
      rgb(18 15 11 / 18%) 24%,
      rgb(18 15 11 / 0%) 48%
    ),
    linear-gradient(
      to top,
      rgb(18 15 11 / 80%) 0%,
      rgb(18 15 11 / 44%) 30%,
      rgb(18 15 11 / 5%) 58%,
      rgb(18 15 11 / 0%) 100%
    );
  content: "";
}

.ingredient-card::after {
  background: linear-gradient(
    to top,
    rgb(18 15 11 / 86%) 0%,
    rgb(18 15 11 / 54%) 38%,
    rgb(18 15 11 / 8%) 68%,
    rgb(18 15 11 / 0%) 100%
  );
}

.ingredient-card__copy {
  position: absolute;
  right: 0.6875rem;
  bottom: 0.625rem;
  left: 0.6875rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cocktail-card__header {
  position: absolute;
  top: 0.625rem;
  right: 0.6875rem;
  left: 0.6875rem;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: start;
}

.cocktail-card h2,
.cocktail-card h3,
.ingredient-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1.25rem;
  line-height: 1.05;
}

.cocktail-card__strength {
  color: rgb(247 245 240 / 92%);
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.cocktail-card__description,
.ingredient-card__description {
  --summary-lines: 3;

  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--summary-lines);
  line-clamp: var(--summary-lines);
  color: rgb(247 245 240 / 74%);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-wrap: pretty;
}

.cocktail-card__description {
  position: absolute;
  right: 0.6875rem;
  bottom: 0.75rem;
  left: 0.6875rem;
  z-index: 1;
}

.ingredient-card__description {
  --summary-lines: 2;

  min-height: calc(var(--summary-lines) * 1.3em);
}

.cocktail-card:hover h2,
.cocktail-card:focus-visible h2,
.cocktail-card:hover h3,
.cocktail-card:focus-visible h3,
.ingredient-card:hover h3,
.ingredient-card:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.17em;
}

.recipe { position: relative; }

.recipe__photograph {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e0d3;
}

.recipe__photograph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe__body { padding-bottom: 3rem; }

.recipe__identity { padding: 2rem 1.375rem 0; }

.recipe__header h1 {
  margin: 0;
  overflow-wrap: break-word;
  font-size: clamp(2.625rem, 9vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.recipe__header p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted-ink);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.recipe__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.recipe__details div { min-width: 7rem; }

.recipe__details dt,
.recipe__details dd { margin: 0; }

.recipe__details dt {
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recipe__details dd {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.recipe__strength {
  white-space: nowrap;
}

.recipe__details dd ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.recipe__work {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  padding: 2.5rem 1.375rem 0;
}

.recipe__ingredients {
  display: grid;
  grid-template-areas:
    "label units"
    "list  list";
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin: 0;
}

.recipe__ingredients h2 {
  grid-area: label;
  margin: 0;
}

.recipe__ingredients ul {
  grid-area: list;
  margin-top: 0.75rem;
}

.recipe__method { margin: 0; }

.recipe__measurements {
  display: grid;
  grid-area: units;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: end;
  margin: 0;
  padding: 0;
  border: 0;
}

.recipe__measurements[hidden] { display: none; }

.recipe__measurements input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
}

.recipe__measurement-options {
  display: flex;
  gap: 0.25rem;
  white-space: nowrap;
}

.recipe__measurements label {
  display: grid;
  min-width: 2.5rem;
  min-height: 2.75rem;
  padding: 0 0.375rem;
  place-items: center;
  border-bottom: 1px solid var(--hairline);
  color: var(--quiet-ink);
  cursor: pointer;
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1;
}

.recipe__measurements label:hover { color: var(--muted-ink); }

.recipe__measurements input:checked + label {
  border-bottom: 2px solid currentColor;
  color: var(--ink);
  font-weight: 600;
}

.recipe__measurements input:focus-visible + label {
  outline: 0.1rem solid currentColor;
  outline-offset: -0.25rem;
}

.recipe__ingredients h2,
.recipe__method h2 {
  margin: 0;
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recipe__ingredients h2,
.recipe__method h2 {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
}

.recipe__ingredients ul,
.recipe__details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe__ingredients ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recipe__ingredients li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.ingredient__measure {
  color: var(--ink);
  font-family: var(--label);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ingredient__name a {
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
}

.ingredient__name a:hover,
.ingredient__name a:focus-visible {
  text-decoration-color: currentColor;
}

.recipe__ingredients small,
.recipe__details small {
  display: block;
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  color: var(--muted-ink);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.recipe__method ol {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: preparation-step;
}

.recipe__method li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.25rem;
  counter-increment: preparation-step;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.recipe__method li::before {
  padding-top: 0.22em;
  color: var(--quiet-ink);
  content: counter(preparation-step, decimal-leading-zero);
  font-family: var(--label);
  font-size: 0.6875rem;
  line-height: 1;
}

.recipe__print-footer { display: none; }

.recipe__related {
  margin: 3rem 1.375rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.recipe__related h2 {
  margin: 0 0 1.25rem;
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ingredient { position: relative; }

.ingredient__photograph {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e0d3;
}

.ingredient__photograph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ingredient__body { padding: 2.375rem 1.625rem 4rem; }

.ingredient__parent {
  margin: 0 0 0.75rem;
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ingredient__parent a { text-underline-offset: 0.16em; }

.ingredient__header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.625rem, 8vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ingredient__header h1 + p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted-ink);
  font-size: 0.90625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.ingredient__facts {
  margin: 2.375rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.ingredient__facts div { display: block; }

.ingredient__facts dt,
.ingredient__relations h2,
.ingredient__cocktails h2 {
  margin: 0;
  color: var(--quiet-ink);
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ingredient__facts dd {
  margin: 0.5625rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.ingredient__relations,
.ingredient__cocktails {
  margin-top: 2.5rem;
}

.ingredient__cocktails .cocktail-list { margin-top: 1.5rem; }

.ingredient__relations h2 { margin-bottom: 1.5rem; }

@media (min-width: 40rem) {
  /* The bar fits on one line. */
  .bar {
    flex-wrap: nowrap;
    gap: 1rem;
    padding-inline: 2.5rem;
  }

  .bar__lockup { gap: 0.625rem; }
  .mark { width: 1.625rem; height: 1.625rem; }
  .bar__wordmark { font-size: 1.375rem; }

  .cocktail-list,
  .ingredient-list { gap: 0.875rem; }
  .ingredient__cocktails .cocktail-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ingredient-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recipe__related .cocktail-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .cocktail-card h2,
  .ingredient__cocktails .cocktail-card h3 { font-size: 1.3125rem; }
  .cocktail-card h3,
  .ingredient-card h3 { font-size: 1.0625rem; }
  .cocktail-card__description,
  .ingredient-card__description { --summary-lines: 2; }

  .ingredient-card__copy {
    right: 0.875rem;
    bottom: 0.8125rem;
    left: 0.875rem;
    gap: 0.1875rem;
  }

  .cocktail-card__header,
  .cocktail-card__description {
    right: 0.875rem;
    left: 0.875rem;
  }

  .cocktail-card__header { top: 0.8125rem; }
  .cocktail-card__description { bottom: 0.8125rem; }

  .recipe__photograph { aspect-ratio: 4 / 3; }

  .recipe__body { padding-bottom: 5rem; }

  .recipe__identity { padding: 2.75rem 4.5rem 0; }

  .recipe__details {
    gap-inline: 3rem;
    margin-top: 2.25rem;
  }

  .recipe__work { padding: 3.25rem 4.5rem 0; }

  .recipe__related { margin: 3.5rem 4.5rem 0; }

  .ingredient__photograph { aspect-ratio: 4 / 3; }

  .ingredient__body { padding: 3.25rem 4.5rem 5rem; }
}

@media (min-width: 48rem) {
  .recipe__work {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    column-gap: 3.25rem;
    align-items: start;
  }
}

/* Wide screens: the collection and the recipe both break the reading column,
   the collection to show more of itself and the recipe to set the photograph
   beside the drink's identity. */
@media (min-width: 70rem) {
  .page--wide { width: min(100%, 70rem); }

  /* Ingredient prose keeps its reading measure while a set of types can use
     the wider paper as an editorial collection. */
  .page--wide .ingredient__photograph {
    width: min(100%, 48rem);
    margin-inline: auto;
  }

  .page--wide .ingredient__introduction {
    max-width: 39rem;
    margin-inline: auto;
  }

  .mark { width: 1.75rem; height: 1.75rem; }
  .bar__wordmark { font-size: 1.5rem; }

  .cocktail-list,
  .ingredient-list { gap: 1rem; }
  .ingredient__cocktails .cocktail-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ingredient-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .recipe {
    display: grid;
    grid-template-columns: 27.5rem minmax(0, 1fr);
    align-content: start;
    column-gap: 3.25rem;
    padding: 2.75rem 2.5rem 4rem;
  }

  /* The body wrappers preserve the document's reading order while the page's
     major regions participate in one shared grid. */
  .recipe__body { display: contents; }

  .recipe__photograph {
    align-self: start;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
    border-radius: 0.25rem;
  }

  .recipe__identity {
    display: flex;
    min-height: 27.5rem;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
    padding: 0.25rem 0 0;
  }

  .recipe__header h1 {
    font-size: 4.625rem;
    line-height: 0.92;
    letter-spacing: -0.025em;
  }

  .recipe__header p {
    max-width: 30rem;
    margin-top: 1.125rem;
    font-size: 1.0625rem;
  }

  .recipe__details {
    gap-inline: 2.75rem;
    margin-top: auto;
    padding-top: 2.5rem;
  }

  .recipe__work {
    grid-template-columns: 27.5rem minmax(0, 1fr);
    grid-column: 1 / -1;
    grid-row: 2;
    column-gap: 3.25rem;
    padding: 3.5rem 0 0;
  }

  .recipe__method { max-width: 34rem; }

  .recipe__related {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 4rem 0 0;
    padding-top: 1.5rem;
  }
}

@media (max-width: 39.999rem) {
  .bar { padding: 1.375rem 1.125rem 0.75rem; border-bottom: 0; }
  .bar__status { display: none; }
  .recipe__photograph {
    width: calc(100% - 1.75rem);
    margin-inline: auto;
    border-radius: 0.375rem;
  }

  .recipe__body { padding-bottom: 2.5rem; }

  .recipe__details { gap-inline: 1.5rem; }
}

@media (min-width: 70rem) {
  .bar { padding-inline: 2.5rem; }
}

/* The finder: the index page's search, results and pills, transplanted from the Stirred
   next stage design (docs/designs/stirred-next-stage-design/stirred.css). */

/* What is narrowing the page, legible without opening anything. */
.narrowing { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4375rem 0.75rem; margin: 0; padding: 0; list-style: none; }

.catalogue__empty { margin: 0; padding-top: 1.5rem; max-width: 30rem; color: var(--muted-ink); font-size: 0.9375rem; line-height: 1.55; text-wrap: pretty; }

/* Button forms of the result rows, for choices that narrow in place rather than navigate. */
.result--button { width: 100%; border: 0; background: transparent; text-align: left; }
.results__all--button { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; cursor: pointer; }
.filters__clear--button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.narrowing--index { margin-bottom: 1rem; }
.catalogue__empty-lead { margin: 0; }
.catalogue__empty-note { margin: 0.75rem 0 0; }
.catalogue__empty-pills { margin-top: 0.75rem; }


/* Search box: a control, not a headline. */
.searchbox { position: relative; font-family: var(--ui); }

.searchbox__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 0.625rem 0 1rem;
  border-radius: 999px;
}

.searchbox__field:focus-within { border-color: rgb(26 24 21 / 40%); box-shadow: 0 0 0 0.25rem rgb(26 24 21 / 8%), 0 0.75rem 2.5rem rgb(26 24 21 / 10%); }

.searchbox__field > svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--quiet-ink); }

.searchbox__input {
  appearance: none;
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  outline: 0;
}

.searchbox__input::placeholder { color: var(--quiet-ink); opacity: 1; }
.searchbox__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }

.searchbox__key {
  flex: none;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgb(26 24 21 / 14%);
  border-radius: 0.375rem;
  color: var(--quiet-ink);
  font-family: var(--ui);
  font-size: 0.75rem;
  line-height: 1;
}

.searchbox__clear {
  flex: none;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(26 24 21 / 8%);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.searchbox__clear[hidden] { display: none; }

/* Results drop. Cocktails carry their photograph; ingredients their count. */
.results {
  background: rgb(252 251 249 / 94%);
  position: absolute;
  inset: calc(100% + 0.5rem) 0 auto 0;
  z-index: 3;
  max-height: min(28rem, 70vh);
  overflow-y: auto;
  padding: 0.375rem;
}

.results[hidden] { display: none; }

.results--inline { position: static; max-height: none; }

.results__group { margin: 0; padding: 0.625rem 0.75rem 0.25rem; color: var(--quiet-ink); font-family: var(--ui); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

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

.result {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0 0.875rem;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.375rem 0.625rem 0.375rem 0.375rem;
  border-radius: 0.75rem;
  color: inherit;
  cursor: pointer;
  font-family: var(--ui);
  text-decoration: none;
}

.result:hover, .result[aria-selected="true"] { background: rgb(26 24 21 / 7%); }

.result__photograph { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; object-fit: cover; background: #e8e0d3; }

.result__glyph { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 0.5rem; background: rgb(26 24 21 / 6%); color: var(--muted-ink); }
.result__glyph svg { width: 1.125rem; height: 1.125rem; }

.result__name { display: block; font-size: 0.9375rem; font-weight: 500; line-height: 1.25; }

.result__meta { display: block; margin-top: 0.125rem; overflow: hidden; color: var(--muted-ink); font-size: 0.8125rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

.result__aside { color: var(--quiet-ink); font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.results__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgb(26 24 21 / 8%);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.results__empty { margin: 0; padding: 1rem 0.75rem; color: var(--muted-ink); font-family: var(--ui); font-size: 0.875rem; }


/* =====================================================================
   Homepage, third round — one glass finder; a permanent column from tablet up
   ===================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.125rem;
  padding: 0.3125rem 0.6875rem;
  border: 1px solid rgb(26 24 21 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 45%);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-family: var(--ui);
  font-size: 0.8125rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover { border-color: rgb(26 24 21 / 32%); background: rgb(255 255 255 / 75%); }
.pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pill:disabled { border-style: dashed; color: var(--faint-ink); cursor: default; background: transparent; }
.pill__count { color: var(--quiet-ink); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.pill[aria-pressed="true"] .pill__count { color: rgb(247 245 240 / 72%); }
.pill--more { border-color: transparent; background: rgb(26 24 21 / 7%); font-weight: 500; }
.pill--more[aria-expanded="true"] { background: rgb(26 24 21 / 14%); }

.pills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }

/* The finder is ONE glass panel: field, pills, results. Nothing is shown twice. */
.finder {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.5rem;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 1.375rem;
  background: linear-gradient(to bottom, rgb(250 248 244 / 84%), rgb(250 248 244 / 72%));
  box-shadow: 0 0.0625rem 0 rgb(255 255 255 / 80%) inset, 0 0 0 0.5px rgb(26 24 21 / 8%), 0 1rem 2.5rem rgb(26 24 21 / 12%);
  -webkit-backdrop-filter: blur(2rem) saturate(1.8);
  backdrop-filter: blur(2rem) saturate(1.8);
}
.finder__placeholder { display: none; }
.finder__done[hidden] { display: none; }
.finder__done { display: none; align-items: center; min-height: 2.25rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: rgb(26 24 21 / 8%); color: var(--ink); cursor: pointer; font: inherit; font-family: var(--ui); font-size: 0.8125rem; font-weight: 500; }
.finder .searchbox__field { border: 0; background: rgb(255 255 255 / 55%); box-shadow: none; padding-right: 0.5rem; }
.finder .searchbox__input { font-size: 1rem; }
.finder .searchbox__field:focus-within { background: rgb(255 255 255 / 85%); box-shadow: 0 0 0 0.125rem rgb(26 24 21 / 10%); }

.finder__row { display: flex; align-items: center; gap: 0.375rem; padding: 0 0.125rem 0.125rem; }
.finder__row .pills { flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.125rem 0; }
.finder__row .pills::-webkit-scrollbar { display: none; }

.sheet2 { display: flex; flex-direction: column; gap: 1rem; padding: 0.25rem 0.375rem 0.125rem; animation: sheet-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.sheet2[hidden] { display: none; }
@keyframes sheet-in { from { opacity: 0; margin-top: -0.25rem; } }

.sheet2__group { display: flex; flex-direction: column; gap: 0.5rem; }
.sheet2__group h3 { margin: 0; color: var(--quiet-ink); font-family: var(--ui); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet2__groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.5rem; }
.sheet2__footer { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0.625rem 0 0.25rem; border-top: 1px solid rgb(26 24 21 / 8%); font-family: var(--ui); }
.sheet2__footer .filters__clear { font-family: var(--ui); font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--muted-ink); }
.sheet2 .results--inline { padding: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.home3 { position: relative; padding: 0.75rem 0.75rem 3rem; }
.shelf__count { color: var(--quiet-ink); font-family: var(--ui); font-size: 0.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; text-transform: uppercase; }

/* Phone: the finder is sticky; open, the spirit row folds into the Spirit group. Cards two-up. */
@media (max-width: 39.999rem) {
  .finder { position: sticky; top: 0.5rem; }
  /* Open, the finder floats over the shelves as glass; the shelves stay put beneath. */
  .home3--open .finder { position: fixed; top: 0.5rem; left: 0.75rem; right: 0.75rem; z-index: 20; max-height: 62dvh; overflow-y: auto; }
  .home3--open .finder__row { display: none; }
  .home3--open .home3__shelves { opacity: 0.55; }
  .home3--open .finder__placeholder { display: block; height: 7.5rem; }
  .finder__done { display: inline-flex; }
}

/* Tablet and desktop, column layout: the finder is a permanent left column, always open.
   The overlay variant (layout=sheet) keeps the phone behaviour at every width. */
@media (min-width: 40rem) {
  /* The column layout earns the full width: the page grows with the viewport up to 90rem. */
  .page--fluid { width: min(100%, 90rem); }
  .home3 { padding: 1.5rem 2rem 4rem; }
  .home3--column { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
  /* The column grows with its groups and the page scrolls; it never scrolls inside itself.
     It sticks when it fits the viewport (tall screens); on short screens it simply scrolls with the page. */
  .home3--column .finder { padding: 0.625rem; }
  .home3--column .finder--fits { position: sticky; top: 1rem; }
  .home3--column .finder__row { display: none; }
  .home3--column .searchbox__key { display: none; }
  .home3--column .sheet2[hidden] { display: flex; }
  .home3--column .sheet2 { animation: none; }
}
@media (min-width: 70rem) {
  .home3 { padding: 2rem 2.5rem 5rem; }
  .home3--column { grid-template-columns: 17.5rem minmax(0, 1fr); gap: 3rem; }
}
/* The index grid beside the finder column. */
.index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.home3--column .narrowing .pill { min-height: 2rem; }
@media (min-width: 40rem) { .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }
@media (min-width: 56rem) { .index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .index-list { gap: 1rem; } }
@media (min-width: 84rem) { .index-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 39.999rem) { .home3 .index-list { padding: 0 0.375rem; } }

@media (forced-colors: active) {
  .cocktail-card__photograph,
  .ingredient-card__photograph,
  .recipe__photograph img,
  .ingredient__photograph img { border: 1px solid CanvasText; }

  .recipe__measurements input:checked + label {
    color: HighlightText;
    background: Highlight;
  }
}

@media print {
  @page { margin: 0; }

  html,
  body,
  .page {
    width: 100%;
    min-height: 100%;
    background: white;
  }

  .recipe {
    display: flex;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
    padding: 17mm;
  }

  /* On paper the measures need no label: the list is plainly the ingredients,
     and the page has to hold one drink. */
  .bar,
  .recipe__ingredients h2,
  .recipe__related,
  .recipe__measurements { display: none; }

  .recipe__photograph {
    width: min(100%, 155mm);
    height: 70mm;
    margin-inline: auto;
    aspect-ratio: auto;
    background: transparent;
    break-inside: avoid;
  }

  .recipe__photograph img {
    object-position: center 60%;
  }

  .recipe--ramos-fizz .recipe__photograph img {
    object-position: center 15%;
  }

  .recipe__body {
    display: flex;
    width: min(100%, 155mm);
    flex: 1;
    flex-direction: column;
    margin-inline: auto;
    padding: 8mm 0 0;
  }

  .recipe__identity,
  .recipe__work { display: contents; }

  .recipe__header { order: 1; }
  .recipe__ingredients { order: 2; }
  .recipe__details { order: 3; }
  .recipe__method { order: 4; }
  .recipe__print-footer { order: 5; }

  .recipe__header h1 {
    font-size: 30pt;
  }

  .recipe__header p {
    max-width: 135mm;
    margin-top: 3mm;
    font-size: 11pt;
    line-height: 1.4;
  }

  .recipe__ingredients { margin-top: 8mm; }

  .recipe__ingredients ul { gap: 3mm; margin-top: 0; }

  .recipe__ingredients li,
  .recipe__details dd,
  .recipe__method li {
    font-size: 11pt;
    line-height: 1.35;
  }

  .recipe__ingredients li { padding: 0; }

  .recipe__ingredients li,
  .recipe__details div,
  .recipe__method li {
    break-inside: avoid;
  }

  .ingredient__name a {
    text-decoration: none;
  }

  .ingredient__measure { font-size: 10pt; }

  .recipe__ingredients small,
  .recipe__details small {
    font-size: 7.5pt;
  }

  .recipe__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12mm;
    margin-top: 6mm;
    padding-top: 5mm;
    border-top: 1px solid var(--hairline);
  }

  .recipe__details dd { margin-top: 2mm; }

  .recipe__method { margin-top: 7mm; }

  .recipe__method h2 { min-height: 0; }

  .recipe__method h2,
  .recipe__details dt {
    break-after: avoid;
    font-size: 7pt;
  }

  .recipe__method ol { gap: 3mm; }

  .recipe__method li {
    position: relative;
    display: block;
  }

  .recipe__method li::before {
    display: block;
    position: absolute;
    top: 0.28em;
    right: 100%;
    margin-right: 2mm;
    padding: 0;
    font-size: 7pt;
  }

  .recipe__print-footer {
    display: block;
    margin-top: auto;
    padding-top: 5mm;
    color: var(--quiet-ink);
    font-family: var(--label);
    font-size: 8pt;
    letter-spacing: 0.04em;
  }
}


/* =====================================================================
   Round: the rest of the public site · 2026-09-07
   Everything above is app/assets/stylesheets/application.css as served.
   Everything below is this round's change. Diff from here.
   ===================================================================== */

/* Shell. The index is fluid to 90rem (.page--fluid). The recipe and the ingredient page keep
   .page--wide at 70rem: a recipe is read, not scanned, and 70rem already sets the photograph beside
   the identity; the ingredient page's grids are collections, and four across at 70rem matches the
   index's density at the same width. Every page but the index links the wordmark home. */
.bar__lockup:hover .bar__wordmark { text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.17em; }

/* Recipe: the photograph carries a soft edge on paper widths so it reads as an object, not a bleed. */
@media (min-width: 40rem) and (max-width: 69.999rem) {
  .recipe__photograph { width: min(100%, 34rem); margin-inline: auto; border-radius: 0.25rem; }
}

/* Ingredient: a ruled foot carrying the way back to the collection. */
.ingredient__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin: 3rem 1.375rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted-ink);
  font-family: var(--ui);
  font-size: 0.875rem;
}
.ingredient__foot a { color: var(--ink); font-weight: 500; text-decoration: none; }
.ingredient__foot a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* Ingredient: the page now shares the recipe's shape. Photograph beside the introduction at
   70rem; the introduction keeps its reading measure; Types and Cocktails span the full width. */
.ingredient__facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; }
.ingredient__facts div { min-width: 7rem; }

/* The way into the finder, already narrowed by this ingredient: one pill, the finder's own control. */
.ingredient__find { margin: 1.75rem 0 0; }
.ingredient__find .pill { min-height: 2.5rem; padding-inline: 0.875rem; font-size: 0.875rem; }
.ingredient__find .pill svg { width: 0.9375rem; height: 0.9375rem; color: var(--quiet-ink); }
.ingredient__find .pill__count { margin-left: 0.125rem; }

.ingredient__relations h2 .ingredient__tally,
.ingredient__cocktails h2 .ingredient__tally { margin-left: 0.5rem; color: var(--faint-ink); letter-spacing: 0.08em; }

/* Types: the ingredient card names the type and gives its strength and its first sentence. */
.ingredient-card__abv { color: rgb(247 245 240 / 92%); font-family: var(--label); font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

@media (min-width: 40rem) {
  .ingredient__photograph { width: min(100%, 34rem); margin-inline: auto; border-radius: 0.25rem; }
  .ingredient__foot { margin-inline: 4.5rem; }
}

@media (min-width: 70rem) {
  .ingredient {
    display: grid;
    grid-template-columns: 27.5rem minmax(0, 1fr);
    align-content: start;
    column-gap: 3.25rem;
    padding: 2.75rem 2.5rem 4rem;
  }
  .page--wide .ingredient__photograph { align-self: start; grid-column: 1; grid-row: 1; width: 100%; aspect-ratio: 1; border-radius: 0.25rem; }
  .ingredient__body { display: contents; }
  .page--wide .ingredient__introduction { display: flex; min-height: 27.5rem; flex-direction: column; grid-column: 2; grid-row: 1; max-width: none; margin: 0; padding: 0.25rem 0 0; }
  .ingredient__header h1 { font-size: 4.625rem; line-height: 0.92; letter-spacing: -0.025em; }
  .ingredient__header h1 + p { max-width: 30rem; margin-top: 1.125rem; font-size: 1.0625rem; }
  .ingredient__facts { margin-top: auto; padding-top: 2.5rem; }
  .ingredient__find { margin-top: 1.5rem; }
  .ingredient__relations,
  .ingredient__cocktails { grid-column: 1 / -1; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
  .ingredient__relations h2 { margin-bottom: 1.25rem; }
  .ingredient__cocktails .cocktail-list { margin-top: 1.25rem; }
  .ingredient__foot { grid-column: 1 / -1; margin: 3rem 0 0; }
}

@media (max-width: 39.999rem) {
  .ingredient__photograph { width: calc(100% - 1.75rem); margin-inline: auto; border-radius: 0.375rem; }
  .ingredient__body { padding: 2rem 1.375rem 2.5rem; }
  .ingredient__foot { margin-inline: 0; }
}

/* Error page. These rules are ALSO inlined in public/404.html and 500.html (see Error.dc.html),
   because those files are served without the application's stylesheet. Keep the two in step. */
.error { display: flex; flex-direction: column; gap: 1.25rem; padding: 3rem 1.375rem 4rem; max-width: 34rem; }
.error__code { margin: 0; color: var(--quiet-ink); font-family: var(--label); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.error h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.625rem, 9vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.error p { margin: 0; color: var(--muted-ink); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.error p a { color: var(--ink); text-underline-offset: 0.15em; }
.error__ways { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .error { padding: 4rem 4.5rem 5rem; } }
@media (min-width: 70rem) { .error { padding: 5rem 2.5rem 6rem; } }
