:root {
  color-scheme: light dark;
  --brand: #087a3e;
  --brand-soft: #e8f5ed;
  --ink: #17201b;
  --muted: #5e6b63;
  --surface: #ffffff;
  --background: #f5f8f6;
  --border: #dce7df;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

body {
  color: var(--ink);
  margin: 0;
  padding: 24px 16px 48px;
}

main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgb(20 55 35 / 8%);
  margin: 0 auto;
  max-width: 820px;
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #075f33, #0a9a50);
  color: #fff;
  padding: 34px clamp(22px, 6vw, 52px);
}

header p { color: rgb(255 255 255 / 82%); margin-bottom: 0; }

article { padding: 28px clamp(22px, 6vw, 52px) 44px; }

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.35; margin: 0; }
h2 { color: var(--brand); font-size: 1.24rem; margin: 2rem 0 .55rem; }
p, li { color: var(--ink); }
ul { padding-right: 1.3rem; }
a { color: var(--brand); text-underline-offset: 4px; }

.notice {
  background: var(--brand-soft);
  border-right: 4px solid var(--brand);
  border-radius: 10px;
  color: #164a2e;
  padding: 14px 16px;
}

.meta { font-size: .9rem; }

nav {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  padding-top: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #68d994;
    --brand-soft: #163425;
    --ink: #edf5ef;
    --muted: #b3beb7;
    --surface: #151b17;
    --background: #0e120f;
    --border: #29382e;
  }
  .notice { color: #dcf7e6; }
}

@media (max-width: 520px) {
  body { padding: 0; }
  main { border: 0; border-radius: 0; min-height: 100vh; }
}
