:root {
  --berry: #6f2146;
  --berry-dark: #42172d;
  --plum: #2c1425;
  --rose: #a6556c;
  --apricot: #e18c5f;
  --cream: #fbf6f0;
  --paper: #fffaf5;
  --ink: #2b2529;
  --muted: #766a6c;
  --line: #eadfd8;
  --shadow: 0 18px 48px rgba(58, 24, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 6vw;
  background: var(--berry-dark);
  color: #fff4f7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
}

.topbar p {
  margin: 0;
}

.socials,
.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.socials a,
.footer-socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.main-nav {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 6vw;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 10px 28px rgba(95, 31, 60, 0.16);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}

.nav-links a,
.section-heading h2,
.filter-button,
.text-link,
.category-card,
.recipe-card h3,
.site-footer h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.nav-links a {
  color: #393136;
  font-size: 0.86rem;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--berry);
}

.search-button,
.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.search-button svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-panel {
  position: fixed;
  inset: 150px 0 auto;
  z-index: 30;
  padding: 0 6vw 42px;
  background: rgba(255, 250, 245, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(58, 24, 40, 0.12);
}

.search-panel[hidden] {
  display: none;
}

.search-panel-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 28px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.search-form input {
  min-height: 56px;
  width: 100%;
  padding: 0 20px;
  border: 1px solid rgba(111, 33, 70, 0.18);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(58, 24, 40, 0.06);
}

.search-form input:focus {
  outline: 2px solid rgba(111, 33, 70, 0.18);
  border-color: var(--berry);
}

.search-close {
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.search-summary {
  margin: 16px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.search-results {
  max-height: min(58vh, 640px);
  overflow: auto;
  padding-right: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--plum);
}

.hero {
  min-height: 480px;
  display: grid;
  align-items: center;
  padding: 70px 6vw;
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.96) 0%, rgba(255, 250, 245, 0.84) 36%, rgba(255, 250, 245, 0.08) 70%),
    url("assets/hero.jpg") center right / cover;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 530px;
  color: var(--plum);
  font-size: clamp(2.65rem, 6vw, 5.2rem);
}

h1::first-line {
  color: var(--berry);
}

h2 {
  color: var(--plum);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p,
.eid-feature p,
.instagram-section p,
.about-section p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 450px;
  margin: 20px 0 28px;
  font-size: 1.04rem;
  font-weight: 600;
}

.primary-button,
.light-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 5px;
  background: var(--berry);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(111, 33, 70, 0.22);
  overflow: hidden;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.primary-button::before,
.light-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.26) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 380ms ease;
}

.primary-button span,
.light-button span {
  position: relative;
  transition: transform 180ms ease;
}

.primary-button:hover {
  background: #812a53;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(111, 33, 70, 0.28);
}

.primary-button:hover::before,
.light-button:hover::before {
  transform: translateX(120%);
}

.primary-button:hover span,
.light-button:hover span {
  transform: translateX(3px);
}

.light-button {
  background: #fff9f5;
  color: var(--berry);
  box-shadow: none;
}

.light-button:hover {
  background: white;
  color: var(--berry-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 255, 255, 0.18);
}

.category-section,
.instagram-section,
.about-section {
  padding: 42px 6vw;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading.compact {
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
  color: #4b4246;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.category-card {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  text-align: center;
  border: 1px solid rgba(111, 33, 70, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #5a5054;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(58, 24, 40, 0.035);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.category-card:hover {
  color: var(--berry);
  border-color: rgba(111, 33, 70, 0.32);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(58, 24, 40, 0.1);
}

.category-card.active {
  color: white;
  background: var(--berry);
  border-color: var(--berry);
  box-shadow: 0 11px 24px rgba(111, 33, 70, 0.2);
}

.text-link {
  display: table;
  margin: 24px auto 0;
  color: var(--rose);
  font-size: 0.82rem;
}

.featured-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 44px 6vw;
  border-bottom: 1px solid var(--line);
}

.recipes-page-button {
  display: inline-flex;
  width: auto;
  min-width: 260px;
  margin: 30px auto 0;
  padding-inline: 30px;
}

.latest .recipes-page-button {
  display: flex;
  width: fit-content;
}

.eid-feature {
  align-self: start;
  justify-self: stretch;
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(66, 23, 45, 0.74), rgba(66, 23, 45, 0.48)),
    url("assets/holidays.png") center / cover;
  color: white;
}

