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

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #d0d0d0;
    transition: border-color 0.15s ease;
}

a:hover {
    border-color: #1a1a1a;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    font-size: 14px;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
}

strong {
    font-weight: 600;
}

/* Layout */
.layout {
    min-height: 100vh;
}

/* Panes */
.pane {
    overflow-y: auto;
    line-height: 1.6;
}

.pane-left {
    background: #fafafa;
}

.pane-right {
    background: #fff;
    position: relative;
}

.pane-content {
    padding: 40px 36px;
    max-width: 640px;
}

/* Header */
.header {
    margin-bottom: 32px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top > a {
    font-size: 13px;
    color: #888;
    border-bottom: none;
}

.header-top > a:hover {
    color: #1a1a1a;
}

.site-title-heading {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
}

.site-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    border-bottom: none;
}

.mobile-nav {
    display: none;
}

.mobile-nav a {
    border-bottom: none;
    margin-left: 16px;
    font-size: 13px;
    color: #888;
}

.arrow-down {
    font-size: 12px;
}

/* Content */
.content p {
    margin-bottom: 16px;
    color: #444;
}

.content h2 {
    margin-top: 36px;
    margin-bottom: 12px;
}

.content ul {
    margin-bottom: 16px;
}

.content ul li {
    color: #444;
}

/* Right Pane - Registry */
.mobile-heading {
    display: none;
}

.registry-section {
    padding: 40px 36px;
}

.registry-item {
    padding: 24px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    transition: border-color 0.15s ease;
}

.registry-item:hover {
    border-color: #ddd;
}

.registry-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.registry-item-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
}

.registry-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    border-bottom: none;
    transition: color 0.15s ease;
}

.registry-link:hover {
    color: #1a1a1a;
}

.registry-item-body {
    margin-top: 8px;
}

.registry-item-body p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Header label */
.header-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    background: #eee;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Signup form */
.signup-form {
    margin-top: 12px;
    margin-bottom: 16px;
}

.signup-input-group {
    display: flex;
    gap: 8px;
}

.signup-input-group input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s ease;
}

.signup-input-group input[type="email"]::placeholder {
    color: #aaa;
}

.signup-input-group input[type="email"]:focus {
    border-color: #999;
}

.signup-input-group button {
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.signup-input-group button:hover {
    background: #333;
}

.signup-input-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-msg {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.signup-success {
    color: #1a8a1a;
}

.signup-error {
    color: #d44;
}

/* Logo area */
.logo-area {
    position: fixed;
    bottom: 16px;
    right: 28px;
    z-index: 10;
    pointer-events: none;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.03em;
    opacity: 0.06;
    color: #000;
}

.bottom-fade {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 80px;
    width: 100%;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
    z-index: 5;
}

/* Desktop: split pane */
@media (min-width: 769px) {
    .layout {
        position: fixed;
        inset: 0;
        display: flex;
    }

    .layout > .pane {
        width: 50%;
        height: 100%;
        overflow-y: auto;
    }

    .pane-right {
        border-left: 1px solid #eee;
    }

    .bottom-fade {
        width: 50%;
    }
}

/* Mobile: stacked */
@media (max-width: 768px) {
    .layout {
        display: block;
    }

    .pane-content {
        padding: 28px 20px;
    }

    .registry-section {
        padding: 28px 20px;
    }

    .mobile-nav {
        display: inline;
    }

    .mobile-heading {
        display: block;
        padding: 16px 20px 0;
    }

    .logo-area {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 32px 20px 20px;
        text-align: right;
    }

    .bottom-fade {
        display: none;
    }

    .pane-right {
        border-top: 1px solid #eee;
        margin-top: 8px;
    }
}
