/* RESETTI */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* MUUTTUJAT */
:root {
  --sidebar-width: 25vw;
  --content-width: 70vw;
}

/* PERUSTYYLIT */
html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #faf5ec;
    background-color: #221d1b;
    background-image: url("images/tausta1pc.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

/* HEADER */
.header-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.root-header {
    display: grid;
    grid-template-columns: 2vw auto 0 auto 1fr 3fr 1fr;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    height: 15vh;
    box-sizing: border-box;
}

.grid-item {
    display: flex;
    align-items: center;
}
.item4 {
    flex-direction: column;
}

.logo {
    height: 4.5vw;
    width: auto;
}

.site-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.site-title-line1 {
    font-size: 1.4vw;
    font-weight: 400;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
}
.site-title-line2 {
    font-size: 0.8vw;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
    font-weight: 400;
    margin-top: 0.2vw;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 2vw;
    font-family: 'Cinzel', serif;
    font-size: 0.8vw;
}
.nav-links a {
    position: relative;
    padding: 0 1.5vw;
    font-size: 1.12vw;
    color: #faf5ec;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    text-align: center;
}
.nav-links a:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -0.75vw;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #faf5ec;
    opacity: 0.6;
}
.nav-links a:hover,
.nav-links .active {
    color: #ceaa5b;
}


/* MAIN */
main.blog-container {
  flex: 1;
  display: flex;
  margin: 2vw auto;
  gap: 4vw;
  width: 90vw;
  flex-shrink: 0;
}

/* SIDEBAR */
.blog-sidebar {
  width: var(--sidebar-width);
}

.blog-sidebar ul {
  list-style: none;
}

.blog-sidebar li {
  background-color: rgba(45, 64, 53, 0.6);
  margin-bottom: 0.5vw;
  padding: 1vw;
  cursor: pointer;
  border-radius: 0.5vw;
  transition: background-color 0.3s;
  font-size: 0.83vw;
}

.blog-sidebar li:hover {
  background-color: rgba(70, 90, 70, 0.8);
}

.blog-sidebar li.active {
  background-color: #2e2e2e;
  color: #ceaa5b;
  font-weight: bold;
  border-left: 0.4vw solid #ceaa5b;
}

/* SISÄLTÖ */
.blog-content {
  flex: 1;
  background-color: transparent;
  border-radius: 1vw;
  padding: 1vw;
  overflow: hidden;
}

.blog-entry {
  display: none;
  color: #faf5ec;
  font-size: 0.95vw;
  line-height: 1.4;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url("images/ruiskuvalumuotti tausta suunnitteluperiaatteet.webp") center/cover no-repeat;
  border-radius: 0.5vw;
  padding: 2vw;
}

/* ENTRY4 - KUVA */
#entry4 .entry4-kuva {
  float: right;
  width: 40%;
  margin-left: 1vw;
  margin-bottom: 1vw;
  border-radius: 0.5vw;
}

/* FOOTER */
.root-footer {
  height: 2vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9vw;
  flex-shrink: 0;
}

.root-footer p {
  color: #443a2a;
}
