@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/alegreya-latin.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: "Alegreya";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/alegreya-latin-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: "Alegreya";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-italic-latin.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: "Alegreya";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-italic-latin-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: "Alegreya Fallback";
  src: local("Georgia");
  size-adjust: 94%;
  ascent-override: 100%;
  descent-override: 28%;
}

:root {
  --vapno: #f3ebda;
  --vapno-deep: #e9dfc8;
  --sjena: #d9cbaf;
  --crnica: #2a1f17;
  --zemlja: #5c4a3a;
  --crijep: #a84a30;
  --crijep-deep: #86392a;
  --zlatovez: #8a6a0e;
  --livada: #4f8a34;
  --measure: 38rem;
  --scene: 960px;
}

* { box-sizing: border-box; }

html {
  background: var(--vapno);
  color: var(--crnica);
  font-family: "Alegreya", "Alegreya Fallback", Georgia, serif;
  font-size: 112.5%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem;
}

a {
  color: var(--crijep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { color: var(--crijep-deep); }
a:focus-visible {
  outline: 3px solid var(--zlatovez);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -100vw;
  top: 0.5rem;
  background: var(--crnica);
  color: var(--vapno);
  padding: 0.4rem 0.8rem;
}
.skip:focus { left: 1rem; }

.top {
  width: 100%;
  max-width: var(--scene);
  margin: 0 auto;
  padding: 1.4rem 0 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.home {
  color: var(--crnica);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.home:hover { color: var(--crijep-deep); }
.top nav { display: flex; gap: 1.4rem; }
.top nav a { color: var(--zemlja); text-decoration: none; }
.top nav a:hover { color: var(--crijep-deep); text-decoration: underline; }

main { flex: 1; width: 100%; }

.hero {
  width: 100%;
  max-width: var(--scene);
  margin: 0 auto;
}
.scene {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 6px;
  border: 1px solid var(--sjena);
  box-shadow: 0 1px 0 var(--vapno-deep);
}
.hero h1 {
  max-width: var(--measure);
  margin: 2.2rem auto 0.9rem;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.crops {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  margin: 0.4rem auto 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.hero .crops { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.pitch, .devlog, .post {
  max-width: var(--measure);
  margin: 0 auto;
}
.pitch { padding-top: 1.4rem; }
.pitch p { margin: 0 0 1rem; font-size: 1.1rem; }
.pitch p.status {
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--zlatovez);
  color: var(--zemlja);
  font-style: italic;
}

.devlog { padding: 3rem 0 2rem; }
h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.follow { margin: -0.4rem 0 1.2rem; color: var(--zemlja); }
.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.posts li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.4rem 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--sjena);
}
.posts li:last-child { border-bottom: 1px solid var(--sjena); }
.posts time {
  color: var(--zlatovez);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  padding-top: 0.15rem;
}
.posts a {
  color: var(--crnica);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.posts a:hover { color: var(--crijep-deep); text-decoration: underline; }
.posts p { margin: 0.2rem 0 0; color: var(--zemlja); }

.post { padding: 1.6rem 0 2rem; }
.post header h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.meta { margin: 0 0 2rem; color: var(--zlatovez); font-weight: 500; }
.post h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.6rem;
}
.post h3 { font-size: 1.15rem; margin: 1.8rem 0 0.4rem; }
.post p { margin: 0 0 1.1rem; }
.post ul { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.post li { margin-bottom: 0.3rem; }
.post blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--zlatovez);
  color: var(--zemlja);
  font-style: italic;
}
.post code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--vapno-deep);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.post figure { margin: 1.6rem 0; }
.post figure img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 6px;
  border: 1px solid var(--sjena);
}
.post figcaption {
  margin-top: 0.5rem;
  color: var(--zemlja);
  font-size: 0.95rem;
  font-style: italic;
}
.post p.sig { margin-top: 2rem; font-style: italic; }
.neighbours {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sjena);
}
.neighbours a { max-width: 48%; }
.back { margin-top: 1.5rem; }
.lost { padding: 3rem 0; max-width: var(--measure); margin: 0 auto; }

.foot {
  width: 100%;
  max-width: var(--scene);
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--sjena);
  color: var(--zemlja);
  font-size: 0.95rem;
}
.foot p { margin: 0.2rem 0; }

@media (max-width: 40rem) {
  html { font-size: 106%; }
  .posts li { grid-template-columns: 1fr; gap: 0.1rem; }
  .top { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .scene { animation: settle 0.9s ease-out both; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
