:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --teal: #146356;
  --saffron: #E08D3C;
  --saffron-deep: #C6752A;
  --cream: #FAF8F3;
  --cream-dim: #F1ECE0;
  --ink: #16232E;
  --ink-soft: #4B5A67;
  --hairline: #DDD5C7;
  --white: #FFFFFF;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 3px;
  --container-max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

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

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

::selection {
  background: var(--saffron);
  color: var(--navy-deep);
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--saffron-deep);
}

:focus-visible {
  outline: 2px solid var(--saffron-deep);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--navy-deep);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p {
  max-width: 68ch;
}

.measure-wide p {
  max-width: 78ch;
}

.container-wide {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top utility bar */

.top-bar {
  background: var(--navy-deep);
  color: #C9D3DC;
  font-size: 13.5px;
  padding: 7px 0;
}

.top-bar .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-bar a {
  color: #C9D3DC;
}

.top-bar a:hover {
  color: var(--saffron);
}

.top-bar .tb-item {
  margin-right: 18px;
  white-space: nowrap;
}

.top-bar .tb-item i {
  margin-right: 6px;
  color: var(--saffron);
}

/* Navbar */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--saffron);
}

.navbar-brand-block {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--white) !important;
  letter-spacing: -0.01em;
}

.brand-mark span {
  color: var(--saffron);
}

.brand-tag {
  font-size: 0.72rem;
  color: #9FB0BE;
  display: none;
}

@media(min-width: 768px) {
  .brand-tag {
    display: inline;
  }
}

.site-header .navbar-nav .nav-link {
  color: #E7ECEF;
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.65rem 0.9rem !important;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.active {
  color: var(--saffron);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-search-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #E7ECEF;
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 0.9rem;
}

.nav-search-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #AEBBC6;
  padding: 56px 0 0;
  font-size: 0.93rem;
}

.site-footer h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer a {
  color: #AEBBC6;
}

.site-footer a:hover {
  color: var(--saffron);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.footer-brand {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-brand span {
  color: var(--saffron);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.social-row a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.social-row a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--navy-deep);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  border: none;
  font-size: 1.1rem;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: var(--saffron-deep);
}