/* ==========================================================================
   nordicops.dev — Mikko Laaksonen's personal engineering log
   Design tokens: terminal-inspired, Nordic-ice palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --bg: #0D1117;
  --bg-raised: #141A21;
  --bg-card: #161B22;
  --border: #2B3540;
  --border-soft: #1E2530;
  --text: #C9D1D9;
  --text-dim: #8B96A3;
  --text-faint: #5C6773;
  --ice: #7DD3C0;
  --ice-bright: #9FE8D8;
  --amber: #E8A33D;
  --amber-dim: #B9802C;
  --red: #E5534B;
  --blue: #6CA9DE;

  /* Type */
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --content-width: 760px;
  --wide-width: 1100px;
  --radius: 6px;

  /* Effects */
  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,0.45);
  --shadow-md: 0 20px 40px -20px rgba(0,0,0,0.6);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,0.65);
  --glow-ice: 0 0 0 1px rgba(125,211,192,0.25), 0 8px 24px -8px rgba(125,211,192,0.25);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(125, 211, 192, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(108, 169, 222, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(232, 163, 61, 0.03) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--ice-bright); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

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

::selection { background: rgba(125, 211, 192, 0.25); color: var(--ice-bright); }

/* ----------------------------- Layout shells --------------------------- */

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------- Header ------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(12px) saturate(1.3);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { background: rgba(13, 17, 23, 0.92); box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  transition: filter .2s;
}
.brand:hover { text-decoration: none; filter: brightness(1.15); }

.brand .prompt-user { color: var(--ice); }
.brand .prompt-host { color: var(--text-dim); }
.brand .prompt-sym { color: var(--amber); }
.brand .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(125,211,192,0.7);
  margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

nav.main-nav a:hover { color: var(--ice); text-decoration: none; }
nav.main-nav a.active { color: var(--ice); }
nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 2px;
  background: var(--ice);
  box-shadow: 0 0 6px rgba(125,211,192,0.6);
  transition: right .2s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    margin-top: 14px;
  }
  nav.main-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  nav.main-nav a { padding: 8px 0; }
}

/* --------------------------------- Footer -------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 96px;
  padding: 48px 0 32px;
  background: var(--bg-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-col p, .footer-col address {
  color: var(--text-dim);
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--ice); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.uptime-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
}

.uptime-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice);
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--ice);
  color: var(--ice);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--ice);
  color: #06110F;
  text-decoration: none;
  box-shadow: var(--glow-ice);
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--ice);
  color: #06110F;
  box-shadow: 0 10px 24px -10px rgba(125,211,192,0.4);
}

.btn-solid:hover {
  background: var(--ice-bright);
  color: #06110F;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--text-dim);
  box-shadow: none;
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,211,192,0.10), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 16ch;
}

.hero h1 .accent { color: var(--ice); }

.hero p.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

.hero-meta strong { color: var(--text); }

/* ------------------------------ Section headers -------------------------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-mono);
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}

.section-head .view-all {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-bordered { border-top: 1px solid var(--border-soft); }

/* ------------------------------- Post cards ------------------------------ */

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

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.post-card:hover {
  border-color: rgba(125,211,192,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.cat-linux { color: var(--ice); }
.cat-docker { color: var(--blue); }
.cat-db { color: var(--amber); }
.cat-web { color: #C792EA; }

.post-card h3 {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--ice); text-decoration: none; }

.post-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  flex-grow: 1;
  margin-bottom: 16px;
}

.post-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

/* List-style rows (archive page) */

.post-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.post-row .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  width: 90px;
  flex-shrink: 0;
}

.post-row .title a {
  color: var(--text);
  font-weight: 500;
}
.post-row .title a:hover { color: var(--ice); }

.post-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .post-row { flex-wrap: wrap; }
  .post-row .date { width: auto; }
}

/* ------------------------------- Prose / article -------------------------- */

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-mono);
  font-size: 25px;
  color: #fff;
  margin: 48px 0 18px;
  font-weight: 700;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-family: var(--font-mono);
  font-size: 19px;
  color: #fff;
  margin: 36px 0 14px;
  font-weight: 600;
  scroll-margin-top: 90px;
}

