/* Courier Prime — self-hosted, latin + latin-ext (for č, š, ž) */
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courierprime-regular-ext.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;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courierprime-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: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courierprime-italic-ext.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;
}
@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courierprime-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: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courierprime-bold-ext.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;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courierprime-bold.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;
}

:root {
  --paper: #f5f1e8;
  --ink: #2b2721;
  --faded: #7d7466;
  --line: #ddd5c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Courier Prime", ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 1.0625rem;
  line-height: 1.75;
}

::selection { background: #e6ddc8; }

a { color: inherit; }

.site-header,
main,
.site-footer {
  max-width: 41rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2rem;
  margin-bottom: 3.5rem;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
}
.site-title:hover { text-decoration: underline; }

.lang-switch {
  font-size: 0.85rem;
  color: var(--faded);
}
.lang-switch button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0 0.15em;
  color: var(--faded);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lang-switch button:hover { color: var(--ink); text-decoration: underline; }
.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-switch button.is-unavailable {
  opacity: 0.35;
  cursor: default;
}
.lang-switch button.is-unavailable:hover { color: var(--faded); text-decoration: none; }

main { padding-bottom: 4rem; }

.tagline {
  margin: 0 0 3rem;
  color: var(--faded);
}

/* --- essay list (index) --- */
.essay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.essay-list li { margin-bottom: 2.25rem; }
.essay-list h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 700;
}
.essay-title { text-decoration: none; }
.essay-title:hover { text-decoration: underline; }
.essay-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--faded);
}
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 0.4em;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* --- essay page --- */
article { margin-bottom: 3rem; }
article h1 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1.35;
}
article .essay-meta { margin-bottom: 2.5rem; }
article p { margin: 0 0 1.35em; }
article blockquote {
  margin: 0 0 1.35em;
  padding-left: 1.1em;
  border-left: 3px solid var(--line);
  color: var(--faded);
  font-style: italic;
}

/* theme kicker (nadnaslov) */
article .theme {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faded);
}

/* long-form elements from markdown */
article h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.2rem;
  line-height: 1.4;
}
article h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.05rem;
}
article ul,
article ol {
  margin: 0 0 1.35em;
  padding-left: 1.6em;
}
article li { margin-bottom: 0.4em; }
article hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 2.5em 0;
}
article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.35em;
}
article figure { margin: 0 0 1.35em; }
article figure img { margin-bottom: 0.4em; }
article figcaption {
  font-size: 0.8rem;
  color: var(--faded);
  text-align: center;
}
article iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin: 0 0 1.35em;
}

.lang-notice {
  margin: 0 0 3rem;
  padding: 0.6em 0.9em;
  border: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--faded);
}

.lang-label {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faded);
}

/* --- language switching (JS sets data-lang on <html>) --- */
html[data-lang="sl"] .lang-en { display: none; }
html[data-lang="en"] .lang-sl { display: none; }

/* essays available in only one language are hidden from the
   index while reading in the other language */
html[data-lang="en"] .only-sl { display: none; }
html[data-lang="sl"] .only-en { display: none; }

/* without JS: show both versions, separated and labeled */
html.no-js .lang-label { display: block; }
html.no-js .tagline .lang-en::before,
html.no-js .essay-list .lang-en::before,
html.no-js .essay-meta .lang-en::before,
html.no-js .site-footer .lang-en::before { content: " / "; }
html.no-js article + article {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px dashed var(--line);
}

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--faded);
  font-size: 0.8rem;
}
.site-footer p { margin: 0; }

@media (min-width: 600px) {
  body { font-size: 1.125rem; }
}
