/* Geeky Posh — design tokens from reverse analysis */
:root {
  --gp-primary: #de847b;
  --gp-primary-meta: #ce7373;
  --gp-dark: #b95c50;
  --gp-cream: #f9f1f0;
  --gp-border-pink: #fadcd9;
  --gp-border-beige: #e9ddd4;
  --gp-text: #111827;
  --gp-prose: #374151;
  --gp-muted: #6b7280;
  --gp-gray-600: #4b5563;
  --gp-gray-100: #f3f4f6;
  --gp-white: #ffffff;
  --gp-max: 72rem;
  --gp-font: InterVariable, Inter, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--gp-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gp-text);
  background: var(--gp-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gp-primary);
}

ul, ol {
  margin: 0;
  padding: 0;
}

button, input, select, textarea {
  font: inherit;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* Utilities */
.text-primary { color: var(--gp-primary); }
.text-dark { color: var(--gp-dark); }
.text-gray-500 { color: var(--gp-muted); }
.bg-cream { background-color: var(--gp-cream); }
.bg-white { background-color: var(--gp-white); }
.border-pink { border-color: var(--gp-border-pink); }
.border-beige { border-color: var(--gp-border-beige); }
.font-semibold { font-weight: 600; }
.antialiased { -webkit-font-smoothing: antialiased; }

.brow {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5rem;
  text-transform: uppercase;
  display: inline-block;
}

.text-xxs {
  font-size: 0.65rem;
  line-height: 1.25rem;
}

.container-6xl {
  width: 100%;
  max-width: var(--gp-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container-6xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.min-h-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 14rem;
}

.site-logo-link,
.custom-logo-link {
  display: inline-block;
  margin: -0.375rem;
  padding: 0.375rem;
  text-decoration: none;
}

.site-logo,
.custom-logo {
  height: 2rem;
  width: auto;
  max-width: 208px;
}

.site-tagline {
  color: var(--gp-primary);
  font-weight: 600;
  margin: 0.25rem 0 0;
  width: 100%;
  display: none;
}

@media (min-width: 768px) {
  .site-tagline { display: block; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--gp-gray-600);
  padding: 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; }
}

.primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  position: relative;
}

.primary-menu a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--gp-text);
}

/* Mega menu triggers */
.dropdown-btn,
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--gp-text);
  cursor: pointer;
}

.mega-chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.mega-item.is-open > .mega-trigger .mega-chevron,
.mega-item:hover > .mega-trigger .mega-chevron,
.mega-item:focus-within > .mega-trigger .mega-chevron {
  transform: rotate(180deg);
}

/* Panel flush under trigger; padding-top bridges visual gap so hover never breaks */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 80;
  min-width: 20rem;
  max-width: 24rem;
  padding: 0.65rem 0 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.mega-panel__list {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12), 0 2px 8px rgba(17, 24, 39, 0.06);
}

.mega-item:hover > .mega-panel,
.mega-item:focus-within > .mega-panel,
.mega-item.is-open > .mega-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mega-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  color: var(--gp-text);
}

.mega-row:hover {
  background: var(--gp-cream);
  color: var(--gp-text);
}

.mega-row__icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--gp-primary);
}

.mega-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-row__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: var(--gp-text);
}

.mega-row__desc {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: var(--gp-muted);
}

.nav-discount {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-decoration: none;
  color: var(--gp-text);
  white-space: nowrap;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--gp-text);
  padding: 0.25rem;
  cursor: pointer;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.4);
}

.mobile-drawer[hidden] { display: none !important; }

.mobile-drawer__panel {
  background: #fff;
  width: min(100%, 22rem);
  height: 100%;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mobile-drawer__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--gp-gray-600);
}

.mobile-menu {
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-mega-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0.75rem 0;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gp-text);
  cursor: pointer;
  text-align: left;
}

.mobile-menu .sub-menu,
.mobile-mega-panel {
  list-style: none;
  padding-left: 0;
  display: none;
  margin: 0 0 0.5rem;
}

.mobile-menu .is-open > .sub-menu,
.mobile-menu .is-open > .mobile-mega-panel {
  display: block;
}

.mobile-mega-panel a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.mobile-mega-panel a:hover {
  background: var(--gp-cream);
}

.mobile-mega-panel a strong {
  font-size: 0.9rem;
  color: var(--gp-text);
}

.mobile-mega-panel a span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gp-muted);
  line-height: 1.3;
}

