:root {
  --bg: #f7f7f4;
  --ink: #090909;
  --muted: #2b2b2b;
  --line: #1c1c1c;
  --soft-line: #c9c9c4;
  --coral: #ff5559;
  --blue: #1d12b7;
  --orange: #f05a16;
  --teal: #0ea0ad;
  --green: #58a96f;
  --ad: #d9d9d9;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  zoom: 0.9;
}

a {
  color: inherit;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

img {
  display: block;
  max-width: 100%;
}

main,
.site-header,
.site-footer {
  width: min(1294px, calc(100% - 78px));
  margin: 0 auto;
}

.site-header {
  padding-top: 33px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(330px, 1fr);
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.shop-link,
.account-links a,
.main-nav a {
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.shop-link:hover,
.account-links a:hover,
.main-nav a:hover {
  color: var(--coral);
}

.brand {
  display: grid;
  justify-items: center;
  text-decoration: none;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -1.4px;
}

.brand small {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  white-space: nowrap;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  border-radius: 12px;
  padding: 0 21px;
  color: #fff;
  background: var(--coral);
  white-space: nowrap;
}

.profile-button:hover {
  color: #fff !important;
  background: #111;
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.main-nav .active {
  color: var(--coral);
}

.profile-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 411px;
  align-items: stretch;
  min-height: 146px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--coral);
}

.profile-banner > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 63px 31px 39px;
}

.profile-banner h1 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.profile-banner a {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-banner a:hover {
  opacity: 0.78;
  transform: translateX(3px);
}

.profile-banner img {
  width: 411px;
  height: 146px;
  object-fit: cover;
}

.mock-search {
  display: grid;
  grid-template-columns: minmax(320px, 610px) auto auto;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
}

.search-input {
  position: relative;
}

.search-input input {
  width: 100%;
  height: 43px;
  border: 2px solid #111;
  border-radius: 999px;
  padding: 0 58px 0 22px;
  background: transparent;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.search-input button {
  position: absolute;
  top: 4px;
  right: 13px;
  width: 35px;
  height: 35px;
  border: 0;
  color: #321d1d;
  background: transparent;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.search-input button:hover {
  color: var(--coral);
  transform: scale(1.08);
}

.profile-filter,
.other-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.profile-filter:hover,
.other-filter:hover {
  background: #111;
  transform: translateY(-1px);
}

.other-filter {
  position: relative;
  padding: 0;
}

.other-filter summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 43px;
  border-radius: 999px;
  padding: 0 22px;
  list-style: none;
  cursor: pointer;
}

.other-filter summary::-webkit-details-marker {
  display: none;
}

.other-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: 280px;
  border: 2px solid #111;
  border-radius: 16px;
  padding: 16px;
  color: #111;
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
  text-transform: none;
}

.other-panel label {
  display: grid;
  gap: 5px;
  color: #111;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.other-panel input,
.other-panel select {
  min-height: 38px;
  border: 1px solid #aaa;
  border-radius: 9px;
  padding: 0 10px;
  font: inherit;
}

.profile-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.other-filter {
  min-width: 94px;
  background: #000;
}

.other-filter:hover {
  background: var(--coral);
}

.image-note {
  margin-top: 31px;
  text-align: center;
  text-transform: uppercase;
}

.image-note h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0.3px;
}

.image-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.recipe-board {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(300px, 0.58fr) 194px;
  gap: 31px;
  align-items: start;
  margin-top: 34px;
  padding: 0 16px 28px 42px;
}

.recipe-list {
  display: grid;
  gap: 18px;
}

.wide-recipe {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 12px 13px 18px 0;
  border-bottom: 1px solid #bbb;
  transition: transform 160ms ease, background-color 160ms ease;
}

.wide-recipe:hover {
  background: rgba(255, 85, 89, 0.035);
  transform: translateY(-1px);
}

.wide-recipe:last-child {
  border-bottom: 0;
}

.wide-recipe img {
  width: 288px;
  height: 205px;
  border-radius: 13px;
  object-fit: cover;
}

.wide-recipe:nth-child(2) img {
  height: 202px;
}

.recipe-copy {
  display: grid;
  align-content: center;
}

.recipe-copy > span:not(.tag) {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.coral {
  color: var(--coral);
}

.recipe-copy h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.wide-recipe .recipe-copy h2 {
  max-width: 330px;
}

.feature-recipe .recipe-copy h2 {
  font-size: 25px;
}

.recipe-text-link {
  display: block;
  text-decoration: none;
}

.recipe-text-link:hover h2 {
  color: var(--coral);
}

.recipe-text-link:hover p {
  opacity: 0.82;
}

.recipe-copy p {
  margin: 0 0 12px;
  max-width: 296px;
  font-size: 17px;
  line-height: 1.25;
}

.recipe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recipe-footer a {
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.recipe-footer a:hover {
  color: #111;
  transform: translateX(2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.american {
  background: var(--blue);
}

.chinese {
  background: var(--orange);
}

.italian {
  background: var(--teal);
}

.vg {
  margin-left: 4px;
  background: var(--green);
}

.feature-recipe {
  display: grid;
  gap: 19px;
  padding: 12px 0 0 30px;
  border-left: 1px solid #bbb;
}

.feature-recipe:hover img,
.wide-recipe:hover img {
  filter: saturate(1.08) contrast(1.02);
}

.results-mode {
  grid-template-columns: 1fr;
  padding-right: 42px;
}

.results-mode .recipe-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
}

.results-mode .wide-recipe {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid #bbb;
  padding: 0 0 24px;
}

.results-mode .wide-recipe img {
  width: 220px;
  height: 156px;
}

.results-mode .wide-recipe:nth-child(2) img {
  height: 156px;
}

.results-mode .recipe-copy h2,
.results-mode .wide-recipe .recipe-copy h2 {
  max-width: none;
  font-size: 22px;
}

.results-mode .recipe-copy p {
  max-width: none;
  font-size: 16px;
}

.placeholder-feature {
  min-height: 220px;
  align-content: center;
}

.placeholder-feature p {
  color: #555;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-recipe img {
  width: 303px;
  height: 226px;
  border-radius: 13px;
  object-fit: cover;
}

.sponsored {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 502px;
  padding: 13px 14px 0;
  background: #fff;
}

.sponsored span {
  font-size: 16px;
  text-transform: uppercase;
}

.sponsored div {
  width: 166px;
  min-height: 467px;
  background: var(--ad);
}

.site-footer {
  padding: 32px 0 44px;
  color: #555;
  font-size: 13px;
}

.flash,
.form-error,
.empty-state {
  width: min(1294px, calc(100% - 78px));
  margin: 14px auto;
  border-radius: 10px;
  padding: 13px 16px;
}

.flash {
  background: #e8eee8;
}

.form-error {
  color: #843f2f;
  background: #fff0ea;
}

.page-intro,
.book-grid,
.recipe-detail,
.auth-shell,
.profile-layout {
  width: min(1294px, calc(100% - 78px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.auth-shell,
.profile-layout,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.auth-shell {
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.74fr);
  align-items: stretch;
  padding-top: 34px;
}

.auth-story {
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: 545px;
  border-radius: var(--radius);
  padding: 48px 44px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 85, 89, 0.92), rgba(255, 85, 89, 0.72)),
    url("images/mockup/banner-chicken.png") right center / auto 100% no-repeat;
}

.auth-story .eyebrow,
.auth-story h1,
.auth-story p {
  color: #fff;
}

.auth-story h1,
.profile-intro h1 {
  margin: 0;
  max-width: 620px;
  font-size: 50px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -1.2px;
  text-transform: uppercase;
}

.auth-story p,
.profile-intro p {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-card,
.profile-form,
.book-card,
.detail-grid section,
.allergy-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 20px;
}

.auth-card-heading {
  display: grid;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.auth-card-heading h2,
.profile-form-head h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}

.auth-card-heading p {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.auth-card form {
  display: grid;
  gap: 15px;
}

.auth-card label,
.profile-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-card input,
.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  border: 2px solid #111;
  border-radius: 14px;
  padding: 0 14px;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.auth-card input,
.profile-form select {
  min-height: 44px;
}

.profile-form textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.auth-card input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  outline: 0;
  border-color: var(--coral);
}

.auth-card button,
.profile-form button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.auth-card button:hover,
.profile-form button:hover {
  background: #111;
  transform: translateY(-1px);
}

.auth-switch {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.auth-switch a {
  color: var(--coral);
  text-transform: uppercase;
}

.profile-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.profile-intro {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 17px;
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
  background: var(--coral);
}

.profile-intro .eyebrow,
.profile-intro h1,
.profile-intro p {
  color: #fff;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  border-radius: 999px;
  padding: 0 17px;
  color: #111;
  background: #fff;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.button-link:hover {
  color: #fff;
  background: #111;
  transform: translateY(-1px);
}

.dark-link {
  color: #fff;
  background: #111;
}

.dark-link:hover {
  color: #111;
  background: #fff;
}

.profile-summary {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border-radius: 14px;
  padding: 17px;
  color: #111;
  background: #fff;
}

.profile-summary span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-summary strong {
  font-size: 22px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-summary p {
  color: #111;
  font-size: 14px;
}

.profile-form {
  display: grid;
  gap: 20px;
}

.profile-form-head {
  display: grid;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-select-row,
.profile-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide-field {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  font-family: inherit;
}

@media (max-width: 980px) {
  main,
  .site-header,
  .site-footer,
  .flash,
  .form-error,
  .empty-state {
    width: min(100% - 28px, 1294px);
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding-bottom: 18px;
  }

  .account-links,
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
  }

  .profile-banner,
  .recipe-board,
  .wide-recipe,
  .auth-shell,
  .profile-layout,
  .detail-grid,
  .profile-select-row,
  .profile-text-grid {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 360px;
  }

  .profile-intro {
    position: static;
  }

  .profile-banner > div {
    grid-template-columns: 1fr;
  }

  .profile-banner img {
    width: 100%;
    height: 180px;
  }

  .mock-search {
    grid-template-columns: 1fr;
  }

  .recipe-board {
    padding: 0 0 28px;
  }

  .results-mode {
    padding-right: 0;
  }

  .results-mode .recipe-list {
    grid-template-columns: 1fr;
  }

  .wide-recipe {
    gap: 18px;
  }

  .wide-recipe img,
  .results-mode .wide-recipe img,
  .feature-recipe img {
    width: 100%;
    height: auto;
  }

  .results-mode .wide-recipe {
    grid-template-columns: 1fr;
  }

  .feature-recipe {
    padding-left: 0;
    border-left: 0;
  }

  .sponsored {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 34px;
  }

  .profile-banner h1 {
    font-size: 29px;
  }

  .main-nav {
    min-height: auto;
    padding: 14px 0;
  }

  .wide-recipe {
    padding-right: 0;
  }

  .auth-story,
  .auth-card,
  .profile-intro,
  .profile-form {
    padding: 22px;
  }

  .auth-story h1,
  .profile-intro h1 {
    font-size: 34px;
  }
}
