/* Glass Skin Diary — soft pink & sage editorial skincare theme.
   System fonts only; nothing fetched over the network. */

:root {
  --pink-50:  #fdf4f6;
  --pink-100: #fbe8ed;
  --pink-200: #f5d3dd;
  --pink-300: #edb8c8;
  --pink-500: #d98aa0;
  --pink-600: #c26b83;
  --sage-50:  #f5f8f1;
  --sage-100: #e9f0e1;
  --sage-200: #d3e3c3;
  --sage-400: #a3bf8a;
  --sage-600: #70885a;
  --sage-700: #566a44;
  --cream:    #fffaf6;
  --white:    #ffffff;
  --ink:      #3a3133;
  --ink-soft: #857577;
  --line:     #f0e2e5;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(170, 110, 130, 0.09);
  --font-serif: Georgia, "Iowan Old Style", Palatino, "Times New Roman", serif;
  --font-sans: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; border-radius: var(--radius-md); }

a { color: var(--sage-700); text-decoration: none; }
a:hover { color: var(--pink-600); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--ink); line-height: 1.2; }

/* ---------- header ---------- */

.site-header {
  background: linear-gradient(180deg, var(--pink-50), var(--cream) 85%);
  border-bottom: 1px solid var(--line);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 14px;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.site-logo em { font-style: italic; color: var(--pink-600); }

.site-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  text-align: right;
}

.site-nav { padding: 6px 0 16px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  display: inline-block;
  color: var(--sage-700);
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
}

.site-nav a:hover { background: var(--sage-100); color: var(--sage-700); }
.site-nav a.current { background: var(--sage-600); border-color: var(--sage-600); color: #fff; }

/* ---------- ad containers ---------- */

.ad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--pink-50) 0 12px, var(--sage-50) 12px 24px);
  border: 1px dashed var(--pink-300);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 22px 0;
}

.ad::before { content: "Advertisement"; }

.ad[data-ad="leader"] { min-height: 90px; }
.ad[data-ad="inline"] { min-height: 150px; }
.ad[data-ad="rail"] { min-height: 260px; }

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 18px 0 4px;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--pink-600); }

/* ---------- layout for article pages ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
  padding: 26px 0 60px;
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

/* ---------- post / article ---------- */

article.post { min-width: 0; }

.post-header { margin-bottom: 18px; }

.post-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-600);
  background: var(--pink-100);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.post-header h1 {
  font-size: 40px;
  margin: 0 0 14px;
}

.post-dek {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.skin-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.skin-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-700);
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  padding: 5px 12px;
  border-radius: 999px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 26px;
}

.byline strong { color: var(--ink); }

.post-hero { margin-bottom: 24px; }
.post-hero img { width: 100%; height: 440px; object-fit: cover; }

figure { margin: 26px 0; }
figcaption {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  font-style: italic;
}

.post-body { font-size: 17px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body li { margin-bottom: 7px; }

.post-section { margin-bottom: 6px; scroll-margin-top: 90px; }

.post-section h2 {
  font-size: 26px;
  margin: 38px 0 14px;
  color: var(--sage-700);
}

.post-section h3 { font-size: 19px; margin: 22px 0 10px; }

/* ---------- routine cards ---------- */

ol.routine {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

ol.routine li {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 58px;
  box-shadow: var(--shadow-soft);
}

ol.routine li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-200);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

ol.routine li strong.step-name { display: block; font-size: 16px; margin-bottom: 3px; }
ol.routine li .step-note { color: var(--ink-soft); font-size: 14px; margin: 0; }

.routine-block { margin: 28px 0; }
.routine-block h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-700);
  margin-bottom: 4px;
}
.routine-block h3::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage-400);
  display: inline-block;
}
.routine-block.pm h3::before { background: var(--pink-500); }

/* ---------- ingredient callouts ---------- */

.ingredient {
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-left: 5px solid var(--sage-400);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}

.ingredient .ingredient-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--sage-700);
  margin: 0 0 6px;
}

.ingredient .what-it-does {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}

.ingredient p { margin: 0 0 8px; }
.ingredient p:last-child { margin-bottom: 0; }

/* ---------- before / after placeholders ---------- */

