@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --swedishred: #9c2b27;
  --leafgreen: #4a6b2c;
  --leafgreen-light: #719352;
  --leafgreen-dark: #3b5623;
  --creamwhite: #e9d7ab;
  --white: #ffffff;
  --black: #000000;
  --text-dark: #333333;
  --line: rgba(233, 215, 171, 0.16);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
  --header-height: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--creamwhite);
  background: var(--leafgreen);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 56px);
  background: var(--creamwhite);
  color: var(--leafgreen);
  border-bottom: 4px solid var(--leafgreen);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--leafgreen);
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #f4ecd2;
  border-color: var(--leafgreen);
  color: var(--leafgreen-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--leafgreen);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--creamwhite);
  color: var(--leafgreen);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - var(--header-height));
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)),
    var(--leafgreen);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.post-meta {
  margin: 0 0 10px;
  color: var(--creamwhite);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.9;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--creamwhite);
  font-family: 'Oswald', sans-serif;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  max-width: 920px;
  font-size: clamp(3rem, 8vw, 7.25rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.45rem;
}

.hero p:not(.eyebrow),
.page-title p,
.article-header p {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--creamwhite);
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(100%, 440px);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.hero-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.button.primary {
  background: var(--creamwhite);
  color: var(--leafgreen-dark);
  box-shadow: none;
}

.button.secondary {
  background: rgba(233, 215, 171, 0.12);
  color: var(--creamwhite);
  border: 1px solid rgba(233, 215, 171, 0.22);
}

.button:hover {
  opacity: 0.9;
}

.section,
.page,
.article-page {
  padding: clamp(44px, 8vw, 86px) clamp(18px, 5vw, 76px);
  background: var(--leafgreen);
  color: var(--creamwhite);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 26px;
  border-top: 4px solid var(--creamwhite);
}

.note-card,
.content-panel,
.contact-form,
.share-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.note-card {
  padding: 26px;
}

.note-card a,
.text-link {
  color: var(--creamwhite);
  font-weight: 700;
  text-decoration: underline;
}

.section-heading {
  margin-bottom: 28px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.post-media,
.post-thumb,
.article-hero,
.media-placeholder,
.video-placeholder {
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 18px;
  color: var(--creamwhite);
  font-weight: 700;
  text-decoration: none;
  background-color: var(--leafgreen-dark);
  background-image: linear-gradient(145deg, rgba(74, 107, 44, 0.22), rgba(59, 86, 35, 0.9));
  background-position: center;
  background-size: cover;
}

.post-media span,
.post-thumb span,
.article-hero span,
.video-placeholder span {
  border-radius: 6px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.2);
}

.forest {
  background:
    linear-gradient(145deg, rgba(77, 103, 55, 0.2), rgba(38, 53, 30, 0.92)),
    radial-gradient(circle at 78% 18%, var(--creamwhite) 0 11%, transparent 12%),
    linear-gradient(135deg, var(--leafgreen-light), var(--leafgreen) 58%, var(--leafgreen-dark));
}

.house {
  background:
    linear-gradient(145deg, rgba(77, 103, 55, 0.12), rgba(59, 86, 35, 0.9)),
    linear-gradient(45deg, var(--swedishred) 0 34%, var(--creamwhite) 35% 44%, var(--leafgreen) 45% 100%);
}

.video {
  background:
    linear-gradient(145deg, rgba(38, 53, 30, 0.15), rgba(38, 53, 30, 0.9)),
    radial-gradient(circle at 50% 50%, var(--creamwhite) 0 13%, transparent 14%),
    linear-gradient(135deg, var(--swedishred), var(--leafgreen-dark));
}

.lake {
  background:
    linear-gradient(145deg, rgba(38, 53, 30, 0.1), rgba(38, 53, 30, 0.85)),
    linear-gradient(180deg, var(--leafgreen-light) 0 45%, var(--creamwhite) 46% 54%, var(--leafgreen) 55% 100%);
}

.post-body {
  padding: 22px;
}