.eid-feature h2,
.eid-feature .eyebrow {
  color: white;
}

.eid-feature p {
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
  color: #fff1f5;
  font-weight: 600;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.filter-button:hover {
  border-color: rgba(111, 33, 70, 0.32);
  color: var(--berry);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(58, 24, 40, 0.08);
}

.filter-button.active {
  background: var(--berry);
  color: white;
  border-color: var(--berry);
}

.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.category-filter-row[hidden] {
  display: none;
}

.category-filter-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(111, 33, 70, 0.14);
  border-radius: 999px;
  background: #fff9f5;
  color: #5f5358;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.category-filter-button:hover,
.category-filter-button.active {
  border-color: var(--berry);
  background: var(--berry);
  color: white;
  transform: translateY(-1px);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
}

.recipe-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(58, 24, 40, 0.06);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.recipe-card:hover {
  border-color: rgba(111, 33, 70, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(58, 24, 40, 0.12);
}

.recipe-card:focus-visible {
  outline: 3px solid rgba(111, 33, 70, 0.26);
  outline-offset: 3px;
}

.recipe-card img {
  height: 172px;
  object-fit: cover;
}

.recipe-card.image-missing::before {
  content: "Billede mangler";
  height: 172px;
  display: grid;
  place-items: center;
  background: #f6ece6;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-content {
  padding: 15px;
}

.recipe-card h3 {
  min-height: 46px;
  margin: 0 0 13px;
  color: #3b3237;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.22rem;
  line-height: 1.1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

.recipe-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: 28px 6vw;
  overflow: auto;
}

.recipe-modal[hidden] {
  display: none;
}

.recipe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 20, 37, 0.64);
  backdrop-filter: blur(10px);
}

.recipe-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: none;
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(26, 10, 22, 0.35);
}

.recipe-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(111, 33, 70, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.92);
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(58, 24, 40, 0.12);
}

.recipe-modal-media {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 247, 240, 0.98), rgba(246, 236, 230, 0.98));
}

.recipe-modal-media img {
  width: 100%;
  height: min(40vh, 340px);
  min-height: 260px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 16px 34px rgba(58, 24, 40, 0.12);
}

.recipe-modal-content {
  min-height: 0;
  overflow: visible;
  max-height: none;
  padding: 38px 42px 42px;
}

.recipe-modal-content h2 {
  max-width: 620px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
}

.recipe-servings {
  display: inline-flex;
  margin: 16px 0 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(111, 33, 70, 0.08);
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recipe-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}

.recipe-action-row .primary-button,
.secondary-action-button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.7rem;
}

.secondary-action-button {
  border: 1px solid rgba(111, 33, 70, 0.24);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.secondary-action-button:hover:not(:disabled),
.secondary-action-button[aria-pressed="true"] {
  border-color: var(--berry);
  background: rgba(111, 33, 70, 0.08);
  box-shadow: 0 12px 22px rgba(58, 24, 40, 0.1);
  transform: translateY(-2px);
}

.secondary-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.recipe-action-status {
  min-height: 19px;
  margin: 0 0 20px;
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 800;
}

.recipe-detail-section {
  margin: 0 0 28px;
  padding-top: 4px;
}

.recipe-detail-section[hidden] {
  display: none;
}

.recipe-detail-section h3 {
  margin: 0 0 12px;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  font-weight: 900;
}

.shopping-help {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.recipe-detail-section > ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-group {
  padding: 16px;
  border: 1px solid rgba(111, 33, 70, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.shopping-group h4 {
  margin: 0 0 12px;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
}

.shopping-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: #50464a;
  line-height: 1.42;
  font-size: 0.92rem;
  cursor: pointer;
}

.shopping-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(111, 33, 70, 0.36);
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.shopping-check input:checked {
  background:
    linear-gradient(135deg, transparent 45%, white 46% 54%, transparent 55%),
    linear-gradient(45deg, transparent 48%, white 49% 57%, transparent 58%),
    var(--berry);
  border-color: var(--berry);
}

.shopping-check input:checked + span {
  color: rgba(80, 70, 74, 0.55);
  text-decoration: line-through;
}

.recipe-caption {
  color: #50464a;
  line-height: 1.72;
  font-size: 0.98rem;
}

.recipe-caption p {
  margin: 0 0 16px;
}

.recipes-page-hero {
  padding: 72px 6vw 46px;
  background: #fff7f0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.recipes-page-hero h1 {
  margin: 0 auto;
}

.recipes-page-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.recipes-page-section {
  padding: 42px 6vw 58px;
}

.recipe-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recipes-page-section .category-grid {
  margin-bottom: 22px;
}

.instagram-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: 54px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255, 250, 245, 0.96), rgba(255, 247, 240, 0.94)),
    radial-gradient(circle at 84% 18%, rgba(166, 85, 108, 0.12), transparent 34%);
}

