:root {
  --bg: #f7f3ec;
  --bg-2: #efe8dc;
  --ink: #1c1f22;
  --muted: #4f565d;
  --brand: #2f5d50;
  --accent: #b15b2e;
  --card: #ffffff;
  --line: #d9d2c7;
  --shadow: 0 10px 30px rgba(23, 25, 28, 0.12);
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-lang="en"] [data-lang="et"],
html[data-lang="et"] [data-lang="en"] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, #f9f1e6 0%, transparent 60%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(400px 240px at 10% 10%, rgba(177, 91, 46, 0.08), transparent 60%),
    radial-gradient(420px 260px at 90% 0%, rgba(47, 93, 80, 0.12), transparent 65%);
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(247, 243, 236, 0.85);
  border-bottom: 1px solid rgba(217, 210, 199, 0.7);
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.brand strong {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] {
  border-color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 64px 0 40px;
}

.hero-media {
  display: grid;
  gap: 16px;
}

.portrait {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero .callout {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section {
  padding: 28px 0;
}

.section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 10px;
  }

  .hero {
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
