/*
 * merike.ee – look of the original site (2016–2023, Twenty Sixteen): wood texture and brown-red page
 * background, books logo, brown-red accents and navy links. Loaded after style.css; delete this file's
 * enqueue in functions.php (merike_classic_legacy_assets) to go back to the plain theme.
 */
:root {
  --legacy-brown: #87371b;
  --legacy-brown-dark: #6a2913;
  --legacy-navy: #00093d;
  --wine: #87371b;
  --wine-dark: #6a2913;
  --clay: #a6512f;
  --blue: #00093d;
  --line: #e2c9b4;
}

/* Page background: original wood texture tinted toward the original brown-red. */
html {
  background: var(--legacy-brown);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 214, 170, 0.18), transparent 60%),
    linear-gradient(rgba(135, 55, 27, 0.5), rgba(96, 36, 16, 0.62)),
    url("wood.gif") repeat,
    var(--legacy-brown);
  background-attachment: fixed, fixed, fixed, fixed;
}

/* The content "page" sits on the wood like a sheet of paper (as in the old framed layout). */
.site-shell {
  margin: 26px auto;
  min-height: calc(100vh - 52px);
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(60, 20, 8, 0.35),
    0 22px 60px rgba(30, 10, 3, 0.55);
}

/* Original books logo next to the site name. */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
}

.masthead::before {
  content: "";
  grid-row: 1 / span 2;
  width: clamp(64px, 8vw, 96px);
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fff url("logo-books.jpg") center / 86% no-repeat;
  box-shadow: 0 6px 18px rgba(80, 30, 10, 0.18), inset 0 0 0 1px rgba(135, 55, 27, 0.18);
}

.site-title,
.entry-block h1,
.entry-block h2,
.entry-block h3,
.widget h2,
.widget h3 {
  color: var(--legacy-brown-dark);
}

.site-description {
  color: var(--legacy-brown);
}

/* Menu bar in the original brown-red with a soft wood-like depth. */
.main-navigation {
  background: linear-gradient(180deg, #964026, var(--legacy-brown) 55%, #7a3017);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

/* Links in the original navy. */
.entry-block a:not(.button),
.widget a:not(.button),
.footer a {
  color: var(--legacy-navy);
}

.entry-block a:not(.button):hover,
.widget a:not(.button):hover,
.footer a:hover {
  color: var(--legacy-brown);
}

/* Video course and member area follow the same palette. */
.mvm-shell {
  --wine: #87371b;
  --wine-2: #a6512f;
  --blue: #00093d;
}

@media (max-width: 700px) {
  .site-shell {
    margin: 0 auto;
    border-radius: 0;
    min-height: 100vh;
  }
  body {
    background-attachment: scroll, scroll, scroll, scroll;
  }
}

@media print {
  body {
    background: #fff;
  }
}