.instagram-copy {
  max-width: 480px;
}

.instagram-copy h2 {
  max-width: 470px;
}

.instagram-copy p:not(.eyebrow) {
  margin: 20px 0 26px;
  font-size: 1rem;
  font-weight: 600;
}

.instagram-button {
  min-width: 220px;
}

.instagram-profile-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(111, 33, 70, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(58, 24, 40, 0.1);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.instagram-profile-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.instagram-profile-card img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.instagram-profile-card span {
  position: absolute;
  right: 34px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.9);
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(58, 24, 40, 0.12);
}

.instagram-profile-card:hover {
  border-color: rgba(111, 33, 70, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(58, 24, 40, 0.15);
}

.instagram-profile-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.018);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: 30px;
  background: #fff7f0;
}

.about-copy {
  max-width: 720px;
}

.about-section p {
  margin-bottom: 26px;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(95, 31, 60, 0.16);
}

.site-footer {
  background:
    linear-gradient(120deg, rgba(66, 23, 45, 0.98), rgba(91, 33, 66, 0.96)),
    url("https://images.unsplash.com/photo-1590846406792-0adc7f938f1d?auto=format&fit=crop&w=1200&q=80") center / cover;
  color: #fff4f7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 34px;
  padding: 46px 6vw 34px;
}

.footer-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-color: rgba(255, 255, 255, 0.72);
}

.footer-brand p {
  max-width: 260px;
  margin: 0;
  color: #f7dce5;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: white;
  font-size: 0.82rem;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #f6dce5;
  font-size: 0.92rem;
}

