/* yuliabeauty.com — «Про бьюти с Юлией Ульяновой».
   A light editorial beauty magazine: warm ivory paper, dusty rose, serif headlines. */

:root {
  --paper: #fbf7f3;
  --card: #ffffff;
  --blush: #f4e6e0;
  --blush-deep: #ead3ca;
  --rose: #b4706a;
  --rose-ink: #8f4f4a;
  --sage: #8c9c8a;
  --ink: #2a2224;
  --ink-soft: #6d6264;
  --line: #eadfd8;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --read: 720px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--rose-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────── */
.masthead { text-align: center; padding: 34px 0 18px; }
.logo { display: inline-block; text-decoration: none; color: var(--ink); }
.logo-name {
  display: block;
  font: 500 52px/1 var(--serif);
  letter-spacing: .01em;
}
.logo-name em { font-style: italic; color: var(--rose); }
.logo-tag {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 243, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 4px; }
.nav-links {
  display: flex; gap: 2px; flex: 1; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  white-space: nowrap;
  padding: 13px 13px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--rose); }
.nav-search {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); text-decoration: none;
}
.nav-search:hover { background: var(--blush); color: var(--rose-ink); }

/* ── Home ───────────────────────────────────────────── */
/* The three newest posts, side by side. */
.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 36px 0 18px; }

.card { display: block; color: inherit; text-decoration: none; }
.card-img {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--blush);
  aspect-ratio: 16 / 9; /* the shape of a YouTube preview: a video cover is shown whole */
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.035); }
.card-img.no-img::after {
  content: "Y"; position: absolute; inset: 0; display: grid; place-items: center;
  font: italic 500 72px/1 var(--serif); color: var(--blush-deep);
}
.card-meta {
  display: flex; gap: 10px; align-items: center; margin-top: 14px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.card-cat { color: var(--rose); font-weight: 700; }
.card-title {
  margin: 6px 0 0;
  font: 600 25px/1.18 var(--serif);
  color: var(--ink);
}
.card:hover .card-title { color: var(--rose-ink); }
.card-excerpt { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }


.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 54px 0 22px; }
.section-head h2 { margin: 0; font: 500 36px/1.1 var(--serif); }
.section-head h2 em { color: var(--rose); }
.section-head a { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }


.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }

.band {
  margin: 64px 0 0;
  padding: 44px 40px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--blush) 0%, #f3ece2 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
}
.band h2 { margin: 0 0 8px; font: 500 34px/1.12 var(--serif); }
.band p { margin: 0; color: var(--ink-soft); }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--rose-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 54px 0 0; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: grid; place-items: center;
  border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none;
  color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.pager a:hover { background: var(--blush); }
