/* === KK6SEN — Dark Steel Blue === */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
    background: #1e2330;
    color: #a8b0c0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* === Links === */
a{
    color: #6f9fd4;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color .15s, text-decoration-thickness .15s;
}
a:hover{
    color: #8db4e2;
    text-decoration-thickness: 2.5px;
}

::selection{background:#5f8bc755;color:#e2e6ed}
strong{color:#e2e6ed}

/* === Dial Bar === */
.dial-bar{
    background: #181c26;
    border-bottom: 1px solid #2d3444;
    padding: .5rem 1rem;
}
.dial-inner{
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.dial-label{
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    color: #5f6b82;
    letter-spacing: 2px;
    font-weight: 500;
}
.dial-freq{
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #5f8bc7;
    letter-spacing: 2px;
    min-width: 6ch;
}
.dial-scale{
    flex: 1;
    height: 4px;
    background: #2d3444;
    border-radius: 2px;
    display: flex;
    gap: calc(20% - 4px);
    padding: 0 2px;
}
.dial-scale span{
    flex: 1;
    height: 100%;
    background: #3d4660;
    border-radius: 1px;
}
.dial-scale span:nth-child(3){
    background: #5f8bc7;
}
.dial-mode{
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: #5f6b82;
    letter-spacing: 2px;
    border: 1px solid #2d3444;
    padding: 2px 8px;
    border-radius: 3px;
}

/* === Hero === */
.hero{
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #181c26 0%, #1e2330 100%);
}
.hero-inner{
    max-width: 640px;
    margin: 0 auto;
}
.hero-call{
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    font-weight: 600;
    color: #5f8bc7;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.hero h1{
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    color: #e2e6ed;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: .5rem;
}
.hero-tagline{
    font-size: .95rem;
    color: #788098;
    font-weight: 400;
}

/* === Centered Page Nav === */
.page-nav{
    display: flex;
    justify-content: center;
    gap: .25rem;
    padding: .75rem 1.5rem 2.5rem;
}
.page-nav a{
    font-size: .85rem;
    font-weight: 500;
    color: #6f9fd4;
    text-decoration: none;
    padding: .4rem .85rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
    border: 1px solid transparent;
}
.page-nav a:hover{
    background: #2a2f3d;
    color: #8db4e2;
    border-color: #363d4d;
}

/* === Sections === */
.section{
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.section:nth-child(odd){
    background: #222736;
    max-width: 100%;
    padding: 3rem calc((100% - 740px) / 2 + 1.5rem);
}
.section:nth-child(even){
    background: #1e2330;
    max-width: 100%;
    padding: 3rem calc((100% - 740px) / 2 + 1.5rem);
}
.section h2{
    font-size: 1.35rem;
    font-weight: 700;
    color: #e2e6ed;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    padding-bottom: .5rem;
    border-bottom: 2px solid #2d3444;
}

/* === About === */
.about-text{
    max-width: 640px;
}
.about-text p{
    font-size: .95rem;
    color: #a8b0c0;
    margin-bottom: 1rem;
}

/* === Projects === */
.projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}
@media(max-width:768px){.projects-grid{grid-template-columns: 1fr}}
@media(min-width:769px) and (max-width:960px){.projects-grid{grid-template-columns: 1fr 1fr}}

.proj-card{
    background: #2a2f3d;
    border: 1px solid #363d4d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color .2s, box-shadow .2s;
}
.proj-card:hover{
    border-color: #5f8bc7;
    box-shadow: 0 3px 12px rgba(95,139,199,.12);
}
.proj-num{
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    font-weight: 600;
    color: #5f6b82;
    margin-bottom: .75rem;
}
.proj-card h3{
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e6ed;
    margin-bottom: .2rem;
}
.proj-sub{
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    color: #5f6b82;
    letter-spacing: .5px;
    margin-bottom: .75rem;
}
.proj-card p{
    font-size: .85rem;
    color: #a8b0c0;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.proj-tags{
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .75rem;
}
.proj-tags span{
    font-family: 'JetBrains Mono', monospace;
    font-size: .55rem;
    font-weight: 500;
    background: #222736;
    padding: 2px 8px;
    border-radius: 4px;
    color: #788098;
    border: 1px solid #363d4d;
}
.proj-link{
    display: inline-block;
    font-size: .8rem;
    font-weight: 500;
}

/* === Live Nodes Map === */
.section-sub{
    font-size: .85rem;
    color: #788098;
    margin-bottom: 1.25rem;
}
.map-wrapper{
    border: 1px solid #363d4d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
#mini-map{
    height: 360px;
    background: #222736;
}
/* Map controls - match dark theme */
#mini-map .leaflet-control-zoom a{
    background: #2a2f3d;
    color: #a8b0c0;
    border: 1px solid #363d4d;
    border-radius: 4px;
}
#mini-map .leaflet-control-zoom a:hover{
    background: #363d4d;
}
#mini-map .leaflet-control-attribution{display:none}
.map-footer{
    text-align: center;
    font-size: .8rem;
    color: #5f6b82;
    margin-top: .75rem;
}
.map-footer a{color: #788098}
.map-footer a:hover{color: #6f9fd4}

/* === Green markers === */
.green-marker{
    background: #22c55e;
    border: 2px solid #15803d;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 6px #22c55e66, 0 0 12px #22c55e33;
}
.green-marker-sm{
    width: 8px;
    height: 8px;
    background: #4ade80;
    border: 1px solid #15803d;
    border-radius: 50%;
    box-shadow: 0 0 4px #4ade8055;
}
.leaflet-popup-content-wrapper{
    background: #2a2f3d;
    color: #a8b0c0;
    border-radius: 8px;
    border: 1px solid #363d4d;
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.leaflet-popup-tip{background: #2a2f3d;border: 1px solid #363d4d}
.leaflet-popup-content{margin: 8px 12px}
.popup-call{font-weight: 600;color: #e2e6ed;font-size: .85rem}
.popup-info{color: #788098;font-size: .75rem;margin-top: 2px}

/* === Contact === */
.contact-text{
    font-size: .9rem;
    color: #788098;
    margin-bottom: .75rem;
}
.email-btn{
    font-size: .9rem;
    font-weight: 500;
    color: #ffffff;
    background: #4a6fa5;
    border: none;
    padding: .6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.email-btn:hover{
    background: #5f8bc7;
}
.email-reveal{
    font-size: 1rem;
    color: #c8d0dc;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    margin-top: .75rem;
}
.dim{opacity: .3}

/* === Footer === */
footer{
    border-top: 1px solid #2d3444;
    background: #181c26;
    padding: 2rem 1.5rem;
    text-align: center;
}
.footer-inner p{
    font-size: .8rem;
    color: #5f6b82;
}

/* === Scrollbar === */
::-webkit-scrollbar{width: 6px}
::-webkit-scrollbar-track{background: #1e2330}
::-webkit-scrollbar-thumb{background: #363d4d;border-radius: 3px}
::-webkit-scrollbar-thumb:hover{background: #4f5a6d}

/* === Node count === */
#node-count{
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    font-weight: 600;
    color: #5f8bc7;
}