.footer-socials a {
  display: inline-flex;
  width: auto;
  height: 34px;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 6vw;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #efd1db;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-band,
  .instagram-section {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-modal-card {
    grid-template-columns: 1fr;
  }

  .recipe-modal-media img {
    height: 260px;
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: center;
    text-align: center;
  }

  .topbar .socials {
    display: none;
  }

  .main-nav {
    min-height: 86px;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    padding: 0 5vw;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand-logo {
    width: 74px;
    height: 74px;
  }

  .search-button {
    grid-column: 3;
    grid-row: 1;
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    justify-self: end;
  }

  .search-button svg {
    width: 24px;
    height: 24px;
  }

  .menu-toggle {
    grid-column: 4;
    grid-row: 1;
    display: block;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 22px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .search-panel {
    inset: 129px 0 auto;
    max-height: calc(100vh - 129px);
    overflow: auto;
    padding: 0 5vw 24px;
  }

  .search-panel-inner {
    padding-top: 18px;
  }

  .search-form {
    gap: 8px;
  }

  .search-form input {
    min-height: 46px;
    padding: 0 13px;
    font-size: 0.82rem;
  }

  .search-close {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.64rem;
  }

  .search-summary {
    margin: 10px 0 12px;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .search-results {
    max-height: calc(100vh - 245px);
  }

  .hero {
    min-height: 450px;
    align-items: end;
    padding: 145px 5vw 30px;
    background:
      linear-gradient(180deg, rgba(255, 250, 245, 0.08) 0%, rgba(255, 250, 245, 0.7) 42%, rgba(255, 250, 245, 0.98) 76%),
      url("assets/hero.jpg") center top / cover;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 315px;
    font-size: 2.45rem;
    line-height: 0.98;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 315px;
    margin: 14px 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero .primary-button {
    width: auto;
    min-width: 178px;
    min-height: 46px;
    padding-inline: 20px;
    font-size: 0.72rem;
  }

  .category-section,
  .featured-band,
  .instagram-section,
  .about-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 9px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 0.86rem;
  }

  .filter-row {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .recipe-modal {
    display: block;
    padding: 0 0 calc(34px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .recipe-modal-card {
    display: block;
    width: 100%;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
    overflow: visible;
    border-radius: 0;
  }

  .recipe-modal-backdrop {
    position: fixed;
  }

  .recipe-modal-close {
    position: sticky;
    top: 12px;
    right: 12px;
    display: flex;
    width: fit-content;
    margin: 12px 12px -46px auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.62rem;
  }

  .recipe-modal-media img {
    height: 172px;
    min-height: 0;
  }

  .recipe-modal-content {
    padding: 24px 5vw 30px;
  }

  .recipe-modal-content h2 {
    font-size: 2rem;
    line-height: 1;
  }

  .recipe-servings {
    margin: 12px 0 18px;
    font-size: 0.68rem;
  }

  .recipe-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .recipe-action-row .primary-button,
  .secondary-action-button {
    width: 100%;
  }

  .recipe-action-status {
    margin-bottom: 16px;
  }

  .shopping-group ul {
    grid-template-columns: 1fr;
  }

  .recipe-caption {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  body[data-page="home"] #recipes .recipe-card:nth-child(n + 5) {
    display: none;
  }

  .recipe-card img,
  .recipe-card.image-missing::before {
    height: 126px;
  }

  .recipe-content {
    padding: 11px;
  }

  .recipe-card h3 {
    min-height: 48px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.08;
  }

  .meta {
    gap: 8px;
    font-size: 0.61rem;
    line-height: 1.25;
  }

  .latest .recipes-page-button {
    width: 100%;
    min-width: 0;
    margin-top: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .instagram-section {
    gap: 28px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .instagram-copy h2 {
    max-width: 330px;
    font-size: 2.55rem;
  }

  .instagram-copy p:not(.eyebrow) {
    max-width: 330px;
    margin: 16px 0 22px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .instagram-button {
    width: 100%;
    min-width: 0;
  }

  .instagram-profile-card {
    padding: 12px;
    background: white;
  }

  .instagram-profile-card::after {
    inset: 12px;
  }

  .instagram-profile-card img {
    max-height: none;
    object-fit: contain;
  }

  .instagram-profile-card span {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    background: #fff7f0;
  }

  .about-section {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .about-copy h2 {
    max-width: 350px;
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .about-section p {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .about-section .primary-button {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
    font-size: 0.74rem;
  }

  .about-photo img {
    aspect-ratio: 5 / 3;
    max-height: 230px;
    object-position: center 35%;
  }

  .site-footer {
    background:
      linear-gradient(180deg, rgba(66, 23, 45, 0.98), rgba(92, 31, 64, 0.98)),
      url("https://images.unsplash.com/photo-1590846406792-0adc7f938f1d?auto=format&fit=crop&w=900&q=70") center / cover;
  }

  .footer-inner {
    gap: 26px;
    padding: 34px 5vw 26px;
  }

  .footer-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
  }

  .footer-brand p {
    max-width: 300px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .site-footer h3 {
    margin-bottom: 12px;
    font-size: 0.76rem;
  }

  .site-footer a {
    margin: 7px 0;
    font-size: 0.95rem;
  }

  .site-footer .footer-inner > div:nth-child(3),
  .site-footer .footer-inner > div:nth-child(4) {
    display: none;
  }

  .footer-socials a {
    height: 38px;
    padding: 0 18px;
    border-color: rgba(255, 255, 255, 0.34);
  }

  .footer-bottom {
    flex-direction: column;
    padding: 15px 5vw 20px;
    font-size: 0.72rem;
    line-height: 1.45;
  }
}
