:root {
  --ink-950: #081426;
  --ink-900: #0e2138;
  --ink-800: #15304f;
  --paper-100: #eff5ff;
  --paper-200: #d6e2f4;
  --gold-500: #d4aa63;
  --gold-300: #f2d9ad;
  --mint-400: #93c9be;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(145deg, var(--ink-950), #0a1c33 46%, #0f2848 100%);
  color: var(--paper-100);
  min-height: 100vh;
}

.site-header,
.article-wrap,
.blog-library,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.brand {
  text-decoration: none;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-link {
  text-decoration: none;
  color: var(--paper-200);
  border: 1px solid rgba(214, 226, 244, 0.3);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.article-wrap {
  padding-top: 40px;
  padding-bottom: 70px;
}

.library-hero,
.article-hero,
.article-body,
.library-grid article {
  border: 1px solid rgba(214, 226, 244, 0.15);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(14, 33, 56, 0.92), rgba(11, 25, 43, 0.9));
}

.library-hero,
.article-hero {
  padding: 32px;
}

.library-hero p,
.article-hero p {
  margin: 0;
  color: var(--gold-300);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", serif;
  line-height: 1.15;
}

.library-hero h1,
.article-hero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.library-hero .subtitle,
.article-hero .subtitle {
  margin-top: 14px;
  color: rgba(239, 245, 255, 0.8);
  line-height: 1.75;
  max-width: 760px;
}

.library-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.library-grid article {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.library-grid h2 {
  font-size: 1.6rem;
}

.library-grid p {
  margin: 0;
  line-height: 1.7;
  color: rgba(239, 245, 255, 0.82);
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--mint-400);
  font-weight: 700;
}

.read-link {
  text-decoration: none;
  color: var(--gold-300);
  font-weight: 700;
  width: fit-content;
}

.read-link:hover {
  text-decoration: underline;
}

.article-body {
  margin-top: 16px;
  padding: 30px;
}

.article-body h2 {
  margin-top: 28px;
  font-size: 1.85rem;
}

.article-body p {
  margin: 14px 0 0;
  line-height: 1.85;
  color: rgba(239, 245, 255, 0.88);
}

.article-body ul {
  margin-top: 12px;
  padding-left: 20px;
  line-height: 1.75;
  color: rgba(239, 245, 255, 0.88);
}

.article-body li + li {
  margin-top: 8px;
}

.callout {
  margin-top: 20px;
  border-left: 3px solid var(--gold-500);
  padding: 12px 14px;
  background: rgba(8, 20, 38, 0.65);
  border-radius: 10px;
}

.site-footer {
  padding-bottom: 28px;
  font-size: 13px;
  color: rgba(239, 245, 255, 0.68);
}

@media (max-width: 720px) {
  .library-hero,
  .article-hero,
  .article-body,
  .library-grid article {
    border-radius: 16px;
  }

  .library-hero,
  .article-hero,
  .article-body,
  .library-grid article {
    padding: 20px;
  }

  .site-header {
    padding-top: 18px;
  }
}