.mobile-menu .is-open > .mobile-mega-trigger .mega-chevron {
  transform: rotate(180deg);
}

.mobile-discount {
  display: inline-block;
  margin-top: 1rem;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
}

.search-overlay[hidden] { display: none !important; }

.search-overlay__backdrop {
  flex: 1;
  background: rgba(17, 24, 39, 0.45);
}

.search-overlay__panel {
  width: min(100%, 26rem);
  background: #fff;
  padding: 1.5rem;
  overflow-y: auto;
  position: relative;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.search-overlay__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gp-muted);
}

.search-overlay__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.search-overlay__form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-overlay__form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.search-overlay__form button {
  background: var(--gp-primary);
  color: #fff;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.search-popular .brow {
  margin-bottom: 0.75rem;
  color: var(--gp-muted);
}

.search-popular ul {
  list-style: none;
}

.search-popular li + li {
  margin-top: 0.75rem;
}

.search-popular a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
}

.search-popular__thumb img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.search-popular__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

body.nav-open,
body.search-open {
  overflow: hidden;
}

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--gp-gray-100);
  color: var(--gp-primary);
  font-weight: 500;
  font-size: 0.775rem;
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  gap: 0.25rem;
}

.chip:hover {
  color: var(--gp-dark);
}

/* Home hero */
.home-hero {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .home-hero { padding-top: 1.5rem; }
}

.home-hero__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 0.7fr);
    align-items: start;
    gap: 3rem;
  }
}

.home-hero__title {
  margin: 0 0 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .home-hero__title {
    font-size: 3rem;
    line-height: 1.166;
    letter-spacing: -1.2px;
  }
}

.home-hero__text {
  margin: 0 0 1rem;
  color: var(--gp-muted);
  font-size: 1rem;
  line-height: 1.625;
  max-width: 42rem;
}

.home-hero__features {
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 15rem;
  width: 100%;
  justify-self: end;
}

@media (max-width: 1023px) {
  .home-hero__features {
    max-width: none;
    justify-self: stretch;
  }
}

.feature-item__icon {
  display: inline-flex;
  flex-shrink: 0;
}

.feature-item + .feature-item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gp-border-pink);
}

.feature-item__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--gp-primary);
}

.feature-item__link {
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  color: var(--gp-text);
}

.feature-item__link:hover {
  color: var(--gp-primary);
}

/* Social */
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  color: var(--gp-primary);
  text-decoration: none;
  padding: 0.25rem;
}

.social-link:hover {
  color: var(--gp-dark);
}

/* Gallery strip — full-bleed overflow crop like reference `-my-4` */
.home-gallery {
  overflow: hidden;
  padding: 1rem 0;
  margin: -1rem 0 2rem;
}

.home-gallery__track {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 0;
}

@media (min-width: 640px) {
  .home-gallery__track { gap: 2rem; }
}

.home-gallery__item {
  position: relative;
  flex: none;
  width: 11rem;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #fff;
  margin: 0;
}

@media (min-width: 640px) {
  .home-gallery__item {
    width: 18rem;
    border-radius: 1rem;
  }
}

.home-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery__item.rotate-neg {
  transform: rotate(-2deg);
}

.home-gallery__item.rotate-pos {
  transform: rotate(2deg);
}

/* Discover */
.home-discover {
  padding: 2rem 0 3rem;
}

.section-heading {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.15;
  text-wrap: pretty;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--gp-muted);
  max-width: 48rem;
  line-height: 1.625;
}

