/*
Theme Name: Beauties You Like
Theme URI: https://beautiesyoulike.com
Author: Beauties You Like
Description: An editorial review theme for ingestible beauty products. Hero slider, category carousel, review carousel, and a verdict comparison board driven by post fields. No page builder, no jQuery, no external libraries.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beauties-you-like
Tags: blog, two-columns, custom-menu, featured-images, editor-style, translation-ready
*/

/* ===============================================================
   1. Tokens
   Palette drawn from the subject: matcha jade, hibiscus, honey,
   on a warm paper base so imagery sits on something soft.
   =============================================================== */

:root {
  --cream:     #fbf7f0;
  --cream-2:   #f4ede1;
  --paper:     #ffffff;
  --jade-deep: #0e2e21;
  --jade:      #2c6944;
  --jade-soft: #e3ede1;
  --sage:      #a8c791;
  --honey:     #e0b23f;
  --hibiscus:  #a22854;
  --ink:       #17251e;
  --ink-soft:  #5b6b60;
  --rule:      #e2dbcd;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wide: 76rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(23, 37, 30, 0.06), 0 4px 14px rgba(23, 37, 30, 0.06);
  --shadow-2: 0 2px 6px rgba(23, 37, 30, 0.08), 0 18px 40px rgba(23, 37, 30, 0.12);

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.3125rem;
  --step-2:  1.625rem;
  --step-3:  2.125rem;
  --step-4:  clamp(2.25rem, 5.4vw, 3.75rem);

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.75rem;
  --s4: 3rem;
  --s5: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.72;
  font-optical-sizing: auto;
}

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

a { color: var(--jade); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--hibiscus); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 2px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: var(--s2); left: var(--s2); z-index: 200;
  width: auto; height: auto; clip-path: none;
  background: var(--jade-deep); color: var(--cream);
  padding: var(--s1) var(--s2); border-radius: var(--r-sm);
}

/* ===============================================================
   2. Typography
   =============================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p, ul, ol, blockquote, figure, table { margin: 0 0 var(--s2); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--hibiscus);
  margin: 0 0 var(--s1);
}

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); }

/* ===============================================================
   3. Layout
   =============================================================== */

.shell { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--s3); }
.shell--narrow { max-width: calc(var(--measure) + 8rem); }

.section { padding-block: var(--s5); }
.section--tight { padding-block: var(--s4); }
.section--paper { background: var(--paper); }
.section--cream2 { background: var(--cream-2); }

.section--dark { background: var(--jade-deep); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark a { color: var(--sage); }
.section--dark a:hover { color: var(--honey); }
.section--dark .lede { color: rgba(251, 247, 240, 0.78); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3);
}
.section__head h2 { margin: 0; }
.section__head p { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: var(--step--1); }
.section--dark .section__head p { color: rgba(251, 247, 240, 0.7); }

/* ===============================================================
   4. Buttons
   =============================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1;
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--jade); color: #fff; }
.btn--solid:hover { background: var(--jade-deep); color: #fff; }

.btn--pop { background: var(--honey); color: var(--jade-deep); }
.btn--pop:hover { background: #eec95f; color: var(--jade-deep); }

.btn--ghost { border-color: currentColor; color: var(--cream); }
.btn--ghost:hover { background: rgba(251, 247, 240, 0.14); color: var(--cream); }

.btn--quiet { border-color: var(--rule); color: var(--ink); background: var(--paper); }
.btn--quiet:hover { border-color: var(--jade); color: var(--jade); }

/* ===============================================================
   5. Masthead
   =============================================================== */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); padding-block: var(--s2); flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; line-height: 1.05;
}
.wordmark span {
  display: block; font-family: var(--font-ui); font-size: 0.75rem;
  font-weight: 400; color: var(--ink-soft); margin-top: 3px;
}

.masthead__right { display: flex; align-items: center; gap: var(--s3); }

.nav-toggle {
  display: none; font-family: var(--font-ui); font-size: var(--step--1);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-pill);
  padding: 8px 16px; color: var(--ink); cursor: pointer;
}

.nav__list {
  list-style: none; display: flex; gap: var(--s3); margin: 0; padding: 0;
  font-family: var(--font-ui); font-size: var(--step-0);
}
.nav__list a {
  color: var(--ink); text-decoration: none; padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover, .nav__list .current-menu-item > a {
  border-bottom-color: var(--honey); color: var(--jade);
}

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .site-nav { flex-basis: 100%; }
  .nav__list { display: none; flex-direction: column; gap: var(--s1); padding-top: var(--s2); }
  .site-nav.is-open .nav__list { display: flex; }
  .masthead__right { gap: var(--s2); }
}

/* ===============================================================
   6. Hero slider
   Native scroll-snap. Autoplay pauses on hover, on focus, and is
   switched off entirely under prefers-reduced-motion.
   =============================================================== */

.slider { position: relative; background: var(--jade-deep); }

.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: clamp(26rem, 62vh, 36rem);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.slide__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }

