/* kanyanga.co.ke — plain, text-first, essays site */

body {
    background: #ffffff;
    color: #000000;
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 19px;
    line-height: 1.55;
    margin: 0;
}

a { color: #000099; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

.page {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.side-mark {
    position: absolute;
    top: 48px;
    right: 100%;
    margin-right: 28px;
    pointer-events: none;
    user-select: none;
}

.side-mark span {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: "Times New Roman", Times, Georgia, serif;
    font-weight: bold;
    font-size: clamp(26px, 3.2vw, 46px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(to bottom, #4169e1 0%, #4169e1 30%, rgba(65, 105, 225, 0.05) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .side-mark span {
        background: none;
        color: #c9d5f7;
        -webkit-text-fill-color: currentColor;
    }
}

@media (max-width: 960px) {
    .side-mark {
        display: none;
    }
}

.brand {
    margin: 0 0 22px;
    line-height: 1;
}

.brand a {
    display: inline-block;
    font-family: "Times New Roman", Times, Georgia, serif;
    font-weight: bold;
    font-size: clamp(34px, 8vw, 72px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(to right, #000000 0%, #000000 30%, rgba(0, 0, 0, 0.05) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease;
}

.brand a:hover {
    background: linear-gradient(to right, #000099 0%, #000099 35%, rgba(0, 0, 153, 0.12) 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .brand a {
        background: none;
        color: #cccccc;
        -webkit-text-fill-color: currentColor;
    }
}

nav.site-nav {
    margin: 0 0 36px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

nav.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

nav.site-nav a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #333333;
    text-decoration: none;
}

nav.site-nav a:hover {
    color: #000099;
    text-decoration: underline;
}

main {
    max-width: 100%;
}

.tagline {
    font-size: 15px;
    color: #555555;
    margin: 0 0 30px;
}

h1.essay-title {
    font-size: 24px;
    margin: 0 0 4px;
    line-height: 1.3;
}

.essay-date {
    font-size: 15px;
    color: #555555;
    margin: 0 0 24px;
}

main p {
    margin: 0 0 18px;
}

.notice {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #444444;
    background: #f4f6ff;
    border: 1px solid #dde3fb;
    border-radius: 4px;
    padding: 14px 16px;
    margin: 0 0 30px;
}

.essay-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.essay-list li {
    margin-bottom: 14px;
}

.essay-list .date {
    display: inline-block;
    width: 100px;
    color: #555555;
    font-size: 15px;
}

.essay-list a {
    font-size: 18px;
}

footer.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 50px;
    font-size: 13px;
    color: #aaaaaa;
}

footer.site-footer a {
    color: #aaaaaa;
}

footer.site-footer .est {
    font-style: italic;
}

/* --- admin --- */

.admin-bar {
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dddddd;
}

.admin-bar a { margin-right: 16px; }

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #555555;
    margin-bottom: 4px;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    padding: 8px;
    border: 1px solid #bbbbbb;
    border-radius: 3px;
}

.field textarea {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 17px;
    line-height: 1.5;
    min-height: 380px;
    resize: vertical;
}

.field .hint {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #888888;
    margin-top: 4px;
}

.field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #000099;
    background: #f0f0ff;
    color: #000099;
    border-radius: 3px;
    cursor: pointer;
}

.btn:hover { background: #e0e0ff; }

.btn-danger {
    border-color: #990000;
    background: #fff0f0;
    color: #990000;
}

.btn-danger:hover { background: #ffe0e0; }

.error-msg {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #990000;
    background: #fff0f0;
    border: 1px solid #eecccc;
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 18px;
}

.notice-msg {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #005500;
    background: #f0fff0;
    border: 1px solid #cceecc;
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 18px;
}

table.admin-list {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}

table.admin-list th,
table.admin-list td {
    text-align: left;
    padding: 8px 10px 8px 0;
    border-bottom: 1px solid #eeeeee;
}

table.admin-list th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888888;
}

.badge-draft {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #996600;
    background: #fff6e0;
    border: 1px solid #eeddaa;
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 6px;
}

@media (max-width: 560px) {
    .page {
        padding: 28px 16px 60px;
    }
    .brand a {
        letter-spacing: 0.01em;
    }
}
