/*
Theme Name: Lika Aura
Theme URI: https://psycholog-lika.ru
Author: khandogina-blog / Aura Designer
Description: Своя тема по референсу workshop (AURA copy-in-copy): кремовый холст, капсулы, слоистый serif, портрет в центре.
Version: 1.0.17
Text Domain: lika-aura
*/

:root {
  --lika-primary: #8A7068;
  --lika-primary-hover: #6F5850;
  --lika-on-primary: #ffffff;
  --lika-bg: #E8E4DE;
  --lika-surface: #F4F1EC;
  --lika-text: #2B2623;
  --lika-muted: #6B625C;
  --lika-display: rgba(255, 255, 255, 0.58);
  --lika-display-2: #9A8B7E;
  --lika-outline: #C9C2BA;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lika-bg);
  color: var(--lika-text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 22px 32px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  padding: 8px 4px;
  color: var(--lika-muted);
}

.nav a.is-current,
.nav-pill {
  background: var(--lika-primary);
  color: var(--lika-on-primary) !important;
  border-radius: 9999px;
  padding: 8px 16px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-display {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  z-index: 1;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(72px, 14vw, 168px);
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.hero-display span {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

.hero-display span:first-child {
  color: var(--lika-display);
}

.hero-display span:nth-child(2),
.hero-display span:nth-child(3) {
  color: var(--lika-display-2);
  margin-top: -0.08em;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 420px;
  margin: 28vh 6vw 0 auto;
  text-align: left;
}

.hero-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lika-muted);
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-family: var(--font-ui);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-copy h1 strong { font-weight: 700; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lika-primary);
  color: var(--lika-on-primary);
  border-radius: 9999px;
  padding: 14px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(138, 112, 104, 0.22);
}

.btn-pill:hover { background: var(--lika-primary-hover); }

.hero-url {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--lika-muted);
}

.section {
  padding: 72px 24px 96px;
  background: var(--lika-surface);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 36px;
}

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

.post-card {
  background: var(--lika-bg);
  border-radius: 8px;
  padding: 28px 24px 32px;
  min-height: 180px;
}

.post-card time {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lika-muted);
  margin-bottom: 10px;
}

.post-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.entry {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.entry h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 24px;
}

.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 28px; font-weight: 600; margin: 1.6em 0 0.6em; }

.site-footer {
  padding: 28px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--lika-muted);
}

@media (max-width: 900px) {
  .hero-copy {
    margin: 40vh auto 48px;
    text-align: center;
    padding: 0 20px;
  }
  .posts { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; padding-top: 88px; overflow-x: hidden; }
  .hero-display {
    top: 92px;
    /* одно кегле для всех слов; 7.5 ≈ ширина «ХАНДОГИНА» + поля */
    font-size: calc((100vw - 20px) / 7.5);
    letter-spacing: 0.03em;
  }
}

/* --- тестовая страница /test: светлая стена и тени веток --- */
body.is-test-wall {
  background-color: #F5F0E8;
  background-image: url("assets/test-wall.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.is-test-wall .hero {
  background: transparent;
}

body.is-test-wall .section {
  background: rgba(245, 240, 232, 0.42);
}

body.is-test-wall .post-card {
  background: rgba(255, 252, 247, 0.82);
}

body.is-test-wall .site-footer {
  background: transparent;
}

@media (max-width: 900px) {
  body.is-test-wall {
    background-attachment: scroll;
    background-position: center top;
  }
}
