/* Borgafjällstugor – static modern version
   Clean Nordic mountain aesthetic */

:root {
  --bg: #f7f5f2;
  --bg-card: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --accent: #2c4a3e;          /* deep forest */
  --accent-hover: #1e342c;
  --wood: #8b6f4e;
  --border: #e8e4df;
  --shadow: 0 4px 24px rgba(28, 28, 28, 0.06);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ——— Header ——— */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
}
.logo span { color: var(--accent); font-weight: 400; }

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
}
.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: rgba(44, 74, 62, 0.08);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
}

/* ——— Hero ——— */
.hero {
  background: linear-gradient(160deg, #1e2a24 0%, #2c4a3e 45%, #3d5c4f 100%);
  color: #fff;
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/2015/05/header8.jpg") center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.btn {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--accent-hover);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  margin-left: 0.6rem;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ——— Layout ——— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* ——— Cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28,28,28,0.1);
}
.card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: #e8e4df;
}
.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ——— Content page ——— */
.page-header {
  padding: 2.75rem 1.5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-header .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}
.content-main {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.content-main h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}
.content-main p { margin-bottom: 1.1rem; }
.content-main img {
  border-radius: 8px;
  margin: 1.25rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.content-main .post-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.content-main .post-images img { margin: 0; }

.sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}
.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: 0.45rem; }
.sidebar-box a {
  color: var(--text);
  font-size: 0.95rem;
}
.sidebar-box a:hover { color: var(--accent); }

/* About specific */
.about-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

/* Timeline / project overview */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}
.timeline-item .year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.timeline-item h3 { font-size: 1.1rem; margin: 0.15rem 0 0.35rem; }

/* Footer */
.site-footer {
  background: #1e2a24;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; }
.site-footer .logo-foot {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ——— Responsive ——— */
@media (max-width: 800px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; width: 100%; padding-top: 0.5rem; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .content-main { padding: 1.5rem; }
  .content-main .post-images { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.25rem 4rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 0.6rem; display: inline-block; }
}
