/*
Theme Name: stilday
Template: blocksy
Author: stilday
Description: Дочерняя тема stilday — журнальная типографика, светлая воздушная вёрстка.
Version: 1.0.0
Text Domain: stilday
*/

/* ---------- Токены ---------- */
:root {
  --sd-bg: #ffffff;
  --sd-ink: #14110f;
  --sd-muted: #6f665f;
  --sd-line: #e9e3dc;
  --sd-accent: #8c1c13;
  --sd-soft: #f7f4f0;
  --sd-serif: "Playfair Display", "PT Serif", Georgia, serif;
  --sd-sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sd-radius: 2px;
}

/* ---------- База ---------- */
body {
  background: var(--sd-bg);
  color: var(--sd-ink);
  font-family: var(--sd-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .entry-title, .ct-heading {
  font-family: var(--sd-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sd-ink);
  line-height: 1.15;
}

h1 { font-size: clamp(34px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 2.2em; }
h3 { font-size: clamp(21px, 1.9vw, 26px); margin-top: 1.8em; }

a { color: var(--sd-ink); text-decoration-color: var(--sd-line); text-underline-offset: 3px; }
a:hover { color: var(--sd-accent); }

/* ---------- Текст статьи ---------- */
.entry-content {
  font-size: 19px;
  line-height: 1.72;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content > p:first-of-type::first-letter {
  font-family: var(--sd-serif);
  float: left;
  font-size: 3.4em;
  line-height: 0.86;
  padding: 0.06em 0.1em 0 0;
  color: var(--sd-accent);
}
.entry-content blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.4em;
  border-left: 2px solid var(--sd-accent);
  font-family: var(--sd-serif);
  font-size: 1.18em;
  font-style: normal;
  color: var(--sd-ink);
}
.entry-content figure { margin: 2.2em 0; }
.entry-content figcaption {
  font-size: 14px;
  color: var(--sd-muted);
  margin-top: 0.7em;
  line-height: 1.45;
}
.entry-content img { border-radius: var(--sd-radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.5em; }

/* ---------- Рубрики и мета ---------- */
.entry-meta, .ct-meta-element, .posted-by, .cat-links {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sd-muted);
}
.cat-links a, .entry-meta a { color: var(--sd-accent); text-decoration: none; }

/* ---------- Шапка ---------- */
.site-header, header.ct-header { border-bottom: 1px solid var(--sd-line); }
.ct-header .site-title, .site-title {
  font-family: var(--sd-serif);
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.ct-header nav a, .main-navigation a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Карточки на главной ---------- */
.entry-card, .ct-post-card {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.entry-card .entry-title, .ct-post-card .entry-title {
  font-size: clamp(22px, 2vw, 30px);
}
.entry-card .entry-card-content, .ct-post-card .card-content { padding: 18px 0 0; }
.entry-card img, .ct-post-card img { border-radius: var(--sd-radius); }

/* ---------- Подвал ---------- */
.site-footer, footer.ct-footer {
  border-top: 1px solid var(--sd-line);
  background: var(--sd-soft);
  font-size: 15px;
  color: var(--sd-muted);
}

/* ---------- Мелочи ---------- */
::selection { background: #f0e6da; }
.wp-block-image img { border-radius: var(--sd-radius); }
.ct-container, .ct-container-full { max-width: 1200px; }
