/*
Theme Name: Tvoj Ritem
Theme URI: https://tvojritem.si/
Author: Tvoj Ritem uredništvo
Description: Ženski portal o telesu, vsakdanu in osebnih glasovih.
Version: 1.2.0
Text Domain: tvojritem
*/

:root {
  --ink: #4a3340;
  --ink-soft: #6a4d5b;
  --muted: #9a7d88;
  --line: #eddde3;
  --paper: #fbf6f3;
  --white: #fffdfb;
  --rose: #c46b7a;
  --rose-deep: #a24e5f;
  --blush: #f4e6e4;
  --radius: 22px;
  --radius-sm: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap, .wp-block-group.alignwide { width: min(1180px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }

.promo {
  background: var(--blush);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
}
.promo strong { color: var(--rose-deep); }
.promo em { font-style: normal; color: var(--rose); }

.site-header {
  background: #fff9f7;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 12px;
}
.brand { text-align: center; }
.logo {
  font-family: Fraunces, Georgia, serif;
  font-weight: 720;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo span { color: var(--rose); }
.tagline {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-btn {
  border: 1px solid #e4c8ce;
  background: transparent;
  color: var(--rose-deep);
  font: 600 13px/1 "Source Sans 3", sans-serif;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-btn.solid { background: var(--rose); border-color: var(--rose); color: #fff; }
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 0 12px;
  flex-wrap: wrap;
  list-style: none;
}
.nav-menu a {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  color: var(--ink-soft);
  display: block;
}
.nav-menu a:hover, .nav-menu .current-menu-item a { color: var(--rose-deep); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.hero { display: grid; grid-template-columns: 1.45fr .9fr; gap: 28px; padding: 36px 0 10px; }
a.hero-main { display: block; color: inherit; }
    a.hero-main:hover h1 { color: var(--rose-deep); }
    .hero-main img, .wp-post-image { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); }
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
.hero-copy { padding-top: 16px; }
.hero-copy h1, .entry-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero-copy h1 { font-size: clamp(32px, 4vw, 48px); max-width: 18ch; }
.hero-copy p { margin-top: 12px; color: var(--ink-soft); font-size: 18px; max-width: 46ch; }
.meta { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.side-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.side-card img { width: 128px; height: 118px; object-fit: cover; }
.side-card .txt { padding: 12px 12px 12px 0; }
.side-card h3 { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 650; line-height: 1.2; }

.pillars { padding: 42px 0 10px; }
.section-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 22px 18px 18px;
  border-radius: var(--radius-sm);
  min-height: 168px;
  background-size: cover;
  background-position: center;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,250,247,.88), rgba(255,250,247,.62));
}
.pillar b { display: block; font-family: Fraunces, Georgia, serif; font-size: 22px; margin-bottom: 6px; }
.pillar span { color: var(--ink-soft); font-size: 14px; display: block; }
.p-telo { background-image: url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=800&q=80"); }
.p-telo::before { background: linear-gradient(180deg, rgba(247,232,228,.92), rgba(247,232,228,.58)); }
.p-hrana { background-image: url("https://images.unsplash.com/photo-1482049016688-2d3e1b311543?auto=format&fit=crop&w=800&q=80"); }
.p-hrana::before { background: linear-gradient(180deg, rgba(255,243,230,.92), rgba(255,243,230,.55)); }
.p-dom { background-image: url("https://images.unsplash.com/photo-1501183638710-841dd1904471?auto=format&fit=crop&w=800&q=80"); }
.p-dom::before { background: linear-gradient(180deg, rgba(236,232,224,.92), rgba(236,232,224,.55)); }
.p-odnosi { background-image: url("https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?auto=format&fit=crop&w=800&q=80"); }
.p-odnosi::before { background: linear-gradient(180deg, rgba(244,228,232,.92), rgba(244,228,232,.55)); }
.p-videz { background-image: url("https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=800&q=80"); }
.p-videz::before { background: linear-gradient(180deg, rgba(248,232,236,.92), rgba(248,232,236,.55)); }
.p-slovenija { background-image: url("https://images.unsplash.com/photo-1472214103451-9374bd1c798e?auto=format&fit=crop&w=800&q=80"); }
.p-slovenija::before { background: linear-gradient(180deg, rgba(228,236,230,.92), rgba(228,236,230,.55)); }
.p-blog { background-image: url("https://images.unsplash.com/photo-1518548419970-58e3b4079ab2?auto=format&fit=crop&w=800&q=80"); }
.p-blog::before { background: linear-gradient(180deg, rgba(246,220,226,.9), rgba(246,220,226,.52)); }

.cluster { padding: 36px 0; }
.cluster-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.cluster-head h2 { font-family: Fraunces, Georgia, serif; font-size: 34px; letter-spacing: -0.03em; }
.cluster-head p { color: var(--muted); max-width: 46ch; font-size: 15px; }
.cluster-head a { font-weight: 600; font-size: 14px; color: var(--rose-deep); white-space: nowrap; }
.cluster-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.story img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.story h3 { font-family: Fraunces, Georgia, serif; font-size: 24px; line-height: 1.2; margin-top: 12px; }
.story p { margin-top: 8px; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 10px 0 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel img { width: 100%; height: 260px; object-fit: cover; }
.panel-body { padding: 22px; }
.panel-body h2 { font-family: Fraunces, Georgia, serif; font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
.recipe-list { margin-top: 16px; }
.recipe-list li {
  list-style: none;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.recipe-list small { color: var(--muted); font-weight: 500; }

.blogs { padding: 20px 0 36px; }
.blog-lead {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.blog-cover { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center; }
.blog-lead-copy { padding: 32px 32px 32px 28px; }
.persona { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.persona img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.persona strong { display: block; font-size: 14px; }
.persona span { color: var(--muted); font-size: 13px; }
.blog-lead-copy h3 { font-family: Fraunces, Georgia, serif; font-size: 32px; line-height: 1.15; letter-spacing: -0.03em; }
.blog-lead-copy p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }
.quote { margin-top: 16px; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.35; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
}
.blog-card > img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.blog-card h3 { font-family: Fraunces, Georgia, serif; font-size: 22px; line-height: 1.2; margin: 6px 0 8px; }
.blog-card p { color: var(--ink-soft); font-size: 15px; }

.latest { padding: 20px 0 28px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius); }
.mini h3 { font-family: Fraunces, Georgia, serif; font-size: 20px; margin-top: 10px; line-height: 1.25; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.foot b { color: var(--ink); display: block; margin-bottom: 10px; }
.foot a { display: block; padding: 3px 0; }
.legal { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Single article */
.single-wrap { width: min(760px, calc(100% - 40px)); margin: 36px auto 64px; }
.single-hero { width: min(1180px, calc(100% - 40px)); margin: 24px auto 0; }
.single-hero img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); }
.entry-header h1 { font-size: clamp(34px, 5vw, 48px); margin: 12px 0 10px; }
.entry-content p { font-size: 19px; line-height: 1.7; margin: 0 0 1.15em; color: var(--ink); }
.entry-content h2 { font-family: Fraunces, Georgia, serif; font-size: 28px; margin: 1.6em 0 .6em; letter-spacing: -0.02em; }
.entry-content blockquote {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--rose-deep);
  margin: 1.6em 0;
  padding-left: 18px;
  border-left: 3px solid var(--rose);
}
.author-box {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--rose-deep); }

@media (max-width: 980px) {
  .hero, .cluster-grid, .two-col, .latest-grid, .foot, .pillar-grid, .blog-lead, .blog-grid { grid-template-columns: 1fr 1fr; }
  .hero-main img, .single-hero img { height: 320px; }
}
@media (max-width: 680px) {
  .wrap, .single-wrap, .single-hero { width: min(1180px, calc(100% - 28px)); }
  .hero, .cluster-grid, .two-col, .latest-grid, .foot, .pillar-grid, .side-card, .blog-lead, .blog-grid, .blog-card { grid-template-columns: 1fr; }
  .hero-main img, .blog-cover, .single-hero img { height: 240px; min-height: 0; }
  .side-card img { width: 100%; height: 180px; }
}
@media (max-width: 820px) {
  .header-top {
    position: relative;
    justify-content: center;
    padding: 8px 0;
  }
  .logo { font-size: 22px; }
  .tagline { display: none; }
  .nav-burger { display: flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .site-header nav { display: none; background: #fff9f7; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ nav { display: block; }
  .nav-toggle:checked ~ .header-top .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .header-top .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .header-top .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }
  .nav-menu a { padding: 12px 4px; font-size: 16px; }
}

.site-form, .site-search { display: grid; gap: 12px; margin: 18px 0 28px; max-width: 480px; }
.site-form label { font-size: 14px; font-weight: 600; color: var(--ink-soft); display: grid; gap: 6px; }
.site-form input, .site-form textarea, .site-search input {
  font: 400 16px/1.4 "Source Sans 3", sans-serif;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.site-form button, .site-search button {
  justify-self: start;
  border: 0;
  background: var(--rose);
  color: #fff;
  font: 600 14px/1 "Source Sans 3", sans-serif;
  padding: 12px 16px;
  border-radius: 999px;
}
.nav-search { display:flex; justify-content:center; padding:0 0 14px; }
.nav-search form { display:flex; gap:8px; margin:0; max-width:340px; width:min(340px, calc(100% - 24px)); }
