/* ai, may I? — shared site styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:root {
    --bg: #fdf8ef;
    --bg-alt: #f7efdf;
    --ink: #1a1a1a;
    --ink-soft: #5a564e;
    --muted: #8a8578;
    --coral: #ff6b6b;
    --citrus: #ffd43b;
    --mint: #51cf66;
    --sky: #74c0fc;
    --lilac: #d0bfff;
    --border: #e8dfc9;
    --card: #ffffff;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.bg-shapes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; opacity: 0.55; animation: float 18s ease-in-out infinite; }
.shape.s1 { top: 8%; left: 6%; width: 120px; animation-delay: 0s; }
.shape.s2 { top: 18%; right: 9%; width: 90px; animation-delay: -4s; }
.shape.s3 { bottom: 22%; left: 12%; width: 150px; animation-delay: -8s; }
.shape.s4 { bottom: 10%; right: 16%; width: 100px; animation-delay: -12s; }
.shape.s5 { top: 55%; left: 48%; width: 70px; animation-delay: -6s; opacity: 0.35; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(12px, -18px) rotate(4deg); }
    50% { transform: translate(-8px, 14px) rotate(-3deg); }
    75% { transform: translate(16px, 6px) rotate(5deg); }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

header { padding: 32px 0; display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-dot { width: 12px; height: 12px; background: var(--coral); border-radius: 50%; display: inline-block; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); background: var(--coral); }
    33% { transform: scale(1.15); background: var(--citrus); }
    66% { transform: scale(0.92); background: var(--mint); }
}

nav { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
nav a { padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
nav a:hover, nav a.active { background: var(--ink); color: var(--bg); }
nav .soon { color: var(--muted); font-size: 13px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 999px; }

.section-label {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--coral);
    margin-bottom: 16px;
    display: inline-block;
    transform: rotate(-2deg);
}

footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    font-size: 14px;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
footer a { border-bottom: 1px solid var(--border); transition: border-color 0.2s; }
footer a:hover { border-color: var(--ink); }

/* Page hero */
.page-hero { padding: 40px 0 32px; }
.page-hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(40px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.page-hero .lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); max-width: 640px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--ink); color: var(--bg);
    font-weight: 600; font-size: 16px;
    border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(26,26,26,0.35); }
.btn.btn-soft { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.btn.btn-soft:hover { border-color: var(--ink); }

/* Prose for blog posts */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; }
.prose h2 { font-family: 'Fraunces', serif; font-weight: 800; font-size: 30px; letter-spacing: -0.01em; margin: 48px 0 14px; }
.prose h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px 1.4em; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 3px solid var(--coral); padding: 4px 0 4px 18px; color: var(--ink-soft); margin: 18px 0; font-style: italic; }
.prose code { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 0.92em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #1a1a1a; color: #f7efdf; padding: 18px 20px; border-radius: 14px; overflow-x: auto; margin: 22px 0; font-size: 14px; line-height: 1.55; }
.prose pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.prose a { color: var(--ink); border-bottom: 2px solid var(--coral); }
.prose a:hover { background: var(--citrus); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; background: var(--bg-alt); }
.prose img { border-radius: 14px; margin: 22px 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* Post meta + actions */
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); display: inline-block; }
.post-actions { display: flex; gap: 12px; align-items: center; margin: 36px 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.post-actions .label { font-family: 'Caveat', cursive; color: var(--coral); font-size: 22px; margin-right: 8px; }
.share-x {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    background: #1a1a1a; color: #fff;
    font-weight: 600; font-size: 14px;
    transition: transform 0.2s;
}
.share-x:hover { transform: translateY(-2px); }

/* Blog index list */
.post-list { margin-top: 32px; display: grid; gap: 18px; }
.post-row {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: 28px 30px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: block;
}
.post-row:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(26,26,26,0.18); }
.post-row h3 { font-family: 'Fraunces', serif; font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; }
.post-row p { color: var(--ink-soft); font-size: 16px; margin-bottom: 10px; }
.post-row .meta { color: var(--muted); font-size: 13px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 28px; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 280px 1fr; gap: 56px; } }
.about-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; position: sticky; top: 24px; align-self: start; }
.about-card .avatar { width: 100%; aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, var(--citrus), var(--coral)); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 900; font-size: 78px; color: #fff; margin-bottom: 18px; object-fit: cover; }
.about-card h2 { font-family: 'Fraunces', serif; font-size: 24px; margin-bottom: 4px; }
.about-card .role { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.about-card .links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.about-card .links a { padding: 8px 12px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.about-card .links a:hover { background: var(--ink); color: var(--bg); }

/* Glimp landing */
.app-hero { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding: 40px 0 60px; }
@media (min-width: 800px) { .app-hero { grid-template-columns: 200px 1fr; } }
.app-hero .icon-block img { width: 200px; height: 200px; border-radius: 44px; box-shadow: 0 30px 60px -25px rgba(26,26,26,0.35); }
.app-hero h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(40px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 14px; }
.app-hero .tagline { font-size: 22px; color: var(--ink-soft); margin-bottom: 22px; max-width: 560px; }
.app-hero .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--border); }
.app-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.feature {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px;
}
.feature .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--citrus); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.feature h3 { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.install-steps { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 32px; margin-top: 24px; }
.install-steps ol { margin-left: 20px; }
.install-steps li { margin-bottom: 10px; color: var(--ink-soft); }
.install-steps code { background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; font-family: 'SF Mono', ui-monospace, monospace; font-size: 14px; }

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    header { padding: 20px 0; flex-wrap: wrap; gap: 12px; }
    nav { gap: 4px; font-size: 14px; }
    nav a { padding: 6px 10px; }
    .shape { opacity: 0.35; }
    .about-card { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    .shape, .logo-dot { animation: none; }
}
