:root {
  --canvas-premium: #b7adaf;
  --canvas-premium-deep: #9d9296;
  --canvas-premium-line: rgba(76, 62, 68, 0.13);
  --panel-premium: #f4f0ed;
  --panel-premium-soft: #eee8e5;
  --panel-premium-bright: #faf7f5;
  --premium-ink: #332c30;
  --premium-muted: #6d6166;
  --premium-line: rgba(70, 54, 62, 0.15);
}

body {
  color: var(--premium-ink);
  background-color: var(--canvas-premium);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 10px,
      var(--canvas-premium-line) 10px,
      var(--canvas-premium-line) 11px,
      transparent 11px,
      transparent 22px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 36rem);
  background-size: auto, 100% 100%;
  background-attachment: fixed;
}

/* Premium surface system */
.directory-sections {
  padding: 10px;
  background: rgba(76, 61, 68, 0.09);
  border: 1px solid rgba(65, 49, 57, 0.10);
  border-radius: 22px;
  box-shadow: 0 26px 62px rgba(62, 46, 53, 0.12);
}

.category-section {
  background: var(--panel-premium);
  border-color: var(--premium-line);
  box-shadow: 0 15px 34px rgba(62, 46, 53, 0.10);
}

.category-section:hover {
  box-shadow: 0 20px 44px rgba(62, 46, 53, 0.14);
}

.category-heading {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tone-soft) 58%, #f1ece9),
    #ece5e3 82%
  );
  border-bottom-color: rgba(69, 53, 61, 0.12);
}

