/* HTTP Request Smuggling — PQ Crypta Article Stylesheet
   Theme: deep space navy · QUIC teal #00d4ff · surface rgba(8,16,30,0.82)
*/

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

:root {
    --accent:      #00d4ff;
    --accent-dim:  rgba(0,212,255,0.18);
    --accent-glow: 0 0 20px rgba(0,212,255,0.30);
    --warn:        #ff6b35;
    --warn-dim:    rgba(255,107,53,0.18);
    --pq:          #7b2fff;
    --bg:          #030810;
    --surface:     rgba(8,16,30,0.88);
    --surface-alt: rgba(0,212,255,0.05);
    --border:      rgba(0,212,255,0.18);
    --text:        #d8e8f8;
    --text-dim:    #7890a8;
    --heading:     #e8f4ff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at 50% 20%, rgba(0,40,80,0.55) 0%, rgba(3,8,16,0.97) 65%, #030810 100%);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
}

/* ── Site header ── */
.smug-site-header {
    position: relative;
    z-index: 50;
    background: linear-gradient(180deg, rgba(3,8,16,0.94) 0%, rgba(8,15,30,0.88) 100%);
    border-bottom: 1px solid var(--border);
}

.smug-site-header-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 2rem 22px;
}

.smug-site-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.smug-logo-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.smug-logo-img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    display: block;
}

.smug-header-text { flex: 1; min-width: 200px; }

.smug-page-title {
    font-size: clamp(1.35rem, 3.5vw, 1.9rem);
    font-weight: 800;
    color: var(--accent);
    text-shadow: var(--accent-glow);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.smug-page-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.smug-header-meta {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.smug-meta-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.smug-meta-badge-h2  { background: rgba(0,212,255,0.12); color: var(--accent); border: 1px solid rgba(0,212,255,0.3); }
.smug-meta-badge-h3  { background: rgba(255,107,53,0.12); color: var(--warn);  border: 1px solid rgba(255,107,53,0.3); }
.smug-meta-badge-wt  { background: rgba(123,47,255,0.12); color: #aa80ff;      border: 1px solid rgba(123,47,255,0.3); }

.smug-meta-author {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: auto;
}

/* ── Page layout ── */
.smug-wrap {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* ── Article lede ── */
.smug-header {
    padding: 2rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.smug-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.smug-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    background: var(--surface-alt);
}

.smug-badge-warn  { color: var(--warn);  border-color: var(--warn-dim);  background: rgba(255,107,53,0.06); }
.smug-badge-pq    { color: #a78bff;      border-color: rgba(123,47,255,0.25); background: rgba(123,47,255,0.07); }

.smug-byline {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-left: auto;
}

.smug-title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.smug-lede {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 720px;
}

/* ── Key findings callout ── */
.smug-findings {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0 0;
}

.smug-findings-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
}

.smug-findings ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.smug-findings li {
    font-size: 0.93rem;
    line-height: 1.65;
    padding-left: 1.1rem;
    position: relative;
    color: var(--text);
}

.smug-findings li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── Article body ── */
.smug-article { display: flex; flex-direction: column; gap: 0; }

.smug-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,212,255,0.08);
}

.smug-section:last-child { border-bottom: none; }

.smug-section.highlight {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 2rem;
    margin: 0.5rem 0;
}

h2.smug-h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-dim);
    letter-spacing: -0.01em;
}

h3.smug-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1.75rem 0 0.6rem;
    letter-spacing: 0.01em;
}

p { margin-bottom: 0.85rem; }
p:last-child { margin-bottom: 0; }

/* ── Code blocks ── */
pre.smug-code {
    background: rgba(0,212,255,0.04);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: 'Cascadia Code', 'Fira Mono', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #a0d8ef;
    margin: 1rem 0;
    white-space: pre;
}

/* ── Tables ── */
.smug-table-wrap { overflow-x: auto; margin: 1rem 0; }

table.smug-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

table.smug-table th {
    background: rgba(0,212,255,0.10);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.smug-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(0,212,255,0.07);
    color: var(--text);
    vertical-align: top;
}

table.smug-table tr:last-child td { border-bottom: none; }
table.smug-table tr:hover td { background: rgba(0,212,255,0.04); }

table.smug-table code {
    font-family: 'Cascadia Code', 'Fira Mono', 'Consolas', monospace;
    font-size: 0.82em;
    color: #a0d8ef;
    background: rgba(0,212,255,0.08);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* ── Inline code ── */
code {
    font-family: 'Cascadia Code', 'Fira Mono', 'Consolas', monospace;
    font-size: 0.85em;
    color: #a0d8ef;
    background: rgba(0,212,255,0.08);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

/* ── Ordered lists ── */
ol.smug-ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.75rem 0;
}

ol.smug-ol li { line-height: 1.75; }

/* ── Links ── */
a.smug-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    transition: border-color 0.15s;
}

a.smug-link:hover { border-color: var(--accent); }

/* ── Footer ── */
.smug-footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    position: relative;
    z-index: 10;
}

.smug-footer a { color: var(--accent); text-decoration: none; }
.smug-footer a:hover { text-decoration: underline; }

/* ── Custom cursor ── */
.smug-cursor-active { cursor: none; }

#smug-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 16px; height: 16px;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    background: radial-gradient(circle, #80eeff 0%, #00d4ff 55%, #006688 100%);
    box-shadow: 0 0 10px #00d4ff, 0 0 20px rgba(0,212,255,0.4);
}

#smug-cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    border: 1.5px solid rgba(0,212,255,0.5);
    box-shadow: 0 0 6px rgba(0,212,255,0.2);
}

.smug-trail-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99997;
    overflow: hidden;
}

.smug-trail-label {
    position: absolute;
    pointer-events: none;
    font-size: 7.5px;
    font-family: 'Cascadia Code','Fira Mono','Consolas',monospace;
    white-space: nowrap;
    user-select: none;
    transition: opacity 0.08s linear;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .smug-wrap { padding: 0 1rem 4rem; }
    .smug-header { padding: 2rem 0 1.75rem; }
    pre.smug-code { font-size: 0.75rem; padding: 1rem; }
    .smug-section.highlight { padding: 1.25rem 1.25rem; }
}
