@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --ink: #0f172a;
    --subtle: #475569;
    --paper: #f8fafc;
    --card: #ffffff;
    --line: #e2e8f0;
    --max: 860px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Manrope, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.72;
}
.wrap {
    width: min(100% - 2rem, var(--max));
    margin: 1.8rem auto 3rem;
}
.topnav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.topnav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
}
article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem;
}
h1, h2, h3 {
    font-family: Fraunces, serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h1 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { margin-top: 2rem; font-size: clamp(1.2rem, 2.8vw, 1.7rem); }
.meta {
    color: var(--subtle);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.meta a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}
.callout {
    border-left: 4px solid #be123c;
    background: #fff1f2;
    border-radius: 0.5rem;
    padding: 0.8rem 0.9rem;
}
ul li { margin: 0.45rem 0; }
.related {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.related a { color: var(--ink); }

.share-box {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.share-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Share Buttons */
.custom-share {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
}
.custom-share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--subtle);
    text-transform: uppercase;
}
.share-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    border: 1px solid var(--line) !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: var(--ink) !important;
    padding: 0 !important;
    text-decoration: none !important;
}
.share-btn:hover {
    background: var(--paper) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}
.share-btn svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}
.copy-success {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    z-index: 100;
    animation: fadeInOut 2s ease-in-out forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}
