/*
Theme Name: Petie Cottagecore
Theme URI: https://petie.pl/
Author: Petie
Description: Warm cottagecore ecommerce and journal theme for Petie.
Version: 1.0.0
Requires at least: 6.0
Text Domain: petie-cottagecore
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --petie-cream: #f4ecdd;
  --petie-paper: #fffdf8;
  --petie-warm: #eadfc9;
  --petie-ink: #2a1f14;
  --petie-deep: #1f2a14;
  --petie-brown: #3a2418;
  --petie-rust: #c5613c;
  --petie-moss: #6b7f4a;
  --petie-sage: #9ca67a;
  --petie-line: rgba(58, 36, 24, .16);
  --petie-shadow: 0 18px 38px rgba(58, 36, 24, .13);
  --petie-radius: 10px;
  --petie-serif: "Cormorant Garamond", Georgia, serif;
  --petie-sans: "Archivo", Arial, sans-serif;
}

/* Article template v2 */
.petie-article-v2 {
  --article-bg: #f4ecdd;
  --article-paper: #fffaf6;
  --article-ink: #24180f;
  --article-muted: rgba(36, 24, 15, .64);
  --article-line: rgba(58, 36, 24, .14);
  background: var(--article-bg);
  overflow-x: hidden;
}
.petie-article-v2 *,
.petie-article-v2 *::before,
.petie-article-v2 *::after {
  min-width: 0;
}
.article-hero-v2 {
  padding: clamp(2.2rem, 4.2vw, 4.8rem) 0 clamp(1.6rem, 3vw, 3rem);
}
.article-hero-v2 .blog-breadcrumbs {
  margin-bottom: clamp(1.4rem, 2.2vw, 2.2rem);
}
.article-hero-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: end;
}
.article-hero-v2__copy {
  min-width: 0;
}
.article-hero-v2 .blog-article-meta {
  margin-bottom: 1.2rem;
}
.article-hero-v2 h1 {
  max-width: 820px;
  margin: 0;
  color: var(--article-ink);
  font-family: var(--petie-serif);
  font-size: clamp(3.2rem, 5.2vw, 5.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .96;
}
.article-hero-v2 .blog-article-lead {
  max-width: 620px;
  margin: 1.15rem 0 0;
  color: var(--article-muted);
  font-family: var(--petie-sans);
  font-size: clamp(1.05rem, .95rem + .32vw, 1.32rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
}
.article-hero-v2 .blog-author-strip {
  width: min(100%, 620px);
  margin-top: 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--article-line);
  border-bottom: 0;
}
.article-hero-v2 .blog-author-actions {
  display: none;
}
.article-hero-v2__media {
  position: relative;
  margin: 0;
  min-width: 0;
}
.article-hero-v2__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 660px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(58, 36, 24, .15);
}
.article-hero-v2__media figcaption {
  margin-top: .65rem;
  color: var(--article-muted);
  font-size: .82rem;
}
.article-shell-v2 {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}
.petie-article-v2 .blog-article-content {
  color: var(--article-ink);
  font-size: clamp(1.04rem, .98rem + .18vw, 1.16rem);
  line-height: 1.74;
}
.petie-article-v2 .blog-article-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.petie-article-v2 .petie-longform {
  max-width: none;
}
.petie-article-v2 .entry-content .petie-longform,
.petie-article-v2 .entry-content .petie-longform > section,
.petie-article-v2 .entry-content .petie-longform > footer,
.petie-article-v2 .entry-content .petie-longform > aside {
  max-width: 760px;
}
.petie-article-v2 .petie-longform .intro-card {
  max-width: 920px;
  margin: 0 auto clamp(1.8rem, 3vw, 2.6rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--article-line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(248, 241, 229, .74));
  box-shadow: 0 16px 44px rgba(58, 36, 24, .08);
}
.petie-article-v2 .petie-longform .answer {
  max-width: 780px;
  margin: 0 0 1.05rem;
  font-size: clamp(1.12rem, 1rem + .36vw, 1.42rem);
  line-height: 1.48;
  font-weight: 800;
}
.petie-article-v2 .petie-longform .decision-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.25rem;
}
.petie-article-v2 .petie-longform .decision {
  padding: 1rem;
  border: 1px solid rgba(107, 127, 74, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  font-size: .96rem;
  line-height: 1.55;
}
.petie-article-v2 .petie-longform .decision b {
  margin-bottom: .3rem;
  color: var(--article-ink);
  font-size: 1rem;
}
.petie-article-v2 .entry-content .petie-longform > .toc {
  max-width: 920px;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--article-line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .7);
  box-shadow: none;
}
.petie-article-v2 .petie-longform .toc strong {
  margin-bottom: .55rem;
  color: var(--article-ink);
  font-size: .98rem;
  letter-spacing: 0;
  text-transform: none;
}
.petie-article-v2 .petie-longform .toc a {
  padding: .55rem 0;
  color: rgba(36, 24, 15, .78);
  font-size: .96rem;
  line-height: 1.35;
}
.petie-article-v2 .blog-article-content p {
  margin: 0 0 1.15rem;
}
.petie-article-v2 .blog-article-content h2 {
  margin-top: clamp(2.35rem, 4vw, 3.6rem);
  margin-bottom: .85rem;
  color: var(--article-ink);
  font-family: var(--petie-serif);
  font-size: clamp(2rem, 3.1vw, 3.05rem);
  line-height: 1.08;
}
.petie-article-v2 .blog-article-content h3 {
  margin-top: 1.45rem;
  color: var(--article-ink);
  font-family: var(--petie-serif);
  font-size: clamp(1.35rem, 1.9vw, 1.95rem);
  line-height: 1.16;
}
.petie-article-v2 .petie-longform .photo-break {
  max-width: 920px;
  margin: clamp(1.8rem, 3.5vw, 3rem) auto;
}
.petie-article-v2 .petie-longform .photo-break img {
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(58, 36, 24, .1);
}
.petie-article-v2 .petie-longform .photo-break figcaption {
  padding: .6rem .2rem 0;
  color: var(--article-muted);
  font-size: .88rem;
}
.petie-article-v2 .petie-longform .editorial-callout,
.petie-article-v2 .petie-longform .human-note,
.petie-article-v2 .petie-longform .faq-item,
.petie-article-v2 .blog-remember,
.petie-article-v2 .blog-author-box {
  border-radius: 22px;
  box-shadow: none;
}
.petie-article-v2 .petie-longform .editorial-callout {
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--petie-moss);
  background: rgba(255, 253, 248, .78);
}
.petie-article-v2 .petie-longform .human-note {
  padding: 1rem 1.1rem;
  background: #fff7e7;
}
.petie-article-v2 table {
  font-size: .95rem;
  line-height: 1.45;
}
.petie-article-v2 th,
.petie-article-v2 td {
  padding: .82rem .9rem;
}

