:root {
  --ink: #2d2923;
  --muted: #6f665a;
  --surface: #fffdf9;
  --surface-soft: #f3ede3;
  --line: #d9cbb8;
  --brand: #8a5f2d;
  --brand-dark: #67421f;
  --accent: #eadbc4;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(73, 52, 31, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-soft);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
}

main {
  flex: 1;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.97);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--brand-dark);
  background: var(--accent);
}

.hero,
.product-hero {
  padding: 88px 0;
  background: linear-gradient(135deg, #efe4d2 0%, #fbf7f0 70%);
  border-bottom: 1px solid var(--line);
}

.product-hero {
  padding: 64px 0;
}

/* Home page research hero */
.home-hero {
  position: relative;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  background-color: #efe4d2;
  background-image:
    linear-gradient(90deg,
      rgba(239, 228, 210, 0.98) 0%,
      rgba(239, 228, 210, 0.94) 30%,
      rgba(239, 228, 210, 0.69) 43%,
      rgba(239, 228, 210, 0.16) 57%,
      rgba(239, 228, 210, 0) 72%),
    url("security-awareness-banner.webp");
  background-repeat: no-repeat;
  background-position: center, center right;
  background-size: cover, cover;
}

.home-hero-inner {
  min-height: 430px;
  display: flex;
  align-items: center;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 55%);
  padding: 72px 0;
}

.home-hero h1 {
  max-width: 620px;
}

.home-hero .lead {
  max-width: 600px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.2rem;
}

/* Page feature images */
.about-hero-image,
.research-hero-image {
  width: 100%;
  max-width: 720px;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: 0 14px 34px rgba(73, 52, 31, 0.12);
}

.about-hero-image img,
.research-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 72px 0;
}

.content-block {
  margin-top: 44px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  color: #fffdf9;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 7px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #fffdf9;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-secondary {
  color: var(--brand-dark);
  background: transparent;
}

.button-secondary:hover {
  color: #fffdf9;
}

.button-full {
  width: 100%;
}

