@import url("https://fonts.googleapis.com/css2?family=Macondo&family=Prata&display=swap");

/* Global theme */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Use Prata for Ukrainian/Russian pages only */
html:lang(uk) body,
html:lang(ru) body {
  font-family: "Prata", serif;
}

/* Layout */
.page {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: grid;
  justify-items: center;
  align-items: stretch;
  padding: 0 clamp(12px, 4vw, 16px) clamp(16px, 4vw, 24px);
}

.content {
  max-width: 70ch;
  width: 100%;
  /* Keep ch-based width consistent across languages */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  padding-inline: clamp(0px, 1.5vw, 8px);
}

/* Layout for pages with the language navbar */
.content--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.content--split > .link-list {
  font-size: clamp(14px, 3.25vw, 16px);
}

.content--split > .copy {
  width: 100%;
  margin-top: 20px; /* first paragraph begins 20px below navbar */
}

.profile-photo {
  display: block;
  width: 275px;
  max-width: 80vw;
  height: auto;
  margin: 18px auto 0;
}

/* Paragraph requirement: white, horizontally centered */
p {
  margin: 0;
  text-align: center; /* horizontally center text */
  color: var(--fg);
  font-family: "Macondo", cursive;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  font-size: clamp(14px, 3.9vw, 23px);
}

html:lang(uk) p,
html:lang(ru) p {
  font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(12.5px, 3.6vw, 20px);
}

p + p {
  margin-top: 12px;
  color: var(--muted);
}

/* Centered horizontal links (index.html ul) */
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}


.link-list li {
  display: flex;
  align-items: center;
}

.link-list li:not(:last-child)::after {
  content: "|";
  padding: 0 12px;
  color: var(--fg);
}

.link-list a {
  color: var(--fg);
  text-decoration: none;
  font-family: inherit; /* body font */
}

.link-list a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  p {
    font-size: clamp(16px, 4.7vw, 23px);
    line-height: 1.75;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  }

  html:lang(uk) p,
  html:lang(ru) p {
    font-size: clamp(14.5px, 4.6vw, 20px);
  }

  p + p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.92);
  }
}

.macondo-regular {
  font-family: "Macondo", cursive;
  font-weight: 400;
  font-style: normal;
}

.prata-regular {
  font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;
}