.before-after {
  margin: 28px 0;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.before-after-grid figure { margin: 0; }
.before-after-grid img { height: 220px; object-fit: cover; width: 100%; }

.before-after-grid .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.before-after-grid .after .label { background: var(--pink-600); }
.before-after-note { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 10px; }

/* ---------- product cards ---------- */

.product-module {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 30px 0;
  box-shadow: var(--shadow-soft);
}

.product-module h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--pink-600);
}

.product-module > p.product-module-note { color: var(--ink-soft); font-size: 14px; margin-top: -4px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--pink-50);
  display: flex;
  flex-direction: column;
}

.product-card .product-name { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.product-card .product-meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.product-card .price { font-weight: 700; color: var(--sage-700); }
.product-card p.product-desc { font-size: 14px; color: var(--ink); margin: 0 0 12px; flex: 1; }

.product-card .shop-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sage-600);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
}
.product-card .shop-link:hover { background: var(--sage-700); color: #fff; }

/* ---------- disclosure / disclaimer ---------- */

.disclosure {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin: 26px 0;
  font-style: italic;
}

.disclaimer {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink-500);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 26px 0;
}

/* ---------- sources ---------- */

.sources { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.sources h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-family: var(--font-sans); margin-bottom: 10px; }
.sources ol { font-size: 13px; color: var(--ink-soft); padding-left: 20px; }
.sources li { margin-bottom: 7px; word-break: break-word; }

/* ---------- sidebar / rail ---------- */

aside.rail {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rail-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.rail-box h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pink-600);
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 14px;
}

.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--pink-600); }

.shelf-widget .shelf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.shelf-item { display: flex; gap: 12px; align-items: center; }
.shelf-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.shelf-item .shelf-name { font-size: 13px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.shelf-item .shelf-price { font-size: 12px; color: var(--sage-700); font-weight: 700; }
.shelf-item a.shelf-shop { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pink-600); font-weight: 700; }

.author-box { text-align: center; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.author-box p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--sage-700);
  color: #eef4e8;
  padding: 44px 0 30px;
  margin-top: 46px;
}

.site-footer h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #d9e7cd;
  font-family: var(--font-sans);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.related-grid a { color: #fff; font-weight: 600; font-size: 15px; }
.related-grid a:hover { text-decoration: underline; color: #fbe8ed; }

.site-footer .legal {
  font-size: 12px;
  color: #c9dab8;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 18px;
}

.site-footer .legal a { color: #eef4e8; text-decoration: underline; }

/* ---------- home page ---------- */

.hero-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  margin: 32px 0 46px;
  align-items: center;
}

@media (max-width: 760px) { .hero-feature { grid-template-columns: 1fr; } }

.hero-feature img { border-radius: var(--radius-lg); height: 320px; object-fit: cover; width: 100%; }

.hero-feature .kicker {
  color: var(--pink-600);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero-feature h1 { font-size: 36px; margin: 0 0 14px; }
.hero-feature p.dek { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }

.intro-blurb {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.topic-section { margin: 48px 0; }

.topic-section .topic-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--pink-200);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.topic-section h2 { font-size: 25px; margin: 0; color: var(--sage-700); }
.topic-section .topic-sub { font-size: 13px; color: var(--ink-soft); font-style: italic; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.card img { width: 100%; height: 170px; object-fit: cover; border-radius: 0; }

.card .card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.card .kicker-sm {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink-600);
  font-weight: 700;
}

.card h3 { font-size: 17px; margin: 7px 0 0; line-height: 1.3; font-family: var(--font-serif); }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--pink-600); }

.card p.dek { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; flex: 1; }
.card .card-meta { font-size: 11px; color: var(--ink-soft); margin-top: 10px; display: flex; gap: 10px; align-items: center; }

/* ---------- about page ---------- */

.about-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px 70px;
}

.about-main .about-hero {
  border-radius: var(--radius-lg);
  height: 300px;
  object-fit: cover;
  margin-bottom: 30px;
}

.about-main h1 { font-size: 36px; }
.about-main h2 { font-size: 22px; margin-top: 34px; color: var(--sage-700); }

/* Pubber: a filled ad container drops its placeholder styling */
.pb-filled{background:none !important;border:0 !important;min-height:0 !important;height:auto !important}
.pb-filled::before,.pb-filled::after{content:none !important;display:none !important}
