/* =========================================================
   Skillet Night — American home-cooking share aesthetic
   Cast-iron charcoal · butter gold · cool paper · sage
   ========================================================= */

:root {
  --ink: #1c2128;
  --ink-soft: #3a424e;
  --paper: #f2f4f7;
  --paper-deep: #e6eaf0;
  --white: #ffffff;
  --butter: #e4b23c;
  --butter-deep: #c99520;
  --sage: #5b7c6a;
  --sage-deep: #456354;
  --denim: #2f4a6e;
  --line: rgba(28, 33, 40, 0.12);
  --shadow-soft: 0 18px 40px rgba(28, 33, 40, 0.12);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --radius: 4px;
  --max: 72rem;
  --measure: 40rem;
  --header-h: 4.25rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(228, 178, 60, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(91, 124, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #eef1f5 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--denim);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--butter-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, 48rem);
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(242, 244, 247, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 244, 247, 0.94);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--butter), var(--butter-deep));
  display: inline-block;
  transform: translateY(-0.05em) rotate(8deg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-cat > a {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 1.15rem;
  height: 0.85rem;
  display: block;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle__bars::before {
  top: 0;
  box-shadow: 0 0.325rem 0 var(--ink);
}

.nav-toggle__bars::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0.325rem;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: auto;
  top: 0.325rem;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--butter);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--butter-deep);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--denim);
  color: var(--white);
}

/* ---------- Hero (one composition) ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__media img {
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(16, 20, 26, 0.82) 0%, rgba(16, 20, 26, 0.55) 42%, rgba(16, 20, 26, 0.28) 100%),
    linear-gradient(0deg, rgba(16, 20, 26, 0.55) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-5) 0 calc(var(--space-5) + 0.5rem);
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2 + 1rem));
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.32s forwards;
}

.hero__lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.46s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.58s forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-5) 0;
}

.section__head {
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.section__head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.section__head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.08rem;
}

.section--band {
  background:
    linear-gradient(135deg, rgba(47, 74, 110, 0.06), rgba(91, 124, 106, 0.08)),
    var(--paper-deep);
  border-block: 1px solid var(--line);
}

/* ---------- Recipe rail (interaction list, not card grid chrome) ---------- */
.recipe-rail {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.recipe-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.recipe-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.recipe-item:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.recipe-item:nth-child(even) .recipe-item__media {
  order: 2;
}

.recipe-item__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.recipe-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.recipe-item:hover .recipe-item__media img {
  transform: scale(1.04);
}

.recipe-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.recipe-item__title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 0.55rem;
}

.recipe-item__title a {
  color: var(--ink);
  text-decoration: none;
}

.recipe-item__title a:hover {
  color: var(--denim);
}

.recipe-item__excerpt {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.recipe-item__link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--butter);
  padding-bottom: 0.1rem;
}

.recipe-item__link:hover {
  color: var(--butter-deep);
  border-bottom-color: var(--butter-deep);
}

.recipe-item__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, #d8dee8, #c5d0c8 45%, #e8d9a8);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: rgba(28, 33, 40, 0.45);
}

/* ---------- Share strip ---------- */
.share-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.share-strip__visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.share-strip__visual picture,
.share-strip__visual img {
  width: 100%;
  height: 100%;
  display: block;
}

.share-strip__visual img {
  object-fit: cover;
}

.share-strip__copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.share-strip__copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 28rem;
}

.share-points {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.share-points li {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.share-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--butter);
  border-radius: 1px;
  transform: rotate(12deg);
}

/* ---------- Categories ---------- */
.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.cat-link:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- Single recipe ---------- */
.recipe-hero {
  padding: var(--space-4) 0 var(--space-3);
}

.crumb {
  margin-bottom: 1rem;
}

.crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.crumb__list a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb__list a:hover {
  color: var(--ink);
}

.recipe-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.recipe-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 0.75rem;
}

.recipe-hero__excerpt {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.recipe-hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}

.recipe-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content {
  padding: var(--space-4) 0 var(--space-5);
  font-size: 1.1rem;
}

.entry-content > * {
  max-width: var(--measure);
}

.entry-content .alignwide {
  max-width: min(100%, 56rem);
}

.entry-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.entry-content h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
}

.entry-footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

/* ---------- Page ---------- */
.page-hero {
  padding: var(--space-5) 0 var(--space-3);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* ---------- Archive ---------- */
.archive-hero {
  padding: var(--space-4) 0 var(--space-3);
}

.archive-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-5);
  padding: var(--space-5) 0 var(--space-4);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--butter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.footer-copy {
  max-width: 28rem;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: var(--space-3) 0;
}

.pagination a,
.pagination span {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
}

/* ---------- Motion reduce ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .recipe-item {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root {
    --header-h: 3.75rem;
    --space-4: 1.75rem;
    --space-5: 2.75rem;
  }

  body {
    font-size: 1rem;
  }

  .wrap,
  .wrap--narrow {
    width: min(100% - 1.25rem, var(--max));
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    background: rgba(242, 244, 247, 0.98);
    padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    display: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    display: block;
    animation: riseIn 0.28s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
  }

  .hero {
    min-height: min(78svh, 42rem);
    align-items: end;
  }

  .hero__media img {
    animation: none;
    transform: scale(1.02);
  }

  .hero__content {
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
    max-width: none;
  }

  .hero__brand {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero__headline {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
  }

  .hero__lede {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.95rem 1.1rem;
  }

  .section__head h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .recipe-item,
  .recipe-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recipe-item:nth-child(even) .recipe-item__media {
    order: 0;
  }

  .recipe-item__media {
    aspect-ratio: 16 / 10;
  }

  .recipe-item__title {
    font-size: 1.35rem;
  }

  .recipe-item__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .share-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .share-strip__visual {
    aspect-ratio: 16 / 11;
  }

  .cat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .cat-link {
    justify-content: center;
    min-height: 48px;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.92rem;
  }

  .recipe-hero__title {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .recipe-hero__figure {
    aspect-ratio: 4 / 3;
    margin-inline: -0.15rem;
  }

  .entry-content {
    font-size: 1.05rem;
    padding-top: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .pagination a,
  .pagination span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .cat-row {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.15rem;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (min-width: 861px) {
  body {
    background-attachment: fixed;
  }
}