:root {
  --forest: #46563f;
  --forest-dark: #303c2b;
  --sage: #718066;
  --sage-light: #dce2d4;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #2e322d;
  --muted: #646b62;
  --line: #ded9cd;
  --shadow: 0 18px 50px rgba(45, 54, 41, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  padding: .7rem 1rem; background: white; border-radius: 8px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70,86,63,.12);
}
.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .8rem;
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: white; background: var(--forest);
  font-family: Georgia, serif; font-size: 1.55rem;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.15rem; }
.brand small { display: block; color: var(--muted); margin-top: -.15rem; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--forest); }
.nav-login {
  color: white !important; background: var(--forest);
  padding: .65rem 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 700;
}
.menu-toggle {
  display: none; border: 0; background: transparent; font-size: 1.7rem;
}

.hero {
  position: relative; min-height: 650px;
  display: grid; align-items: end; overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  background: url("../img/vattarna-hero.jpg") center/cover no-repeat;
  transform: scale(1.015);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(34,43,30,.78) 0%, rgba(34,43,30,.50) 45%, rgba(34,43,30,.08) 78%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 2rem)); margin: 0 auto;
  padding: 9rem 0 6rem; color: white; max-width: 1180px;
}
.hero-content > * { max-width: 680px; }
.hero h1 {
  font-family: Georgia, serif; font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  line-height: .95; margin: .35rem 0 1.3rem;
  letter-spacing: -.04em;
}
.hero p:not(.eyebrow) { font-size: 1.2rem; max-width: 600px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .77rem; font-weight: 800; color: var(--sage);
  margin: 0 0 .5rem;
}
.hero .eyebrow { color: #e6eadf; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 46px; padding: .75rem 1.15rem;
  border-radius: 999px; text-decoration: none; font-weight: 750; border: 1px solid transparent;
}
.button.primary { background: var(--forest); color: white; }
.hero .button.primary { background: white; color: var(--forest-dark); }
.button.ghost { border-color: rgba(255,255,255,.65); color: white; background: rgba(255,255,255,.08); }
.button.light { background: var(--cream); color: var(--forest-dark); }
.button.full { width: 100%; }
button:disabled { opacity: .55; cursor: not-allowed; }

.section, .paper-section { padding: 5.5rem 0; }
.section-inner { width: min(1120px, calc(100% - 2rem)); margin: auto; }
.paper-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(113,128,102,.09), transparent 28%),
    var(--cream);
}
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.intro h2, .section h2, .feature-section h2, .member-teaser h2, .contact-split h2 {
  font-family: Georgia, serif; font-weight: 500; letter-spacing: -.025em;
  font-size: clamp(2.1rem, 4vw, 3.55rem); line-height: 1.08; margin: .25rem 0 1rem;
}
.intro p { max-width: 700px; }
.booklet-card {
  margin: 0; padding: 1rem;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(70,86,63,.12);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.booklet-card img { border-radius: 13px; width: 100%; }
.booklet-card figcaption { color: var(--muted); font-size: .85rem; padding: .8rem .2rem 0; }

.section-heading { margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card {
  min-height: 265px;
  padding: 1.55rem;
  border: 1px solid var(--line); border-radius: 20px;
  background: white;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-light); }
.info-card .icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; background: var(--sage-light); color: var(--forest-dark);
  font-family: Georgia, serif; font-weight: 800; font-size: 1.1rem;
}
.info-card h3, .service-card h3 { font-family: Georgia, serif; font-size: 1.35rem; margin: 1rem 0 .45rem; }
.info-card p { color: var(--muted); margin: 0 0 1rem; }
.info-card a { margin-top: auto; color: var(--forest); font-weight: 800; text-decoration: none; }