.category-icon {
  background: rgba(255, 255, 255, 0.72);
  border-color: color-mix(in srgb, var(--tone) 24%, #c9bfc2);
}

.section-description {
  color: #6e6267;
  background: #f7f3f1;
}

.site-list,
.site-card,
.ranked-list .site-card {
  border-color: rgba(70, 54, 62, 0.12);
}

.site-card {
  background: var(--panel-premium-bright);
}

.site-card:hover {
  background: #f0eae7;
}

.directory-sections .site-card-compact:hover .site-name-line {
  background: color-mix(in srgb, var(--tone-soft) 58%, #f3eeeb);
}

.see-all-link {
  color: #5f5358;
  background: #eee8e5;
}

.category-page-header,
.prose-card,
.reviews-header,
.reviews-toolbar,
.review-directory-item,
.empty-state {
  border-color: var(--premium-line);
}

.breadcrumbs,
.breadcrumbs a,
.page-header > p,
.reviews-header p,
.reviews-toolbar > p,
.category-page-header > div > p:last-child {
  color: #5f5459;
}

.page-header h1,
.reviews-header h1,
.category-page-header h1,
.page-shell > .section-heading h2,
.review-visual-page > .section-heading h2 {
  color: #2f292d;
}

/* Header / brand lockup */
.site-header {
  background: rgba(247, 243, 240, 0.97);
  border-bottom-color: rgba(77, 58, 67, 0.13);
  box-shadow: 0 9px 26px rgba(55, 41, 47, 0.08);
}

.header-inner {
  min-height: 94px;
  gap: 30px;
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  color: #6f3447;
  background: linear-gradient(145deg, #eadde0, #ded0d4);
  border-color: #c8adb5;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.brand-copy {
  min-width: 0;
  gap: 5px;
}

.brand-copy strong {
  color: #2f292d;
  font-size: 1.4rem;
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.brand-tagline {
  max-width: 420px;
  overflow: visible;
  color: #665b60;
  font-size: 0.83rem;
  font-weight: 540;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.header-search {
  width: min(545px, 48vw);
  min-height: 48px;
  background: #ece6e3;
  border-color: rgba(85, 65, 74, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.header-search:focus-within {
  border-color: #9e6577;
  box-shadow: 0 0 0 3px rgba(126, 66, 84, 0.10);
}

.header-search input::placeholder {
  color: #81747a;
}

/* Ads live in the visual gaps, centered */
.global-ad-wrap {
  width: var(--shell);
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  margin: 0 auto;
}

.global-ad-wrap-bottom {
  min-height: 142px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
}

.global-ad-wrap .ad-slot-banner {
  width: min(970px, 100%);
  min-height: 90px;
  margin: 0 auto;
}

.ad-slot {
  color: #62575c;
  background: #c9bec0;
  border-color: rgba(69, 53, 61, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ad-slot strong {
  color: #51464b;
}

.ad-slot-square {
  background: #c8bdc0;
}

/* Category list: keep useful metadata, no tags */
.ranked-list .site-row-meta {
  margin-top: 10px;
}

.ranked-list .site-row-meta > span {
  background: #ece5e2;
  border: 1px solid rgba(75, 57, 66, 0.08);
}

/* Review page identity */
.review-visual-page {
  padding-bottom: 70px;
}

.review-simple-identity {
  padding: 20px 22px;
  margin: 14px 0 18px;
  background: rgba(247, 243, 240, 0.98);
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  box-shadow: 0 13px 32px rgba(62, 46, 53, 0.09);
}

.review-simple-identity .review-identity {
  gap: 15px;
}

.review-simple-identity .review-favicon {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  padding: 9px;
  background: #fff;
  border-color: rgba(74, 57, 65, 0.14);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(60, 44, 51, 0.08);
}

.review-simple-identity .review-identity-copy h1 {
  color: #30292d;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 720;
  letter-spacing: -0.045em;
}

/* Review primary area: clean image + sidebar */
.review-primary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.review-screenshot-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--preview-color, #bfb2b7);
  border: 1px solid rgba(69, 52, 61, 0.16);
  border-radius: 17px;
  box-shadow: 0 20px 48px rgba(59, 44, 50, 0.15);
}

.review-screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: rgba(59, 47, 52, 0.76);
  background: var(--preview-color, #bfb2b7);
  text-align: center;
}

.review-screenshot-placeholder strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.review-screenshot-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.review-sidebar {
  display: grid;
  gap: 17px;
}

.review-sidebar .ad-slot-square {
  width: 300px;
  height: 250px;
  max-width: 100%;
  margin: 0 auto;
}

.review-detail-panel {
  padding: 21px;
  background: rgba(248, 244, 241, 0.98);
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(61, 45, 52, 0.09);
}

.review-detail-panel h2 {
  margin: 0 0 14px;
  color: #332c30;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.review-quick-facts {
  margin: 0 0 17px;
}

.review-quick-facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(75, 57, 66, 0.10);
}

.review-quick-facts div:first-child {
  border-top: 0;
  padding-top: 0;
}

.review-quick-facts dt {
  color: #887a80;
  font-size: 0.73rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-quick-facts dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #50464a;
  font-size: 0.84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-detail-visit {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(118, 47, 68, 0.17);
}

.review-overview-card {
  padding: 25px 27px;
  margin-top: 21px;
  background: rgba(248, 244, 241, 0.98);
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(61, 45, 52, 0.08);
}

.review-overview-card h2 {
  margin: 0 0 12px;
  color: #332c30;
  font-size: 1.42rem;
}

.review-overview-card p {
  color: #62565b;
}

.related-visual-section {
  margin-top: 32px;
}

.related-visual-card {
  background: #f5f0ed;
  border-color: var(--premium-line);
  box-shadow: 0 11px 26px rgba(61, 45, 52, 0.09);
}

.related-visual-card:hover {
  box-shadow: 0 16px 34px rgba(61, 45, 52, 0.13);
}

.related-shot {
  background: var(--preview-color, #bfb2b7);
}

.related-visual-name {
  color: #493f43;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 88px;
    gap: 18px;
  }

  .brand-tagline {
    max-width: 280px;
    font-size: 0.77rem;
  }

  .header-search {
    width: min(470px, 48vw);
  }

  .review-primary-layout {
    grid-template-columns: 1fr;
  }

  .review-sidebar {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .header-inner {
    min-height: auto;
    padding-block: 15px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 1.22rem;
  }

  .brand-tagline {
    max-width: 230px;
    font-size: 0.73rem;
  }

  .header-search {
    width: 100%;
  }

  .global-ad-wrap,
  .global-ad-wrap-bottom {
    min-height: 112px;
    padding: 14px 0;
  }

  .global-ad-wrap .ad-slot-banner {
    min-height: 78px;
  }

  .review-simple-identity {
    padding: 17px;
  }

  .review-simple-identity .review-favicon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .review-simple-identity .review-identity-copy h1 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .review-screenshot-frame {
    border-radius: 14px;
  }

  .review-sidebar {
    grid-template-columns: 1fr;
  }

  .review-sidebar .ad-slot-square {
    width: min(300px, 100%);
  }

  .review-detail-panel,
  .review-overview-card {
    padding: 20px;
  }
}
