/* miropich.eu — shared styles */
:root {
  --bg: #f5f3ee;
  --surface: #fffdf8;
  --ink: #1d1d1b;
  --muted: #6b6a65;
  --line: #e2ded4;
  --accent: #2f5d50;
  --accent-soft: #e3ece8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161715;
    --surface: #1e201d;
    --ink: #ecebe6;
    --muted: #a09f98;
    --line: #2f312d;
    --accent: #8fc2ae;
    --accent-soft: #23302b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.lang a, .lang span {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.lang span {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }

/* Main */
main { flex: 1; padding: 40px 0 64px; }

.intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.intro p {
  font-size: 19px;
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}

section { margin-top: 56px; }

h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.links li {
  border-bottom: 1px solid var(--line);
}
.links a {
  display: flex;
  justify-content: space-between;
  padding: 14px 2px;
  text-decoration: none;
  color: var(--ink);
}
.links a:hover { color: var(--accent); }
.links a::after { content: "→"; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.card p { margin: 0 0 16px; color: var(--muted); }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.button:hover { opacity: 0.9; }

.lock {
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
  position: relative;
  top: -1px;
}
.lock::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

/* Footer */
.site-footer {
  padding: 24px 0 36px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }

/* Language picker (root page) */
.picker {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.picker h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  margin: 0 0 24px;
}
.picker .choices { display: flex; gap: 12px; justify-content: center; }