.feature-section { padding: 0; background: var(--forest-dark); color: white; }
.feature-split { min-height: 560px; grid-template-columns: 1fr 1fr; }
.feature-photo {
  align-self: stretch;
  background: url("../img/vattarna-hero.jpg") 45% center/cover no-repeat;
  margin-left: calc((100vw - min(1120px, calc(100vw - 2rem))) / -2);
}
.feature-copy { padding: 4rem 0; }
.feature-copy .eyebrow { color: #cfd9c8; }
.notice {
  margin-top: 2rem; padding: 1.25rem 1.35rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
}
.notice p { margin: .25rem 0 0; color: #e5e9e2; }

.soft { background: #f1f3ed; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { background: white; border-radius: 18px; padding: 1.5rem; border: 1px solid #dfe4da; }
.service-card p { color: var(--muted); }
.service-card a { color: var(--forest); font-weight: 800; }

.member-teaser { padding: 4.5rem 0; background: var(--forest); color: white; }
.member-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.member-inner > div { max-width: 720px; }
.member-teaser .eyebrow { color: #d8e0d2; }
.member-teaser h2 { margin-bottom: .5rem; }
.member-teaser p { color: #e5e9e2; }

.contact-split { align-items: start; }
.contact-note {
  padding: 1.5rem; border-radius: 18px; background: var(--cream); border: 1px solid var(--line);
}
.contact-note h3 { font-family: Georgia, serif; font-size: 1.4rem; margin-top: 0; }

.site-footer { background: #20281d; color: #e9ede5; padding: 3rem 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { color: #bfc8ba; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #e9ede5; }
.footer-bottom {
  margin-top: 2rem; padding: 1rem max(1rem, calc((100vw - 1120px)/2));
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem;
  color: #aeb8a8; font-size: .84rem;
}

/* Login */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(38,49,34,.76), rgba(38,49,34,.76)),
    url("../img/vattarna-hero.jpg") center/cover fixed;
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-card {
  width: min(480px, 100%); background: rgba(255,253,248,.97);
  border-radius: 24px; padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.26);
}
.login-brand { margin-bottom: 2.2rem; }
.login-card h1 { font-family: Georgia, serif; font-size: 2.7rem; margin: .2rem 0 .5rem; }
.muted { color: var(--muted); }
.login-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.login-form label { display: grid; gap: .35rem; font-weight: 700; }
.login-form input {
  width: 100%; padding: .8rem .9rem; border: 1px solid #cacfc5;
  border-radius: 12px; background: #f7f8f5;
}
.prototype-note {
  margin: 1.2rem 0; padding: 1rem; border-radius: 13px;
  background: #eef1e9; border: 1px solid #d7ddcf;
}
.prototype-note p { margin: .25rem 0 0; font-size: .9rem; }
.back-link { color: var(--forest); font-weight: 750; text-decoration: none; }

/* Article pages */
.compact-header { position: relative; }
.article-main {
  padding: 4rem 1rem 6rem;
  background:
    radial-gradient(circle at 85% 5%, rgba(113,128,102,.13), transparent 28%),
    var(--cream);
  min-height: 75vh;
}
.article-card {
  width: min(820px, 100%); margin: auto; padding: clamp(1.5rem, 5vw, 3.5rem);
  background: white; border-radius: 24px; box-shadow: var(--shadow);
}
.article-card > h1 {
  font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1; margin: .4rem 0 2rem; letter-spacing: -.035em;
}
.article-body h2 { font-family: Georgia, serif; font-size: 1.65rem; margin-top: 2rem; margin-bottom: .4rem; }
.article-body p { color: #444a43; }
.article-contact { margin-top: 2.5rem; padding: 1.2rem; background: var(--cream); border-radius: 16px; }
.article-contact p { margin-bottom: 0; }
.small-footer { padding-top: 0; }
.small-footer .footer-bottom { margin-top: 0; }

@media (max-width: 850px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 68px;
    flex-direction: column; align-items: stretch; padding: 1rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .6rem .4rem; }
  .nav-login { text-align: center; }
  .split, .feature-split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .feature-photo {
    min-height: 360px; margin-left: calc((100vw - min(1120px, calc(100vw - 2rem))) / -2);
    margin-right: calc((100vw - min(1120px, calc(100vw - 2rem))) / -2);
  }
  .member-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 580px) {
  .hero { min-height: 620px; }
  .hero-shade { background: linear-gradient(0deg, rgba(34,43,30,.84) 0%, rgba(34,43,30,.50) 65%, rgba(34,43,30,.15)); }
  .hero-content { padding-bottom: 3.5rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .card-grid { grid-template-columns: 1fr; }
  .section, .paper-section { padding: 4rem 0; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .booklet-card { max-width: 340px; margin-inline: auto; }
}
