/* ============================================================
   Peruánský deník — hlavní styly
   ============================================================ */

:root {
  --gold:    #c8963e;
  --dark:    #2b1d0e;
  --text:    #2e2416;
  --muted:   #7a6a55;
  --bg:      #faf7f2;
  --border:  #e2d9cc;
  --nav-bg:  #2b1d0e;
  --nav-link:#f0e6d3;
  --nav-hover:#c8963e;
  --max-w:   860px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

/* ---- HEADER ---- */
.site-header {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--dark);
}

.site-header img.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
}

.site-header .header-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(30,14,0,.35) 100%);
}

.site-header h1 {
  font-family: 'Palatino Linotype', Palatino, serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: .12em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.site-header .header-tagline {
  font-size: .95rem;
  color: #f0e6d3;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: .4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ---- NAV ---- */
.site-nav {
  background: var(--nav-bg);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-nav ul li a {
  display: block;
  padding: .65rem .9rem;
  color: var(--nav-link);
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  color: var(--nav-hover);
  text-decoration: none;
}

.site-nav ul li a.nav-ext {
  color: var(--gold);
  border-left: 1px solid #5a3e20;
  margin-left: .5rem;
  padding-left: 1.1rem;
}

/* ---- MAIN CONTENT ---- */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.page-title {
  font-family: 'Palatino Linotype', Palatino, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: .6rem;
  margin-bottom: .3rem;
}

.page-subtitle {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Article text */
.article p {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}

.article h2 {
  font-family: 'Palatino Linotype', Palatino, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--dark);
  margin: 2.2rem 0 .8rem;
}

/* ---- IMAGES ---- */
.article figure {
  margin: 2rem 0;
}

.article figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

.article figure figcaption {
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .5rem;
  text-align: center;
}

/* Half-width images (float) */
.article figure.img-right {
  float: right;
  width: 48%;
  margin: .5rem 0 1.5rem 2rem;
}

.article figure.img-left {
  float: left;
  width: 48%;
  margin: .5rem 2rem 1.5rem 0;
}

.article .clearfix::after { content: ''; display: table; clear: both; }

/* Portrait image — fixed 398 px, centered */
.article figure.portrait {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Two portrait images side by side */
.img-row {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}

.img-row figure {
  flex: 0 0 398px;
  width: 398px;
  margin: 0;
}

.img-row figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.img-row figure figcaption {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .4rem;
  text-align: center;
}

/* ---- DAY NAVIGATION ---- */
.day-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  margin: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.day-nav a {
  display: flex;
  flex-direction: column;
  width: 48%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
}

.day-nav a:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.day-nav .nav-label {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .3rem;
}

.day-nav .nav-title {
  font-size: 1rem;
  color: var(--dark);
}

.day-nav .nav-arrow { color: var(--gold); font-size: 1.2rem; }

.day-nav a.prev { align-items: flex-start; }
.day-nav a.next { align-items: flex-end; text-align: right; }

.day-nav a.disabled {
  pointer-events: none;
  opacity: .35;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: #a08060;
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: .82rem;
  margin-top: 1rem;
}

.site-footer a { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .site-header h1 { font-size: 1.9rem; }

  .site-nav ul li a {
    padding: .55rem .6rem;
    font-size: .72rem;
  }

  .article figure.img-right,
  .article figure.img-left {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }

  .img-row { flex-direction: column; }
  .img-row figure img { height: auto; }

  .day-nav { flex-direction: column; }
  .day-nav a { width: 100%; }
  .day-nav a.next { align-items: flex-start; text-align: left; }
}
