/* =========
   Default theme (Jan style) — universal
   Based on your site.css, adapted to blog components.
   ========= */

/* --- Fonts (kept compatible with your original) --- */
@font-face {
  font-family: "Lobster";
  src: url("https://www.janmotal.cz/design/fonts/Lobster-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Manuale";
  src: url("https://www.janmotal.cz/design/fonts/Manuale-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Righteous";
  src: url("https://www.janmotal.cz/design/fonts/Righteous-Regular.ttf") format("truetype");
  font-display: swap;
}

/* --- Theme variables --- */
:root{
  --bg1: #015b76;
  --bg2: #186447;
  --fg: #fffff0;
  --muted: rgba(244,244,246,.75);

  --accent: #739842;
  --accent2: #97c4c5;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.18);

  --shadow: 0 0 18px rgba(255,43,214,.18), 0 0 28px rgba(125,249,255,.08);
  --radius: 18px;
}

/* --- Base --- */
html,body{
  margin:0;padding:0;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,43,214,.12), transparent 60%),
              radial-gradient(1000px 700px at 80% 20%, rgba(125,249,255,.10), transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  color:var(--fg);
  font-family: "Manuale", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-rendering: geometricPrecision;
}

a{ color: var(--fg); }
a:hover{ text-decoration: none; }

h1,h2,h3{
  font-family: "Righteous", "Manuale", sans-serif;
  letter-spacing: .01em;
}

h1{
  margin:.2rem 0 .35rem 0;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  text-shadow: var(--shadow);
}

.muted{ opacity:.78; }

.small{ font-size:.92rem; }

.blog-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1rem 2.5rem 1rem;
}

/* --- Top / Menu --- */

.blog-nav{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.blog-header{
  text-align:center;
  margin-bottom: 1rem;
}

.blog-title{
  margin:.2rem 0 .25rem 0;
}

.blog-subtitle{
  margin-bottom: .8rem;
}

.blog-nav{
  justify-content:center;
  margin: .6rem 0 .2rem 0;
}

.filterbar{
  margin: .65rem 0 .2rem 0;
  display:flex;
  gap:.55rem;
  justify-content:center;
  flex-wrap:wrap;
}

.hero{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pill{
  display:inline-block;
  padding:.35rem .65rem;
  border-radius:999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  font-family: "Righteous", sans-serif;
  font-size: .88rem;
  letter-spacing: .02em;
}

.pill:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(255,43,214,.35);
}

.pill.active{
  border-color: rgba(125,249,255,.45);
  box-shadow: 0 0 16px rgba(125,249,255,.14);
}

/* --- Layout grid --- */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px){
  .grid{ grid-template-columns: 1fr 2fr; }
}

/* --- Aside box --- */
.empty{
  padding: 1rem;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
}

.intro{
  margin-top: .6rem;
  line-height: 1.35;
}

/* --- Posts --- */
.posts{ min-width: 0; }

.post{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 22px rgba(0,0,0,.25);
  overflow:hidden;
  margin-bottom: 1rem;
}

.post-h{
  display:flex;
  gap:.75rem;
  align-items:baseline;
  justify-content:space-between;
  padding: .9rem 1rem;
  cursor:pointer;
  user-select:none;
  background: linear-gradient(90deg, rgba(255,43,214,.10), rgba(125,249,255,.06));
}

.post-h:hover{
  background: linear-gradient(90deg, rgba(255,43,214,.14), rgba(125,249,255,.08));
}

.post-h h3{
  margin:0;
  font-size: 1.08rem;
  text-shadow: 0 0 10px rgba(255,43,214,.12);
}

.post-year{
  opacity: .8;
  font-size: .86rem;
  white-space: nowrap;
  font-family: "Righteous", sans-serif;
}

.post-ex{
  padding: 1.5em 1em;
  opacity: .92;
  line-height: 1.35;
  font-style: italic;
}

.post-body{
  display:none;
  padding: 0 1rem 1rem 1rem;
  line-height: 1.45;
}

.post-body.open{ display:block; }
.post-body p{ margin: .65rem 0; }
.post-body a{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.post-body a:hover{
  color: var(--accent2);
}
.post-body strong{ color: #fff; }
.post-body em{ opacity: .95; }

.post-body img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 18px rgba(125,249,255,.10);
}

/* --- Tag cloud --- */
.tagcloud{
  display:flex;
  flex-wrap:wrap;
  gap: .55rem;
  margin-top: .65rem;
}

/* nice selection */
::selection{
  background: rgba(255,43,214,.35);
  color: #fff;
}

.hero-img{
  display:block;
  width:100%;
  height:auto;
  max-height: 420px;   /* klidně nech, jen omezí výšku */
  object-fit: contain; /* neřeže */
}

.hero-intro{
  margin: .6rem 0 1rem 0;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  line-height: 1.4;
}

.post-body ul, .post-body ol{
  margin: .6rem 0 .6rem 1.25rem;
  padding: 0;
}
.post-body li{
  margin: .25rem 0;
}
.post-body blockquote{
  margin: .75rem 0;
  padding: .6rem .9rem;
  border-left: 4px solid rgba(125,249,255,.45);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
}
.post-body blockquote p{
  margin: 0;
}


