:root {
  color-scheme: light;
  color: #241b15;
  background: #efe4d0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #241b15;
  --paper: #fff9ef;
  --sand: #ead7b7;
  --red: #7b2f2c;
  --teal: #315f66;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(85, 53, 28, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(85, 53, 28, 0.06) 1px, transparent 1px),
    #efe4d0;
  background-size: 42px 42px;
}

a { color: var(--teal); }

.site-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header,
.card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 8px 0 #b9986e, 0 20px 48px rgba(42, 28, 18, 0.14);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-links,
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.language-switcher button,
.contact-link {
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--ink);
  background: #f7ead6;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: white;
  background: var(--red);
}

main { display: grid; gap: 18px; margin-top: 22px; }

.card { padding: clamp(20px, 5vw, 42px); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 4.8rem);
  line-height: 0.98;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: #49382d;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.65;
}

.meta {
  margin: 12px 0 0;
  color: #6b5a4e;
  font-size: 0.9rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: white;
  background: var(--teal);
}

.content-grid { display: grid; gap: 14px; }

.document-section {
  border: 1px solid rgba(36, 27, 21, 0.2);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.4);
}

.document-section h2 { margin: 0 0 10px; font-size: 1.1rem; }
.document-section p { margin: 8px 0 0; line-height: 1.65; }
.document-section ul { display: grid; gap: 10px; margin: 10px 0 0; padding-left: 22px; line-height: 1.55; }

.error {
  border-color: #8b2727;
  color: #6f1f1f;
  background: #fff0ee;
}

footer {
  padding-top: 26px;
  color: #5e4c3f;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 20px, 920px); padding-top: 10px; }
  .site-header { align-items: stretch; flex-direction: column; }
  .nav-links a { flex: 1; text-align: center; }
  .language-switcher button { flex: 1; }
}
