/* ZUGATI - content pages, blog, utility states. Owner: design-B. Loads after zugati.css.
   Uses design-A brand sheet v2 tokens only (fallbacks are the same hex values, for safety). */

:root {
  /* Brand (lead 21:43): near-black text/buttons, white, warm sand backgrounds, soft greys; sale red only */
  --pg-ink: #161616;
  --pg-ink-2: #3A3A38;
  --pg-paper: #FFFFFF;
  --pg-stone: #F5F2EC;       /* warm off-white / sand panels */
  --pg-green: #161616;        /* accents are black now (lead 21:43) */
  --pg-green-tint: #ECE7DE;   /* deeper sand */
  --pg-warm: #9C958A;         /* muted neutral */
  --pg-warm-tint: #ECE7DE;
  --pg-muted: #67625A;
  --pg-line: #E6E1D8;
  --pg-r-sm: 6px;
  --pg-r-md: 12px;
  --pg-r-lg: 20px;
  --pg-measure: 68ch;
  --pg-read: 700px;          /* article column */
}

/* =====================================================================
   1. Content pages (contact, wholesale, delivery, privacy, terms, tips)
   ===================================================================== */
.page-page .page-head { padding: 56px 0 40px; max-width: 760px; }
.page-page .page-head h1 { margin: 0; }
.page-page .page-head p { margin: 0; color: var(--pg-muted); font-size: 1.125rem; line-height: 1.55; max-width: 52ch; }
.page-page .page-content { padding: 0 0 96px; }

/* Long-form policy / advice text: sections separated by a hairline */
.page-page .page-content > .prose { max-width: var(--pg-measure); font-size: 1.0625rem; line-height: 1.7; }
.page-page .page-content > .prose h2 {
  margin: 48px 0 12px; padding-top: 32px; border-top: 1px solid var(--pg-line);
  font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em;
}
.page-page .page-content > .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-page .page-content > .prose p { color: var(--pg-ink); }

/* Two-column: message + "good to know" */
.content-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; padding-bottom: 0;
}
.content-grid .prose { max-width: 60ch; margin-bottom: 32px; }
.content-grid .prose p { color: var(--pg-ink); }
.content-grid .form { max-width: none; }
.content-aside {
  position: sticky; top: 120px; display: grid; gap: 4px;
  background: var(--pg-stone); border-radius: var(--pg-r-lg); padding: 32px;
}
.content-aside h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.content-aside dl { margin: 0; display: grid; gap: 0; }
.content-aside dl > div { padding: 16px 0 16px 22px; border-top: 1px solid var(--pg-line); position: relative; }
.content-aside dl > div:first-child { border-top: 0; padding-top: 4px; }
/* the brand dot marks each fact */
.content-aside dl > div::before {
  content: ""; position: absolute; left: 2px; top: 25px; width: 7px; height: 7px; border-radius: 50%; background: var(--pg-green);
}
.content-aside dl > div:first-child::before { top: 13px; }
.content-aside dt { font-weight: 600; font-size: 0.9375rem; margin-bottom: 2px; }
.content-aside dt a { text-decoration: none; }
.content-aside dt a:hover { text-decoration: underline; }
.content-aside dd { margin: 0; color: var(--pg-muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-aside { position: static; padding: 24px; }
}
@media (max-width: 720px) {
  .page-page .page-head { padding: 28px 0 28px; }
  .page-page .page-head p { font-size: 1.0625rem; }
  .page-page .page-content { padding-bottom: 64px; }
  .page-page .page-content > .prose h2 { margin-top: 36px; padding-top: 24px; }
}

/* Forms on content pages: roomy, calm */
.page-page .form { gap: 20px; }
.page-page .form .notice { margin: 0; }
.page-page .form__actions { padding-top: 4px; }
.page-page .form__actions .btn { min-width: 200px; }
@media (max-width: 560px) { .page-page .form__actions .btn { width: 100%; } }
.form .notice:not([hidden]) { animation: pg-in .25s ease-out; }
@keyframes pg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   2. Utility states: 404, checkout success / cancelled, empty states
   ===================================================================== */
.not-found {
  min-height: 56vh; max-width: 560px; margin: 0 auto; padding: 88px 0 112px;
  display: grid; gap: 12px; justify-items: center; align-content: center; text-align: center;
}
.not-found h1 { margin: 8px 0 4px; font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); }
.not-found p { margin: 0; color: var(--pg-muted); max-width: 46ch; }
.not-found .btn { margin-top: 12px; }
.not-found > .link { margin-top: 8px; }
/* the mark: a soft stone circle holding the brand dot */
.not-found::before {
  content: ""; width: 88px; height: 88px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 50%, var(--pg-ink) 0 7px, transparent 7.5px), var(--pg-stone);
}
/* 404: the dot has wandered off-centre */
.page-404 .not-found::before {
  background: radial-gradient(circle at 74% 30%, var(--pg-ink) 0 7px, transparent 8.5px), var(--pg-stone);
}
/* success: sage circle with a tick */
.not-found[data-checkout-success]::before {
  background: var(--pg-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.not-found .search-page__form {
  display: flex; gap: 8px; width: 100%; max-width: 440px; margin: 20px 0 4px;
}
.not-found .search-page__form input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border: 1px solid var(--pg-line); border-radius: 999px;
  background: var(--pg-paper); font-size: 1rem;
}
.not-found .search-page__form input:focus { outline: 2px solid var(--pg-ink); outline-offset: 2px; }
.not-found .search-page__form .btn { margin: 0; }
.state-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.state-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--pg-stone); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.state-links a:hover { background: var(--pg-green-tint); }
/* same mark on the shop's empty states (styles otherwise from zugati.css) */
.empty-state::before, .page-cart .cart-empty::before {
  content: ""; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 4px;
  background: radial-gradient(circle at 50% 50%, var(--pg-ink) 0 5px, transparent 5.5px), var(--pg-paper);
}
.page-cart .cart-empty::before { background: radial-gradient(circle at 50% 50%, var(--pg-ink) 0 5px, transparent 5.5px), var(--pg-stone); }
@media (max-width: 720px) {
  .not-found { padding: 56px 0 80px; min-height: 0; }
  .not-found::before { width: 72px; height: 72px; }
}

