/* ==========================================================================
   Ljus & Ram – blogg om belysning och tavelramar
   ========================================================================== */

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #ffffff;
  --color-text: #2e2a26;
  --color-text-light: #6b6259;
  --color-accent: #c8873f;
  --color-accent-dark: #a06a2c;
  --color-border: #e6ddd1;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0 20px;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  letter-spacing: 0.5px;
  color: var(--color-text);
  margin: 0;
}

.logo span {
  color: var(--color-accent);
}

.tagline {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover {
  color: var(--color-accent-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #3a3128, #1f1a15);
  color: #f5efe6;
  padding: 70px 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin: 0 0 12px;
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #d8cdbe;
  font-size: 1.1rem;
}

/* Layout: blog list + sidebar */
.content-wrap {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 48px;
  padding: 56px 0;
}

@media (max-width: 800px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
}

/* Post cards */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.post-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.post-card .post-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--color-accent), #8a5a24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.post-card .post-body {
  padding: 22px 26px 28px;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.post-card h2 a {
  color: var(--color-text);
}

.post-card p {
  color: var(--color-text-light);
  margin: 0 0 14px;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar .widget {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

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

.sidebar li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.sidebar p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* Single post page */
.post-single {
  padding: 48px 0 64px;
}

.post-single .post-meta {
  margin-bottom: 8px;
}

.post-single h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin: 0 0 18px;
}

.post-hero {
  height: 260px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), #8a5a24);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.post-single-body {
  max-width: 760px;
}

.post-single-body h2 {
  font-family: var(--font-heading);
  margin-top: 34px;
}

.post-single-body p {
  margin-bottom: 18px;
}

.post-single-body ul {
  margin-bottom: 18px;
  padding-left: 22px;
}

.post-single-body li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

/* About page */
.page-content {
  padding: 56px 0 70px;
  max-width: 760px;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 20px;
}

.page-content p {
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  background: #1f1a15;
  color: #cbbfae;
  padding: 32px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: #e8c99a;
}
