/*
Theme Name: Valtaluoma Modern
Theme URI: https://www.valtaluoma.fi/
Author: Valtaluoma
Description: Kevyt ja selkeä teema Valtaluoman maatila- ja energiasisällölle.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: valtaluoma-modern
*/

:root {
  --vm-pine: #173b31;
  --vm-deep: #102b25;
  --vm-leaf: #526c4e;
  --vm-cream: #f5f2e9;
  --vm-paper: #fffdf8;
  --vm-ink: #1d2923;
  --vm-muted: #667169;
  --vm-line: #d8ded1;
  --vm-gold: #d9ad68;
  --vm-shadow: 0 22px 70px rgba(16, 43, 37, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--vm-cream);
  color: var(--vm-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  top: 12px;
  left: 12px;
  z-index: 100000;
  background: #fff;
  color: #000;
}

.vm-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.vm-header {
  position: relative;
  z-index: 10;
  background: var(--vm-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.vm-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.vm-brand {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.vm-brand small {
  display: block;
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.27em;
  opacity: 0.72;
}

.vm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 26px;
}

.vm-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.86;
}

.vm-nav a:hover,
.vm-nav a:focus-visible {
  color: var(--vm-gold);
  opacity: 1;
}

.vm-main {
  min-height: calc(100vh - 180px);
  padding: clamp(42px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(217, 173, 104, 0.17), transparent 28rem),
    var(--vm-cream);
}

.vm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--vm-leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.vm-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px);
  background: var(--vm-paper);
  border: 1px solid var(--vm-line);
  border-radius: 18px;
  box-shadow: var(--vm-shadow);
}

.vm-kicker {
  margin: 0 0 12px;
  color: var(--vm-leaf);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vm-title {
  margin: 0 0 30px;
  color: var(--vm-pine);
  font: 400 clamp(2.25rem, 6vw, 4.8rem) / 1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.vm-content {
  font-size: 1.04rem;
}

.vm-content > :first-child { margin-top: 0; }
.vm-content > :last-child { margin-bottom: 0; }

.vm-content h2,
.vm-content h3 {
  color: var(--vm-pine);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
}

.vm-content a { color: #37654f; }

.vm-content .valtaluoma-pv-live {
  margin-top: 12px !important;
  margin-bottom: 6px !important;
  box-shadow: none !important;
}

.vm-post-list {
  display: grid;
  gap: 22px;
}

.vm-post {
  padding: 26px;
  background: var(--vm-paper);
  border: 1px solid var(--vm-line);
  border-radius: 14px;
}

.vm-post h2 {
  margin: 0 0 8px;
  color: var(--vm-pine);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.vm-post h2 a { text-decoration: none; }

.vm-footer {
  padding: 34px 0;
  background: var(--vm-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.vm-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.vm-footer a { color: #fff; }

@media (max-width: 760px) {
  .vm-shell { width: min(100% - 30px, 1120px); }
  .vm-header__inner { padding: 18px 0; align-items: flex-start; }
  .vm-nav { max-width: 190px; gap: 7px 15px; }
  .vm-nav a { font-size: 0.68rem; }
  .vm-card { border-radius: 12px; }
  .vm-footer__inner { flex-direction: column; }
}

