:root {
    --text: #222;
    --bg: #fff;
    --accent: #555;
    --max-width: 680px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 2rem 1rem;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text);
    margin: 0;
}

.prefix {
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0;
}

.arn {
   width: 122px;
   height: 160px;
   border-radius: 20%;
   object-fit: cover;
}

main, header, footer {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header div {
    display: flex;
    flex-direction: column;
}

header nav a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 1rem;
}

header nav a:hover { text-decoration: underline; }

.bio div {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bio {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    color: var(--accent);
}

.post-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

#search {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    outline: none;
    width: 100%;
    color: var(--text);
    background: var(--bg);
}

#search:focus { border-color: var(--text); }

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

.tag {
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid #ccc;
    background: none;
    color: var(--accent);
    cursor: pointer;
}

button.tag:hover,
button.tag.active {
    border-color: var(--text);
    color: var(--text);
}

.post-tags {
    display: flex;
    gap: 0.4rem;
    margin: 0.25rem 0;
}

.post-tags .tag {
    font-size: 0.75rem;
    cursor: default;
}

.no-results {
    color: var(--accent);
    font-size: 0.9rem;
}

article + article {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #eee;
}

article h2 { margin-bottom: 0.25rem; }

article time {
    color: var(--accent);
    font-size: 0.9rem;
}

a { color: var(--text); }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: var(--accent);
  font-size: 0.9rem;
}
