/* ───────────────────────────────────────────────────────────────────────
   yksikvanem.com — premium static template
   ─────────────────────────────────────────────────────────────────────── */

/* Fonts (system stack — fast, secure, no FOIT) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color palette — warm, supportive, feminine but not infantile */
  --bg: #fbf7f3;
  --bg-soft: #f5ecdf;
  --bg-card: #ffffff;
  --text: #1d1a17;
  --text-soft: #5d544c;
  --text-muted: #8c8278;
  --accent: #b54a73;
  --accent-dark: #8a345a;
  --accent-soft: #f0d6e1;
  --accent-light: #fef0f5;
  --border: #ebe2d5;
  --border-strong: #d9cdbb;
  --success: #5b8a3a;

  /* Sizes */
  --max: 1180px;
  --content-max: 760px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(50, 30, 20, 0.04);
  --shadow: 0 4px 16px rgba(50, 30, 20, 0.06);
  --shadow-lg: 0 12px 40px rgba(50, 30, 20, 0.08);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

/* ─── HEADER ──────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(251, 247, 243, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.site-title a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-title a:hover { color: var(--accent-dark); }
.site-title a::before {
  content: '';
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-light);
}
.site-title .tagline {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-soft);
  border-radius: 100px;
  padding: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  color: var(--text-soft);
  transition: all var(--transition);
}
.lang-switch a:hover {
  color: var(--text);
}
.lang-switch a.active {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ─── NAVIGATION ──────────────────────────────────────────────────────── */

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 73px;
  z-index: 99;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.nav-inner li a {
  display: block;
  padding: 1rem 0.9rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.nav-inner li a::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-inner li a:hover,
.nav-inner li a.active {
  color: var(--text);
  text-decoration: none;
}
.nav-inner li a:hover::after,
.nav-inner li a.active::after {
  transform: scaleX(1);
}

/* ─── LAYOUT ──────────────────────────────────────────────────────────── */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}
.content { min-width: 0; }

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; gap: 3rem; padding-top: 2rem; }
  .sidebar { order: 2; }
  .site-nav { top: 0; position: relative; }
  .nav-inner ul { flex-wrap: nowrap; overflow-x: auto; }
  .nav-inner li a { padding: 0.9rem 0.8rem; white-space: nowrap; }
}

/* ─── HERO (home page) ────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--accent-dark);
  position: relative;
}
.hero p {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 540px;
  position: relative;
}
.hero p:last-child { margin-bottom: 0; }

/* ─── SECTION HEADINGS ────────────────────────────────────────────────── */

.section-title {
  margin: 0 0 1.5rem !important;
  font-size: 1.7rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* ─── ARTICLE PAGE ────────────────────────────────────────────────────── */

article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 3rem;
  box-shadow: var(--shadow-sm);
}
article > h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
}
.post-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.post-meta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.post-meta a { color: var(--text-muted); }

article p {
  margin: 0 0 1.3rem;
  font-size: 1.05rem;
}
article p:first-of-type {
  font-size: 1.18rem;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.6;
}
article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.45rem;
  position: relative;
  padding-left: 1rem;
}
article h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  bottom: 0.3em;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
article h3 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}
article blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
}
article blockquote.alignleft,
article blockquote.alignright {
  max-width: 280px;
  font-size: 1.05rem;
}
article blockquote.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
article blockquote.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }

article ul, article ol {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}
article ul li, article ol li {
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}
article ul li::marker { color: var(--accent); }
article ol li::marker { color: var(--accent); font-weight: 700; }

article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
article img.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; max-width: 50%; }
article img.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; max-width: 50%; }
article img.aligncenter { display: block; margin: 1.5rem auto; }

article a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--transition);
}
article a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

article strong { color: var(--text); font-weight: 600; }

/* clear floats after article content */
article::after { content: ''; display: table; clear: both; }

/* ─── POST LIST (blog index, home) ────────────────────────────────────── */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.post-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.post-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.post-list h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
}
.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-list li:hover h2 a { color: var(--accent-dark); }
.post-list .date {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.post-list .date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.post-list p {
  margin: 0.7rem 0 0 !important;
  color: var(--text-soft) !important;
  font-size: 0.97rem !important;
  line-height: 1.6;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────── */

.sidebar {
  position: sticky;
  top: 130px;
  align-self: start;
}
@media (max-width: 900px) {
  .sidebar { position: static; }
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget h3 {
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.widget h3::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  line-height: 1.4;
}
.widget li:last-child { border-bottom: none; }
.widget li:first-child { padding-top: 0; }
.widget li a {
  color: var(--text);
  display: block;
  transition: color var(--transition);
}
.widget li a:hover { color: var(--accent-dark); text-decoration: none; }

.widget p { margin: 0; font-size: 0.93rem; }
.widget p a { font-weight: 500; color: var(--accent-dark); }

/* ─── FOOTER ──────────────────────────────────────────────────────────── */

.site-footer {
  background: linear-gradient(180deg, #1f1a1d 0%, #15110f 100%);
  color: #c8b8b0;
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  font-size: 0.95rem;
}
@media (max-width: 750px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.site-footer h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-footer p { margin: 0; color: #a89a90; line-height: 1.65; max-width: 380px; }
.site-footer a {
  color: #e8b8cc;
  transition: color var(--transition);
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.3rem 0; color: #a89a90; }
.footer-bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.86rem;
  color: #6b5f57;
}

/* ─── UTILITY ─────────────────────────────────────────────────────────── */

.clear { clear: both; }
::selection { background: var(--accent-soft); color: var(--text); }

/* ─── PRINT ───────────────────────────────────────────────────────────── */

@media print {
  .site-header, .site-nav, .site-footer, .sidebar { display: none; }
  main { grid-template-columns: 1fr; padding: 0; }
  article { box-shadow: none; border: none; padding: 0; }
}
