/* ============================================================
   Faculty site stylesheet
   Edit the CSS custom properties below to retheme the whole site.
   ============================================================ */

:root {
  --paper: #f0eee6;       /* main background */
  --paper-dim: #e7e3d7;   /* card / hover backgrounds */
  --ink: #1e2a32;         /* primary text, near-black blue-ink */
  --ink-soft: #4b5763;    /* secondary text */
  --rule: #c7c2b3;        /* hairline rule color */
  --sidebar-bg: #1e2a32;  /* dark sidebar */
  --sidebar-text: #ece7db;
  --sidebar-text-dim: #8f9aa3;
  --accent: #8b3a2b;      /* rust/oxide - links, active state */
  --accent-tint: #e7ded1;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --sidebar-width: 250px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-text-dim);
  margin: 0 0 2.5rem 0;
}

.sidebar nav {
  flex: 1;
}

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

.sidebar li + li { margin-top: 0.4rem; }

.sidebar a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar a .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sidebar-text-dim);
}

.sidebar a:hover,
.sidebar a:focus-visible {
  background: rgba(236, 231, 219, 0.08);
  color: #fff;
}

.sidebar a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.sidebar a[aria-current="page"] .idx {
  color: var(--accent);
}

.sidebar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sidebar .sidebar-footer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sidebar-text-dim);
  letter-spacing: 0.04em;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(236, 231, 219, 0.12);
}

/* ---------- Main content ---------- */

main {
  flex: 1;
  padding: 4rem 5rem;
  max-width: 780px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem 0;
}

h1.name {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.title-line {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Axis-divider: a chart x-axis motif used as the page's signature rule */
.axis {
  position: relative;
  height: 14px;
  margin: 2.25rem 0;
}
.axis::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
}
.axis::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0, var(--ink) 1px,
    transparent 1px, transparent 40px
  );
  background-repeat: repeat-x;
}

section + section {
  margin-top: 2.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 0.9rem 0;
}

p { margin: 0 0 1rem 0; }

.bio-placeholder,
.content-placeholder {
  color: var(--ink-soft);
  font-style: italic;
}

/* Contact block styled like a small data table */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.contact-table tr + tr td { border-top: 1px solid var(--rule); }
.contact-table td {
  padding: 0.65rem 0;
}
.contact-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 130px;
}

a.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-tint);
  text-underline-offset: 3px;
}
a.link:hover { text-decoration-color: var(--accent); }
a.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.coming-soon {
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 2rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

footer.page-footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 1.5rem 1.5rem;
  }
  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }
  .sidebar .sidebar-footer { display: none; }
  main { padding: 2.5rem 1.5rem; }
  h1.name { font-size: 2.2rem; }
}
