/* ==========================================================================
   InternetDean — blog design system
   Extracted from the live homepage (internetdean.com) so the blog section
   reads as part of the same site rather than a separate template.

   Tokens measured from production:
     bg            #11141a   (rgb 17,20,26)
     ink           #d6f6ff   (rgb 214,246,255)
     surface       #171c23   (rgb 23,28,35)   <- .our-process-item
     accent        #11bef0
     display type  100-140px, weight 900, uppercase, line-height 0.8
     hollow type   color: transparent + text-stroke (homepage outline words)
     pills         radius 800-1000px, padding 36px 48px
     grid          3 columns, 20px gap
     gutters       60px desktop / 24px mobile
   ========================================================================== */

:root {
  --bg: #11141a;
  --surface: #171c23;
  --ink: #d6f6ff;
  --accent: #11bef0;
  --muted: rgba(214, 246, 255, 0.62);
  --faint: rgba(214, 246, 255, 0.38);
  --line: rgba(214, 246, 255, 0.10);
  --line-strong: rgba(17, 190, 240, 0.38);
  --pill: 800px;
  --gutter: 60px;
  --shell: 1280px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; }

/* Homepage-style hollow display word */
.hollow {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 16px var(--gutter);
  background: rgba(17, 20, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.nav-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav-brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

/* Hamburger — always visible, matches the main site's collapsed navigation */
.nav-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 46px; height: 46px; flex-shrink: 0; cursor: pointer;
  background: transparent;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color 0.25s, background 0.25s;
}
.nav-toggle:hover { border-color: var(--accent); background: rgba(17, 190, 240, 0.07); }
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: background 0.25s, transform 0.25s;
}
.nav-toggle:hover span { background: var(--accent); }

.nav-links {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 2px;
  background: rgba(17, 20, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px var(--gutter) 26px;
  border-bottom: 1px solid var(--line);
}
.nav-links.open { display: flex; }
.nav-links a {
  color: var(--ink); font-size: 26px; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-links a:last-child { border-bottom: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 30px; height: 46px;
  border: 1px solid var(--line); border-radius: 1000px;
  background: transparent; color: var(--ink);
  font-size: 18px; font-weight: 500; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #04121a; opacity: 1; }

/* --------------------------------------------------------------- hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 190px var(--gutter) 90px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero h1 {
  font-size: clamp(56px, 11vw, 150px);
  font-weight: 900; text-transform: uppercase; line-height: 0.82;
  letter-spacing: -0.03em; color: var(--ink);
  max-width: 15ch;
}
.hero p {
  margin-top: 28px; max-width: 56ch;
  font-size: 18px; line-height: 1.6; color: var(--muted);
}
.hero-glow {
  position: absolute; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  top: -260px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(17, 190, 240, 0.10) 0%, transparent 68%);
}

/* ------------------------------------------------------------ section ---- */
.section { padding: 0 var(--gutter) 100px; }
.section-inner { max-width: var(--shell); margin: 0 auto; }

.section-label {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 22px;
}

/* ----------------------------------------------------------- blog grid ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--shell); margin: 0 auto;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.blog-card:hover {
  border-color: var(--line-strong);
  background: #1b212a;
  transform: translateY(-4px);
}
.blog-card-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  padding: 7px 14px; border-radius: 1000px;
  background: rgba(17, 190, 240, 0.09);
  border: 1px solid rgba(17, 190, 240, 0.22);
  margin-bottom: 22px;
}
.blog-card h3 {
  font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 14px;
}
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--accent); opacity: 1; }
.blog-card .excerpt {
  font-size: 16px; line-height: 1.6; color: var(--muted);
  margin-bottom: 26px; flex: 1;
}
.blog-card-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
}
.blog-card-read { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }

/* ------------------------------------------------------------- article ---- */
.wrap { max-width: 860px; margin: 0 auto; padding: 190px var(--gutter) 90px; }

.post-tag {
  display: inline-block; margin-bottom: 26px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  padding: 8px 16px; border-radius: 1000px;
  background: rgba(17, 190, 240, 0.09);
  border: 1px solid rgba(17, 190, 240, 0.22);
}
.wrap h1 {
  font-size: clamp(38px, 6.4vw, 74px);
  font-weight: 900; text-transform: uppercase; line-height: 0.92;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 30px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
  padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 46px;
}
.post-meta .cat { color: var(--accent); }

.post-body { font-size: 18px; line-height: 1.72; color: var(--ink); }
.post-body p { margin-bottom: 24px; }
.post-body h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 900; text-transform: uppercase; line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 62px 0 20px;
}
.post-body h3 {
  font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink);
  margin: 40px 0 12px;
}
.post-body ul, .post-body ol { margin: 0 0 26px 24px; }
.post-body li { margin-bottom: 12px; }
.post-body strong { font-weight: 800; color: var(--ink); }
.post-body em { color: var(--muted); }

.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-body blockquote {
  margin: 40px 0; padding: 34px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500; line-height: 1.32; color: var(--ink);
}

.post-body pre {
  background: var(--surface); border: 1px solid var(--line);
  padding: 26px 28px; border-radius: 20px; overflow-x: auto;
  margin: 0 0 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.post-body code {
  background: rgba(214, 246, 255, 0.07); padding: 3px 7px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em; color: var(--accent);
}
.post-body pre code { background: none; padding: 0; color: var(--ink); }

.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 30px; font-size: 16px; }
.post-body th {
  text-align: left; padding: 15px 18px; background: var(--surface);
  color: var(--ink); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
}
.post-body td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.post-body td:first-child { color: var(--ink); font-weight: 700; }

.post-body .checklist { list-style: none; margin-left: 0 !important; }
.post-body .checklist li { padding-left: 34px; position: relative; }
.post-body .checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

.post-body .timeline { list-style: none; margin-left: 0 !important; padding-left: 26px; border-left: 2px solid rgba(17, 190, 240, 0.28); }
.post-body .timeline li { margin-bottom: 34px; }
.post-body .timeline .when {
  display: block; margin-bottom: 6px;
  color: var(--accent); font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 28px;
  padding: 36px 40px; margin: 44px 0;
}
.callout b {
  display: block; margin-bottom: 10px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}

/* ------------------------------------------------------------ related ---- */
.related { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) 90px; }
.related h2 {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 24px;
}
.related-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px;
  padding: 28px 34px; margin-bottom: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.related-item:hover { border-color: var(--line-strong); transform: translateX(6px); opacity: 1; }
