:root {
  --bg: #f7f3ee;
  --paper: #fffdfa;
  --ink: #18202f;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --line-strong: #cfd8e3;
  --accent: #5b4ce6;
  --accent-soft: #f0edff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 36px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #fdfaf5 0%, transparent 42%),
    radial-gradient(circle at 90% 15%, #f4f0ff 0%, transparent 35%),
    linear-gradient(180deg, #fbf8f3 0%, #f3eee8 100%);
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1060px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 243, 238, 0.88);
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.52rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
}

.nav a {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #3a4554;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #222d3c;
  background: var(--accent-soft);
  border-color: #ddd6fe;
}

.hero {
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.kicker {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.96;
  margin-top: 12px;
}

.lead {
  margin-top: 18px;
  color: #2e3b4d;
  max-width: 62ch;
  line-height: 1.72;
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #1f2a3b;
  color: #fff;
  box-shadow: 0 8px 16px rgba(31, 42, 59, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 20px rgba(31, 42, 59, 0.22);
}

.btn-soft {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.btn-soft:hover {
  border-color: #d1c6ff;
  background: #f8f5ff;
}

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

.profile {
  padding: 22px;
}

.profile img {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 16px;
}

.profile p {
  margin: 6px 0;
  color: #364355;
}

section {
  padding: 28px 0 42px;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 10px;
}

.section-text {
  color: #4a5565;
  line-height: 1.72;
  max-width: 74ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.panel {
  padding: 22px;
}

.panel h3 {
  font-size: 1.32rem;
}

.panel p {
  color: #4a5565;
  line-height: 1.66;
}

.meta {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.list a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.list a:hover {
  transform: translateY(-1px);
  border-color: #cbc2ff;
  background: #faf8ff;
  box-shadow: 0 8px 20px rgba(91, 76, 230, 0.08);
}

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

.source-note {
  margin-top: 10px;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