@media (max-width: 900px) {
  .article-hero-v2__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .article-hero-v2__media {
    order: -1;
  }
  .article-hero-v2__media img {
    aspect-ratio: 1.35;
    max-height: none;
  }
}

@media (max-width: 740px) {
  .article-hero-v2 {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    padding: 1.1rem 0 1.35rem;
  }
  .article-hero-v2__media {
    order: 0;
  }
  .article-hero-v2 .blog-breadcrumbs {
    margin-bottom: .85rem;
    font-size: .78rem;
  }
  .article-hero-v2 .blog-article-meta {
    gap: .5rem;
    margin-bottom: .85rem;
  }
  .article-hero-v2 .blog-article-meta a {
    min-height: 32px;
    padding: .35rem .72rem;
    font-size: .68rem;
    letter-spacing: .08em;
  }
  .article-hero-v2 .blog-article-meta span {
    font-size: .82rem;
  }
  .article-hero-v2 .blog-article-meta span:last-child {
    display: none;
  }
  .article-hero-v2 h1 {
    max-width: 18ch;
    font-size: clamp(1.78rem, 8.1vw, 2.38rem);
    line-height: 1.05;
  }
  .article-hero-v2 .blog-article-lead {
    max-width: 34ch;
    margin-top: .8rem;
    font-size: .98rem;
    line-height: 1.52;
  }
  .article-hero-v2 .blog-author-strip {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    width: 100%;
    margin-top: 1rem;
    padding-top: .85rem;
    gap: .7rem;
  }
  .article-hero-v2 .blog-author-avatar {
    width: 38px;
    height: 38px;
  }
  .article-hero-v2 .blog-author-strip span {
    display: none;
  }
  .article-hero-v2__media img {
    aspect-ratio: 1.15;
    border-radius: 22px;
  }
  .article-hero-v2__media figcaption {
    font-size: .78rem;
  }
  .article-shell-v2 {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    overflow-x: hidden;
  }
  .petie-article-v2 .blog-article-content {
    font-size: 1rem;
    line-height: 1.68;
  }
  .petie-article-v2 .entry-content .petie-longform,
  .petie-article-v2 .entry-content .petie-longform > section,
  .petie-article-v2 .entry-content .petie-longform > footer,
  .petie-article-v2 .entry-content .petie-longform > aside {
    max-width: 100%;
  }
  .petie-article-v2 .petie-longform .intro-card {
    margin-bottom: 1.35rem;
    padding: 1rem;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  .petie-article-v2 .petie-longform .intro-card *,
  .petie-article-v2 .blog-article-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .petie-article-v2 .petie-longform .intro-card .answer {
    max-width: 26ch;
  }
  .petie-article-v2 .petie-longform .intro-card p:not(.answer) {
    max-width: 29ch;
  }
  .petie-article-v2 .petie-longform .answer {
    font-size: 1.03rem;
    line-height: 1.52;
  }
  .petie-article-v2 .petie-longform .decision-row {
    grid-template-columns: 1fr;
    gap: .72rem;
  }
  .petie-article-v2 .entry-content .petie-longform > .toc {
    padding: 1rem;
    border-radius: 18px;
  }
  .petie-article-v2 .blog-article-content h2 {
    margin-top: 2.1rem;
    font-size: clamp(1.55rem, 7.2vw, 2.05rem);
    line-height: 1.12;
  }
  .petie-article-v2 .blog-article-content h3 {
    font-size: clamp(1.2rem, 5.2vw, 1.42rem);
  }
  .petie-article-v2 .petie-longform .photo-break {
    margin: 1.5rem auto;
  }
  .petie-article-v2 .petie-longform .photo-break img {
    border-radius: 18px;
  }
  .petie-article-v2 table {
    display: block;
    overflow-x: auto;
    font-size: .88rem;
  }
  .petie-article-v2 th,
  .petie-article-v2 td {
    min-width: 150px;
    padding: .7rem;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--petie-cream);
  color: var(--petie-ink);
  font-family: var(--petie-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.petie-topbar {
  background: var(--petie-deep);
  color: var(--petie-cream);
  font-size: 12px;
}
.petie-topbar__inner {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.petie-topbar span:last-child { opacity: .78; }

.petie-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--petie-cream);
  border-bottom: 0;
  backdrop-filter: none;
}
.petie-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
}
.petie-brand {
  color: var(--petie-ink);
  font-family: var(--petie-serif);
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.petie-brand__word { display: inline-block; }
.petie-brand__dot { color: var(--petie-rust); }
.petie-brand small {
  display: none;
  margin-top: .2rem;
  color: var(--petie-moss);
  font-family: var(--petie-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.petie-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.petie-nav::-webkit-scrollbar { display: none; }
.petie-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .2rem 0;
  border-radius: var(--petie-radius);
  color: #322218;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.petie-nav a:hover,
.petie-nav a:focus-visible {
  background: transparent;
  color: var(--petie-rust);
  outline: none;
}

.petie-header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.petie-pill {
  min-height: 35px;
  padding: .45rem .75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--petie-ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.petie-pill--dark {
  background: var(--petie-rust);
  color: #fffaf1;
  border-color: var(--petie-rust);
}

.cottage-hero {
  display: grid;
  grid-template-columns: minmax(0, 595px) minmax(300px, 541px);
  gap: 48px;
  align-items: center;
  min-height: 520px;
  padding: 48px 0 42px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--petie-moss);
  color: var(--petie-cream);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: none;
}
.cottage-hero h1,
.page-title,
.entry-title {
  margin: 0;
  color: var(--petie-ink);
  font-family: var(--petie-serif);
  font-size: clamp(3.7rem, 6.2vw, 78px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: 0;
}
.cottage-hero h1 span {
  display: inline;
  color: var(--petie-rust);
  font-style: italic;
}
.cottage-hero__lead {
  max-width: 480px;
  margin: 20px 0 0;
  color: rgba(42,31,20,.75);
  font-size: 15px;
  line-height: 1.5;
}
.cottage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 28px;
}
.cottage-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid var(--petie-rust);
  border-radius: 999px;
  background: var(--petie-rust);
  color: #fffaf1;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.cottage-button--ghost {
  background: transparent;
  border-color: var(--petie-line);
  color: var(--petie-ink);
}
.cottage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  max-width: 420px;
  margin-top: 34px;
}
.cottage-stat {
  padding: 0;
  border: 0;
  background: transparent;
}
.cottage-stat b {
  display: block;
  font-family: var(--petie-serif);
  font-size: 22px;
  line-height: 1;
}
.cottage-stat span {
  display: block;
  margin-top: .35rem;
  color: rgba(42,31,20,.72);
  font-size: 13px;
}

.hero-card {
  position: relative;
  overflow: visible;
  min-height: 430px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero-card__badge,
.hero-card__product {
  position: absolute;
  padding: 1rem;
  border-radius: var(--petie-radius);
  background: var(--petie-cream);
  border: 1px solid var(--petie-line);
  backdrop-filter: none;
}
.hero-card__badge {
  top: 42px;
  left: 60px;
  right: auto;
  left: auto;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--petie-moss);
  color: var(--petie-cream);
  text-transform: uppercase;
  font-family: var(--petie-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}
.hero-card__product {
  left: 8px;
  top: 200px;
  width: 260px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--petie-paper);
  box-shadow: var(--petie-shadow);
}
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border: 0;
}
.hero-card::before {
  right: 0;
  top: 0;
  bottom: auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--petie-rust);
}
.hero-card::after {
  right: 126px;
  top: 150px;
  left: auto;
  bottom: auto;
  width: 104px;
  height: 92px;
  border-radius: 14px 14px 18px 18px;
  background: var(--petie-cream);
  box-shadow:
    18px -20px 0 -12px var(--petie-cream),
    -18px -20px 0 -12px var(--petie-cream),
    0 0 0 0 var(--petie-cream);
}
.hero-card__face {
  position: absolute;
  right: 154px;
  top: 184px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--petie-rust);
  box-shadow: 38px 0 0 var(--petie-rust), 19px 26px 0 3px var(--petie-rust);
}
.hero-card__product strong {
  display: block;
  font-family: var(--petie-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
}
.hero-card__product span {
  display: block;
  margin-top: .35rem;
  color: var(--petie-rust);
  font-size: 14px;
  font-weight: 500;
}

.home-section {
  padding: 48px 0;
}
.home-section--journal {
  background: var(--petie-warm);
  margin-top: 10px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--petie-serif);
  font-size: clamp(2.25rem, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}
.section-heading p,
.section-heading a {
  color: rgba(42,31,20,.72);
  font-weight: 400;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.category-tile {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--petie-line);
  border-radius: var(--petie-radius);
  background: #d8a66f;
  box-shadow: none;
  text-decoration: none;
}
.category-tile:hover { background: #fff; transform: translateY(-2px); }
.category-tile strong {
  font-family: var(--petie-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.category-tile small {
  display: block;
  font-size: 18px;
}
.category-tile span {
  color: var(--petie-moss);
  font-weight: 400;
}
.category-tile:nth-child(2) { background: #9ca67a; }
.category-tile:nth-child(3) { background: #c9633d; color: #fffaf1; }
.category-tile:nth-child(3) span { color: #fffaf1; }
.category-tile:nth-child(4) { background: #33462e; color: #fffaf1; }
.category-tile:nth-child(4) span { color: #fffaf1; }
.category-tile:nth-child(5) { background: #e5bd85; }
.category-tile:nth-child(6) { background: #aa906b; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.journal-card,
.post-card {
  overflow: hidden;
  border: 1px solid var(--petie-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.journal-card a,
.post-card a { text-decoration: none; }
.journal-card img,
.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.85;
  object-fit: cover;
}
.journal-card__body,
.post-card__body { padding: 1rem; }
.journal-card small,
.post-card small {
  color: var(--petie-moss);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.journal-card h3,
.post-card h2 {
  margin: .45rem 0 0;
  font-family: var(--petie-serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.content-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.entry-header {
  max-width: 960px;
  margin: 0 auto clamp(1.8rem, 4vw, 3.2rem);
}
.entry-title {
  font-size: clamp(3rem, 6vw, 6.2rem);
}
.entry-meta {
  margin-top: 1rem;
  color: #6e604f;
  font-weight: 700;
}
.entry-content {
  font-size: clamp(1.04rem, .98rem + .22vw, 1.16rem);
  line-height: 1.78;
}
.entry-content > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content h2 {
  margin-top: 3.2rem;
  font-family: var(--petie-serif);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}
.entry-content h3 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
  line-height: 1.25;
}
.entry-content figure img {
  border-radius: var(--petie-radius);
  box-shadow: var(--petie-shadow);
}
.entry-content figcaption {
  color: #6d6254;
  font-size: .92rem;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--petie-line);
  border-radius: var(--petie-radius);
}
.entry-content th,
.entry-content td {
  padding: .9rem;
  border-bottom: 1px solid var(--petie-line);
}
.entry-content th {
  background: var(--petie-ink);
  color: #fffaf1;
}

.petie-longform {
  --petie-ink: #1f2a14;
  --petie-muted: #665749;
  --petie-leaf: #627344;
  --petie-line: rgba(58, 36, 24, .14);
  color: var(--petie-ink);
}
.entry-content .petie-longform,
.entry-content .petie-longform > section,
.entry-content .petie-longform > footer,
.entry-content .petie-longform > aside { max-width: 860px; }
.petie-longform .intro-card,
.petie-longform .editorial-callout,
.petie-longform .human-note,
.petie-longform .compare .panel,
.petie-longform .faq-item,
.petie-longform .toc,
.petie-longform .guide-card,
.petie-longform .author-box {
  border: 1px solid var(--petie-line);
  border-radius: var(--petie-radius);
  background: rgba(255,253,248,.82);
}
.petie-longform .intro-card {
  padding: clamp(1.05rem, 2.2vw, 1.55rem);
  background: linear-gradient(135deg, rgba(255,253,248,.94), rgba(244,236,221,.82));
  box-shadow: 0 12px 30px rgba(58,36,24,.06);
}
.petie-longform .answer {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, .98rem + .25vw, 1.24rem);
  line-height: 1.55;
  font-weight: 700;
}
.petie-longform .decision-row,
.petie-longform .mini-grid,
.petie-longform .checklist,
.petie-longform .guide-grid,
.petie-longform .soft-list,
.petie-longform .compare {
  display: grid;
  gap: 1rem;
}
.petie-longform .decision-row,
.petie-longform .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.petie-longform .checklist,
.petie-longform .guide-grid,
.petie-longform .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.petie-longform .decision,
.petie-longform .mini,
.petie-longform .check,
.petie-longform .soft-item {
  padding: .9rem;
  border: 1px solid rgba(98,115,68,.18);
  border-radius: var(--petie-radius);
  background: rgba(255,255,255,.56);
}
.petie-longform .decision b,
.petie-longform .mini b,
.petie-longform .soft-item b,
.petie-longform .guide-card b,
.petie-longform .guide-card span,
.petie-longform .toc strong,
.petie-longform .toc a { display: block; }
.petie-longform .human-note {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  background: #fff7e7;
  border-color: rgba(120, 88, 41, .24);
  font-weight: 700;
}
.petie-longform .photo-break { margin: 1.6rem 0 2rem; }
.petie-longform .photo-break img,
.petie-longform .guide-card img {
  display: block;
  width: 100%;
  border-radius: var(--petie-radius);
  box-shadow: var(--petie-shadow);
}
.petie-longform .photo-break figcaption {
  padding: .55rem .2rem 0;
  color: var(--petie-muted);
  font-size: .88rem;
}
.petie-longform .compare { margin: 1.5rem 0; }
.petie-longform .compare .panel,
.petie-longform .faq-item,
.petie-longform .toc { padding: 1rem 1.1rem; }
.petie-longform .compare .good { background: rgba(232, 239, 214, .72); }
.petie-longform .compare .bad { background: rgba(255, 247, 231, .9); }
.petie-longform .editorial-callout {
  margin: 1.35rem 0;
  padding: 1rem;
  background: rgba(255,253,248,.86);
  border-left: 5px solid var(--petie-moss);
}
.petie-longform .editorial-callout h3,
.petie-longform .faq-item h3 { margin-top: 0; }
.petie-longform .check::before {
  content: "";
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-right: .55rem;
  border-radius: 999px;
  background: var(--petie-moss);
}
.petie-longform .guide-card { overflow: hidden; }
.petie-longform .guide-card div { padding: 1rem; }
.petie-longform .guide-card span {
  margin-top: .35rem;
  color: var(--petie-muted);
}
.petie-longform .soft-list { grid-template-columns: 1fr; }
.petie-longform .faq-item {
  margin: 1rem 0;
  background: rgba(255,253,248,.66);
}
.entry-content .petie-longform > .toc {
  margin-top: 0;
  margin-bottom: 2rem;
  background: rgba(255,253,248,.78);
  box-shadow: 0 14px 34px rgba(58,36,24,.06);
}
.petie-longform .toc a {
  padding: .45rem 0;
  color: var(--petie-ink);
  border-top: 1px solid rgba(58,36,24,.12);
  text-decoration: none;
}
.petie-longform .author-box {
  margin-top: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255,253,248,.9), rgba(244,236,221,.74));
}
.petie-longform .author-box h2 { margin-top: 0; }
.petie-longform section:not(.intro-card):not(.author-box) { scroll-margin-top: 104px; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.journal-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}
.journal-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journal-pagination a,
.journal-pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  border: 1px solid var(--petie-line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--petie-ink);
  font-weight: 700;
  text-decoration: none;
}
.journal-pagination .current {
  border-color: var(--petie-rust);
  background: var(--petie-rust);
  color: #fffaf1;
}
.journal-pagination .prev,
.journal-pagination .next {
  padding-inline: 1rem;
}
.archive-pagination {
  margin-bottom: 2rem;
}

.category-page {
  background: var(--petie-cream);
  color: var(--petie-ink);
  overflow-x: hidden;
}
.category-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: rgba(42, 31, 20, .62);
  font-size: .92rem;
}
.category-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.category-breadcrumbs a:hover { color: var(--petie-rust); }
.category-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.category-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--petie-ink);
  font-family: var(--petie-serif);
  font-size: clamp(3.4rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: 0;
}
.category-hero p {
  max-width: 720px;
  margin: 1.1rem 0 0;
  color: rgba(42, 31, 20, .72);
  font-size: 1.05rem;
}
.category-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.category-hero__meta span {
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #fffaf1;
  color: var(--petie-moss);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-hero__note {
  padding: 1.3rem;
  border: 1px solid var(--petie-line);
  border-radius: 18px;
  background: #fffaf1;
  box-shadow: var(--petie-shadow);
}
.category-hero__note strong {
  display: block;
  color: var(--petie-rust);
  font-family: var(--petie-serif);
  font-size: 2rem;
  line-height: 1;
}
.category-hero__note p {
  margin-top: .7rem;
  font-size: .98rem;
}
.category-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  padding-bottom: 3rem;
}
.category-post-card {
  overflow: hidden;
  border: 1px solid var(--petie-line);
  border-radius: 18px;
  background: #fffaf1;
}
.category-post-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.category-post-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--petie-warm);
}
.category-post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  transition: transform .25s ease;
}
.category-post-card a:hover img { transform: scale(1.035); }
.category-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem;
}
.category-post-card small {
  color: var(--petie-moss);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-post-card h2 {
  margin: .6rem 0 .65rem;
  font-family: var(--petie-serif);
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.02;
}
.category-post-card p {
  margin: 0 0 1rem;
  color: rgba(42, 31, 20, .74);
}
.category-post-card__body > span {
  margin-top: auto;
  color: var(--petie-rust);
  font-weight: 800;
}
.category-empty { padding: 3rem 0 5rem; }
.blog-category-empty {
  max-width: 760px;
  margin: 0 auto 5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 244, .72);
}
.blog-category-empty h2 {
  margin: 0 0 .8rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
}
.blog-category-empty p {
  max-width: 58ch;
  margin: 0 0 1.3rem;
  font-size: 1.1rem;
}

/* Blog article and category template from Petie editorial PDF */
.blog-article,
.blog-category {
  --blog-bg: #f1e8d8;
  --blog-paper: #fffaf1;
  --blog-ink: #2a1f14;
  --blog-muted: rgba(42, 31, 20, .64);
  --blog-rust: #c9613c;
  --blog-moss: #6d8249;
  --blog-tan: #d9a86e;
  background: var(--blog-bg);
  color: var(--blog-ink);
  overflow-x: hidden;
}
.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  color: rgba(42, 31, 20, .52);
  font-size: .98rem;
}
.blog-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.blog-breadcrumbs a:hover { color: var(--blog-rust); }
.blog-article-hero,
.blog-category-hero {
  padding: clamp(1.45rem, 3.4vw, 2.7rem) 0 clamp(1.05rem, 2.2vw, 1.8rem);
}
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin-bottom: clamp(.85rem, 1.8vw, 1.35rem);
  color: var(--blog-muted);
}
.blog-article-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .38rem .85rem;
  border-radius: 999px;
  background: var(--blog-moss);
  color: #fffaf1;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.blog-article-meta span {
  font-size: .9rem;
}
.blog-article-hero h1,
.blog-category-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--blog-ink);
  font-family: var(--petie-serif);
  font-size: clamp(2.45rem, 4.2vw, 4.35rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}