.related-item .t { color: var(--ink); font-size: 21px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.related-item:hover .t { color: var(--accent); }
.related-item .d { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------------------------------------------------------------- CTA ---- */
.cta-section {
  text-align: center;
  padding: 110px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-section h2 {
  font-size: clamp(34px, 5.6vw, 78px);
  font-weight: 900; text-transform: uppercase; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 20px;
}
.cta-section p {
  max-width: 52ch; margin: 0 auto 34px;
  font-size: 18px; line-height: 1.6; color: var(--muted);
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 40px; border-radius: 1000px;
  background: var(--accent); color: #04121a;
  font-size: 18px; font-weight: 700; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s;
}
.cta-btn:hover {
  transform: translateY(-2px); opacity: 1;
  box-shadow: 0 14px 40px rgba(17, 190, 240, 0.32);
}

/* ------------------------------------------------------------- footer ---- */
.footer {
  padding: 56px var(--gutter) 44px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px;
  margin-bottom: 26px;
}
.footer-links a {
  color: var(--muted); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-links a:hover { color: var(--accent); opacity: 1; }
.footer-copy { color: var(--faint); font-size: 12px; letter-spacing: 0.06em; }

/* ------------------------------------------------------------ scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(17, 190, 240, 0.28); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(17, 190, 240, 0.5); }

/* ---------------------------------------------------------- responsive ---- */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 28px; border-radius: 26px; }
  .hero { padding: 140px var(--gutter) 64px; }
  .wrap { padding: 140px var(--gutter) 60px; }
  .nav-links a { font-size: 22px; padding: 12px 0; }
  .nav { padding: 14px var(--gutter); gap: 10px; }
  .nav-cta { padding: 0 20px; height: 42px; font-size: 15px; }
  .nav-toggle { width: 42px; height: 42px; }
  .nav-brand span { font-size: 18px; }
  .post-body { font-size: 17px; }
  .post-body blockquote { padding: 26px 24px; border-radius: 26px; }
  .callout { padding: 28px 24px; border-radius: 24px; }
  .related-item { padding: 24px; border-radius: 24px; }
  .cta-section { padding: 76px var(--gutter); }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}