/* ==========================================================================
   AzureProGuide — Design tokens
   ========================================================================== */
:root {
    --ink: #10192B;
    --ink-soft: #1B2A44;
    --paper: #F1F3F6;
    --paper-raised: #FFFFFF;
    --blueprint: #1C6FD1;
    --blueprint-dim: #4C8FDE;
    --signal: #E2984A;
    --slate: #4B5768;
    --slate-light: #7A879C;
    --line: #C9D2DE;
    --line-dark: #2C3B57;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; color: var(--slate); }
a { color: var(--blueprint); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

:focus-visible {
    outline: 2px solid var(--blueprint);
    outline-offset: 3px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(241, 243, 246, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { display: flex; color: var(--blueprint); }
.brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.brand-text em { font-style: normal; color: var(--blueprint); }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active {
    color: var(--ink);
    text-decoration: none;
    border-bottom-color: var(--blueprint);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
}
.mobile-nav a {
    padding: 14px 24px;
    color: var(--ink);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
}
.mobile-nav.is-open { display: flex; }

@media (max-width: 780px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
}

/* ==========================================================================
   Blueprint divider motif — the signature structural device
   ========================================================================== */
.blueprint-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-light);
    margin: 64px 0 32px;
}
.blueprint-rule::before, .blueprint-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.blueprint-rule span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 96px 24px 88px;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blueprint-dim);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.hero-eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--signal);
    border-radius: 50%;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    max-width: 14ch;
}
.hero-lede {
    color: #B8C2D4;
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--blueprint);
    color: #fff;
}
.btn-primary:hover { background: var(--blueprint-dim); text-decoration: none; }
.btn-ghost {
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}
.btn-ghost:hover { border-color: #fff; text-decoration: none; }

/* Hero topology diagram — signature element */
.topology {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 420px;
    justify-self: center;
}
.topology svg { width: 100%; height: 100%; }
.topo-line {
    fill: none;
    stroke: var(--blueprint-dim);
    stroke-width: 1.4;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: draw 1.8s ease forwards;
}
.topo-line.delay1 { animation-delay: 0.25s; }
.topo-line.delay2 { animation-delay: 0.5s; }
.topo-line.delay3 { animation-delay: 0.75s; }
.topo-node {
    fill: var(--ink);
    stroke: var(--blueprint-dim);
    stroke-width: 1.4;
    opacity: 0;
    animation: fadein 0.6s ease forwards;
}
.topo-node.n1 { animation-delay: 0.1s; }
.topo-node.n2 { animation-delay: 0.5s; }
.topo-node.n3 { animation-delay: 0.9s; }
.topo-node.n4 { animation-delay: 1.3s; }
.topo-label {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: #B8C2D4;
    opacity: 0;
    animation: fadein 0.6s ease forwards;
}
.topo-label.n1 { animation-delay: 0.3s; }
.topo-label.n2 { animation-delay: 0.7s; }
.topo-label.n3 { animation-delay: 1.1s; }
.topo-label.n4 { animation-delay: 1.5s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
    .topology { max-width: 300px; margin-top: 24px; }
}

/* ==========================================================================
   Sections generic
   ========================================================================== */
section { padding: 8px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: 1.8rem; }
.section-head p { font-size: 1.02rem; }

/* Pillars / focus areas */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 24px;
}
.pillar {
    background: var(--paper-raised);
    padding: 32px 28px;
}
.pillar .pillar-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--blueprint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 14px;
}
.pillar h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; margin-bottom: 0; }

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

/* Article index (blog teaser) */
.article-index { border-top: 1px solid var(--line); }
.article-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 24px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.article-row:hover .article-title { text-decoration: underline; }
.article-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--slate-light);
}
.article-title { color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.article-cat {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--blueprint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--blueprint);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .article-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Credential strip */
.cred-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 8px;
}
.cred-chip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
    background: var(--paper-raised);
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: 2px;
}

/* CTA band */
.cta-band {
    background: var(--ink-soft);
    color: #fff;
    border-radius: 4px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 64px 0;
}
.cta-band h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.cta-band p { color: #B8C2D4; margin: 0; max-width: 46ch; }
@media (max-width: 780px) {
    .cta-band { flex-direction: column; align-items: flex-start; }
}

/* About page specifics */
.about-hero {
    padding: 72px 0 24px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}
.about-photo-frame {
    width: 200px; height: 200px;
    border: 1px solid var(--line);
    background: var(--paper-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: center;
    padding: 12px;
    border-radius: 3px;
}
@media (max-width: 700px) {
    .about-hero { grid-template-columns: 1fr; }
    .about-photo-frame { width: 140px; height: 140px; }
}

.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-left: 6px; }
.timeline-entry { position: relative; padding-bottom: 36px; }
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -33px; top: 4px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--blueprint);
    border: 2px solid var(--paper);
}
.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--blueprint);
    display: block;
    margin-bottom: 4px;
}
.timeline-entry h4 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-entry p { font-size: 0.95rem; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--ink);
    color: #B8C2D4;
    margin-top: 96px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
    gap: 32px;
    padding: 56px 24px 36px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #B8C2D4; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 0.88rem; color: #7B879C; max-width: 26ch; }
.footer-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6E7C93;
    margin-bottom: 4px;
}
.footer-note { font-size: 0.85rem; color: #7B879C; margin-bottom: 10px; }
.footer-form { display: flex; gap: 8px; }
.footer-form input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
}
.footer-form input::placeholder { color: #6E7C93; }
.footer-form button {
    padding: 10px 16px;
    background: var(--blueprint);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
}
.footer-form button:hover { background: var(--blueprint-dim); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #6E7C93;
}
.footer-rev { font-family: var(--font-mono); }

@media (max-width: 780px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}