.discover-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .discover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.discover-col h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.discover-col__desc {
  margin: 0 0 1rem;
  color: var(--gp-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.discover-col__list {
  list-style: none;
}

.discover-col__list li + li {
  margin-top: 0.75rem;
}

.discover-col__list a {
  text-decoration: none;
}

.discover-col__list h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.discover-col__list a:hover h4 {
  color: var(--gp-primary);
}

/* Newsletter */
.home-newsletter {
  padding: 2rem 0 3rem;
}

.newsletter-heading {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.15;
}

.newsletter-text {
  margin: 0 0 1.25rem;
  color: var(--gp-muted);
  max-width: 32rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 28rem;
}

.newsletter-input {
  flex: 1 1 12rem;
  min-width: 0;
  height: 2.5rem;
  padding: 0.375rem 0.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d1d5db, 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
}

.newsletter-btn {
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--gp-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.newsletter-btn:hover {
  filter: brightness(0.96);
}

.newsletter--sidebar .newsletter-form {
  flex-direction: column;
  margin-top: 0.75rem;
}

.newsletter--sidebar .newsletter-btn {
  width: 100%;
}

.newsletter--footer .newsletter-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

.newsletter--footer .brow.newsletter-title,
.newsletter--footer .newsletter-title {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
}

.newsletter--footer h3.newsletter-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

/* Posts grid / teaser */
.home-latest,
.archive-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.tease-post {
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  height: 100%;
}

.tease-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tease-date {
  font-size: 0.775rem;
}

.tease-title {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.tease-title a {
  text-decoration: none;
  color: var(--gp-text);
}

.tease-post:hover .tease-title a,
.tease-title a:hover {
  color: var(--gp-primary);
}

.tease-excerpt {
  margin-top: 0.75rem;
  color: var(--gp-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.tease-excerpt p {
  margin: 0 0 0.25rem;
  display: inline;
}

.read-more {
  color: var(--gp-gray-600);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.read-more:hover {
  color: var(--gp-primary);
}

/* Pagination */
.gp-pagination {
  margin: 2rem 0 3.5rem;
}

.gp-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--gp-border-beige);
  border-radius: 0.65rem;
  background: var(--gp-white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gp-text);
  text-decoration: none;
}

.gp-pagination a.page-numbers:hover {
  border-color: var(--gp-primary);
  color: var(--gp-primary);
}

.gp-pagination .page-numbers.current {
  border-color: var(--gp-primary);
  background: var(--gp-cream);
  color: var(--gp-primary);
}

.gp-pagination .prev,
.gp-pagination .next {
  padding: 0 1.1rem;
}

.archive-title {
  margin: 1rem 0 0.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.15;
}

.archive-desc {
  color: var(--gp-muted);
  margin-bottom: 1rem;
}

/* Single post */
.single-post {
  display: block;
  padding-top: 1.5rem;
  color: var(--gp-prose);
}

.single-post__main {
  min-width: 0;
  max-width: 48rem;
}

@media (min-width: 1024px) {
  .single-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 3rem;
    align-items: start;
    padding-top: 3rem;
  }

  .single-post__main {
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .single-post {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
  }
}

.single-post__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--gp-text);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .single-post__title {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }
}

.single-post__byline {
  font-size: 0.775rem;
  margin: 1rem 0;
}

.single-post__byline a {
  font-weight: 500;
  color: #000;
}

.single-post__featured {
  margin: 1.5rem 0 2rem;
  border-radius: 1rem;
  overflow: hidden;
}

.single-post__featured img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
}

/* Prose */
.prose,
.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gp-prose);
}

.prose p,
.entry-content p {
  margin: 1.25em 0;
}

.prose a,
.entry-content a {
  color: #000;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gp-primary);
}

.prose h2,
.entry-content h2 {
  margin: 2em 0 1em;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.333;
  color: var(--gp-text);
}

.prose h3,
.entry-content h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.6;
  color: var(--gp-text);
}

.prose ul,
.entry-content ul {
  list-style: disc;
  padding-left: 1.625em;
  margin: 1.25em 0;
}

.prose ol,
.entry-content ol {
  list-style: decimal;
  padding-left: 1.625em;
  margin: 1.25em 0;
}

.prose li::marker {
  color: #deb3ad;
}

.prose ol > li::marker {
  color: var(--gp-primary);
}

.prose blockquote,
.entry-content blockquote {
  border-left: 0.25rem solid #e9d3c8;
  padding-left: 1em;
  margin: 1.6em 0;
  font-weight: 500;
}

.prose img,
.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  border-radius: 0;
}

.prose figure,
.entry-content figure {
  margin: 2em 0;
  max-width: 100%;
}

/* Neutralize scraped page-chrome grids (Vogue etc.) inside article body */
.entry-content .grid,
.entry-content [class*="GridWrapper"],
.entry-content [class*="GridItem"],
.entry-content [class*="grid-layout"],
.entry-content [class*="ArticlePage"],
.entry-content [class*="body__container"],
.entry-content [class*="Callout"] {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
}

.entry-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-content * {
  max-width: 100%;
}

/* Author sidebar */
.post-sidebar {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .post-sidebar {
    margin-top: -0.5rem;
  }
}

.author-card {
  border: 1px solid var(--gp-border-pink);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .author-card {
    border: 0;
    padding: 3rem 0 3rem 1.5rem;
  }
}