.post-body h3 a,
.post-row h2 a {
  text-decoration: none;
}

.page {
  min-height: calc(100vh - 180px);
}

.page.narrow,
.article-page article {
  max-width: 960px;
  margin: 0 auto;
}

.page-title {
  margin-bottom: 38px;
}

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

.post-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.post-row.muted {
  opacity: 0.82;
}

.post-thumb {
  min-height: 180px;
  border-radius: 10px;
}

.content-panel,
.contact-form,
.share-box {
  padding: clamp(22px, 4vw, 34px);
}

.content-panel h2 + p {
  margin-bottom: 30px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--creamwhite);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(233, 215, 171, 0.28);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-dark);
  font: inherit;
}

.form-success,
.form-error {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.form-success {
  background: rgba(233, 215, 171, 0.14);
}

.form-error {
  background: rgba(156, 43, 39, 0.24);
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.article-hero {
  min-height: 430px;
  border-radius: 14px;
}

.article-image {
  width: 100%;
  max-height: 560px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.article-content {
  padding: 34px 0;
  font-size: 1.08rem;
}

.article-content h2 {
  margin: 34px 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-placeholder {
  min-height: 170px;
  margin: 0;
  border-radius: 14px;
}

.media-placeholder figcaption {
  border-radius: 6px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.2);
}

.video-placeholder {
  min-height: 310px;
  border-radius: 14px;
}

.video-placeholder a {
  color: var(--creamwhite);
  font-weight: 700;
}

.share-box h2 {
  font-size: 1.8rem;
}

.share-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--creamwhite);
  font-weight: 700;
}

.share-output {
  width: 100%;
  min-height: 88px;
  margin-top: 12px;
  border: 1px solid rgba(233, 215, 171, 0.28);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-dark);
  font: inherit;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 76px);
  color: var(--creamwhite);
  background: var(--leafgreen);
  border-top: 4px solid var(--creamwhite);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--creamwhite);
  font-weight: 700;
  text-decoration: none;
}

.admin-body,
.admin-login-body {
  min-height: 100vh;
  background: var(--leafgreen);
}

.admin-topbar {
  position: static;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.admin-page-title {
  margin-bottom: 24px;
}

.admin-page-title h1,
.admin-form h2,
.admin-row h2 {
  color: var(--creamwhite);
}

.admin-page-title p {
  max-width: 760px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stats article,
.admin-form,
.admin-row,
.admin-login-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.admin-stats article {
  padding: 20px;
}

.admin-stats strong {
  display: block;
  color: var(--creamwhite);
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
}

.admin-stats span {
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.admin-table {
  display: grid;
  gap: 14px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button.danger {
  background: var(--swedishred);
  color: var(--white);
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-form label,
.admin-login-card label {
  display: grid;
  gap: 7px;
  color: var(--creamwhite);
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login-card input {
  width: 100%;
  border: 1px solid rgba(233, 215, 171, 0.28);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-dark);
  font: inherit;
}

.admin-login-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 30px;
}

.admin-login-card img {
  width: 94px;
  margin-bottom: 18px;
}

.admin-login-card h1 {
  margin-bottom: 22px;
  color: var(--creamwhite);
  font-size: 2.4rem;
}

.admin-alert,
.admin-success {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.admin-alert {
  background: rgba(156, 43, 39, 0.24);
}

.admin-success {
  background: rgba(233, 215, 171, 0.14);
}

.admin-help {
  margin-top: 18px;
  font-size: 0.92rem;
  opacity: 0.86;
}

.admin-help code {
  color: var(--creamwhite);
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .admin-topbar .site-nav {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero,
  .intro-grid,
  .contact-layout,
  .post-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-logo img {
    width: min(78vw, 330px);
  }

  .post-grid,
  .media-grid,
  .admin-stats,
  .admin-form-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .article-hero {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 170px;
    line-height: 1.1;
  }

  h1 {
    font-size: 2.7rem;
  }

  .section,
  .page,
  .article-page {
    padding-left: 16px;
    padding-right: 16px;
  }
}
