@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --ink: #102a43;
  --ink-strong: #081e33;
  --paper: #f8f6f1;
  --surface: #fff;
  --mist: #edf1f3;
  --line: #d9e1e6;
  --muted: #647789;
  --accent: #e76652;
  --accent-dark: #c85141;
  --gold: #e8b458;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.08);
  --radius: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

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

html {
  overflow-x: clip;
}

.site-body {
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.site-body main {
  min-height: 58vh;
}

.site-body a {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-body :focus-visible {
  outline: 3px solid rgba(231, 102, 82, 0.34);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 80rem;
  margin: auto;
  padding: 0.9rem 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font: 700 0.95rem Sora, sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__brand b,
.site-footer__brand b {
  color: var(--accent);
  font-weight: 700;
}

.site-header__mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #183a58, var(--ink));
  color: #fff;
  font: 700 0.58rem Sora;
  letter-spacing: -0.08em;
  box-shadow: 0 8px 16px rgba(16, 42, 67, 0.18);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-header__nav a,
.site-header__nav-button {
  color: #365067;
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav-button:hover {
  color: var(--accent);
}

.site-header__dropdown {
  position: relative;
}

.site-header__nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.site-header__menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: -1rem;
  width: min(23rem, calc(100vw - 2rem));
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-header__menu a {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
}

.site-header__menu a:hover {
  background: #fff5f1;
}

.site-header__menu span {
  font-weight: 800;
}

.site-header__menu small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-header__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.site-header__cta {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  padding: 0.72rem 1.05rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(16, 42, 67, 0.16);
}

.site-header__cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.site-header__mobile {
  display: grid;
  gap: 0.3rem;
  max-width: 80rem;
  margin: auto;
  padding: 0.8rem 1.25rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-header__mobile a {
  padding: 0.85rem;
  border-radius: 0.75rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header__mobile a:hover {
  background: #fff0eb;
  color: var(--accent);
}

.site-footer {
  background: linear-gradient(180deg, #0d2740, var(--ink-strong));
  color: #d8e2e9;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 80rem;
  margin: auto;
  padding: 4rem 1.5rem;
}

.site-footer__brand {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font: 700 1.25rem Sora;
  letter-spacing: -0.06em;
}

.site-footer__grid p:not(.site-footer__label) {
  max-width: 20rem;
  margin: 1rem 0 0;
  color: #aebfcb;
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer__label {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font: 700 0.64rem Sora;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__grid div:not(:first-child) a {
  display: block;
  margin: 0.65rem 0;
  color: #d8e2e9;
  font-size: 0.84rem;
  text-decoration: none;
}

.site-footer__grid div:not(:first-child) a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin: auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(216, 226, 233, 0.14);
  color: #91a5b4;
  font-size: 0.75rem;
}

.site-body input,
.site-body select,
.site-body textarea {
  max-width: 100%;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.site-body input:focus,
.site-body select:focus,
.site-body textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(231, 102, 82, 0.12);
}

.site-body .prose {
  color: #3f566a;
}

.site-body .prose h2,
.site-body .prose h3 {
  color: var(--ink);
  font-family: Sora, ui-sans-serif, sans-serif;
  letter-spacing: -0.04em;
}

.site-body .prose a {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-body .pagination {
  margin-top: 2rem;
}

.site-body .pagination svg {
  width: 1rem;
}

.site-body .pagination a,
.site-body .pagination span {
  border-radius: 0.6rem;
}

.site-body table tr:hover td {
  background: #f7fafb;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__toggle,
  .site-header__mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .site-header__brand {
    min-width: 0;
    font-size: 0.83rem;
  }

  .site-header__brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header__cta {
    padding: 0.68rem 0.85rem;
  }

  .site-header__cta span {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    padding: 1rem 1.25rem;
  }

  .site-body main > section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-body main > section[class*="max-w-3xl"] > h1,
  .site-body .font-serif.text-6xl {
    font-size: clamp(2.1rem, 9vw, 3.5rem) !important;
    line-height: 1.08 !important;
  }
}