.author-card__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.author-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  object-fit: cover;
}

.author-card__name {
  display: block;
  font-size: 1rem;
  color: var(--gp-prose);
}

.author-card__role {
  display: block;
  font-size: 0.775rem;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.author-card__bio {
  margin: 1rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gp-prose);
}

.author-card__bio a {
  color: var(--gp-primary);
  text-decoration: underline;
}

.author-card__profile {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gp-border-pink);
  border-bottom: 1px solid var(--gp-border-pink);
}

.author-card__profile .brow {
  margin-bottom: 0.5rem;
}

.author-card__profile p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Related */
.related-posts {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gp-border-beige);
}

.related-posts__title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gp-text);
}

/* Comments */
.comments-area,
.comment-respond {
  margin: 2.5rem 0;
}

.comment-respond {
  background: var(--gp-cream);
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
}

.comment-reply-title,
.comments-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--gp-text);
}

.comment-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 0 1px #d1d5db;
}

.comment-form .form-submit input,
.comment-form .submit {
  background: var(--gp-primary);
  color: #fff;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem;
}

.comment-list .comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gp-border-beige);
}

/* Pages */
.page .entry-header,
.page-header {
  margin: 2rem 0 1rem;
}

.page-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .page-title { font-size: 3rem; }
}

.about-hero {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
  }
}

.about-hero__title {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .about-hero__title { font-size: 3rem; }
}

.about-hero__intro {
  color: var(--gp-muted);
}

.about-hero__image {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.about-hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.about-timeline {
  padding: 1rem 0 2.5rem;
}

.about-timeline__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .about-timeline__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.about-timeline__date {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gp-primary);
}

.about-timeline__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gp-text);
}

.about-timeline__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gp-muted);
}

.about-body {
  padding: 2rem 0 3rem;
}

/* Mobile refinements */
@media (max-width: 639px) {
  .home-hero__title,
  .single-post__title,
  .about-hero__title {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
  }

  .section-heading,
  .archive-title,
  .newsletter-heading {
    font-size: 1.875rem;
    letter-spacing: -0.025em;
  }

  .home-gallery__item {
    width: 11rem;
  }

  .social-links {
    gap: 1.25rem;
  }
}

/* Resource / database pages */
.resource-page {
  padding: 2rem 0 3rem;
}

.resource-page__title {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .resource-page__title { font-size: 3rem; }
}

.resource-page__lead {
  color: var(--gp-muted);
  max-width: 42rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.gp-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid var(--gp-border-pink);
}

.gp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.gp-table th,
.gp-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gp-border-pink);
}

.gp-table th {
  background: var(--gp-cream);
  font-weight: 600;
  color: var(--gp-text);
  white-space: nowrap;
}

.gp-table tr:last-child td {
  border-bottom: 0;
}

.gp-filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .gp-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gp-filter-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gp-border-pink);
  text-decoration: none !important;
  color: inherit;
  background: #fff;
}

.gp-filter-card:hover {
  background: var(--gp-cream);
}

.gp-filter-card strong {
  display: block;
  color: var(--gp-text);
  margin-bottom: 0.25rem;
}

.gp-filter-card span {
  color: var(--gp-muted);
  font-size: 0.875rem;
}

/* Contact */
.contact-page {
  padding: 2rem 0 3rem;
  max-width: 40rem;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  box-shadow: inset 0 0 0 1px #d1d5db, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
  min-height: 8rem;
}

.contact-form button {
  justify-self: start;
  background: var(--gp-primary);
  color: #fff;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-notice {
  padding: 0.75rem 1rem;
  background: var(--gp-cream);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .site-footer { margin-top: 4rem; }
}

.footer-inner {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-menu {
  list-style: none;
}

.footer-menu li + li {
  margin-top: 0.65rem;
}

.footer-menu a {
  font-size: 0.875rem;
  color: var(--gp-gray-600);
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--gp-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gp-border-beige);
}

.footer-copy {
  margin: 0;
  font-size: 0.775rem;
  color: #454243;
  line-height: 1.5;
  max-width: 56rem;
}

.footer-col--newsletter .social-links {
  margin-top: 1.25rem;
}

/* 404 / empty */
.error-404,
.no-results {
  padding: 4rem 0;
  text-align: left;
}

.error-404 h1,
.no-results h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

/* Align wide helpers for Gutenberg */
.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