.slide::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    to top,
    rgba(14, 46, 33, 0.93) 0%,
    rgba(14, 46, 33, 0.68) 42%,
    rgba(14, 46, 33, 0.24) 100%
  );
}

.slide__body {
  width: 100%; max-width: var(--wide); margin-inline: auto;
  padding: var(--s4) var(--s3) calc(var(--s5) + 1rem);
  color: var(--cream);
}

.slide__inner { max-width: 34ch; }
.slide__body .eyebrow { color: var(--honey); }

.slide__title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  color: var(--cream);
  margin-bottom: var(--s2);
}
.slide__title a { color: inherit; text-decoration: none; }
.slide__title a:hover { text-decoration: underline; text-decoration-color: var(--honey); }

.slide__text { color: rgba(251, 247, 240, 0.86); margin-bottom: var(--s3); }
.slide__meta { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s2); }

.slider__nav {
  position: absolute; left: 0; right: 0; bottom: var(--s3); z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
}

.slider__dots { display: flex; gap: 10px; }

.slider__dot {
  width: 10px; height: 10px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(251, 247, 240, 0.75);
  background: transparent; cursor: pointer;
}
.slider__dot[aria-current="true"] { background: var(--honey); border-color: var(--honey); }

.slider__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(251, 247, 240, 0.4);
  background: rgba(14, 46, 33, 0.45);
  color: var(--cream); cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
}
.slider__arrow:hover { background: var(--jade); border-color: var(--jade); }

.slider__pause {
  font-family: var(--font-ui); font-size: 0.75rem;
  background: rgba(14, 46, 33, 0.45); color: var(--cream);
  border: 1px solid rgba(251, 247, 240, 0.4);
  border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer;
}
.slider__pause:hover { background: var(--jade); }

@media (max-width: 40rem) {
  .slider__arrow { display: none; }
}

/* ===============================================================
   7. Carousels
   =============================================================== */

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-block: 4px var(--s2);
  scrollbar-width: thin;
}
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }

.carousel__controls { display: flex; gap: var(--s1); }

.carousel__btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); cursor: pointer; font-size: 1rem; line-height: 1;
  display: grid; place-items: center;
}
.carousel__btn:hover { border-color: var(--jade); color: var(--jade); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.section--dark .carousel__btn { background: transparent; border-color: rgba(251,247,240,0.35); color: var(--cream); }
.section--dark .carousel__btn:hover { background: var(--jade); }

.tile {
  width: min(19rem, 74vw);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--ink); }

.tile__media { aspect-ratio: 9 / 7; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }

.tile__body { padding: var(--s2) var(--s2) var(--s3); }
.tile__body h3 { margin: 0 0 4px; font-size: var(--step-1); }
.tile__body p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

.rcard {
  width: min(21rem, 78vw);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
}

.rcard__media { aspect-ratio: 3 / 2; overflow: hidden; }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.rcard:hover .rcard__media img { transform: scale(1.04); }

.rcard__body { padding: var(--s2); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.rcard__body h3 { margin: 0; font-size: var(--step-1); }
.rcard__body h3 a { color: var(--ink); text-decoration: none; }
.rcard__body h3 a:hover { color: var(--jade); }
.rcard__body p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

.rcard__foot {
  margin-top: auto; padding-top: var(--s1);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s1);
  font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

/* ===============================================================
   8. Verdicts and comparison board
   =============================================================== */

.verdict {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.verdict--buy     { background: #dcecd9; color: #1d5333; }
.verdict--depends { background: #f7e6c4; color: #7a5410; }
.verdict--skip    { background: #f6dbe2; color: #8a1f43; }

.board table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1);
}
.board thead th {
  text-align: left; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500;
  color: #fff; background: var(--jade); padding: var(--s2);
}
.board td { padding: var(--s2); border-top: 1px solid var(--rule); vertical-align: middle; }
.board tbody tr:hover { background: var(--jade-soft); }

.board__product { display: flex; align-items: center; gap: var(--s2); }
.board__thumb { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; flex: 0 0 auto; }
.board__product a {
  font-family: var(--font-display); font-size: var(--step-1);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  color: var(--ink); text-decoration: none;
}
.board__product a:hover { color: var(--jade); text-decoration: underline; }
.board__product small { display: block; font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.board__cost { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--font-ui); }

@media (max-width: 46rem) {
  .board thead { display: none; }
  .board table { box-shadow: none; background: transparent; }
  .board tr {
    display: block; background: var(--paper); border-radius: var(--r-md);
    margin-bottom: var(--s2); box-shadow: var(--shadow-1); padding: var(--s2);
  }
  .board td { display: block; border: 0; padding: 0 0 var(--s1); }
  .board tbody tr:hover { background: var(--paper); }
}

/* ===============================================================
   9. Grid
   =============================================================== */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s3); }
.grid .rcard { width: auto; }

/* ===============================================================
   10. Article
   =============================================================== */

.article-hero { background: var(--jade-deep); }
.article-hero img { width: 100%; height: clamp(14rem, 34vh, 24rem); object-fit: cover; opacity: 0.9; }

.article { padding-block: var(--s4) var(--s5); }
.article__header { max-width: var(--measure); margin-bottom: var(--s3); }
.article__meta { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 var(--s2); }
.article__meta a { color: var(--ink-soft); }

.factbox {
  max-width: var(--measure);
  background: var(--jade-soft);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  margin-bottom: var(--s3);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s2); margin: 0; }