/* =====================================================================
   3. Blog: index (/blogs/news, /blogs/news/tagged/*)
   ===================================================================== */
.blog-index { padding-bottom: 112px; }
.blog-index .page-head { padding-bottom: 28px; }
.blog-streams { margin: 0 0 48px; }
.blog-streams ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.blog-streams .chip { text-decoration: none; }

.article-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px;
}
.article-card a { display: flex; flex-direction: column; gap: 0; text-decoration: none; color: inherit; }
.article-card__media {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--pg-r-md); overflow: hidden; background: var(--pg-stone); margin-bottom: 18px;
}
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.article-card a:hover .article-card__media img { transform: scale(1.025); }
.article-card__stream { display: block; margin: 0 0 6px; color: var(--pg-muted); font-size: 0.8125rem; font-weight: 500; }
.article-card h3, .article-card h2 {
  margin: 0 0 8px; font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance;
}
.article-card a:hover h3, .article-card a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--pg-muted); }
.article-card p {
  margin: 0; color: var(--pg-muted); font-size: 0.9375rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* lead story: big picture, words beside it */
.article-list--feature { display: block; margin: 0 0 96px; }
.article-card--feature a {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto auto 1fr;
  column-gap: 56px; align-items: start;
}
.article-card--feature .article-card__media { grid-row: 1 / -1; aspect-ratio: 3 / 2; margin: 0; border-radius: var(--pg-r-lg); }
.article-card--feature .article-card__stream { grid-row: 2; margin-bottom: 10px; font-size: 0.875rem; }
.article-card--feature h3 { grid-row: 3; }
.article-card--feature p { grid-row: 4; }
.article-card--feature a::after { grid-row: 5; }
.article-card--feature h3 {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 16px; align-self: start;
}
.article-card--feature p { font-size: 1.0625rem; -webkit-line-clamp: 4; align-self: start; max-width: 44ch; }
.article-card--feature .article-card__stream,
.article-card--feature h3, .article-card--feature p { grid-column: 2; }
.article-card--feature a::after {
  content: "Read the guide"; grid-column: 2; justify-self: start; margin-top: 24px;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--pg-ink); color: #fff; font-weight: 500; font-size: 0.9375rem;
}
.article-card--feature a:hover::after { background: var(--pg-ink-2); }
.blog-section > h2 { margin: 0 0 32px; font-size: var(--fs-2xl, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }

@media (max-width: 1000px) {
  .article-card--feature a { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; }
  .article-card--feature .article-card__media, .article-card--feature .article-card__stream, .article-card--feature h3,
  .article-card--feature p, .article-card--feature a::after { grid-row: auto; }
  .article-card--feature .article-card__media { margin-bottom: 20px; }
  .article-card--feature .article-card__stream, .article-card--feature h3, .article-card--feature p, .article-card--feature a::after { grid-column: 1; }
  .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
}
@media (max-width: 640px) {
  .blog-index { padding-bottom: 72px; }
  .blog-streams { margin-bottom: 32px; }
  .blog-streams ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter, 20px)); padding: 0 var(--gutter, 20px) 2px; }
  .blog-streams ul::-webkit-scrollbar { display: none; }
  .blog-streams li { flex: none; }
  .article-list--feature { margin-bottom: 64px; }
  .article-card--feature .article-card__media { border-radius: var(--pg-r-md); aspect-ratio: 4 / 3; }
  .article-card--feature a::after { margin-top: 18px; }
  .article-list { grid-template-columns: 1fr; gap: 40px; }
}

/* =====================================================================
   4. Blog: article page
   ===================================================================== */
