@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:wght@400;600;700&display=swap');

:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --surface-2: #f1ece4;
  --text: #1f2933;
  --text-soft: #56616b;
  --heading: #163847;
  --primary: #1f4e5f;
  --primary-2: #285f74;
  --accent: #b86a4f;
  --accent-soft: #ead7ce;
  --sage: #a7b3a5;
  --border: #d9d2c7;
  --shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
  --shadow-soft: 0 4px 12px rgba(31, 41, 51, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --content-width: 760px;
  --sidebar-width: 270px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(184, 106, 79, 0.06), transparent 22%),
    linear-gradient(to bottom, #fbf8f3 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--transition), opacity var(--transition);
}

a:hover,
a:focus {
  color: var(--accent);
}

strong {
  color: var(--heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 0.55rem;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.3rem;
}

header {
  position: relative;
  padding: 3.2rem 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(to bottom, rgba(255, 253, 249, 0.94), rgba(247, 244, 239, 0.94));
}

header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent), var(--primary), transparent);
  opacity: 0.35;
}

header > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

header p {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.04rem;
  margin-bottom: 1.4rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

section {
  margin-bottom: 2rem;
  padding: 1.6rem 1.4rem;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(217, 210, 199, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

section > :last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  text-align: center;
  font-size: 0.95rem;
}

footer p {
  margin: 0.2rem 0;
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Intro / hero helpers */
.hero,
.hero-panel {
  padding: 2.2rem 1.6rem;
  background:
    linear-gradient(135deg, rgba(31, 78, 95, 0.06), rgba(184, 106, 79, 0.08)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.tagline,
.lead {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 54rem;
}

.kicker,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Content width helpers */
.narrow {
  max-width: var(--content-width);
}

.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 0.35rem;
}

.section-subtitle {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

/* Cards and grids */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* Buttons if later needed */
.button,
.button:link,
.button:visited {
  display: inline-block;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fffdf9;
  font-weight: 600;
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.button:hover,
.button:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf9;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(184, 106, 79, 0.18);
}

.button.secondary,
.button.secondary:link,
.button.secondary:visited {
  background: transparent;
  color: var(--primary);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(31, 78, 95, 0.06);
  color: var(--accent);
  border-color: var(--accent);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th,
td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(31, 78, 95, 0.06);
  color: var(--heading);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

/* Utility classes */
.meta,
.small,
.note {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.notice {
  padding: 1rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(184, 106, 79, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.muted {
  color: var(--text-soft);
}

.accent {
  color: var(--accent);
}

/* Lists used as clean institutional lists */
.clean-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.clean-list li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(217, 210, 199, 0.75);
}

.clean-list li:last-child {
  border-bottom: 0;
}

/* Contact block */
.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 0.45rem;
}

/* Layout shell */
.site-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.15rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

/* Side navigation */
.side-nav {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(217, 210, 199, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem;
}

.side-nav .menu,
.side-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav .menu li,
.side-nav .submenu li {
  list-style: none;
  margin: 0;
}

.side-nav .menu > li + li {
  margin-top: 0.85rem;
}

.side-nav .menu > li > a {
  display: block;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  padding: 0.1rem 0;
}

.side-nav .menu > li > a:hover,
.side-nav .menu > li > a:focus {
  color: var(--accent);
}

.side-nav .submenu {
  margin-top: 0.45rem;
  margin-left: 0;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}

.side-nav .submenu li + li {
  margin-top: 0.35rem;
}

.side-nav .submenu a {
  display: block;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  line-height: 1.45;
}

.side-nav .submenu a:hover,
.side-nav .submenu a:focus {
  color: var(--primary);
}

/* Main content inside shell */
.main-content {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.main-content section:first-child {
  margin-top: 0;
}

/* Optional horizontal nav fallback if ever used elsewhere */
.site-nav-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.site-nav-horizontal a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primary);
  padding-bottom: 0.18rem;
}

.site-nav-horizontal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left center;
  opacity: 0.5;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav-horizontal a:hover::after,
.site-nav-horizontal a:focus::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar {
    position: static;
  }

  .main-content {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  header {
    padding-top: 3rem;
  }

  main {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  header,
  main,
  footer,
  .site-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-shell {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  section,
  .hero,
  .hero-panel {
    padding: 1.25rem 1rem;
  }

  .side-nav {
    padding: 0.9rem 1rem;
  }

  .side-nav .menu > li + li {
    margin-top: 0.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}