/* ==========================================================================
   Auric Axis -- Institutional Site
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --grey-900: #2a2a2a;
  --grey-700: #4a4a4a;
  --grey-500: #6b6b6b;
  --grey-300: #b8b8b8;
  --grey-200: #d8d8d8;
  --grey-100: #eeeeee;
  --grey-50: #f5f5f5;
  --white: #ffffff;
  --gold: #a8893b;
  --gold-bright: #b8943a;
  --gold-dim: #8a6e2f;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; overflow-wrap: break-word; word-break: normal; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; overflow-wrap: break-word; word-break: normal; }

/* ----- Containers ----- */
.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
  width: 100%;
  box-sizing: border-box;
}

/* ----- Masthead / Navigation ----- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-100);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.masthead-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: clamp(40px, 8vw, 120px);
}
.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 0;
  transition: color 200ms cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover { color: var(--gold); }
.nav-link.active,
.nav-link[aria-current="page"] { color: var(--gold); }

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: var(--grey-300);
  padding-block: 80px 40px;
  border-top: 1px solid var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--grey-900);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand .brand-text { color: var(--white); font-size: 24px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-300);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 0 0 20px 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--grey-300);
  transition: color 200ms cubic-bezier(0.4,0,0.2,1);
}
.footer-col a:hover { color: var(--gold); }
.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-300);
  margin-bottom: 12px;
}
.footer-bottom {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mono-compliance {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--grey-500);
}

/* ----- Mobile ----- */
@media (max-width: 900px) {
  .nav { gap: 16px; margin-left: auto; }
  .nav-link { font-size: 12px; letter-spacing: 0.04em; }
  .masthead-inner { padding-block: 14px; gap: 12px; }
  .masthead-logo { height: 40px; }
  .brand-text { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 600px) {
  .masthead-inner { gap: 10px; padding-block: 12px; flex-wrap: nowrap; }
  .nav { gap: 14px; margin-left: auto; flex-shrink: 0; }
  .nav-link { font-size: 11.5px; letter-spacing: 0.03em; }
  .brand-text { font-size: 15px; }
  .container { padding-inline: 24px; }
}
