/* Readex Pro — self-hosted, Latin subset.
   display:optional avoids swap/layout-shift on the preloaded weights. */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(fonts/readex-pro-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(fonts/readex-pro-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(fonts/readex-pro-latin-700-normal.woff2) format("woff2");
}

/* Latin Extended subset — covers Croatian č ć đ š ž and friends. */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(fonts/readex-pro-latin-ext-400-normal.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: "Readex Pro";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(fonts/readex-pro-latin-ext-500-normal.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: "Readex Pro";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(fonts/readex-pro-latin-ext-700-normal.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;
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --rule: #dcdcdc;
  --text: #111111;
  --text-muted: #4f4f4f;

  --measure: 34rem;
  --font: "Readex Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem 4rem;
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.7em;
  text-wrap: balance;
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 2.75rem 0 0.25rem;
}

p { margin: 1.25rem 0; text-wrap: pretty; }

.lead {
  font-size: 1.3125rem;
  text-wrap: pretty;
}

strong { font-weight: 700; }

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.09em;
}
a:hover { text-decoration-thickness: 0.14em; }

/* Landing page: the two readings as a plain ruled list. */
.links {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.link-card {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
}
.link-card:hover .title { text-decoration: underline; text-underline-offset: 0.18em; }

.link-card .lang {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.link-card .title {
  font-size: 1.1875rem;
  font-weight: 500;
}

footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--text-muted);
}

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
