/* Ed's Stories — Mobile-first, large touch targets, high contrast */

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #222;
    background: #f9f7f4;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* — Header — */

header {
    text-align: center;
    padding: 20px 0 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

header h1 {
    font-size: 28px;
    font-weight: normal;
    color: #333;
    letter-spacing: 0.5px;
}

/* — Password Gate — */

.gate-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.gate-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.gate-container h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 40px;
    color: #333;
}

/* — Forms — */

label {
    display: block;
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
    margin-top: 24px;
}

input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    font-size: 20px;
    padding: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

input[type="password"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #666;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input[type="file"] {
    font-size: 18px;
    padding: 12px 0;
    width: 100%;
}

/* — Buttons — */

.btn, button[type="submit"] {
    display: block;
    width: 100%;
    font-size: 22px;
    padding: 18px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    margin-top: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary, button[type="submit"] {
    background: #2c5f2d;
    color: #fff;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: #234d24;
}

.btn-primary:active, button[type="submit"]:active {
    background: #1a3a1b;
}

.btn-secondary {
    background: transparent;
    color: #555;
    border: 2px solid #ccc;
}

.btn-secondary:hover {
    border-color: #999;
    color: #333;
}

/* — Error messages — */

.error {
    color: #b33;
    font-size: 18px;
    margin-top: 12px;
    padding: 12px;
    background: #fef0f0;
    border-radius: 6px;
}

/* — Posts / Feed — */

.empty-state {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 20px;
}

.post {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.post-photo {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 16px;
}

.post-body {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

.post-meta {
    font-size: 16px;
    color: #888;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.post-author {
    font-style: italic;
}

/* — Main content area — */

main h2 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 8px;
    color: #333;
}