.page-blog-article .breadcrumb { max-width: var(--pg-read); margin-inline: auto; }
.article { padding: 0 0 24px; }
.article__head { max-width: var(--pg-read); margin: 0 auto; padding: 40px 0 40px; }
.article__stream { margin: 0 0 16px; color: var(--pg-muted); font-size: 0.9375rem; font-weight: 500; }
.article__title {
  margin: 0 0 20px; font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance;
}
.article__excerpt { margin: 0 0 28px; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.5; color: var(--pg-ink-2); max-width: 56ch; }
.article__meta {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 0.875rem; color: var(--pg-muted);
  padding-top: 20px; border-top: 1px solid var(--pg-line);
}
.article__meta > * + * { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--pg-line); }
.article__author { color: var(--pg-ink); font-weight: 500; }
.article__hero {
  margin: 0 auto 64px; max-width: 1120px; aspect-ratio: 16 / 9; border-radius: var(--pg-r-lg); overflow: hidden; background: var(--pg-stone);
}
.article__hero img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; } /* storefront-v3: heroes are white packshots, keep them whole on the sand plate */

/* the reading column */
.article__body.prose {
  max-width: var(--pg-read); margin: 0 auto; font-size: 1.125rem; line-height: 1.75; color: var(--pg-ink);
}
.article__body.prose > p:first-child { font-size: 1.25rem; line-height: 1.65; }
.article__body.prose > * + * { margin-top: 1.1em; }
.article__body.prose h2 {
  margin-top: 2.4em; margin-bottom: 0; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.875rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500;
}
.article__body.prose h3 { margin-top: 1.9em; margin-bottom: 0; font-size: 1.1875rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.article__body.prose h2 + *, .article__body.prose h3 + * { margin-top: .55em; }
.article__body.prose ul { list-style: none; padding-left: 0; }
.article__body.prose ul > li { position: relative; padding-left: 26px; }
.article__body.prose ul > li::before {
  content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--pg-green);
}
.article__body.prose ol { padding-left: 1.4em; }
.article__body.prose ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.article__body.prose li + li { margin-top: .5em; }
.article__body.prose strong { font-weight: 600; }
.article__body.prose a { text-decoration-color: var(--pg-muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article__body.prose a:hover { text-decoration-color: var(--pg-ink); }
.article__body.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--pg-ink); font-size: 1.25rem; line-height: 1.55;
}
/* a "good to know" box if posts ever use one: <aside class="callout"> or <div class="callout"> */
.article__body .callout { background: var(--pg-green-tint); border-radius: var(--pg-r-md); padding: 20px 24px; font-size: 1rem; }
.article__body .callout > :first-child { margin-top: 0; }

/* product inside an article: one horizontal card on a stone panel */
.product-inline {
  margin: 2em 0 !important; padding: 16px; background: var(--pg-stone); border-radius: var(--pg-r-md);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 1rem; line-height: 1.55;
}
.product-inline .grid--inline, .product-inline .grid { list-style: none; margin: 0; padding: 0; display: block; }
.product-inline .card { margin: 0 !important; padding: 0 !important; }
.product-inline .card::before { content: none !important; }
.product-inline .card__link { grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: center; }
.product-inline .card__media { background: #fff; border-radius: 10px; }
.product-inline .card__media .badge { top: 8px; left: 8px; font-size: 0.6875rem; }
.product-inline .card__title { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; -webkit-line-clamp: 3; }
.product-inline .card__price { font-size: 1rem; }
.product-inline__note {
  margin: 14px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--pg-line);
  font-size: 0.9375rem; color: var(--pg-ink-2);
}
.product-inline__note .link { font-weight: 500; white-space: nowrap; }
@media (min-width: 720px) {
  .product-inline { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 20px; }
  .product-inline__note { margin: 0 !important; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--pg-line); }
}

/* FAQ */
.faq { max-width: var(--pg-read); margin: 80px auto 0; }
.faq > h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; }
.faq__item { border-top: 1px solid var(--pg-line); }
.faq__item:last-of-type { border-bottom: 1px solid var(--pg-line); }
.faq__item > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.4;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--pg-stone)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease, background-color .15s;
}
.faq__item > summary:hover::after { background-color: var(--pg-warm-tint); }
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 56px 24px 0; color: var(--pg-ink-2); font-size: 1rem; line-height: 1.7; }
.faq__answer p { margin: 0; }

/* Shop this guide + more guides */
.article-shop, .article-related { margin-top: 112px; padding-top: 56px; border-top: 1px solid var(--pg-line); }
.article-shop > h2, .article-related > h2 { margin: 0 0 32px; font-size: var(--fs-2xl, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.article-related { margin-top: 96px; padding-bottom: 96px; }
.article-shop + .article-related { margin-top: 96px; border-top: 1px solid var(--pg-line); }
@media (max-width: 720px) {
  .article__head { padding: 24px 0 28px; }
  .article__meta { column-gap: 16px; }
  .article__meta > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
  .article__hero { margin-bottom: 40px; border-radius: var(--pg-r-md); aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter, 20px)); border-radius: 0; }
  .article__body.prose { font-size: 1.0625rem; }
  .article__body.prose > p:first-child { font-size: 1.125rem; }
  .product-inline .card__link { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .faq { margin-top: 56px; }
  .faq__answer { padding-right: 0; }
  .article-shop, .article-related { margin-top: 72px; padding-top: 40px; }
  .article-related { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card__media img, .faq__item > summary::after { transition: none; }
  .article-card a:hover .article-card__media img { transform: none; }
  .form .notice:not([hidden]) { animation: none; }
}
