:root {
    --bg: #0f1419;
    --surface: #1a2027;
    --surface-2: #232b34;
    --border: #2d3742;
    --text: #e6edf3;
    --muted: #8b949e;
    --accent: #58a6ff;
    --accent-2: #79c0ff;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f8fa;
        --surface: #ffffff;
        --surface-2: #f0f3f6;
        --border: #d0d7de;
        --text: #1f2328;
        --muted: #59636e;
        --accent: #0969da;
        --accent-2: #0550ae;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2.5rem);
}

.header { margin-bottom: 2rem; }
.header h1 {
    margin: 0 0 .25rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.header .lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(.95rem, 2vw, 1.05rem);
}

.ip-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.ip-card__label {
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}
.ip-card__value {
    font-family: var(--mono);
    font-size: clamp(1.4rem, 5vw, 2.25rem);
    font-weight: 600;
    color: var(--accent);
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.2;
}
.ip-card__hint {
    margin-top: .9rem;
    color: var(--muted);
    font-size: .9rem;
}
.ip-card__hint code,
.header .lead code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .1em .4em;
    font-family: var(--mono);
    font-size: .9em;
    color: var(--accent-2);
}

.lead__link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--muted);
    transition: border-color .15s, color .15s;
}
.lead__link:hover,
.lead__link:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
    outline: none;
}
.lead__link:hover code,
.lead__link:focus-visible code {
    color: var(--accent);
    border-color: var(--accent);
}

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(.85rem, 2.5vw, 1.5rem);
    margin-bottom: 1.25rem;
}
.section__title {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-2);
    border-bottom: 1px solid var(--border);
    padding-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.kv {
    margin: 0;
    display: grid;
    gap: 0;
}
.kv__row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 2fr;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--border);
    align-items: baseline;
}
.kv__row:last-child { border-bottom: none; }
.kv__key {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
}
.kv__val {
    margin: 0;
    font-family: var(--mono);
    font-size: .88rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--text);
}

@media (max-width: 600px) {
    .kv__row {
        grid-template-columns: 1fr;
        gap: .15rem;
        padding: .6rem 0;
    }
    .kv__key { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
    .kv__val { font-size: .85rem; }
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}
