:root {
  color-scheme: light;
  --background: #fffaf2;
  --surface: #ffffff;
  --text: #332b45;
  --muted: #716985;
  --accent: #7257dc;
  --accent-soft: #eee9ff;
  --border: #e7def8;
  --shadow: rgba(77, 55, 130, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #fff2b8 0, var(--background) 260px);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.site-header,
main {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 40px var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 5px 14px var(--shadow);
}

.brand { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.brand strong { display: block; font-size: 1.2rem; }
.brand span { color: var(--muted); font-size: 0.92rem; }

.locale-nav { display: flex; gap: 8px; }
.locale-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
  text-decoration: none;
}

main { padding: clamp(24px, 5vw, 52px); }
h1, h2 { line-height: 1.25; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 6vw, 3rem); overflow-wrap: anywhere; }
h2 { margin-top: 2rem; font-size: 1.35rem; }
p, li { max-width: 72ch; }
ul { padding-left: 1.35rem; }
.muted { color: var(--muted); margin-top: 0; }
a { color: var(--accent); }

.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.document-list a {
  display: block;
  height: 100%;
  padding: 18px;
  background: var(--accent-soft);
  border-radius: 16px;
  font-weight: 750;
  text-decoration: none;
}

footer {
  padding: 22px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 560px) {
  .page { width: min(calc(100% - 20px), 860px); margin-top: 10px; }
  .site-header { align-items: flex-start; flex-wrap: wrap; border-radius: 18px; }
  .app-icon { width: 56px; height: 56px; border-radius: 13px; }
  .locale-nav { width: 100%; justify-content: flex-end; }
  main { border-radius: 18px; }
  h1 { font-size: 1.85rem; }
}
