/* ═══════════════════════════════════════════════════════════════════════════
   DESKLESS NATION — Main Stylesheet
   Fonts: Syne (headings) + DM Sans (body)
   Colors: #080a0f bg | #111620 surface | #00ffb4 neon | #00d4ff cyan | #f59e0b gold
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset & Root ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080a0f;
  --surface:  #111620;
  --surface2: #161d2e;
  --border:   #1e2a3a;
  --neon:     #00ffb4;
  --cyan:     #00d4ff;
  --gold:     #f59e0b;
  --text:     #e2e8f0;
  --muted:    #8899aa;
  --heading:  #ffffff;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:   8px;
  --radius-lg: 14px;
  --nav-h:    64px;
  --max-w:    1160px;
  --max-prose: 740px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--neon); }

strong { font-weight: 500; color: var(--heading); }
code {
  font-family: 'Courier New', monospace;
  font-size: .875em;
  background: var(--surface2);
  color: var(--neon);
  padding: .15em .4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}
pre {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
pre code { background: none; border: none; padding: 0; font-size: .9rem; }
blockquote {
  border-left: 3px solid var(--neon);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-style: italic;
}
ul,ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: .4rem; }
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
th,td {
  text-align: left;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
}
th {
  background: var(--surface2);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
}
tr:nth-child(even) { background: rgba(17,22,32,.5); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ══════════════════════════════════════════════════════════════════════════
   NAV — BLOCK 1 (primary layout, Vivaldi iOS compatibility pattern)
   ══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,10,15,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════════════════════
   NAV — BLOCK 2 (Vivaldi iOS browser duplicate block — do not remove)
   ══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  height: 64px;
}
.nav-links {
  margin-left: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--heading) !important;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nav-logo span.accent { color: var(--neon); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--neon);
  background: rgba(0,255,180,.07);
}

/* ── Hamburger ─────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE NAV — BLOCK 1 (primary layout)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    gap: .25rem;
    margin-left: 0;
  }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE NAV — BLOCK 2 (Vivaldi iOS duplicate block — do not remove)
   ══════════════════════════════════════════════════════════════════════════ */
  .nav-links {
    height: auto;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
  }
}

/* ── Skip link ─────────────────────────────────────────────────────────── */
.skip-link {
  position:absolute;left:-9999px;top:1rem;
  background:var(--neon);color:#000;padding:.5rem 1rem;border-radius:var(--radius);
  font-weight:500;z-index:9999;
}
.skip-link:focus { left:1rem; }

