/* Terminimal theme - Global styles */
:root {
  --accent: rgb(255,168,106);
  --accent-alpha-70: rgba(255,168,106,.7);
  --accent-alpha-20: rgba(255,168,106,.2);
  --background: #101010;
  --color: #f0f0f0;
  --border-color: rgba(255,240,224,.125);
  --shadow: 0 4px 6px rgba(0,0,0,.3);
}

@media (prefers-color-scheme: light) {
  :root {
    --accent: rgb(240,128,48);
    --accent-alpha-70: rgba(240,128,48,.7);
    --accent-alpha-20: rgba(240,128,48,.2);
    --background: white;
    --color: #201030;
    --border-color: rgba(0,0,16,.125);
    --shadow: 0 4px 6px rgba(0,0,0,.1);
  }
  .logo { color: #fff; }
}

@media (prefers-color-scheme: dark) {
  .logo { color: #000; }
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  margin: 0;
  padding: 0;
  font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
  font-size: 1rem;
  line-height: 1.54;
  background-color: var(--background);
  color: var(--color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  display: flex;
  align-items: center;
  font-weight: bold;
  line-height: 1.3;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.2rem; }
h4, h5, h6 { font-size: 1.15rem; }

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

p { margin-bottom: 20px; }

code {
  font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
  background: var(--accent-alpha-20);
  padding: 1px 6px;
  margin: 0 2px;
  font-size: .95rem;
}

pre {
  font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
  padding: 20px;
  font-size: .95rem;
  overflow: auto;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

pre code {
  padding: 0;
  margin: 0;
  background: none;
}

blockquote {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin: 40px 0;
  padding: 25px;
}

blockquote p:first-of-type { margin-top: 0; }
blockquote p:last-of-type { margin-bottom: 0; }

ul, ol {
  margin-left: 30px;
  padding: 0;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 40px;
  max-width: 864px;
  min-height: 100vh;
  margin: 0 auto;
}

@media (max-width: 683px) {
  .container { padding: 20px; }
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  position: relative;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  flex: 1;
}

.header__logo:after {
  content: "";
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 2px, transparent 0, transparent 16px);
  display: block;
  width: 100%;
  right: 10px;
}

.header__logo a {
  flex: 0 0 auto;
  max-width: 100%;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  padding: 5px 10px;
}

/* Menu */
.menu { margin: 20px 0; }

.menu__inner {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__inner li {
  margin-right: 8px;
  margin-bottom: 10px;
  flex: 0 0 auto;
}

.menu__inner li.active a {
  color: var(--accent);
  font-weight: bold;
}

.menu__inner li.separator {
  color: var(--accent-alpha-70);
  margin-right: 8px;
}

.menu__inner a {
  color: inherit;
  text-decoration: none;
}

.menu__inner a:hover {
  color: var(--accent);
}

/* Header Navigation - Combined breadcrumb style */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1.1rem;
  padding: 10px 0;
}

.header-nav .nav-name {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.header-nav .nav-name:hover {
  text-decoration: underline;
}

.header-nav .nav-separator {
  color: var(--accent-alpha-70);
  margin: 0 2px;
}

.header-nav .nav-pipe {
  color: var(--accent-alpha-70);
}

.header-nav .nav-item {
  color: var(--color);
  text-decoration: none;
}

.header-nav .nav-item:hover {
  color: var(--accent);
}

.header-nav .nav-item.active {
  color: var(--accent-alpha-70);
}

/* Content */
.content { display: flex; }

/* Posts */
.posts {
  width: 100%;
  margin: 0 auto;
}

.post {
  width: 100%;
  text-align: left;
  margin: 20px auto;
  padding: 20px 0;
}

.post:not(:last-of-type) {
  border-bottom: 1px solid var(--border-color);
}

.post-meta, .post-meta-inline {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent-alpha-70);
}

.post-meta-inline { display: inline; }

.post-title {
  --border: 2px dashed var(--accent);
  position: relative;
  color: var(--accent);
  margin: 0 0 15px;
  padding-bottom: 15px;
  border-bottom: var(--border);
  font-weight: normal;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

.post-title a:hover {
  text-decoration: underline;
}

/* Add > prefix to post titles in list view */
.post.on-list .post-title::before {
  content: ">";
  color: var(--accent);
  margin-right: 10px;
}

/* Hover effect on entire post in list */
.post.on-list {
  transition: background-color 0.2s ease;
  padding-left: 10px;
  margin-left: -10px;
}

.post.on-list:hover {
  background-color: var(--accent-alpha-20);
}

.post-tags, .post-tags-inline {
  margin-bottom: 20px;
  font-size: 1rem;
  opacity: .5;
}

.post-tags { display: block; }
.post-tags-inline { display: inline; }

.post-tag {
  text-decoration: underline;
  color: inherit;
}

.post-content { margin-top: 30px; }

.post ul { list-style: none; }

.post ul li { position: relative; }

.post ul li:before {
  content: ">";
  position: absolute;
  left: -20px;
  color: var(--accent);
}

/* Post list */
.post-list .post-date {
  color: var(--accent-alpha-70);
  text-decoration: none;
}

.post-list a { text-decoration: none; }
.post-list .post-list-title { text-decoration: underline; }

/* Pagination */
.pagination { margin-top: 50px; }

.pagination__title {
  display: flex;
  text-align: center;
  position: relative;
  margin: 100px 0 20px;
}

.pagination__title-h {
  text-align: center;
  margin: 0 auto;
  padding: 5px 10px;
  background: var(--background);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  z-index: 1;
}

.pagination__title hr {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 15px;
  z-index: 0;
}

.pagination__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 8px;
  max-width: 40%;
  padding: 0;
  cursor: pointer;
  appearance: none;
  background: none;
  border: 1px solid var(--accent);
  color: var(--color);
}

.button + .button { margin-left: 10px; }

.button a {
  display: flex;
  padding: 8px 16px;
  text-decoration: none;
  color: inherit;
}

.button:hover {
  background: var(--accent-alpha-20);
}

/* Footer */
.footer {
  padding: 40px 0;
  flex-grow: 0;
  opacity: .5;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  max-width: 100%;
}

.footer a { color: inherit; }

.copyright {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1rem;
}

@media (max-width: 683px) {
  .footer__inner { flex-direction: column; }
  .copyright { flex-direction: column; margin-top: 10px; }
}

/* Read more button */
a.read-more {
  display: inline-flex;
  background: none;
  padding: 0;
  margin: 20px 0;
  color: var(--accent);
  text-decoration: none;
}

a.read-more:hover {
  text-decoration: underline;
}

hr {
  width: 100%;
  border: none;
  background: var(--border-color);
  height: 1px;
}
