/* shoppingwebrecipe.com — homepage, shared header and footer */
:root {
  --berry: #883858;
  --plum: #6A2446;
  --coral: #E88868;
  --ink: #2E1323;
  --ink-soft: #5C3549;
  --blush: #FBF1EE;
  --paper: #FFFDFB;
  --line: #EAD5D9;
  --white: #ffffff;
  --font-head: "Faustina", Georgia, serif;
  --font-body: "Merriweather Sans", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0 0 .45em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--plum); text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 6px;
  background: var(--berry); color: var(--white);
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
}
.btn:hover { background: var(--plum); }

/* ---------- Header: recipe-card divider tabs ---------- */
.site-header {
  background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat, #F4E3E7;
}
.header-inner {
  display: grid; grid-template-columns: auto auto; justify-content: space-between;
  align-items: center; gap: 12px 20px; padding-top: 16px;
}
.brand { display: inline-block; border-radius: 4px; }
.brand img { width: 168px; height: auto; }
.header-btn {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px;
  border-radius: 5px; background: var(--berry); color: var(--white);
  font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap;
}
.header-btn { grid-column: 2; grid-row: 1; justify-self: end; }
.header-btn:hover { background: var(--plum); }
.header-nav {
  grid-row: 2;
  grid-column: 1 / -1; display: flex; gap: 4px; align-items: flex-end;
  overflow-x: auto; scrollbar-width: none; padding-top: 4px;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  flex: 0 0 auto;
  padding: 9px 18px 8px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 9px 9px 0 0; background: var(--tab, #F9EAE6);
  box-shadow: inset 0 -1px 0 var(--line);
  color: var(--ink); font-size: .92rem; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.header-nav a:nth-child(2) { --tab: #F7E0E6; }
.header-nav a:nth-child(3) { --tab: #FBEEEA; }
.header-nav a:nth-child(4) { --tab: #F3E6EE; }
.header-nav a:hover, .header-nav a:focus-visible {
  background: var(--blush); box-shadow: none; color: var(--plum);
}
.header-nav a:focus-visible { outline: 2px solid var(--berry); outline-offset: -5px; }

/* ---------- Sections ---------- */
main > section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Hero */
.hero { background: var(--blush); }
main > .hero { padding: clamp(48px, 7vw, 88px) 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 33em; margin-bottom: 28px; }
.hero-note { margin: 16px 0 0; font-size: .92rem; color: var(--ink-soft); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* How it works */
.steps-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 48px;
}
.steps-row li { max-width: 340px; }
.drawing { width: 150px; height: auto; margin-bottom: 20px; }
.steps-row p { color: var(--ink-soft); margin: 0; }

/* Example plans */
.plans { background: var(--blush); }
.plan-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.plan-row li { text-align: center; max-width: 320px; margin: 0 auto; }
.plan-row img {
  width: 200px; height: 200px; margin: 0 auto 22px;
  border-radius: 50%; object-fit: cover;
}
.plan-row p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* Aisle-sorted list */
.shop-grid { display: grid; gap: 48px; align-items: center; }
.shop-grid > * { min-width: 0; }
.shop-copy { max-width: 560px; }
.shop-copy p { color: var(--ink-soft); }
.lead { font-weight: 600; color: var(--ink) !important; }
.paper-list { justify-self: center; width: min(360px, 100%); }
.paper-sheet {
  position: relative;
  padding: 34px 28px 34px 52px;
  background: var(--paper)
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--line) 33px 34px);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  transform: rotate(-1.5deg);
}
.paper-sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 36px;
  border-left: 1.5px solid var(--coral);
}
.paper-head {
  font-family: var(--font-head); font-style: italic; font-size: 1.35rem;
  line-height: 34px; margin: 0 0 0;
}
.aisle {
  font-family: var(--font-head); font-weight: 600; color: var(--berry);
  font-size: 1rem; line-height: 34px; margin: 0;
}
.paper-sheet ul { list-style: none; margin: 0; padding: 0; }
.paper-sheet li {
  display: flex; justify-content: space-between; gap: 12px;
  line-height: 34px; font-size: .95rem; color: var(--ink);
}
.paper-sheet li span { color: var(--ink-soft); }
.paper-sheet li.got { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; color: var(--ink-soft); }

/* Why */
.why { border-top: 1px solid var(--line); }
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-grid > * { min-width: 0; }
.why-photo { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; }
.why-list { margin: 28px 0 0; }
.why-list div { padding: 20px 0; border-top: 1px solid var(--line); }
.why-list div:last-child { border-bottom: 1px solid var(--line); }
.why-list dt { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; margin-bottom: 4px; }
.why-list dd { margin: 0; color: var(--ink-soft); max-width: 34em; }

/* FAQ */
.faq { background: var(--blush); }
.faq-grid { display: grid; gap: 28px; }
.faq-grid h2 { max-width: 12em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; font-weight: 600; font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--berry); border-bottom: 2px solid var(--berry);
  transform: rotate(45deg);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 40em; }

/* Closing */
.closing-grid { display: grid; gap: 40px; align-items: center; }
.closing-grid > * { min-width: 0; }
.closing-copy p { color: var(--ink-soft); max-width: 32em; }
.closing-copy .btn { margin-top: 8px; }
.closing-note { margin: 16px 0 0; font-size: .9rem; }
.closing-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .92rem; color: var(--ink-soft); }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-logo img { width: 140px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { margin-top: 28px; }
.footer-base p { margin: 0 0 6px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 420px) {
  .brand img { width: 128px; }
  .header-inner { padding-top: 12px; column-gap: 12px; }
  .header-btn { padding: 0 12px; font-size: .84rem; min-height: 36px; }
  .header-nav { gap: 3px; border-radius: 0; }
  .header-nav a { padding: 8px 12px 7px; font-size: .86rem; }
  .btn { width: 100%; }
  .paper-sheet { padding: 34px 18px 34px 44px; }
  .paper-sheet::before { left: 30px; }
}
@media (min-width: 760px) {
  .steps-row { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .plan-row { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .shop-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; }
  .why-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .faq-grid { grid-template-columns: 1fr 1.8fr; gap: 64px; align-items: start; }
  .closing-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}
@media (max-width: 759px) {
  .steps-row { gap: 32px; }
  .steps-row li { display: grid; grid-template-columns: 92px 1fr; gap: 0 18px; align-items: start; max-width: none; }
  .steps-row .drawing { width: 92px; margin: 4px 0 0; grid-row: span 2; }
  .steps-row h3 { margin-bottom: .25em; }
  .plan-row { gap: 40px; }
  .plan-row img { width: 160px; height: 160px; margin-bottom: 16px; }
  .why-photo { max-height: 340px; }
}

/* hdr6:start */
/* Header v6: one row. Logo left, recipe-card divider tabs resting on the
   bottom rule; the last tab is the filled offer tab. */
.rc-head {
  position: static;
  background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat, #F4E3E7;
}

.rc-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.rc-brand {
  align-self: center;
  flex: none;
  display: inline-block;
  border-radius: 4px;
}

.rc-brand img {
  width: 164px;
  height: auto;
}

.rc-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.rc-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--tab, #F9EAE6);
  color: var(--ink);
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.rc-tabs a:nth-child(2) { --tab: #F7E0E6; }
.rc-tabs a:nth-child(3) { --tab: #FBEEEA; }
.rc-tabs a:nth-child(4) { --tab: #F3E6EE; }

.rc-tabs a:hover {
  background: var(--blush);
  color: var(--plum);
}

.rc-tabs a:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: -5px;
}

.rc-tabs .rc-go {
  margin-left: 10px;
  min-height: 50px;
  border-color: var(--berry);
  background: var(--berry);
  color: var(--white);
  font-weight: 600;
}

.rc-go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rc-tabs .rc-go:hover {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--white);
}

.rc-tabs .rc-go:focus-visible {
  outline-color: var(--white);
}

@media (max-width: 760px) {
  .rc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding-top: 14px;
  }

  .rc-brand { align-self: flex-start; }
  .rc-brand img { width: 136px; }

  .rc-tabs { gap: 3px; }

  .rc-tabs a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 clamp(6px, 2vw, 14px);
    font-size: .8rem;
  }

  .rc-tabs .rc-go {
    flex-grow: 2;
    margin-left: 4px;
    min-height: 48px;
  }

  .rc-go svg { width: 12px; height: 12px; }
}

@media (max-width: 370px) {
  .rc-tabs { gap: 2px; }
  .rc-tabs a { padding: 0 5px; font-size: .76rem; }
  .rc-tabs .rc-go { margin-left: 2px; gap: 3px; }
}
/* hdr6:end */

/* blog:start */
/* Fifth header tab (Blog) */
.rc-tabs a:nth-child(5) { --tab: #F8E4E0; }
.rc-tabs a[aria-current="page"] { background: var(--white); color: var(--plum); font-weight: 600; }

@media (max-width: 760px) {
  .rc-tabs a { padding: 0 clamp(4px, 1.5vw, 12px); font-size: .78rem; }
  .rc-tabs .rc-go { flex-grow: 1.6; margin-left: 3px; }
}
@media (max-width: 390px) {
  .rc-tabs { gap: 2px; }
  .rc-tabs a { padding: 0 4px; font-size: .74rem; }
  .rc-tabs .rc-go { margin-left: 2px; gap: 3px; }
  .rc-go svg { display: none; }
}

/* Homepage: latest articles as ruled index rows */
.latest { border-top: 1px solid var(--line); }
.latest-grid { display: grid; gap: 28px; }
.latest-grid > * { min-width: 0; }
.latest-head p { color: var(--ink-soft); margin: 0 0 14px; max-width: 22em; }
.latest-all { font-weight: 600; }
.latest-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-item {
  display: grid; grid-template-columns: 1fr 88px; gap: 18px; align-items: center;
  padding: 18px 0; color: var(--ink); text-decoration: none;
}
.latest-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.latest-label { font-size: .82rem; font-weight: 600; color: var(--berry); }
.latest-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.25; }
.latest-meta { font-size: .86rem; color: var(--ink-soft); }
.latest-fig img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; }
.latest-item:hover .latest-title { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (min-width: 760px) {
  .latest-item { grid-template-columns: 1fr 132px; gap: 32px; padding: 22px 0; }
  .latest-fig img { width: 132px; height: 99px; }
}
@media (min-width: 960px) {
  .latest-grid { grid-template-columns: 1fr 1.8fr; gap: 64px; align-items: start; }
}
/* blog:end */