.blog-article-hero h1 em,
.blog-category-hero h1 em {
  color: var(--blog-rust);
  font-style: italic;
}
.blog-article-lead,
.blog-category-hero p {
  max-width: 680px;
  margin: clamp(.85rem, 1.6vw, 1.2rem) 0 0;
  color: rgba(42, 31, 20, .74);
  font-family: inherit;
  font-size: clamp(1.03rem, 1vw + .76rem, 1.24rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
}
.blog-author-strip {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 31, 20, .14);
  border-bottom: 1px solid rgba(42, 31, 20, .14);
  padding-bottom: 1rem;
}
.blog-author-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blog-moss);
  color: #fffaf1;
  font-family: var(--petie-serif);
  font-size: 1.05rem;
  font-weight: 700;
}
.blog-author-avatar--large {
  width: 104px;
  height: 104px;
  font-size: 2rem;
}
.blog-author-strip strong,
.blog-author-box h2 {
  display: block;
  color: var(--blog-ink);
}
.blog-author-strip span {
  display: block;
  color: var(--blog-muted);
}
.blog-author-actions {
  display: flex;
  gap: .7rem;
  margin-left: auto;
}
.blog-author-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: .42rem .85rem;
  border: 1px solid rgba(42, 31, 20, .16);
  border-radius: 999px;
  color: var(--blog-ink);
  text-decoration: none;
}
.blog-cover {
  position: relative;
  margin-top: .85rem;
  margin-bottom: clamp(1.6rem, 3.6vw, 3rem);
}
.blog-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 1.62;
  object-fit: cover;
  border-radius: 28px;
  background: var(--blog-rust);
}
.blog-cover figcaption {
  position: absolute;
  right: 2rem;
  bottom: 1.6rem;
  color: rgba(255, 250, 241, .82);
  font-size: .82rem;
}
.blog-content-wrap {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}
.blog-quick-note,
.blog-author-box,
.blog-next-step {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(42, 31, 20, .12);
  border-radius: 28px;
  background: rgba(255, 250, 241, .7);
}
.blog-quick-note {
  margin-bottom: clamp(1.5rem, 3.4vw, 2.5rem);
}
.blog-quick-note strong,
.blog-author-box span,
.blog-section-heading span {
  display: block;
  color: var(--blog-moss);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.blog-quick-note p {
  margin: .7rem 0 0;
  font-size: 1rem;
  line-height: 1.62;
}
.blog-article-content {
  color: var(--blog-ink);
  font-size: clamp(1.02rem, .98rem + .16vw, 1.12rem);
  line-height: 1.72;
}
.blog-article-content > * {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.blog-article-content p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}
.blog-article-content h2 {
  margin-top: clamp(2.1rem, 4.2vw, 3.5rem);
  margin-bottom: .9rem;
  color: var(--blog-ink);
  font-family: var(--petie-serif);
  font-size: clamp(1.85rem, 2.7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
}
.blog-article-content h3 {
  margin-top: 1.5rem;
  color: var(--blog-ink);
  font-family: var(--petie-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  line-height: 1.18;
}
.blog-article-content blockquote,
.blog-remember {
  margin: clamp(1.45rem, 3.5vw, 2.5rem) auto;
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
  border: 0;
  border-radius: 20px;
  background: var(--blog-rust);
  color: #fffaf1;
}
.blog-article-content blockquote p,
.blog-remember strong {
  margin: 0;
  color: inherit;
  font-family: var(--petie-serif);
  font-size: clamp(1.22rem, 1.8vw, 1.7rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
}
.blog-remember {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--blog-moss);
}
.blog-remember span {
  color: rgba(255, 250, 241, .78);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.blog-next-step {
  margin: clamp(2rem, 5vw, 4rem) 0 2rem;
  background: transparent;
  border: 0;
  padding-left: 0;
  padding-right: 0;
}
.blog-next-step h2,
.blog-author-box h2,
.blog-related h2,
.blog-newsletter h2 {
  margin: 0;
  font-family: var(--petie-serif);
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: 1;
}
.blog-next-step p {
  color: var(--blog-muted);
  font-size: 1.15rem;
}
.blog-next-step a {
  color: var(--blog-rust);
  font-weight: 900;
  text-decoration: none;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(42, 31, 20, .14);
}
.blog-tags a {
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255, 250, 241, .8);
  color: var(--blog-ink);
  text-decoration: none;
}
.blog-author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.7rem;
  align-items: center;
  margin: clamp(2rem, 5vw, 4rem) 0;
}
.blog-author-box p {
  color: var(--blog-muted);
}
.blog-related {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #e6dac5;
}
.blog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.blog-section-heading a {
  color: var(--blog-muted);
  text-decoration: none;
}
.blog-related-grid,
.blog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.blog-related-card,
.blog-category-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--blog-paper);
}
.blog-related-card a,
.blog-category-card a {
  display: block;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-related-card__media {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-tone-1 { background: #9ca67a; }
.blog-tone-2 { background: var(--blog-rust); }
.blog-tone-3 { background: var(--blog-tan); }
.blog-paw {
  width: 78px;
  height: 86px;
  border-radius: 18px 18px 22px 22px;
  background: #fff0de;
}
.blog-related-card div:last-child,
.blog-category-card__body {
  padding: 1.6rem;
}
.blog-related-card small,
.blog-category-card small {
  color: var(--blog-rust);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.blog-related-card h3,
.blog-category-card h2 {
  margin: .7rem 0 0;
  font-family: var(--petie-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1.02;
}
.blog-newsletter {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .8fr);
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 7vw, 5rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 42px;
  background: var(--blog-ink);
  color: #fffaf1;
}
.blog-newsletter span {
  color: #d9a86e;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.blog-newsletter h2 {
  color: #fffaf1;
}
.blog-newsletter p,
.blog-newsletter small {
  color: rgba(255, 250, 241, .66);
}
.blog-newsletter form {
  display: grid;
  gap: 1rem;
}
.blog-newsletter input,
.blog-newsletter button {
  min-height: 58px;
  border-radius: 999px;
  padding: 0 1.2rem;
  font: inherit;
}
.blog-newsletter input {
  border: 1px solid rgba(255, 250, 241, .22);
  background: transparent;
  color: #fffaf1;
}
.blog-newsletter button {
  border: 0;
  background: var(--blog-rust);
  color: #fffaf1;
  font-weight: 900;
}
.blog-category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: end;
}
.blog-category-note {
  padding: 1.6rem;
  border: 1px solid rgba(42, 31, 20, .12);
  border-radius: 28px;
  background: rgba(255, 250, 241, .7);
}
.blog-category-note strong {
  display: block;
  color: var(--blog-rust);
  font-family: var(--petie-serif);
  font-size: 2.2rem;
  line-height: 1;
}
.blog-category-note p {
  margin-top: .8rem;
  color: var(--blog-muted);
}
.blog-category-grid {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.blog-category-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}
.blog-category-card p {
  color: var(--blog-muted);
}

.petie-footer {
  margin-top: clamp(2rem, 6vw, 5rem);
  padding: 2.5rem 0;
  background: var(--petie-ink);
  color: #fffaf1;
}
.petie-footer__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.petie-footer strong {
  font-family: var(--petie-serif);
  font-size: 3rem;
}
.petie-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.petie-footer a {
  color: #fffaf1;
  text-decoration: none;
}

.petie-app-nav {
  display: none;
}

/* Portal poradnikowy */
.portal-page {
  background: #f7f4ed;
  color: #0f1726;
  font-family: var(--petie-sans);
  overflow-x: hidden;
}
.portal-page .site-shell { width: min(1160px, calc(100% - 32px)); }
.portal-top { padding: 24px 0 0; }
.portal-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(15, 23, 38, .72);
  font-size: 13px;
}
.portal-kicker span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c5613c;
}
.portal-kicker strong { margin-right: auto; font-weight: 700; }
.portal-kicker em { font-style: normal; }
.portal-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 38, .14);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 20px 45px rgba(15, 23, 38, .06);
}
.portal-search label {
  grid-column: 1 / -1;
  color: rgba(15, 23, 38, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.portal-search input {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #f2eee5;
  color: #0f1726;
  font: inherit;
  padding: 0 16px;
}
.portal-search input:focus { outline: 2px solid rgba(197, 97, 60, .35); }
.portal-search button,
.portal-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #0f1726;
  color: #fffdf8;
  font-weight: 800;
  padding: 0 18px;
  text-decoration: none;
  cursor: pointer;
}
.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 14px;
  color: rgba(15, 23, 38, .7);
  font-size: 13px;
}
.portal-tags span {
  color: #0f1726;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.portal-tags a {
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #fffdf8;
  text-decoration: none;
}
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(44px, 7vw, 84px) 0 36px;
}
.portal-label {
  margin: 0 0 12px;
  color: #c5613c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.portal-hero h1,
.portal-section-title h2,
.portal-compare h2,
.portal-monetize h2 {
  margin: 0;
  color: #0f1726;
  font-family: var(--petie-serif);
  font-weight: 600;
  letter-spacing: 0;
}
.portal-hero h1 {
  max-width: 700px;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: .9;
}
.portal-hero__copy > p:not(.portal-label) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(15, 23, 38, .74);
  font-size: 17px;
  line-height: 1.62;
}
.portal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 28px;
  max-width: 640px;
}
.portal-metrics div {
  padding: 18px;
  border: 1px solid rgba(15, 23, 38, .12);
  border-radius: 16px;
  background: #fffdf8;
}
.portal-metrics strong {
  display: block;
  color: #c5613c;
  font-size: 28px;
  line-height: 1;
}
.portal-metrics span {
  display: block;
  margin-top: 6px;
  color: rgba(15, 23, 38, .68);
  font-size: 13px;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 26px;
}
.portal-button { display: inline-flex; align-items: center; }
.portal-button--ghost {
  border: 1px solid rgba(15, 23, 38, .18);
  background: transparent;
  color: #0f1726;
}
.portal-calculator {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(15, 23, 38, .14);
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 30px 70px rgba(15, 23, 38, .09);
}
.portal-calculator__top,
.portal-guide-card__meta,
.portal-guide-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.portal-calculator__top {
  color: rgba(15, 23, 38, .62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-calculator h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}
.portal-calc-row,
.portal-calc-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 38, .12);
}
.portal-calc-row strong { font-size: 24px; }
.portal-calc-result {
  display: block;
  padding: 20px;
  border: 0;
  border-radius: 18px;
  background: #f2eee5;
}
.portal-calc-result strong {
  display: block;
  margin: 6px 0;
  color: #c5613c;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
}
.portal-calc-result em {
  color: rgba(15, 23, 38, .65);
  font-style: normal;
}
.portal-calculator a,
.portal-inline-link {
  color: #c5613c;
  font-weight: 900;
  text-decoration: none;
}
.portal-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .8rem;
  padding-bottom: 44px;
}
.portal-cats a {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(15, 23, 38, .14);
  border-radius: 18px;
  background: #fffdf8;
  color: #0f1726;
  text-decoration: none;
}
.portal-cats strong { font-size: 21px; }
.portal-cats span {
  color: rgba(15, 23, 38, .62);
  font-size: 13px;
}
.portal-main {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 34px 0 52px;
  border-top: 1px solid rgba(15, 23, 38, .12);
}
.portal-trending {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 22px;
  background: #0f1726;
  color: #fffdf8;
}
.portal-trending .portal-label { color: #e8c69f; }
.portal-trending a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .75rem;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 253, 248, .16);
  color: inherit;
  text-decoration: none;
}
.portal-trending span {
  color: #e8c69f;
  font-weight: 900;
}
.portal-trending strong {
  display: block;
  line-height: 1.25;
}
.portal-trending em {
  display: block;
  grid-column: 2;
  color: rgba(255, 253, 248, .65);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}