.prose p { margin-bottom: 20px; color: var(--text); }
.prose p, .prose li { color: #BCC6D1; }

.prose ul, .prose ol {
  margin: 0 0 20px 22px;
}
.prose li { margin-bottom: 8px; }

.prose strong { color: #fff; font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--text-dim);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-card);
  color: var(--ice-bright);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

.prose pre {
  background: #0A0E13;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 13.5px;
  line-height: 1.6;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.prose pre::before {
  content: '\25CF \25CF \25CF';
  display: block;
  letter-spacing: 6px;
  color: #3A4048;
  font-size: 10px;
  margin-bottom: 12px;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: #D4D9E0;
}

.code-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: -10px;
  display: block;
}

.prose .callout {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
}

.callout .icon { font-family: var(--font-mono); color: var(--amber); flex-shrink: 0; }
.callout.warn { border-color: rgba(232, 163, 61, 0.35); }
.callout.warn .icon { color: var(--amber); }
.callout.info .icon { color: var(--ice); }
.callout p { margin-bottom: 0; font-size: 15px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.prose th, .prose td {
  border: 1px solid var(--border-soft);
  padding: 10px 14px;
  text-align: left;
}
.prose th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-card);
}

/* Syntax-ish highlighting via spans */
.tok-c { color: #6B7785; } /* comment */
.tok-k { color: #C792EA; } /* keyword */
.tok-s { color: #9CCC65; } /* string */
.tok-v { color: var(--blue); } /* variable/flag */
.tok-n { color: var(--amber); } /* number */
.tok-f { color: var(--ice-bright); } /* function */

/* ------------------------------- Article header --------------------------- */

.post-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border-soft);
}

.post-header .crumb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.post-header .crumb a { color: var(--text-dim); }

.post-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 38px);
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-header .sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 24px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.byline .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #06110F; font-weight: 800; font-size: 13px;
}

.byline strong { color: var(--text); }

.article-body { padding: 48px 0 24px; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 40px;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 8px; font-size: 14px; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--amber);
  margin-right: 10px;
  font-size: 12px;
}
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--ice); }

.tag-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.tag-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}
.tag-pill:hover { color: var(--ice); border-color: var(--ice); text-decoration: none; }

.author-box {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 26px;
  margin: 48px 0;
}
.author-box .avatar-lg {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #06110F; font-weight: 800; font-size: 20px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.author-box h4 { font-family: var(--font-mono); color: #fff; margin-bottom: 6px; font-size: 16px; }
.author-box p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 8px; }
.author-box a { font-size: 13px; }

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0;
}
@media (max-width: 600px) { .prev-next { grid-template-columns: 1fr; } }
.pn-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s, transform .2s;
}
.pn-card:hover { border-color: rgba(125,211,192,0.35); transform: translateY(-2px); }
.pn-card .dir {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.pn-card.next { text-align: right; }
.pn-card a { color: var(--text); font-weight: 500; font-size: 15px; }
.pn-card a:hover { color: var(--ice); }

/* -------------------------------- Page header (non-article) --------------- */

.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border-soft);
}
.page-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.5vw, 42px);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 60ch;
}

/* -------------------------------- Filter bar (archive/tags) ---------------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
}
.filter-chip:hover { border-color: var(--ice); color: var(--ice); }
.filter-chip.active { background: var(--ice); border-color: var(--ice); color: #06110F; }

/* -------------------------------- Stat grid (about/uses) -------------------*/

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0;
}
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: rgba(125,211,192,0.35); transform: translateY(-2px); }
.stat-card .num {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--ice);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(125,211,192,0.25);
}
.stat-card .label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ----------------------------- Tools/uses table grid ----------------------*/

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-card);
  transition: border-color .2s, transform .2s;
}
.tool-item:hover { border-color: rgba(125,211,192,0.3); transform: translateY(-2px); }
.tool-item .tname {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.tool-item .tdesc { font-size: 14px; color: var(--text-dim); }

/* --------------------------------- Contact form ---------------------------*/

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 0;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--ice);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 22px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  font-size: 15.5px;
  color: var(--text);
  margin-top: 4px;
}

.map-box {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 24px;
}
.map-box iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(0.3) invert(0.92) contrast(0.85); }

/* --------------------------------- Newsletter box --------------------------*/

.newsletter {
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, rgba(125,211,192,0.08), rgba(108,169,222,0.05));
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  margin: 56px 0;
  box-shadow: var(--shadow-sm);
}
.newsletter h3 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 21px;
  margin-bottom: 10px;
}
.newsletter p { color: var(--text-dim); margin-bottom: 22px; font-size: 15px; }
.newsletter form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
}

/* ----------------------------- Utility ---------------------------------- */

.mono { font-family: var(--font-mono); }
.text-dim { color: var(--text-dim); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--ice), var(--blue));
  box-shadow: 0 0 8px rgba(125,211,192,0.6);
  z-index: 100;
  transition: width .1s linear;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
