@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
    color-scheme: dark;
    --bg: #0e1113;
    --surface: #151a1e;
    --text: #f2eee8;
    --muted: #b7aea2;
    --accent: #6cc3b0;
    --accent-strong: #f2a365;
    --border: rgba(242, 238, 232, 0.14);
    --code-bg: #1b2227;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

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

body {
    margin: 0;
    padding: 2.75rem 1.5rem 4rem;
    min-height: 100vh;
    font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px circle at 12% 0%, rgba(242, 163, 101, 0.12) 0, transparent 50%),
        radial-gradient(900px circle at 88% 12%, rgba(108, 195, 176, 0.12) 0, transparent 45%),
        repeating-linear-gradient(90deg, rgba(242, 238, 232, 0.035) 0, rgba(242, 238, 232, 0.035) 1px, transparent 1px, transparent 20px);
}

::selection {
    background: rgba(242, 163, 101, 0.35);
    color: var(--text);
}

header,
main {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
}

header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

header > div {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

header .lli {
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}

header .lli:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 12px rgba(108, 195, 176, 0.6);
}

header h1 {
    margin: 0.9rem 0 0;
    font-family: "Fraunces", "Georgia", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

main {
    background: rgba(21, 26, 30, 0.85);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 2.25rem 2.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

h2,
h3,
h4 {
    font-family: "Fraunces", "Georgia", serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 1.8rem 0 0.6rem;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.4rem;
    margin: 0 0 1.2rem;
}

li {
    margin: 0.35rem 0;
}

a {
    color: inherit;
    text-decoration: none;
}

main a {
    color: var(--accent);
    border-bottom: 1px solid rgba(108, 195, 176, 0.35);
    transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}

main a:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent-strong);
    text-shadow: 0 0 12px rgba(242, 163, 101, 0.55);
}

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

.entry ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry li {
    list-style: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.entry .lli {
    display: block;
    position: relative;
    padding: 0.9rem 1.1rem 0.9rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(242, 238, 232, 0.18);
    background: linear-gradient(120deg, rgba(20, 25, 29, 0.96), rgba(26, 32, 37, 0.75));
    box-shadow: inset 0 0 0 1px rgba(242, 238, 232, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.entry .lli::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(108, 195, 176, 0.8), rgba(242, 163, 101, 0.75));
    opacity: 0.8;
}

.entry .lli::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at 0% 0%, rgba(108, 195, 176, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.entry .lli:hover {
    border-color: rgba(42, 93, 99, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(108, 195, 176, 0.2), 0 0 24px rgba(108, 195, 176, 0.22);
}

.entry .lli:hover::after {
    opacity: 1;
}

.entry {
    display: grid;
    gap: 0.9rem;
}

code,
pre {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
    background: var(--code-bg);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    font-size: 0.95em;
}

pre {
    background: var(--code-bg);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

pre code {
    background: transparent;
    padding: 0;
}

blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.2rem;
    border-left: 3px solid var(--accent);
    background: rgba(108, 195, 176, 0.08);
    color: var(--muted);
}

hr {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 2rem 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
    body {
        padding: 2rem 1.1rem 3rem;
    }

    header > div {
        letter-spacing: 0.12em;
    }

    main {
        padding: 1.6rem 1.4rem 2.2rem;
    }
}
