/* Fonts: Big Shoulders Display for headings, Libre Franklin for text. Both are variable fonts. */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/big-shoulders-display-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #000;
  --paper: #fff;
  --sun: #ffcb1f;
  --tofu: #fff3c2;
  --steel: #55575c;
  --rule: #d6d6d2;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --stroke: 3px solid var(--ink);
  --block: 18px;
  --width: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 0.9;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
  font-weight: 800;
}

p,
ul,
ol,
dl,
table,
pre {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.18em;
}

a:hover {
  background: var(--sun);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.container {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.container {
  padding-top: 0.5rem;
  padding-bottom: 5rem;
}

/* Plain text pages, such as "page not found". */
main.container > h1:first-child {
  margin: 3rem 0 1rem;
}

main.container > h2 {
  margin-top: 2.5rem;
}

.muted {
  color: var(--steel);
  font-size: 0.9375rem;
}

/* Without this, any rule that sets `display` (every button, for one) would show
   elements that carry the hidden attribute. */
[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  background: var(--sun);
}

/* Form controls */

input,
select,
button {
  font: inherit;
  color: inherit;
}

input[type="search"],
input[type="number"],
select {
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--sun);
  color: var(--ink);
}

label {
  font-weight: 700;
}

/* Site header */

.site-header {
  background: var(--ink);
  color: var(--paper);
}

.site-header :focus-visible,
.site-footer :focus-visible,
.ingredients :focus-visible {
  outline-color: var(--sun);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--sun);
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand:hover {
  background: none;
  color: var(--paper);
}

.logo {
  flex: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a,
.site-footer nav a {
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  background: none;
  color: var(--sun);
}

.header-search {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.header-search input {
  width: 15rem;
  height: 2.5rem;
  border-color: var(--paper);
  color: var(--ink);
}

.header-search button {
  height: 2.5rem;
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.header-search button:hover {
  border-color: var(--paper);
  background: var(--paper);
}

/* Home: hero */

.hero {
  background: var(--sun);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3.5rem;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 8.4vw, 7.25rem);
  line-height: 0.86;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-search {
  display: flex;
  gap: 0.625rem;
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 3.5rem;
  padding: 0 1rem;
  border-width: 3px;
  border-radius: 14px;
  font-size: 1.125rem;
}

.hero-search button {
  height: 3.5rem;
  padding: 0 1.75rem;
  border-width: 3px;
  border-radius: 14px;
  font-size: 1.5rem;
}

.hero-search button:hover {
  background: var(--paper);
}

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

.shortcuts a {
  display: block;
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.shortcuts a:hover {
  background: var(--ink);
  color: var(--sun);
}

/* Home: the barbell */

.barbell {
  display: block;
  width: 100%;
  height: auto;
  animation: barbell-settle 0.4s ease-out 0.95s backwards;
}

.barbell-plate rect {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 5;
}

.barbell-plate path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}

.barbell-plate,
.barbell-collar {
  animation: barbell-load 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}

.barbell-plate-1 {
  animation-delay: 0.15s;
}

.barbell-plate-2 {
  animation-delay: 0.3s;
}

.barbell-plate-3 {
  animation-delay: 0.45s;
}

.barbell-collar {
  animation-delay: 0.6s;
}

/* Each plate slides on from the end of the bar. */
@keyframes barbell-load {
  from {
    opacity: 0;
    transform: translateX(-160px);
  }
}

/* The loaded bar dips under the weight, then steadies. */
@keyframes barbell-settle {
  from {
    transform: translateY(-10px);
  }

  55% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .barbell,
  .barbell-plate,
  .barbell-collar {
    animation: none;
  }
}

.pick {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem 1.375rem;
  border: var(--stroke);
  border-radius: var(--block);
  background: var(--paper);
}

.pick-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pick h2 {
  font-size: 2.25rem;
}

.pick h2 a {
  text-decoration: none;
}

.pick p {
  margin-bottom: 0.5rem;
}

.pick .pick-facts {
  margin: 0;
  font-weight: 700;
}

/* Home: sections */

.section {
  margin-top: 4rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 4px solid var(--ink);
}

.section-heading h2 {
  margin-bottom: 0.375rem;
}

.section-heading a {
  font-weight: 700;
}

/* Home: courses as weight plates, sized by how many recipes each holds. */

.rack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.plate {
  --size: 7rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--ink);
  /* The raised rim of a cast plate. */
  box-shadow:
    inset 0 0 0 6px var(--ink),
    inset 0 0 0 8px rgb(255 255 255 / 0.45);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.15s ease-out;
}

.plate-size-1 {
  --size: 5.75rem;
}

.plate-size-2 {
  --size: 6.5rem;
}

.plate-size-3 {
  --size: 7.25rem;
}

.plate-size-4 {
  --size: 8rem;
}

.plate-size-5 {
  --size: 8.75rem;
}

.plate-size-6 {
  --size: 10.25rem;
}

.plate-count {
  color: var(--sun);
  font-family: var(--display);
  font-size: calc(var(--size) * 0.4);
  font-weight: 900;
  line-height: 0.9;
}

.plate-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plate:hover,
.plate:focus-visible {
  background: var(--sun);
  box-shadow:
    inset 0 0 0 3px var(--ink),
    inset 0 0 0 9px var(--sun),
    inset 0 0 0 11px var(--ink);
  color: var(--ink);
  transform: rotate(-10deg) scale(1.05);
}

.plate:hover .plate-count,
.plate:focus-visible .plate-count {
  color: var(--ink);
}

@media (min-width: 1180px) {
  .rack {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* The bar the plates are racked on. */
  .rack::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -1.25rem;
    left: -1.25rem;
    height: 14px;
    margin-top: -7px;
    border-radius: 7px;
    background: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate {
    transition: none;
  }

  .plate:hover,
  .plate:focus-visible {
    transform: none;
  }
}

/* Recipe cards */

.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.375rem 1.375rem;
  border: var(--stroke);
  border-radius: var(--block);
  background: var(--paper);
  transition:
    background 0.12s,
    transform 0.12s;
}

.recipe-card:hover,
.recipe-card:focus-within {
  background: var(--sun);
  transform: translateY(-4px);
}

.recipe-card-stamp {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.recipe-card-time {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.recipe-card-time b {
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.8;
}

.recipe-card-course {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recipe-card h3 {
  margin-bottom: 0.625rem;
  font-size: 2rem;
}

.recipe-card h3 a {
  background: none;
  text-decoration: none;
}

/* Makes the whole card the link's target. */
.recipe-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.recipe-card h3 a:focus-visible {
  outline: none;
}

.recipe-card:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.recipe-card-text {
  margin-bottom: 1.125rem;
  font-size: 0.9688rem;
  line-height: 1.5;
}

.recipe-card-macros {
  display: flex;
  gap: 1.25rem;
  margin: auto 0 0.875rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.recipe-card-macros b {
  font-size: 1.625rem;
  font-weight: 900;
}

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

.pills li {
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.pills li:not(:has(a)),
.pills a {
  padding: 0.05rem 0.65rem;
}

.pills a {
  display: block;
  border-radius: 999px;
  text-decoration: none;
}

.pills a:hover {
  background: var(--ink);
  color: var(--sun);
}

/* Page banners */

.banner {
  padding: 2.5rem 0 2.75rem;
  background: var(--sun);
}

.banner h1 {
  margin-bottom: 0;
}

.banner a:hover {
  background: var(--ink);
  color: var(--sun);
}

.banner-count {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.lead {
  max-width: 46rem;
  margin: 1.125rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Recipe list page */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.875rem 1rem;
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.375rem 1.375rem;
  border: var(--stroke);
  border-radius: var(--block);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-wide {
  flex: 1 1 14rem;
}

.field-actions {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.field-actions a {
  font-weight: 700;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.active-filters li {
  padding: 0.2rem 0.5rem 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--tofu);
  border: 2px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.active-filters a {
  margin-left: 0.35rem;
  font-weight: 700;
}

.empty {
  padding: 3.5rem 1.5rem;
  border: 3px dashed var(--ink);
  border-radius: var(--block);
  text-align: center;
}

.empty p {
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  font-weight: 700;
}

/* Recipe page */

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.75rem 0 0;
}

.stats div {
  min-width: 6.75rem;
  padding: 0.7rem 1.1rem 0.75rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
}

.stats dt,
.macros dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stats dt {
  color: var(--sun);
}

.stats dd,
.macros dd {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.stats dd {
  font-size: 2rem;
}

.recipe {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  align-items: start;
  gap: 3.5rem;
  padding-top: 2.5rem;
}

/* Ingredients: a slab of cast iron. */

.ingredients {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1rem;
  border-radius: var(--block);
  background: var(--ink);
  color: var(--paper);
}

.ingredients h2 {
  color: var(--sun);
}

.ingredients h3 {
  margin: 1.25rem 0 0.25rem;
  color: var(--sun);
  font-size: 1.375rem;
}

.ingredients a:hover {
  background: none;
  color: var(--sun);
}

.servings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.servings label {
  margin-right: auto;
}

.servings input {
  width: 4.5rem;
  height: 2.5rem;
  border-color: var(--paper);
  color: var(--ink);
}

.servings button {
  height: 2.5rem;
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.servings button:hover {
  border-color: var(--paper);
  background: var(--paper);
}

.servings-note {
  color: #c9c9c9;
  font-size: 0.875rem;
}

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

.ingredients li {
  border-top: 1px solid #3a3a3a;
}

.ingredients li label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.ingredients input[type="checkbox"] {
  flex: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  border: 2px solid var(--paper);
  border-radius: 5px;
  cursor: pointer;
}

.ingredients input[type="checkbox"]:checked {
  border-color: var(--sun);
  background: var(--sun);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.ingredients li:has(input:checked) span {
  color: #8d8d8d;
  text-decoration: line-through;
}

/* Method: numbered like plates on a bar. */

.method ol {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.method li {
  position: relative;
  min-height: 4.25rem;
  padding: 0.3rem 0 1.75rem 4.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  counter-increment: step;
}

.method li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.125rem;
  height: 3.125rem;
  border: var(--stroke);
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.method li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: calc(1.5625rem - 2px);
  width: 4px;
  background: var(--ink);
}

.notes {
  margin-top: 1.5rem;
  padding: 1.375rem 1.5rem 0.75rem;
  border: var(--stroke);
  border-radius: var(--block);
  background: var(--tofu);
}

.notes h2,
.nutrition h2 {
  font-size: 2rem;
}

.notes ul {
  padding-left: 1.2rem;
}

.notes li {
  margin-bottom: 0.5rem;
}

.nutrition {
  margin-top: 2.5rem;
}

.macros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.625rem;
  margin: 1rem 0 0.75rem;
}

.macros div {
  padding: 0.8rem 1rem 0.9rem;
  border: var(--stroke);
  border-radius: 14px;
}

.macros .macro-protein {
  background: var(--sun);
}

.macros dd {
  font-size: 2.75rem;
}

.macros dd span {
  font-size: 1.125rem;
  font-weight: 800;
}

.recipe-main > .pills {
  margin-top: 2rem;
}

.pills-links li {
  font-size: 0.9375rem;
}

/* Documentation */

.prose {
  max-width: 48rem;
  padding-top: 1rem;
}

.prose h2 {
  margin-top: 3rem;
  padding-bottom: 0.375rem;
  border-bottom: 4px solid var(--ink);
}

.prose h3 {
  margin-top: 2.25rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--tofu);
}

pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: var(--stroke);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Site footer */

.site-footer {
  overflow: hidden;
  padding-top: 3rem;
  background: var(--ink);
  color: var(--paper);
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.site-footer-top p {
  margin: 0;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

#install-button {
  margin-left: auto;
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

#install-button:hover {
  border-color: var(--paper);
  background: var(--paper);
}

#install-help {
  margin: 1rem 0 0;
  font-weight: 600;
  text-align: right;
}

.site-footer-wordmark {
  /* The negative margin sits the letters on the bottom edge of the page. */
  margin: 1.5rem 0 -0.115em;
  color: var(--sun);
  font-family: var(--display);
  font-size: clamp(5rem, 23.5vw, 19rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 860px) {
  body {
    font-size: 1rem;
  }

  .header-search {
    width: 100%;
    margin-left: 0;
  }

  .header-search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-search button {
    padding: 0 1.125rem;
  }

  .section {
    margin-top: 3rem;
  }

  h2 {
    font-size: 2.125rem;
  }

  .recipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 1.5rem;
  }

  .ingredients {
    position: static;
    max-height: none;
  }

  .stats div {
    flex: 1 1 5.75rem;
    min-width: 0;
  }

  .stats dd {
    font-size: 1.625rem;
  }

  .field {
    flex: 1 1 9rem;
  }

  .field select {
    width: 100%;
  }

  #install-button {
    margin-left: 0;
  }

  #install-help {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recipe-card {
    transition: none;
  }

  .recipe-card:hover,
  .recipe-card:focus-within {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .servings,
  .servings-note,
  .related,
  .pills,
  .skip-link,
  .ingredients input {
    display: none;
  }

  .banner,
  .ingredients,
  .notes,
  .stats div,
  .macros .macro-protein {
    background: none;
    color: var(--ink);
  }

  .banner {
    padding: 0;
  }

  .ingredients {
    position: static;
    max-height: none;
    padding: 0;
  }

  .ingredients h2,
  .ingredients h3,
  .stats dt {
    color: var(--ink);
  }

  .recipe {
    display: block;
  }

  main.container {
    padding: 0;
  }
}