.portal-section-title h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  line-height: .98;
}
.portal-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 20px 0 22px;
}
.portal-filter-row span {
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #fffdf8;
  color: rgba(15, 23, 38, .74);
  font-size: 13px;
  font-weight: 800;
}
.portal-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.portal-guide-card a {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(15, 23, 38, .14);
  border-radius: 22px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
}
.portal-guide-card__meta {
  color: rgba(15, 23, 38, .62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portal-guide-card__meta b { color: #c5613c; }
.portal-guide-card h3 {
  margin: 18px 0 8px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}
.portal-guide-card p {
  color: rgba(15, 23, 38, .68);
  line-height: 1.55;
}
.portal-guide-card__foot {
  margin-top: 18px;
  color: #c5613c;
  font-size: 13px;
  font-weight: 900;
}
.portal-compare {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  gap: 2rem;
  align-items: center;
  padding: 44px 0 52px;
  border-top: 1px solid rgba(15, 23, 38, .12);
}
.portal-compare h2 {
  max-width: 650px;
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  line-height: .96;
}
.portal-compare p {
  max-width: 610px;
  color: rgba(15, 23, 38, .7);
  font-size: 16px;
  line-height: 1.66;
}
.portal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 38, .14);
  border-radius: 22px;
  background: #fffdf8;
}
.portal-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.portal-table-wrap th,
.portal-table-wrap td {
  padding: 16px;
  border-bottom: 1px solid rgba(15, 23, 38, .1);
  text-align: left;
}
.portal-table-wrap th {
  color: rgba(15, 23, 38, .62);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.portal-monetize {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 0 70px;
}
.portal-monetize article {
  padding: 24px;
  border-radius: 24px;
  background: #0f1726;
  color: #fffdf8;
}
.portal-monetize article:nth-child(2) { background: #c5613c; }
.portal-monetize article:nth-child(3) { background: #6b7f4a; }
.portal-monetize span {
  color: rgba(255, 253, 248, .7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.portal-monetize h2 {
  margin-top: 10px;
  color: #fffdf8;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
}
.portal-monetize p { color: rgba(255, 253, 248, .76); }
.portal-monetize a {
  color: #fffdf8;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .petie-header__inner {
    min-height: auto;
    padding: .8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .petie-nav { width: 100%; }
  .petie-header-actions { display: none; }
  .cottage-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { min-height: 420px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journal-grid,
  .archive-grid { grid-template-columns: 1fr; }
  .category-hero__grid,
  .category-grid-posts { grid-template-columns: 1fr; }
  .blog-category-hero__grid,
  .blog-related-grid,
  .blog-category-grid,
  .blog-newsletter { grid-template-columns: 1fr; }
  .portal-hero,
  .portal-main,
  .portal-compare { grid-template-columns: 1fr; }
  .portal-trending { position: static; }
  .portal-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-monetize { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  html {
    scroll-padding-top: 104px;
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    max-width: 100%;
    overflow-x: hidden;
  }
  .site-shell,
  .content-wrap { width: min(100% - 24px, 1180px); }
  .petie-topbar {
    font-size: 11px;
  }
  .petie-topbar__inner {
    min-height: 36px;
    align-items: flex-start;
    flex-direction: column;
    padding: .45rem 0;
    gap: .1rem;
  }
  .petie-header {
    box-shadow: 0 10px 28px rgba(42, 31, 20, .08);
  }
  .petie-header__inner {
    padding: .7rem 0 .62rem;
    gap: .55rem;
  }
  .petie-brand {
    font-size: 30px;
  }
  .petie-nav {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: .25rem .8rem;
    overflow: visible;
  }
  .petie-nav a {
    min-height: 28px;
    font-size: 13px;
  }
  .petie-nav a:nth-child(n+5) {
    display: none;
  }
  .petie-app-nav {
    position: fixed;
    left: 10px;
    right: auto;
    width: calc(100vw - 20px);
    max-width: 370px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .25rem;
    padding: .45rem;
    border: 1px solid rgba(42, 31, 20, .14);
    border-radius: 24px;
    background: rgba(255, 250, 241, .92);
    box-shadow: 0 18px 44px rgba(42, 31, 20, .18);
    backdrop-filter: blur(18px);
  }
  .petie-app-nav a {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    border-radius: 18px;
    color: var(--petie-ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
  }
  .petie-app-nav a:active,
  .petie-app-nav a:focus-visible {
    background: rgba(197, 97, 60, .12);
    color: var(--petie-rust);
    outline: none;
  }
  .petie-app-nav span {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(107, 127, 74, .16);
    color: var(--petie-moss);
    font-size: 15px;
    line-height: 1;
  }
  .cottage-hero {
    gap: 1rem;
    padding-top: 1.7rem;
  }
  .cottage-hero h1,
  .page-title,
  .entry-title {
    width: min(100%, 9ch);
    max-width: 9ch;
    font-size: clamp(2.65rem, 13vw, 3.55rem);
    overflow-wrap: anywhere;
  }
  .cottage-hero__lead {
    width: min(100%, 31ch);
    max-width: 31ch;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .cottage-button,
  .portal-button,
  .petie-pill,
  .blog-newsletter button,
  .blog-newsletter input {
    min-height: 48px;
  }
  .cottage-stats,
  .category-grid,
  .petie-longform .decision-row,
  .petie-longform .mini-grid,
  .petie-longform .checklist,
  .petie-longform .guide-grid,
  .petie-longform .compare { grid-template-columns: 1fr; }
  .portal-search,
  .portal-metrics,
  .portal-cats,
  .portal-guide-grid { grid-template-columns: 1fr; }
  .portal-kicker { align-items: flex-start; flex-direction: column; }
  .portal-hero h1 {
    width: min(100%, 10ch);
    max-width: 10ch;
    font-size: clamp(2.8rem, 12vw, 3.75rem);
    overflow-wrap: anywhere;
  }
  .portal-hero__copy > p:not(.portal-label) {
    width: min(100%, 31ch);
    max-width: 31ch;
    overflow-wrap: anywhere;
  }
  .portal-page .site-shell,
  .portal-page .portal-hero__copy,
  .portal-page .portal-calculator,
  .portal-page .portal-search {
    min-width: 0;
    max-width: 100%;
  }
  .portal-actions { display: grid; grid-template-columns: 1fr; }
  .portal-button { justify-content: center; width: 100%; }
  .portal-calculator { border-radius: 20px; }
  .home-section {
    padding: 34px 0;
  }
  .category-grid {
    gap: .75rem;
  }
  .category-tile {
    min-height: 112px;
    border-radius: 18px;
    padding: .9rem;
  }
  .category-tile strong {
    font-size: 24px;
  }
  .journal-card,
  .post-card,
  .blog-category-card,
  .blog-related-card {
    border-radius: 22px;
  }
  .journal-card img,
  .post-card img,
  .blog-category-card__media img {
    aspect-ratio: 1.35;
  }
  .category-hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
    overflow-wrap: anywhere;
  }
  .blog-article .site-shell,
  .blog-category .site-shell,
  .blog-content-wrap {
    width: calc(100% - 96px);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .blog-article,
  .blog-article * {
    min-width: 0;
  }
  .blog-article {
    overflow-x: clip;
  }
  .blog-article-hero,
  .blog-cover,
  .blog-content-wrap {
    overflow-x: hidden;
  }
  .blog-cover,
  .blog-content-wrap {
    padding-right: 24px;
  }
  .blog-category-hero__grid,
  .blog-category-hero__grid > *,
  .blog-article-hero,
  .blog-article-hero > *,
  .blog-category-note,
  .blog-category-card,
  .blog-category-card__body {
    min-width: 0;
    max-width: 100%;
  }
  .blog-article-hero,
  .blog-category-hero {
    padding-top: 1.1rem;
  }
  .blog-breadcrumbs {
    margin-bottom: .8rem;
    font-size: .78rem;
  }
  .blog-article-hero h1,
  .blog-category-hero h1 {
    display: block;
    width: 100%;
    max-width: 19ch;
    font-size: clamp(1.32rem, 4.85vw, 1.62rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  .blog-article-lead,
  .blog-category-hero p {
    width: min(100%, 36ch);
    max-width: 36ch;
    font-size: .95rem;
    line-height: 1.48;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }
  .blog-category-note p {
    width: min(100%, 28ch);
    max-width: 28ch;
  }
  .blog-author-strip,
  .blog-author-box,
  .blog-remember {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .blog-author-strip {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .7rem;
    padding-top: .85rem;
    padding-bottom: .85rem;
  }
  .blog-author-strip > div {
    min-width: 0;
  }
  .blog-author-strip span {
    display: none;
  }
  .blog-author-avatar {
    width: 38px;
    height: 38px;
    font-size: .96rem;
  }
  .blog-author-actions {
    display: none;
  }
  .blog-article-meta {
    gap: .55rem .7rem;
  }
  .blog-article-meta a {
    min-height: 34px;
    padding: .42rem .82rem;
    font-size: .72rem;
  }
  .blog-article-meta span {
    font-size: .88rem;
  }
  .blog-article-meta span:last-child {
    display: none;
  }
  .blog-cover img {
    border-radius: 18px;
    aspect-ratio: 1.08;
  }
  .blog-cover figcaption {
    position: static;
    margin-top: .5rem;
    color: var(--blog-muted);
  }
  .blog-newsletter {
    border-radius: 28px;
    padding: 1.5rem;
  }
  .blog-category-note,
  .blog-quick-note,
  .blog-author-box,
  .blog-category-card__body {
    border-radius: 18px;
    padding: .95rem;
  }
  .blog-quick-note { display: none; }
  .blog-article-content {
    font-size: .98rem;
    line-height: 1.7;
  }
  .blog-article-content,
  .blog-article-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .blog-article-content h2 {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.16;
    margin-top: 2.15rem;
  }
  .blog-article-content h3 {
    font-size: clamp(1.16rem, 5.2vw, 1.38rem);
    line-height: 1.22;
  }
  .petie-longform .decision-row,
  .petie-longform .mini-grid,
  .petie-longform .checklist,
  .petie-longform .guide-grid,
  .petie-longform .compare {
    grid-template-columns: 1fr;
  }
  .petie-longform .intro-card,
  .petie-longform .editorial-callout,
  .petie-longform .human-note,
  .petie-longform .compare .panel,
  .petie-longform .faq-item,
  .petie-longform .toc,
  .petie-longform .guide-card,
  .petie-longform .author-box {
    border-radius: 18px;
    overflow: hidden;
  }
  .petie-longform .answer {
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .entry-content table {
    display: block;
    overflow-x: auto;
    font-size: .9rem;
  }
  .entry-content th,
  .entry-content td {
    padding: .72rem;
    min-width: 150px;
  }
  .category-page .site-shell {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    margin-left: 12px;
    margin-right: 12px;
  }
  .category-page * { max-width: 100%; }
  .category-hero,
  .category-hero__grid,
  .category-grid-posts,
  .category-post-card,
  .category-hero__note {
    min-width: 0;
    max-width: 100%;
  }
  .category-hero p,
  .category-hero__note p,
  .category-post-card h2,
  .category-post-card p {
    overflow-wrap: anywhere;
  }
  .section-heading,
  .petie-footer__inner { align-items: flex-start; flex-direction: column; }
  .hero-card { min-height: 340px; }
  .petie-footer {
    margin-bottom: 0;
    padding-bottom: 6rem;
  }
}
