/* ObserveForge — Design System
   Portfolio: Nabus AS
   Style: Consistent with FinOpsForge/GlucoseForge
   Accent: Slate blue (#1a5276) for DevOps/SRE context
   Build: 2026-06-02
*/

:root {
  --bg:          #f8f6f1;
  --surface:     #ffffff;
  --border:      #e8e2d9;
  --text:        #1a1a1a;
  --text-muted:  #6b6b6b;
  --accent:      #1a5276;
  --accent-light:#eaf0f6;
  --accent-hover:#154360;
  --success:     #1a7a4a;
  --warning:     #b7770d;
  --danger:      #c0392b;
  --radius:      6px;
  --shadow:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.10);
  --max-w:       1100px;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-ui:     'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

/* ─── Typography ─── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-body);
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--accent-light);
  padding: .1em .35em;
  border-radius: 3px;
}

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

/* ─── Navigation ─── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-ui);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: -.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 1.5rem; list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: .875rem; font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ─── Page header ─── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-header .label {
  font-family: var(--font-ui);
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.page-header p {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 600px; margin-bottom: 0;
}

/* ─── Main content area ─── */
main { padding: 3rem 0 5rem; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; }
}
.article-body h2 { margin-top: 2.5rem; }
.article-body h3 { margin-top: 2rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1rem 1.5rem;
}
.article-body li { margin-bottom: .4rem; }

/* ─── Card grid ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); font-size: .9rem; margin: 0; }
.card a.card-link {
  display: block; height: 100%; text-decoration: none; color: inherit;
}

/* ─── Calculator ─── */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.calc-box h2 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: .875rem; font-weight: 600;
  margin-bottom: .35rem;
}
.form-group input, .form-group select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.btn {
  font-family: var(--font-ui);
  font-size: .9rem; font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-left: .75rem;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.result-box {
  background: var(--accent-light);
  border: 1px solid #b8d0e8;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  display: none;
}
.result-box.visible { display: block; }
.result-box h3 {
  font-family: var(--font-ui);
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 1rem;
}
.result-primary {
  font-family: var(--font-mono);
  font-size: 2rem; font-weight: 700;
  color: var(--text); display: block;
  margin-bottom: .25rem;
}
.result-label {
  font-family: var(--font-ui);
  font-size: .85rem; color: var(--text-muted);
}
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.result-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.result-item .val {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 700;
  display: block; margin-bottom: .15rem;
}
.result-item .lbl {
  font-family: var(--font-ui);
  font-size: .75rem; color: var(--text-muted);
}

/* ─── Info box ─── */
.info-box {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .9rem;
}

/* ─── Table ─── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-ui); font-size: .875rem;
}
th {
  background: var(--accent);
  color: #fff; font-weight: 600;
  padding: .6rem 1rem; text-align: left;
}
td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #faf9f6; }
.highlight-row td { font-weight: 700; background: var(--accent-light) !important; }

/* ─── Sidebar ─── */
.sidebar { position: sticky; top: 72px; }
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-family: var(--font-ui);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: .75rem;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: .4rem; }
.sidebar-box a {
  font-family: var(--font-ui); font-size: .875rem;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-family: var(--font-ui); font-size: .8rem;
  color: var(--text-muted); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 .4rem; }

/* ─── Hero (homepage) ─── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
}
.hero-label {
  font-family: var(--font-ui);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .85rem;
}
.hero h1 { max-width: 700px; margin-bottom: 1rem; }
.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 580px; margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-cta a {
  font-family: var(--font-ui); font-weight: 600;
  padding: .7rem 1.5rem; border-radius: var(--radius);
  font-size: .9rem; text-decoration: none;
  transition: background .15s;
}
.cta-primary { background: var(--accent); color: #fff; }
.cta-primary:hover { background: var(--accent-hover); }
.cta-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Section label ─── */
.section-label {
  font-family: var(--font-ui);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: .5rem;
}

/* ─── Footer ─── */
footer {
  background: #1a1a1a; color: #aaa;
  padding: 3rem 0;
  font-family: var(--font-ui); font-size: .875rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 2rem; flex-wrap: wrap;
}
.footer-brand { color: #fff; font-weight: 700; margin-bottom: .35rem; }
.footer-desc { color: #888; font-size: .8rem; max-width: 280px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #888; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #333;
  color: #555; font-size: .8rem;
}

/* ─── Responsive nav ─── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-inner { gap: 1rem; }
}

/* ─── Utility ─── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-muted { color: var(--text-muted); font-size: .9rem; }
.text-mono { font-family: var(--font-mono); }