.product-card {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.product-listing {
  margin-top: 36px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  color: var(--brand-dark);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-actions,
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  flex-direction: row;
  align-items: stretch;
}

.text-link,
.back-link {
  font-weight: 800;
  text-decoration: none;
}

.back-link {
  display: block;
  width: max-content;
  margin-bottom: 24px;
}

.feature-list {
  padding-left: 22px;
}

.feature-list li + li {
  margin-top: 7px;
}

.small-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card,
.spec-card,
.notice {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.contact-card {
  margin-top: 36px;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.details-grid h2:not(:first-child) {
  margin-top: 42px;
}

.notice {
  margin-top: 34px;
  border-left: 4px solid var(--brand);
}

.spec-card {
  position: sticky;
  top: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.spec-card dl {
  margin: 0 0 24px;
}

.spec-card dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spec-card dd {
  margin: 0 0 16px;
}

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 300;
}

@media (max-width: 760px) {
  .header-inner {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    padding: 6px 8px;
  }

  .hero,
  .product-hero,
  .section {
    padding: 52px 0;
  }

  .home-hero {
    min-height: 0;
    padding: 0;
    background-image:
      linear-gradient(180deg,
        rgba(239, 228, 210, 0.99) 0%,
        rgba(239, 228, 210, 0.94) 48%,
        rgba(239, 228, 210, 0.62) 72%,
        rgba(239, 228, 210, 0.22) 100%),
      url("security-awareness-banner.webp");
    background-position: center, 68% center;
    background-size: cover, cover;
  }

  .home-hero-inner {
    min-height: 500px;
    align-items: flex-start;
  }

  .home-hero-copy {
    width: 100%;
    max-width: 620px;
    padding: 52px 0 190px;
  }

  .product-card,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    gap: 24px;
  }

  .card-actions {
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .spec-card {
    position: static;
  }
}


.capability + .capability {
  margin-top: 30px;
}

.capability h3 {
  color: var(--brand-dark);
}

code {
  padding: 0.1em 0.35em;
  color: var(--brand-dark);
  background: var(--accent);
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.command-example {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #fffdf9;
  background: var(--ink);
  border-radius: 7px;
}

.command-example code {
  padding: 0;
  color: inherit;
  background: transparent;
  white-space: pre;
}

.analyst-statement {
  font-size: 1.05rem;
}


/* Articles */
.article-container {
  max-width: 790px;
}

.article-index-hero h1,
.article-hero h1 {
  max-width: 850px;
}

.article-card {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body {
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1.35em;
}

.article-body h2 {
  margin-top: 2.3em;
  margin-bottom: 0.7em;
  padding-top: 0.25em;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.article-intro {
  color: #51483e;
  font-size: 1.18rem;
  line-height: 1.75;
}

.article-cta {
  margin-top: 56px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.article-cta h2 {
  margin-top: 0;
  padding-top: 0;
}

.article-cta p {
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .article-card,
  .article-cta {
    padding: 24px;
  }

  .article-body {
    font-size: 1rem;
  }
}


@media (max-width: 860px) {
  .header-inner {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Product screenshots */
.product-screenshot {
  width: 100%;
  margin: 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.product-screenshot figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}


/* Featured articles on the home page */
.featured-articles-section {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-heading-link {
  white-space: nowrap;
}

.featured-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.featured-article-card {
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.featured-article-card:hover {
  border-color: #cdbb9f;
  border-top-color: var(--brand-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.featured-article-card h3 {
  margin: 16px 0 12px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.featured-article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.featured-article-card h3 a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.featured-article-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.featured-article-link {
  margin-top: auto;
}

@media (max-width: 1000px) {
  .featured-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .featured-articles-grid {
    grid-template-columns: 1fr;
  }

  .featured-article-card {
    min-height: 0;
  }
}

/* Featured FjordPDF product card */
.product-card-fjordpdf {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg,
      rgba(255, 253, 249, 1) 0%,
      rgba(255, 253, 249, 1) 42%,
      rgba(255, 253, 249, 0.96) 52%,
      rgba(255, 253, 249, 0.78) 65%,
      rgba(255, 253, 249, 0.28) 82%,
      rgba(255, 253, 249, 0.08) 100%),
    url("fjordpdf-card-bg.webp");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: cover, auto 100%;
}

.product-card-fjordpdf > * {
  position: relative;
  z-index: 1;
}


/* Mannerud.org research and Security Awareness Cycle additions */
.home-software-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.cross-site-card {
  margin-top: 0;
}

.cross-site-card h2 {
  margin: 14px 0 10px;
}

.cross-site-card p:last-child {
  margin-bottom: 0;
}

.phase-summary {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: phases;
}

.phase-summary li {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  counter-increment: phases;
}

.phase-summary li::before {
  content: counter(phases);
  width: 38px;
  height: 38px;
  color: #fffdf9;
  background: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.phase-summary span {
  color: var(--muted);
  font-size: 0.92em;
}

.resource-links {
  margin-top: 60px;
  padding-top: 4px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.resource-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resource-card h3 {
  margin: 6px 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.source-note {
  margin: 34px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--brand);
  background: var(--surface-soft);
}

.source-note p {
  margin: 0;
}

.cycle-figure {
  width: 100%;
  margin: 0 0 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.cycle-figure img {
  display: block;
  width: min(100%, 617px);
  height: auto;
  margin: 0 auto;
}

.cycle-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cycle-steps {
  margin: 50px 0;
}

.cycle-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.cycle-step:last-child {
  border-bottom: 1px solid var(--line);
}

.phase-number {
  width: 52px;
  height: 52px;
  color: #fffdf9;
  background: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.cycle-step h2 {
  margin: 0 0 12px;
  padding: 0;
}

.cycle-step p:last-child {
  margin-bottom: 0;
}

.reference-entry {
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.reference-entry h3 {
  margin: 10px 0 14px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.reference-entry p:last-child {
  margin-bottom: 0;
}

.reference-type {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-note h2 {
  font-size: 1.35rem;
}

@media (max-width: 760px) {
  .phase-summary,
  .resource-card-grid {
    grid-template-columns: 1fr;
  }

  .cycle-figure {
    padding: 12px;
  }

  .cycle-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .phase-number {
    width: 42px;
    height: 42px;
  }

  .reference-entry,
  .resource-card {
    padding: 22px;
  }
}
