/* osit — styled after ice.computer */

@font-face {
    font-family: "Agave";
    src: url("/static/agave.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("/static/geist.woff2") format("woff2");
    font-display: swap;
}

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

body {
    background: #101010;
    color: #FFFFFF;
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 40px 24px;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

::selection { background: #232323; color: #FFCFA8; }
::-moz-selection { background: #232323; color: #FFCFA8; }

a { color: inherit; }

header { margin-bottom: 48px; }

.header-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

h1 {
    font-size: 28px;
    font-weight: 500;
    color: #FFCFA8;
    letter-spacing: -0.5px;
}

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

.location {
    color: #65737E;
    font-size: 13px;
    text-decoration: none;
}

.location:hover { color: #FFCFA8; }

.tagline { color: #A0A0A0; font-size: 14px; }

section { margin-bottom: 42px; }

h2 {
    font-size: 12px;
    font-weight: 500;
    color: #65737E;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 .crumb { color: #A0A0A0; text-transform: none; letter-spacing: 0.5px; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #151515;
    color: #65737E;
    font-size: 11px;
    border-radius: 3px;
    text-transform: lowercase;
    white-space: nowrap;
}

.badge.new { background: #FFCFA8; color: #101010; }

/* ---- repo grid ---- */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: #151515;
    border: 1px solid #151515;
}

.link-item {
    background: #101010;
    padding: 14px;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.link-item.active { background: #151515; }

.link-item:hover,
.link-item:focus { background: #FFCFA8; outline: none; }

.link-item:hover .link-title-text,
.link-item:focus .link-title-text,
.link-item:hover .link-description,
.link-item:focus .link-description { color: #101010; }

.link-item:hover .badge,
.link-item:focus .badge { background: #101010; color: #FFCFA8; }

.link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: #FFCFA8;
}

.link-item.active::before,
.link-item:hover::before,
.link-item:focus::before { height: 100%; }

.link-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.link-title-text {
    color: #FFCFA8;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-description { color: #A0A0A0; font-size: 13px; line-height: 1.5; }

/* ---- feed list ---- */

.projects-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #151515;
}

.project-item {
    background: #101010;
    padding: 16px;
    border-bottom: 1px solid #151515;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-item:last-child { border-bottom: none; }

a.project-item:hover,
a.project-item:focus {
    background: #FFCFA8;
    padding-left: 20px;
    outline: none;
}

a.project-item:hover .project-link,
a.project-item:focus .project-link,
a.project-item:hover .project-description,
a.project-item:focus .project-description,
a.project-item:hover .num,
a.project-item:focus .num { color: #101010; }

a.project-item:hover .badge,
a.project-item:focus .badge { background: #101010; color: #FFCFA8; }

a.project-item:hover .label,
a.project-item:focus .label { border-color: #101010; color: #101010; }

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #FFCFA8;
}

a.project-item:hover::before,
a.project-item:focus::before { width: 3px; }

.project-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.num {
    font-family: 'Agave', ui-monospace, monospace;
    color: #65737E;
    font-size: 13px;
}

.project-link {
    display: block;
    color: #FFCFA8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.project-header .project-link { display: inline; margin-bottom: 0; }
.project-header a.project-link:hover { text-decoration: underline; }

.project-description { color: #A0A0A0; font-size: 14px; line-height: 1.6; }

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
}

.meta time, .meta .num { font-family: 'Agave', ui-monospace, monospace; }

.sep { color: #505050; }

.label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid #232323;
    border-radius: 3px;
    font-size: 11px;
    line-height: 18px;
    color: #A0A0A0;
}

.label i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}

.pager a {
    color: #FFCFA8;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #151515;
}

.pager a:hover { background: #FFCFA8; color: #101010; }

.page-num { color: #65737E; font-family: 'Agave', ui-monospace, monospace; }

.empty {
    border: 1px solid #151515;
    padding: 24px 16px;
    color: #65737E;
    font-size: 13px;
}

.empty a { color: #FFCFA8; }

/* ---- admin ---- */

.flash {
    background: #151515;
    border-left: 2px solid #FFCFA8;
    color: #FFCFA8;
    padding: 10px 14px;
    margin-bottom: 32px;
    font-size: 13px;
}

.flash.error { border-left-color: #E06C75; color: #E8A0A6; }

.err { color: #E8A0A6; }

.form {
    display: flex;
    gap: 1px;
    background: #151515;
    border: 1px solid #151515;
}

input[type=text],
input[type=password] {
    flex: 1;
    min-width: 0;
    background: #101010;
    color: #FFFFFF;
    border: none;
    font: inherit;
    padding: 14px;
    outline: none;
}

input::placeholder { color: #505050; }
input:focus { box-shadow: inset 2px 0 0 #FFCFA8; }

button {
    background: #101010;
    color: #FFCFA8;
    border: none;
    font: inherit;
    font-weight: 500;
    padding: 14px 22px;
    cursor: pointer;
}

button:hover,
button:focus-visible { background: #FFCFA8; color: #101010; outline: none; }

button.small {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #232323;
    border-radius: 3px;
    color: #65737E;
}

button.small:hover { color: #101010; border-color: #FFCFA8; }

button.outline { border: 1px solid #151515; padding: 10px 18px; }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.row-main { min-width: 0; }

.status {
    border: 1px solid #151515;
    margin-bottom: 16px;
}

.status > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid #151515;
    font-size: 13px;
}

.status > div:last-child { border-bottom: none; }
.status .k { color: #65737E; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #151515;
    text-align: center;
    color: #505050;
    font-size: 12px;
}

footer a { color: #65737E; text-decoration: none; }
footer a:hover { color: #FFCFA8; }

@media (max-width: 768px) {
    body { padding: 24px 16px; font-size: 13px; }
    h1 { font-size: 22px; }
    .location { font-size: 12px; }
    .tagline { font-size: 13px; }
    .header-content { flex-direction: column; gap: 4px; align-items: flex-start; }
    header { margin-bottom: 32px; }
    section { margin-bottom: 32px; }
    h2 { font-size: 11px; margin-bottom: 12px; }
    .links-grid { grid-template-columns: 1fr; }
    .link-item { padding: 12px; }
    .link-title-text, .project-link { font-size: 13px; }
    .link-description, .project-description, .meta { font-size: 12px; }
    .badge { font-size: 10px; }
    .project-item { padding: 12px; }
    a.project-item:hover, a.project-item:focus { padding-left: 16px; }
    .row { flex-direction: column; align-items: flex-start; gap: 10px; }
    footer { margin-top: 40px; padding-top: 16px; font-size: 11px; }
}

@media (max-width: 480px) {
    body { padding: 20px 12px; }
    h1 { font-size: 20px; }
    .link-item, .project-item { padding: 10px; }
    a.project-item:hover, a.project-item:focus { padding-left: 14px; }
    button { padding: 12px 16px; }
}

@media (min-width: 1200px) {
    body { max-width: 1000px; }
}
