:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --cream: #fffaf2;
  --ink: #321d25;
  --wine: #45252f;
  --rust: #9d4c38;
  --muted: #69545a;
  --rule: #d8c6bd;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { font: 400 1em/1 var(--serif); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
[hidden] { display: none !important; }

.masthead {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner, main, footer {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}
.masthead-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.brand { font: 2rem/1 var(--serif); text-decoration: none; }
.collection-trigger, .add, .qty, .drawer-header button {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--wine);
}
.collection-trigger { border-radius: 100px; padding: 6px 8px 6px 13px; font-weight: 600; }
.collection-trigger span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  border-radius: 100px;
  margin-left: 5px;
  background: var(--wine);
  color: var(--cream);
  font-size: .75rem;
}

main { padding-block: 16px 64px; scroll-margin-top: 85px; }
.result-count { color: var(--muted); font-size: .82rem; }
#order-notice { margin-bottom: 14px; }
.menu-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.families { display: flex; flex-wrap: wrap; gap: 5px; }
.families button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: .8rem;
}
.families button[aria-pressed=true] { background: var(--wine); color: var(--cream); }
.families button:hover:not([aria-pressed=true]), .add:hover, .qty:hover { border-color: var(--wine); }
.result-count { white-space: nowrap; }
.menu { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.menu-row {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.blend-number { color: var(--rust); font: 1.45rem/1 var(--serif); white-space: nowrap; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.notes dt { color: var(--muted); font-size: .7rem; }
.notes dd { margin: 0; line-height: 1.25; }
.price { font-size: .86rem; font-weight: 700; white-space: nowrap; }
.add { min-height: 36px; padding: 6px 11px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
footer { border-top: 1px solid var(--rule); padding: 18px 0 30px; color: var(--muted); font-size: .82rem; }

dialog {
  width: min(100%, 430px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  margin: 0 0 0 auto;
  border: 0;
  color: var(--ink);
  background: var(--cream);
}
dialog::backdrop { background: #25101888; }
.drawer { min-height: 100%; display: flex; flex-direction: column; padding: 23px; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.drawer-header h2 { font-size: 2.7rem; }
.drawer-header button { font-size: 1.45rem; width: 38px; height: 38px; }
.collection-lines { padding: 14px 0; flex: 1; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.line h3 { font: 1.55rem/1 var(--serif); margin: 0; }
.line p { font-size: .77rem; color: var(--muted); margin-top: 5px; }
.line-controls { display: flex; gap: 6px; align-items: center; }
.qty { min-width: 32px; min-height: 32px; }
.drawer-total { border-top: 1px solid var(--rule); padding-top: 14px; }
.drawer-total > p { margin: 0 0 10px; }
.drawer-total > p:first-child { display: flex; justify-content: space-between; font-size: 1.1rem; }
.drawer-total > p:not(:first-child) { font-size: .8rem; color: var(--muted); }
.solid { width: 100%; margin-bottom: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--wine); background: var(--wine); color: var(--cream); font-weight: 600; }
.solid:hover:not(:disabled) { background: #663344; }

@media (max-width: 620px) {
  .masthead-inner, main, footer { width: calc(100% - 32px); }
  .masthead-inner { min-height: 61px; }
  .brand { font-size: 1.7rem; }
  main { padding-top: 22px; scroll-margin-top: 67px; }
  .menu-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; padding-block: 10px; }
  .blend-number { grid-column: 1; grid-row: 1; }
  .notes { grid-column: 1 / -1; grid-row: 2; font-size: .87rem; }
  .price { grid-column: 2; grid-row: 1; }
  .add { grid-column: 3; grid-row: 1; }
}
@media (max-width: 350px) {
  .menu-tools { flex-wrap: wrap; }
  .families button { padding-inline: 7px; }
  .brand { font-size: 1.5rem; }
}
