/* Borislav's POV — single stylesheet for redesigned blog */

:root {
  --color-bg: #faf9f6;
  --color-text: #1a1a18;
  --color-text-muted: #6b6860;
  --color-accent: #b85c38;
  --color-border: #e8e4dc;
  --font-headline: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-size-base: 18px;
  --line-height-body: 1.75;
  --content-width: 700px;
  --content-padding: 1.5rem;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

/* ——— Layout shell ——— */

.site-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

/* ——— Site navigation ——— */

.site-nav {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}

.site-nav__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-nav__brand {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav__brand:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav__links a {
  color: var(--color-text);
}

.site-nav__links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 520px) {
  .site-nav__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Homepage post list ——— */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.post-entry:first-child {
  padding-top: 0;
}

.post-entry__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.post-entry__title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-entry__title a:hover {
  color: var(--color-accent);
}

.post-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.post-entry__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.lang-badge {
  display: inline-block;
  padding: 0.15em 0.45em;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  background: var(--color-accent);
  border-radius: 3px;
  text-transform: uppercase;
}

.post-entry__excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Photography index ——— */

.photo-index__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

@media (max-width: 600px) {
  .photo-index__title {
    font-size: 1.8rem;
  }
}

.photo-index__intro {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.photo-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.photo-index__item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.photo-index__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.photo-index__lead {
  margin: 0 0 0.75rem;
}

.photo-index__lead a {
  display: block;
}

.photo-index__lead img {
  width: 100%;
  display: block;
}

.photo-index__location {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.photo-index__location a {
  color: var(--color-text);
  text-decoration: none;
}

.photo-index__location a:hover {
  color: var(--color-accent);
}

.photo-index__desc {
  margin: 0 0 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-index__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ——— Single post ——— */

.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1.15;
  font-style: normal;
  margin: 0 0 0.75rem;
}

@media (max-width: 600px) {
  .post-title {
    font-size: 1.8rem;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.post-body {
  max-width: var(--content-width);
}

.post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.85;
  padding-right: 0.45rem;
  margin-top: 0.12em;
  color: var(--color-accent);
}

.about-page__header {
  margin-bottom: 2rem;
}

.about-page .post-body > p:first-of-type::first-letter {
  float: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  color: inherit;
}

.post-body p {
  margin: 0 0 1.25em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  margin: 1.75em 0 0.65em;
}

.post-body h2 {
  font-size: 1.65rem;
}

.post-body h3 {
  font-size: 1.35rem;
}

.post-body h4 {
  font-size: 1.15rem;
}

.post-body a {
  color: var(--color-accent);
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body figure {
  margin: 2rem 0;
}

.post-body img {
  border: none;
  outline: none;
  box-shadow: none;
}

.post-body figure img {
  width: 100%;
  display: block;
}

.post-body figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--color-text);
}

.post-body blockquote::before,
.post-body blockquote::after {
  content: none;
}

.post-body .post-copyright {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ——— Prev / next ——— */

.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.post-nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.post-nav__prev,
.post-nav__next {
  max-width: 48%;
}

.post-nav__next {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 520px) {
  .post-nav__prev,
  .post-nav__next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }
}

/* ——— Footer ——— */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

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

/* ——— Homepage archive ——— */

.home-archive-intro {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.home-archive .post-entry:last-child {
  border-bottom: none;
}

/* ——— 404 ——— */

.error-page .post-body > p:first-of-type::first-letter {
  float: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  color: inherit;
}
