/* Shared public-page hierarchy. Brand colors remain in styles.css. */
:root {
  --title-size: clamp(36px, 4vw, 56px);
  --section-size: clamp(26px, 2.6vw, 34px);
  --card-size: 22px;
  --reading-width: 720px;
}
html {
  scroll-padding-top: 100px;
  scrollbar-color: #aaa99d var(--paper);
  scrollbar-width: thin;
}
body .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
body .site-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
body .site-header .brand {
  display: inline-flex;
  align-items: center;
}
body .site-desktop-nav {
  gap: 24px;
}
body .site-desktop-nav > a,
body .site-desktop-nav summary {
  font-size: 13px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
body .site-desktop-nav a[aria-current="page"],
body .site-desktop-nav .is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 7px;
}
body .site-gallery-menu,
body .site-mobile-menu {
  position: relative;
  border: 0;
  margin: 0;
  padding: 0;
}
body .site-gallery-menu summary {
  gap: 8px;
  list-style: none;
}
body .site-gallery-menu summary::after {
  content: "⌄";
  font-size: 14px;
}
body .site-menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 240px;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px #19191914;
  display: grid;
  gap: 0;
  align-items: stretch;
}
body .site-menu-panel a {
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
body .site-menu-panel a:hover,
body .site-menu-panel a[aria-current="page"] {
  background: #eff0e8;
}
body .site-menu-label {
  font-size: 11px;
  color: var(--muted);
  padding: 16px 12px 4px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
body .site-mobile-menu {
  display: none;
}
body .site-mobile-menu > summary {
  padding: 12px;
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
}
body .site-menu-children {
  display: grid;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  margin: 0 12px 8px;
}
body .site-menu-children a {
  font-size: 13px;
}
body .content-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
body .content-breadcrumb a {
  font-size: 13px;
}
body .breadcrumb-item {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
body .catalog-page {
  padding-top: 32px;
  padding-bottom: 64px;
}
body .catalog-page .ideas-content {
  padding: 0;
  min-width: 0;
}
body .catalog-page .ideas-heading,
body .catalog-page .wall-heading {
  max-width: 920px;
  margin: 0 0 40px;
}
body .catalog-page .ideas-heading h1,
body .catalog-page .wall-heading h1,
body .styles-catalog-hero h1,
body .seo-guide-intro h1,
body .content-mast h1,
body .pricing > h1 {
  font-size: var(--title-size);
  letter-spacing: -1.8px;
  line-height: 1.12;
  margin: 12px 0 20px;
}
body .catalog-page .ideas-heading > p:last-child,
body .catalog-page .wall-heading p,
body .styles-catalog-hero > p:last-of-type {
  font-size: 16px;
  line-height: 1.75;
  max-width: 720px;
}
body .catalog-page .wall-heading {
  align-items: flex-start;
  max-width: none;
}
body .catalog-page h3,
body .styles-catalog-card h3,
body .seo-design h3 {
  font-size: var(--card-size);
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
body .catalog-page .idea-copy {
  gap: 12px;
  padding: 22px;
}
body .catalog-page .idea-copy h3 {
  margin: 0;
}
body .catalog-page .ideas-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
body .catalog-page .idea-card {
  border-radius: 4px;
}
body .catalog-page .ideas-search {
  max-width: 700px;
  margin: 24px 0 16px;
}
body .ideas-notice:empty {
  min-height: 0;
  margin: 0;
}
body .catalog-page .ideas-toolbar {
  margin: 24px 0;
}
body .catalog-page .ideas-note {
  margin-top: 48px;
  max-width: 760px;
}
body .section-intro,
body .placement-hub > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}
body .placement-hub {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}
body .placement-feature {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  max-width: 720px;
  padding: 18px;
  text-decoration: none;
  background: #fff;
  border-radius: 4px;
}
body .placement-feature img {
  width: 140px;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
}
body .placement-feature p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
body .placement-feature span {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}
body .flash-collection {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
body .context-link {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: #eeeee7;
  font-size: 14px;
  margin-bottom: 36px;
}
body .context-link a {
  font-weight: 600;
}
body .catalog-page .wall-caption h3 {
  margin: 6px 0;
}
body .catalog-page .wall-card {
  border-radius: 4px;
}
body .styles-catalog {
  padding-top: 32px;
}
body .styles-catalog-hero {
  padding-bottom: 36px;
}
body .styles-catalog-facts {
  gap: 40px;
}
body .styles-catalog-facts dt {
  font-size: 24px;
}
body .styles-catalog-grid {
  gap: 24px;
}
body .styles-catalog-card {
  border-radius: 4px;
}
body .seo-guide {
  padding-top: 32px;
}
body .seo-guide > .content-breadcrumb {
  margin-bottom: 28px;
}
body .seo-guide-hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 48px;
  padding-bottom: 40px;
  border-color: var(--line);
  align-items: start;
}
body .seo-guide-hero-art {
  transform: none;
  padding: 10px;
}
body .seo-guide-hero-art img {
  max-height: 410px;
}
body .seo-guide-intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
}
body .seo-guide-intro .seo-guide-byline {
  font-size: 12px !important;
  margin-bottom: 20px;
}
body .seo-guide-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 44px;
  padding-top: 40px;
}
body .seo-guide-contents {
  display: flex;
  align-items: stretch;
  top: 108px;
  gap: 0;
  border-top: 1px solid var(--line);
}
body .seo-guide-contents a {
  font-size: 13px;
  padding: 9px 0;
}
body .seo-guide-contents .eyebrow {
  margin-bottom: 8px;
}
body .seo-guide-prose > p {
  font-size: 16px;
}
body .seo-guide-next {
  background: #eef1db;
}
body .seo-design p {
  font-size: 14px;
}
body .seo-guide-next nav {
  align-items: start;
}
body .seo-guide-next nav a {
  padding: 8px 0;
}
body .seo-design-number {
  display: none;
}
body .content-mast {
  padding-top: 32px;
  padding-bottom: 32px;
}
body .content-mast h1 {
  max-width: 900px;
}
body .content-deck {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  max-width: 760px;
  color: var(--muted);
  margin: 0 0 16px;
}
body .content-updated {
  font-size: 12px !important;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  color: var(--muted);
}
body .content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading-width));
  gap: 60px;
  padding-top: 8px;
  padding-bottom: 40px;
}
body .content-layout .content-toc {
  grid-column: auto !important;
  grid-row: auto;
  position: sticky;
  top: 108px;
  align-self: start;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding-top: 12px;
  border-color: var(--line);
}
body .content-toc strong {
  margin-bottom: 12px;
}
body .content-toc a {
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}
body .content-prose {
  min-width: 0;
}
body .content-prose p,
body .content-prose li {
  font-size: 16px;
  line-height: 1.85;
}
body .content-prose h2 {
  font-size: var(--section-size);
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 40px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 105px;
}
body .content-prose h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 28px 0 12px;
}
body .content-prose > h2:first-child,
body .content-prose > section:first-child > h2 {
  margin-top: 0;
}
body .content-prose img {
  max-width: 100%;
  height: auto;
}
body .content-prose ul,
body .content-prose ol {
  padding-left: 22px;
}
body .content-prose li + li {
  margin-top: 10px;
}
body .content-prose blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: #fff;
}
body .content-cta {
  margin-top: 24px;
  margin-bottom: 64px;
  gap: 36px;
  border-color: var(--line);
}
body .content-cta h2 {
  font-size: var(--section-size);
  line-height: 1.2;
  letter-spacing: -0.8px;
}
body .content-related {
  font-size: 13px !important;
  margin-top: 20px;
}
body .footer-directory .footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}
body .footer-directory nav {
  align-items: start;
}
body .footer-directory nav a {
  font-size: 13px;
  padding: 3px 0;
}
body .pricing > h1 {
  max-width: 780px;
}
body .pricing > section:last-child h2 {
  font-size: var(--section-size);
  letter-spacing: -0.8px;
}
body .pricing .price-card h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
}
@media (max-width: 1100px) {
  body .site-desktop-nav {
    display: none;
  }
  body .site-mobile-menu {
    display: block;
  }
  body .site-mobile-menu .site-menu-panel {
    min-width: 280px;
    max-height: calc(100dvh - 96px);
    overflow: auto;
  }
  body .content-layout {
    gap: 32px;
    grid-template-columns: 190px minmax(0, 1fr);
  }
  body .catalog-page .ideas-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body .site-header-inner {
    min-height: 68px;
    gap: 12px;
  }
  body .site-header .brand {
    font-size: 12px;
  }
  body .site-header .brand-icon {
    width: 30px;
    height: 30px;
  }
  body .catalog-page,
  body .styles-catalog,
  body .seo-guide {
    padding-top: 24px;
  }
  body .content-breadcrumb {
    margin-bottom: 24px;
    font-size: 12px;
  }
  body .catalog-page .ideas-heading,
  body .catalog-page .wall-heading {
    margin-bottom: 28px;
  }
  body .catalog-page .wall-heading {
    display: block;
  }
  body .catalog-page .wall-heading > .button {
    margin-top: 8px;
  }
  body .catalog-page .ideas-heading h1,
  body .catalog-page .wall-heading h1,
  body .styles-catalog-hero h1,
  body .seo-guide-intro h1,
  body .content-mast h1,
  body .pricing > h1 {
    letter-spacing: -1px;
  }
  body .placement-feature {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 14px;
    gap: 16px;
  }
  body .placement-feature img {
    width: 92px;
    height: 140px;
  }
  body .placement-feature h3 {
    font-size: 20px;
  }
  body .placement-feature p {
    font-size: 13px;
  }
  body .seo-guide-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body .seo-guide-hero-art {
    max-width: 400px;
  }
  body .seo-guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body .seo-guide-contents {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  body .seo-guide-contents > .eyebrow {
    grid-column: 1 / -1;
  }
  body .content-mast {
    padding-top: 24px;
    padding-bottom: 28px;
  }
  body .content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body .content-layout .content-toc {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  body .content-toc strong {
    grid-column: 1 / -1;
  }
  body .content-deck {
    font-size: 16px;
  }
  body .content-cta {
    margin-bottom: 48px;
  }
  body .catalog-page .ideas-cards {
    grid-template-columns: 1fr;
  }
  body .styles-catalog-facts {
    gap: 20px;
  }
  body .site-mobile-menu .site-menu-panel {
    right: 0;
    width: min(320px, calc(100vw - 40px));
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body .paypal-return h1,
body main > .prose > h1 {
  font-size: var(--title-size);
  line-height: 1.12;
  letter-spacing: -1.5px;
}
body .ink-stage #my-designs h2,
body .ink-stage > section > h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 28px 0 16px;
}
body .styles-catalog-hero .catalog-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 0;
}
body .styles-catalog-hero {
  margin-bottom: 32px;
}
body .site-desktop-nav summary {
  font-weight: 400;
}
body .site-desktop-nav summary.is-current {
  font-weight: 700;
}
body .gallery-placement-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  padding: 16px 0;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
body .gallery-placement-guide strong {
  font-size: 16px;
}
body .gallery-placement-guide span {
  font-size: 13px;
  color: var(--muted);
}
body .gallery-placement-guide:hover strong {
  text-decoration: underline;
}
/* Section headings retain the shared scale after retiring related-page blocks. */
body .catalog-page h2,
body .styles-catalog-heading h2,
body .seo-guide-section-title h2,
body .seo-guide-prose h2,
body .seo-guide-next h2 {
  font-size: var(--section-size);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

/* Homepage comparison shares the section gutters with the style gallery. */
.comparison-intro,
.comparison-advice {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 80px);
}
.comparison-intro { align-items: end; }
.comparison-intro h2 { margin-bottom: 0; }
.comparison-intro > p,
.comparison-advice p { margin: 0; color: var(--muted); line-height: 1.75; }
.comparison-advice { padding: 24px 0; border-top: 1px solid var(--line); }
.comparison-advice h3 { margin: 0; font-size: var(--card-size); line-height: 1.25; }
.comparison-advice:last-child { padding-bottom: 0; }
.home-style-table { margin: 28px 0 32px; border: 1px solid var(--line); }
.home-style-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.home-style-table caption { text-align: left; padding: 16px; font-weight: 700; }
.home-style-table th,
.home-style-table td { text-align: left; vertical-align: top; padding: 14px; border-top: 1px solid var(--line); }
.home-style-table thead { background: var(--accent); }
.comparison-label { display: none; }
@media (max-width: 760px) {
  .comparison-intro,
  .comparison-advice { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .comparison-advice { padding: 20px 0; }
}
@media (max-width: 600px) {
  .home-style-table table,
  .home-style-table tbody,
  .home-style-table caption { display: block; }
  .home-style-table caption { background: var(--accent); }
  .home-style-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-style-table tbody tr { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
  .home-style-table tbody th,
  .home-style-table tbody td { display: block; padding: 0; border: 0; }
  .home-style-table tbody th { font-size: 18px; }
  .comparison-label { display: block; font-weight: 700; }
}
