/* ARTIKKEL LAYOUT */
.article-main {
  max-width: 720px;
  margin: 2rem auto 4rem;
  padding: 2.5rem 3rem 4rem;
  background: var(--surface-2);
  border: 0.5px solid var(--line-mid);
  border-radius: var(--r-xl);
  box-shadow: 6px 8px 0 rgba(44, 32, 24, 0.06);
}

@media (max-width: 760px) {
  .article-main {
    margin: 1rem;
    padding: 1.5rem 1.25rem 3rem;
    border-radius: var(--r-lg);
  }
}

.article-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
}
.back-link {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--bark);
}
.breadcrumb-sep {
  color: var(--line-mid);
}
.breadcrumb-current {
  color: var(--bark);
}

/* ARTICLE HEADER */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--line-mid);
}
.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--primary);
}
.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bark);
  margin-bottom: 1rem;
}
.article-lead {
  font-size: 17px;
  color: var(--stone);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 580px;
}
.article-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.article-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--line);
  color: var(--stone);
}
.article-status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.article-status--progress {
  background: var(--primary-dim);
  color: var(--primary);
}
.article-status--done {
  background: rgba(76, 175, 80, 0.12);
  color: #388e3c;
}

/* ARTICLE SECTIONS */
.article-section {
  margin-bottom: 3rem;
}
.article-h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bark);
  font-weight: 400;
  margin-bottom: 1rem;
}
.article-body {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* CALLOUT */
.article-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--straw-dim);
  border-left: 3px solid var(--straw);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 14px;
  color: var(--bark-mid);
  line-height: 1.7;
}
.callout-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* CASE CARDS */
.case-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1rem;
}
.case-card {
  background: var(--surface-2);
  border: 0.5px solid var(--line-mid);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: 3px 4px 0 rgba(44, 32, 24, 0.06);
}
.case-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.case-card-text {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.65;
  font-weight: 300;
}

/* TECH LIST */
.tech-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
}
.tech-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 0.5px solid var(--line-mid);
  border-radius: var(--r-md);
}
.tech-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--bark);
  min-width: 120px;
  flex-shrink: 0;
}
.tech-reason {
  font-size: 13px;
  color: var(--stone);
  font-weight: 300;
}

/* UNDERARTIKLER */
.subarticle-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subarticle-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-2);
  border: 0.5px solid var(--line-mid);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  box-shadow: 4px 6px 0 rgba(44, 32, 24, 0.07);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.subarticle-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 10px 0 rgba(44, 32, 24, 0.1);
}
.subarticle-card--soon {
  opacity: 0.5;
  pointer-events: none;
}
.subarticle-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.subarticle-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--bark);
  margin-bottom: 3px;
}
.subarticle-desc {
  font-size: 12px;
  color: var(--stone);
  font-weight: 300;
}
.subarticle-arrow {
  font-size: 16px;
  color: var(--stone);
  margin-left: auto;
}

/* DESIGN MANUAL - FARGER */
.color-palette {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.color-block {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  border: 0.5px solid var(--line-mid);
  box-shadow: 3px 4px 0 rgba(44, 32, 24, 0.06);
}
.color-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--bark);
}
.color-hex {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone);
}

/* DESIGN MANUAL - TYPOGRAFI */
.type-examples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.type-example {
  background: var(--surface-2);
  border: 0.5px solid var(--line-mid);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
}
.type-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.type-preview--heading {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--bark);
  line-height: 1.1;
  margin-bottom: 8px;
}
.type-preview--body {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 8px;
}
.type-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone);
}

/* ARTIKKELNAVIGASJON */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--line-mid);
}
.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-2);
  border: 0.5px solid var(--line-mid);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.article-nav-link:hover {
  transform: translateY(-2px);
}
.article-nav-link--next {
  text-align: right;
}
.article-nav-link--soon {
  opacity: 0.4;
  pointer-events: none;
}
.article-nav-dir {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone);
}
.article-nav-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--bark);
}

/* RESPONSIV */
@media (max-width: 600px) {
  .article-main {
    padding: 1.5rem 1rem 3rem;
  }
  .case-cards {
    grid-template-columns: 1fr;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
}
