/* Plottomatic — minimal responsive styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Plot display */
.plot-content {
    margin-bottom: 1.5rem;
}

.plot-full {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.plot-meta {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: #666;
}

.genre {
    text-transform: lowercase;
    font-style: italic;
}

.archive-date {
    font-size: 0.8125rem;
    color: #999;
    margin-top: 0.5rem;
}

.not-found {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Actions */
.actions {
    margin-bottom: 2.5rem;
}

#generate-btn {
    font-size: 0.9375rem;
    padding: 0.6rem 1.5rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

#generate-btn:hover {
    opacity: 0.85;
}

#generate-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.status {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #c00;
}

/* Signup */
.signup {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    margin-bottom: 2.5rem;
}

.signup h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.signup-form button {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.signup-form button:hover {
    opacity: 0.85;
}

/* Footer */
footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: #666;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #444;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
