/* Literata Variable Font – Regular */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('https://niko.micro.blog/uploads/2026/literata-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('https://niko.micro.blog/uploads/2026/literata-latinextended-regular.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Literata Variable Font – Italic */
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('https://niko.micro.blog/uploads/2026/literata-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('https://niko.micro.blog/uploads/2026/literata-latinextended-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Anpassungen */

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #ffffff;
    --text: #42444a;
    --link: #a8a8a8;
    --link-hover: #101115;
    --accent-1: #f6f6f6;
    --accent-2: #d4d4d6;
    --accent-3: #84868b;
    --highlight: #e3e3e6;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #20232a;
    --text: #f7f7f7;
    --link: #c8c8c8;
    --link-hover: #ffffff;
    --accent-1: #3d4149;
    --accent-2: #53565d;
    --accent-3: #d4d4d6;
    --highlight: #53565d;
  }
}


body {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  line-height: 1.75;
}

/* Sticky Footer - bleibt unten bei kurzem Content */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

article:last-of-type {
    margin-bottom: 0;
}

.page-title,
.post-title {
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
    font-size: 2.75rem;
}

/* Kategorien als komma-getrennte Small Caps Links */
a.category:link,
a.category:visited {
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: var(--link);
    display: inline;
    font-family: "Literata", var(--sans-serif-font);
    font-size: 1.4rem;
	text-transform: uppercase;
    font-variant-caps: small-caps;
    line-height: inherit;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

a.category:hover,
a.category:active {
    background: transparent;
    border: none;
    color: var(--link-hover);
    text-decoration: underline;
}

/* Strich nach jeder Kategorie außer der letzten */
a.category::after {
    content: " | ";
    font-variant-caps: normal;
}

a.category:last-of-type::after {
    content: "";
}

/* Article als Flexbox NUR auf Post-Seiten (main ohne class) */
main:not(.home):not(.archive) article {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 20rem);
}

/* Content-Bereich soll nicht wachsen */
main:not(.home):not(.archive) article .entry,
main:not(.home):not(.archive) article .post-title,
main:not(.home):not(.archive) article .post-date {
    flex: 0 0 auto;
}

/* Kategorien nach unten drücken */
main:not(.home):not(.archive) article p.categories {
    margin-top: auto;
    padding-top: 4rem;
    text-align: center;
}

/* Hamburger-Menü immer verwenden - überschreibt Desktop-Styles */
site-nav {
    background: var(--background);
}

.site-nav ul {
    height: 100dvmax;
    justify-content: start;
    padding: 4rem 0;
}

.nav-menu {
    background-color: var(--background);
    border-radius: 0;
    flex-direction: column;
    height: 100dvmax;
    left: -100%;
    position: fixed;
    text-align: center;
    top: 0;
    transition: 0.3s;
    width: 100%;
    z-index: 10000;
}

.nav-menu.active {
    left: 0;
    margin: 0;
    padding: 10rem 0;
    top: 0;
}

.nav-item {
    margin: 1.25rem 0;
	font-size: 2.2rem;
}

.hamburger {
    cursor: pointer;
    display: block;
    z-index: 10010;
}

.hamburger.active {
    position: fixed;
    right: 20px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}