/* ── Category Tags ─────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 4px;
  line-height: 1;
}
.tag-howto      { background: rgba(0,255,180,.12); color: var(--neon); }
.tag-security   { background: rgba(245,158,11,.12); color: var(--gold); }
.tag-m365       { background: rgba(0,212,255,.12); color: var(--cyan); }
.tag-remotework { background: rgba(139,92,246,.15); color: #a78bfa; }
.tag-tools      { background: rgba(236,72,153,.12); color: #f472b6; }

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,255,180,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--neon);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--neon);
  color: #080a0f;
  font-weight: 500;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: opacity .2s, transform .2s;
}
.hero-cta:hover { opacity: .88; transform: translateY(-1px); color: #080a0f; }

/* ── Featured Article Hero Card ───────────────────────────────────────── */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.featured-card::before {
  content: 'FEATURED';
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(245,158,11,.1);
  padding: .25rem .6rem;
  border-radius: 4px;
  border: 1px solid rgba(245,158,11,.2);
}
.featured-card:hover { border-color: rgba(0,255,180,.25); }
.featured-card .tag { margin-bottom: 1rem; }
.featured-card h2 { font-size: clamp(1.4rem,3vw,1.9rem); margin-bottom: .75rem; }
.featured-card h2 a { color: var(--heading); }
.featured-card h2 a:hover { color: var(--neon); }
.featured-card .excerpt { color: var(--muted); margin-bottom: 1.25rem; font-weight: 300; }
.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.featured-meta .read-more {
  margin-left: auto;
  color: var(--neon);
  font-weight: 500;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.featured-meta .read-more:hover { color: var(--cyan); }

/* ── Article Grid ──────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-header h2 { font-size: 1.1rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-header a { font-size: .8rem; color: var(--muted); }
.section-header a:hover { color: var(--neon); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .3s, transform .2s;
}
.article-card:hover { border-color: rgba(0,212,255,.25); transform: translateY(-2px); }
.article-card .tag { align-self: flex-start; }
.article-card h3 { font-size: 1.05rem; line-height: 1.35; }
.article-card h3 a { color: var(--heading); }
.article-card h3 a:hover { color: var(--cyan); }
.article-card .excerpt { font-size: .875rem; color: var(--muted); font-weight: 300; flex: 1; }
.article-meta { font-size: .75rem; color: var(--muted); display: flex; gap: .75rem; flex-wrap: wrap; }
.article-meta .dot::before { content: '·'; margin-right: .75rem; }

/* ── Post List Page ────────────────────────────────────────────────────── */
.post-list { padding: 3rem 0; }
.post-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.post-list-item:last-child { border-bottom: none; }
.post-list-meta { flex-shrink: 0; width: 130px; }
.post-list-meta time { font-size: .8rem; color: var(--muted); display: block; margin-top: .25rem; }
.post-list-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-list-body h3 a { color: var(--heading); }
.post-list-body h3 a:hover { color: var(--cyan); }
.post-list-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── Single Article ────────────────────────────────────────────────────── */
.article-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.article-header .tag { margin-bottom: 1.25rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.article-header-meta .by { color: var(--text); font-weight: 500; }
.readtime-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .3rem .75rem;
  border-radius: 99px;
  font-size: .78rem;
}
.readtime-badge svg { color: var(--neon); }

.article-body { max-width: var(--max-prose); }
.article-body h2 { margin: 2.25rem 0 1rem; padding-top: .25rem; }
.article-body h3 { margin: 1.75rem 0 .75rem; color: var(--cyan); }
.article-body h4 { margin: 1.25rem 0 .5rem; color: var(--gold); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul li, .article-body ol li { margin-bottom: .5rem; }

/* ── Related Articles ──────────────────────────────────────────────────── */
.related-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.related-section h2 { font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .3s;
}
.related-card:hover { border-color: rgba(0,255,180,.2); }
.related-card .tag { margin-bottom: .75rem; }
.related-card h3 { font-size: .95rem; line-height: 1.35; }
.related-card h3 a { color: var(--heading); }
.related-card h3 a:hover { color: var(--neon); }

/* ── Resources Page ────────────────────────────────────────────────────── */
.resources-page { padding: 3rem 0; }
.resource-category { margin-bottom: 3rem; }
.resource-category-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.resource-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .3s;
}
.resource-card:hover { border-color: rgba(0,212,255,.25); }
.resource-card-header { display: flex; align-items: center; gap: .75rem; }
.resource-icon {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.resource-card h3 { font-size: .95rem; margin: 0; }
.resource-card h3 a { color: var(--heading); }
.resource-card h3 a:hover { color: var(--cyan); }
.resource-card p { font-size: .82rem; color: var(--muted); margin: 0; }
.resource-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 4px;
  align-self: flex-start;
  background: rgba(0,255,180,.1);
  color: var(--neon);
  border: 1px solid rgba(0,255,180,.2);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-page { padding: 4rem 0; }
.form-card {
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-page h1 { margin-bottom: .75rem; }
.form-page .lead { color: var(--muted); font-weight: 300; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0,255,180,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--neon);
  color: #080a0f;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: .75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-submit:hover { opacity: .85; transform: translateY(-1px); }

/* ── Newsletter ──────────────────────────────────────────────────────── */
.newsletter-hero {
  padding: 4rem 0;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter-hero .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.newsletter-hero h1 { margin-bottom: 1rem; }
.newsletter-hero .lead { color: var(--muted); font-weight: 300; margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .75rem 1.1rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--cyan); }
.newsletter-perks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.newsletter-perk { text-align: center; font-size: .85rem; color: var(--muted); }
.newsletter-perk .icon { font-size: 1.5rem; margin-bottom: .35rem; }

/* ── Page Header ─────────────────────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header .eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}
.page-header h1 { margin-bottom: .75rem; }
.page-header p { color: var(--muted); font-weight: 300; max-width: 540px; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--heading);
}
.footer-logo span { color: var(--neon); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--muted); }
.footer-links a:hover { color: var(--neon); }
.footer-copy { font-size: .78rem; color: var(--muted); }

/* ── Glow Effects ────────────────────────────────────────────────────── */
.glow-neon { box-shadow: 0 0 20px rgba(0,255,180,.15); }
.neon-text { color: var(--neon); }
.cyan-text { color: var(--cyan); }
.gold-text { color: var(--gold); }

/* ── Prose wrapper (article pages) ────────────────────────────────────── */
.prose-wrap {
  display: grid;
  grid-template-columns: 1fr min(var(--max-prose), 100%) 1fr;
}
.prose-wrap > * { grid-column: 2; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .featured-card { padding: 1.5rem; }
  .featured-card::before { display: none; }
  .featured-meta .read-more { margin-left: 0; }
  .post-list-item { flex-direction: column; gap: .5rem; }
  .post-list-meta { width: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .article-header { padding: 2rem 0 1.5rem; }
  .form-card { padding: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"], .newsletter-form .btn-submit { width: 100%; }
}
