/* Rahul Aggarwal — official site styles. No external fonts or trackers. */
:root {
  --ink: #1c2430;
  --ink-muted: #5a6270;
  --paper: #f4f1ea;
  --paper-raised: #fbfaf6;
  --rule: #d8d2c6;
  --navy: #16233a;
  --navy-deep: #10192b;
  --ivory: #f3efe6;
  --accent: #9a7b45;
  --link: #1b4f73;
  --link-hover: #0e3552;
  --focus: #c9a227;
  --max: 42rem;
  --header-max: 72rem;
  --sans: "Liberation Sans", "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Liberation Serif", "Noto Serif", Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 20;
  padding: 0.45rem 0.8rem;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--navy-deep);
  color: var(--ivory);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(154, 123, 69, 0.55);
}

.site-header a {
  color: var(--ivory);
  text-decoration: none;
}

.header-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
}

.brand {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.brand:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.site-nav a {
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(243, 239, 230, 0.35);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding: 2.25rem 0 1rem;
}

.page-title {
  margin: 0 0 1.5rem;
  color: var(--navy);
  font-size: 1.85rem;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.article-body p {
  margin: 0 0 1.2rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.not-found {
  padding: 2rem 0 3rem;
}

.not-found .page-title {
  margin-bottom: 0.75rem;
}

.not-found p {
  margin: 0 0 1.2rem;
}

.site-footer {
  margin-top: 3.25rem;
  padding: 1.35rem 1.25rem 2.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 40rem) {
  body {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .header-inner {
    padding: 0.9rem 1rem 0.85rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.3rem 0.95rem;
  }

  .page-title {
    font-size: 1.45rem;
  }

  main {
    padding-top: 1.6rem;
  }
}

@media (min-width: 60rem) {
  .page-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .skip-link,
  .site-nav {
    display: none;
  }

  body,
  .site-header {
    background: #fff;
    color: #000;
  }

  .site-header {
    border: 0;
    border-bottom: 1px solid #ccc;
  }

  .site-header a,
  .brand {
    color: #000;
  }

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

  .site-footer {
    border-color: #ccc;
  }
}
