/* Konstek – one stylesheet for all pages. No external fonts or images. */

:root {
  --bg: #ffffff;
  --fg: #1d2330;
  --muted: #5b6475;
  --surface: #f4f6f8;
  --border: #dfe3e8;
  --accent: #0b6e69;
  --accent-contrast: #ffffff;
  --radius: 12px;
  --page: 68rem;
  --text: 42rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --fg: #e8ebf0;
    --muted: #a3acba;
    --surface: #1b2029;
    --border: #2a313c;
    --accent: #4fd1c5;
    --accent-contrast: #0b1f1d;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

/* The footer stays at the bottom; the home page fills exactly one screen when it fits. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main { flex: 1 0 auto; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--bg);
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark { width: 1.9rem; height: 1.9rem; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path {
  fill: none;
  stroke: var(--accent-contrast);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
nav a:hover { color: var(--accent); }

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

/* Language switch: the current language is highlighted */
.lang {
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang a,
.lang span {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
}
.lang span[aria-current] {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Typography */

h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: var(--text);
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.muted { color: var(--muted); }

.button {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { filter: brightness(1.08); }

/* Home page: intro and contact on the left, topics on the right */

.home-grid {
  display: grid;
  gap: 2rem 3rem;
  padding-block: 1rem 1.25rem;
}

.intro h1 { max-width: none; font-size: clamp(1.8rem, 3vw, 2.35rem); }

/* Two columns fill one screen; the content is centred vertically */
@media (min-width: 56rem) {
  .home main { display: flex; align-items: center; }
  .home-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.nowrap { white-space: nowrap; }

.contact { margin-top: 1.25rem; }
.contact p { margin: 0 0 0.75rem; }
.contact p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.icon {
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Legal pages */

.prose {
  max-width: calc(var(--text) + 2.5rem);
  padding-block: 0.5rem 2rem;
}
.prose h1 { max-width: none; font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.prose h2 { margin: 1.5rem 0 0.4rem; font-size: 1.15rem; }
.prose p { margin: 0 0 0.75rem; }
.prose ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.3rem; }

.notice {
  margin: 1rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.notice p { margin: 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