.factbox dt { color: var(--ink-soft); }
.factbox dd { margin: 0; font-weight: 500; }

.disclosure {
  max-width: var(--measure);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream-2);
  border-left: 4px solid var(--honey);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s2);
  margin-bottom: var(--s3);
}
.disclosure p { margin: 0; }

.entry { max-width: var(--measure); }
.entry > * { margin-bottom: var(--s2); }
.entry h2 { margin-top: var(--s4); font-size: var(--step-2); }
.entry h3 { margin-top: var(--s3); }
.entry ul, .entry ol { padding-left: 1.35em; }
.entry li { margin-bottom: var(--s1); }
.entry a[rel~="sponsored"] { font-weight: 600; text-decoration-color: var(--honey); text-decoration-thickness: 2px; }

.entry blockquote {
  margin: var(--s3) 0; padding: var(--s2) var(--s3);
  background: var(--cream-2); border-radius: var(--r-md);
  color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55;
}
.entry blockquote p:last-child { margin-bottom: 0; }

.entry hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s4); }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.9rem; }
.entry th { background: var(--jade-soft); }
.entry th, .entry td { text-align: left; padding: var(--s1) var(--s2); border-bottom: 1px solid var(--rule); }
.entry figure { margin-inline: 0; }
.entry figure img { border-radius: var(--r-md); }
.entry figcaption { font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-soft); margin-top: var(--s1); }

.alignleft { float: left; margin: 0 var(--s2) var(--s2) 0; }
.alignright { float: right; margin: 0 0 var(--s2) var(--s2); }
.aligncenter { margin-inline: auto; }

.byl-verdict {
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--honey);
  padding: var(--s3);
  margin-block: var(--s4);
  box-shadow: var(--shadow-1);
}
.byl-verdict h3 { margin-top: 0; }
.byl-verdict p:last-child { margin-bottom: 0; }

.byl-pros, .byl-cons { border-radius: var(--r-md); padding: var(--s2) var(--s3); margin-block: var(--s2); }
.byl-pros { background: #e8f1e4; }
.byl-cons { background: #f9e7ec; }
.byl-pros h3, .byl-cons h3 { margin-top: 0; font-size: var(--step-1); }

/* ===============================================================
   11. Listings
   =============================================================== */

.listing { padding-block: var(--s4) var(--s5); }
.page-hero { background: var(--jade-deep); color: var(--cream); padding-block: var(--s4); }
.page-hero h1 { color: var(--cream); margin-bottom: var(--s1); }
.page-hero p { margin: 0; color: rgba(251,247,240,0.78); max-width: 52ch; }

.pagination { margin-top: var(--s4); font-family: var(--font-ui); font-size: 0.9rem; }
.pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px;
  padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--paper); text-decoration: none;
}
.pagination .page-numbers.current { background: var(--jade); color: #fff; border-color: var(--jade); }

/* ===============================================================
   12. Newsletter band
   =============================================================== */

.signup__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s4); align-items: center; }
@media (max-width: 52rem) { .signup__grid { grid-template-columns: 1fr; gap: var(--s3); } }
.signup__note { font-family: var(--font-ui); font-size: 0.82rem; color: rgba(251,247,240,0.66); }

/* ===============================================================
   13. Search
   =============================================================== */

.search-form { display: flex; gap: var(--s1); max-width: 26rem; }
.search-form input[type="search"] {
  flex: 1; font-family: var(--font-ui); font-size: 0.95rem;
  padding: 11px 16px; border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
}
.search-form button {
  font-family: var(--font-ui); font-size: 0.95rem; padding: 11px 20px;
  border: 0; border-radius: var(--r-pill); background: var(--jade); color: #fff; cursor: pointer;
}
.search-form button:hover { background: var(--jade-deep); }

/* ===============================================================
   14. Footer
   =============================================================== */

.site-footer { background: var(--jade-deep); color: rgba(251,247,240,0.76); padding-block: var(--s4); font-family: var(--font-ui); font-size: 0.9rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--s3); } }

.site-footer h2 { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; color: var(--honey); margin: 0 0 var(--s2); }
.site-footer p { max-width: 44ch; }
.site-footer a { color: rgba(251,247,240,0.86); }
.site-footer a:hover { color: var(--honey); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(251,247,240,0.16); margin-top: var(--s3); padding-top: var(--s2); font-size: 0.8rem; color: rgba(251,247,240,0.55); }

/* ===============================================================
   15. Motion and print
   =============================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__track, .carousel__track { scroll-behavior: auto; }
  .rcard__media img, .tile, .btn { transition: none; }
}

@media print {
  .masthead, .site-footer, .slider, .carousel, .signup { display: none; }
  body { background: #fff; font-size: 11pt; }
}
