:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #182832;
  --muted: #5d6e78;
  --line: #e3e8e6;
  --medical: #397f91;
  --turquoise: #9ccdd0;
  --accent: #c6aa86;
  --ink: #14242c;
  --shadow: 0 24px 50px -36px rgb(24 40 50 / 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(42rem 24rem at 100% -10%, rgb(156 205 208 / 0.35), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Vazirmatn, "IRANSansX", "IRANSans", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.85;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.6rem; }
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(247 248 246 / 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.bar-inner, .wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { letter-spacing: 0.28em; font-weight: 600; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--medical); }
.hero { padding: 3.5rem 0 1rem; }
.kicker { margin: 0; color: var(--medical); letter-spacing: 0.16em; font-size: 0.75rem; }
h1 { margin: 0.45rem 0 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; }
.lede { max-width: 42rem; color: var(--muted); font-size: 1.05rem; }
.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature a.title { text-decoration: none; }
.feature .copy { padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.8rem; }
.feature h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.15rem); font-weight: 500; line-height: 1.45; }
.cover { min-height: 16rem; background: #07141a; }
.cover img, .card img, .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 3rem; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  text-decoration: none;
  min-height: 100%;
}
.card:hover { border-color: rgb(57 127 145 / 0.45); }
.card .pad { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card h2 { margin: 0; font-size: 1.15rem; font-weight: 550; line-height: 1.55; }
.meta, .excerpt { color: var(--muted); }
.excerpt { margin: 0; }
.pill {
  align-self: flex-start;
  border: 1px solid rgb(198 170 134 / 0.7);
  color: #8a7050;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.78rem;
}
.article { width: min(760px, calc(100% - 2rem)); margin: 0 auto 3rem; }
.article-cover { margin: 1.4rem 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: #07141a; aspect-ratio: 16/9; }
.body { font-size: 1.05rem; }
.body p, .body li { color: var(--text); }
.body h2, .body h3 { font-weight: 550; line-height: 1.45; margin: 1.6rem 0 0.4rem; }
.body blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 1rem;
  border-inline-start: 3px solid var(--turquoise);
  color: var(--muted);
}
.note, .source, .author, .empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
.note { border-inline-start: 3px solid var(--medical); color: var(--muted); }
.source a { color: var(--medical); }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0; }
.share a, .share button, .btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.share a:hover, .share button:hover, .btn:hover { border-color: var(--medical); color: var(--medical); }
.related { width: min(1120px, calc(100% - 2rem)); margin: 0 auto 3rem; }
.related h2 { font-weight: 500; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .feature, .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