.pager .on { background: var(--ink); color: #fff; box-shadow: none; }
.pager .gap { background: none; box-shadow: none; }

/* ── Archive (category, tag) ───────────────────────── */
.archive-head { text-align: center; padding: 46px 0 6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }
.archive-head h1 { margin: 10px 0 6px; font: 500 54px/1.05 var(--serif); }
.archive-head p { margin: 0 auto; max-width: 600px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 0; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.chip:hover { background: var(--blush); color: var(--rose-ink); }
.chip.on { background: var(--rose); box-shadow: none; color: #fff; }
.archive-grid { margin-top: 40px; }

/* ── Post ──────────────────────────────────────────── */
.post-head { max-width: 860px; margin: 0 auto; padding: 48px 0 0; text-align: center; }
.post-head .card-meta { justify-content: center; margin: 0; }
.post-head h1 { margin: 14px 0 0; font: 500 52px/1.08 var(--serif); }
/* The cover at its own size at most, never stretched: no wider than the text, no taller
   than 520 px. */
.post-cover { max-width: var(--read); margin: 36px auto 0; }
.post-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; margin: 0 auto; border-radius: 16px; }

.prose { max-width: var(--read); margin: 40px auto 0; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 1.8em 0 .55em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--rose); }
.prose img { border-radius: 10px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { display: block; margin: 0 auto; }
.prose figcaption, .prose .wp-caption-text {
  margin-top: 8px; text-align: center; font-size: 14px; color: var(--ink-soft); font-style: italic;
}
.prose .wp-caption { max-width: 100%; margin: 1.8em auto; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose blockquote, .prose .wp-block-quote {
  margin: 1.8em 0; padding: 18px 26px;
  border-left: 3px solid var(--rose);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  font: italic 500 22px/1.5 var(--serif);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr, .prose .wp-block-separator {
  border: 0; height: 1px; margin: 2.4em auto; background: var(--line); max-width: 220px;
}
.prose .has-background { padding: 18px 22px; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose iframe { max-width: 100%; }
.prose .wp-block-embed__wrapper, .prose .embed-youtube { position: relative; }
.prose .wp-block-embed-youtube iframe, .prose .embed-youtube iframe, .prose iframe[src*="youtube"] {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px;
}
.prose .wp-block-image { text-align: center; }
.prose .wp-block-buttons a, .prose .wp-block-button__link {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
}

/* galleries of the old blog: Gutenberg, Jetpack tiled, classic */
.prose .wp-block-gallery, .prose .blocks-gallery-grid, .prose .gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 0; margin: 1.8em 0; list-style: none;
}
.prose .wp-block-gallery.columns-3, .prose .blocks-gallery-grid.columns-3, .prose .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.prose .wp-block-gallery figure, .prose .blocks-gallery-item { margin: 0; }
.prose .wp-block-gallery img, .prose .blocks-gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.prose .wp-block-gallery .blocks-gallery-grid { margin: 0; grid-column: 1 / -1; }
.prose .tiled-gallery__gallery { display: flex; flex-direction: column; gap: 8px; }
.prose .tiled-gallery__row { display: flex; gap: 8px; }
.prose .tiled-gallery__col { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; }
.prose .tiled-gallery__item { margin: 0; }
.prose .tiled-gallery__item img { width: 100%; }

.prose .wp-block-media-text {
  display: grid; grid-template-columns: 42% 1fr; gap: 26px; align-items: center; margin: 2em 0;
}
.prose .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 42%; }
.prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.prose .wp-block-media-text__media { margin: 0; }
.prose .wp-block-media-text__content > *:last-child { margin-bottom: 0; }
.prose .wp-block-columns { display: flex; gap: 24px; margin: 1.6em 0; }
.prose .wp-block-column { flex: 1; min-width: 0; }

.prose details.spoiler {
  margin: 1.6em 0; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.prose details.spoiler summary {
  cursor: pointer; padding: 14px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.prose details.spoiler summary::-webkit-details-marker { display: none; }
.prose details.spoiler summary::after { content: "+"; color: var(--rose); font-size: 22px; line-height: 1; }
.prose details.spoiler[open] summary::after { content: "–"; }
.prose details.spoiler > div { padding: 0 20px 16px; }
.prose::after { content: ""; display: block; clear: both; }

.post-tags { max-width: var(--read); margin: 34px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags .chip { font-size: 12px; }

.author {
  max-width: var(--read); margin: 44px auto 0;
  display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center;
  padding: 22px; border-radius: 18px; background: var(--blush);
}
.author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.author b { font: 600 22px/1.2 var(--serif); display: block; }
.author p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }

.comments { max-width: var(--read); margin: 54px auto 0; }
.comments h2 { font: 500 30px/1.1 var(--serif); margin: 0 0 18px; }
.comment { padding: 18px 0; border-top: 1px solid var(--line); }
.comment .comment { margin-left: 26px; padding-bottom: 0; }
.comment-who { font-weight: 700; font-size: 15px; }
.comment-who time { font-weight: 400; color: var(--ink-soft); margin-left: 8px; font-size: 13px; }
.comment-text { font-size: 15px; }
.comment-text p { margin: 6px 0; }

/* ── Search ────────────────────────────────────────── */
.search-box { max-width: 640px; margin: 26px auto 0; }
.search-box input {
  width: 100%; padding: 16px 22px; border-radius: 999px; border: 0;
  box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card);
  font: 400 17px var(--sans); color: var(--ink); outline: none;
}
.search-box input:focus { box-shadow: inset 0 0 0 2px var(--rose); }
.search-count { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 14px; }

/* ── Footer ────────────────────────────────────────── */
.footer { margin-top: 90px; padding: 54px 0 34px; background: var(--ink); color: #d9cdc8; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--blush-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer .logo-name { font-size: 36px; color: #fff; }
.footer h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a8999a; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3d3437; font-size: 13px; color: #9b8e8f; }

/* ── Phones and tablets ────────────────────────────── */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .band-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .masthead { padding: 24px 0 14px; }
  .logo-name { font-size: 38px; }
  .logo-tag { font-size: 10px; letter-spacing: .2em; }
  .nav-links { justify-content: flex-start; }
  .nav-links a { padding: 12px 10px; font-size: 12px; }
  .hero { margin-top: 22px; grid-template-columns: 1fr; gap: 34px; }
  .grid { grid-template-columns: 1fr; gap: 34px; }
  .section-head h2 { font-size: 29px; }
  .band { padding: 28px 22px; }
  .archive-head h1 { font-size: 40px; }
  .post-head { padding-top: 30px; }
  .post-head h1 { font-size: 34px; }
  .post-cover img { border-radius: 14px; }
  .prose h2 { font-size: 27px; }
  .prose h3 { font-size: 23px; }
  .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1em auto; display: block; }
  .prose .wp-block-media-text, .prose .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr; }
  .prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
  .prose .wp-block-columns { flex-direction: column; }
  .prose .tiled-gallery__row { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}
