/* Noether Research — Site Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=STIX+Two+Text:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

:root {
  --paper: #fbfaf7;
  --paper-alt: #f7f6f2;
  --ink: #111111;
  --ink-soft: #222222;
  --charcoal: #333333;
  --gray: #666666;
  --gray-light: #b8b8b8;
  --gray-faint: #e2e0da;
  --border: #2a2a2a;
  --border-light: #c9c7c0;
  --white: #ffffff;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "STIX Two Text", "Libertinus Serif", "Latin Modern Roman", "CMU Serif", "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Layout ─────────────────────────────────────────────── */

.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px;
  width: 100%;
}

main {
  flex: 1;
  padding-bottom: 64px;
}

/* ─── Header ─────────────────────────────────────────────── */

header {
  padding: 26px 0 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.site-title {
  font-family: "STIX Two Text", "Libertinus Serif", "Latin Modern Roman", "CMU Serif", "Times New Roman", serif;
  font-size: 0.97rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-title:hover {
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  gap: 26px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  font-family: "STIX Two Text", "Libertinus Serif", "Latin Modern Roman", "CMU Serif", "Times New Roman", serif;
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

nav a:hover {
  color: var(--ink);
}

nav a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.header-rule {
  margin-top: 16px;
  border: none;
  border-top: 1px solid var(--gray-light);
}

/* ─── Page Content ───────────────────────────────────────── */

.content {
  padding-top: 48px;
}

/* ─── Page Title Block ───────────────────────────────────── */

.page-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 0.86rem;
  color: var(--gray);
  letter-spacing: 0.01em;
  line-height: 1.55;
  margin-bottom: 0;
}

.title-rule {
  margin: 30px 0 36px;
  border: none;
  border-top: 1px solid var(--gray-light);
}

/* ─── Section Labels (Abstract., Research Program.) ─────── */

.section-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ─── Body Text ──────────────────────────────────────────── */

.body-text {
  max-width: 820px;
  font-size: 0.97rem;
  line-height: 1.62;
  color: var(--ink);
}

.body-text + .body-text {
  margin-top: 1em;
}

p {
  margin-bottom: 0;
}

/* ─── Section Divider ────────────────────────────────────── */

.section-rule {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 38px 0;
}

/* ─── Research Axes List (Homepage) ─────────────────────── */

.research-axes {
  list-style: none;
  max-width: 820px;
}

.research-axes li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-faint);
}

.research-axes li:first-child {
  border-top: 1px solid var(--gray-faint);
}

.axis-number {
  font-size: 0.86rem;
  color: var(--gray);
  padding-top: 2px;
  font-variant-numeric: oldstyle-nums;
}

.axis-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.axis-summary {
  font-size: 0.89rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ─── Restricted Note (Homepage) ────────────────────────── */

.restricted-note {
  max-width: 820px;
  margin-top: 40px;
  border-top: 1px solid var(--gray-faint);
  padding-top: 16px;
}

.restricted-note p {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.58;
}

/* ─── Accordion (Research Program) ──────────────────────── */

.accordion {
  max-width: 860px;
  margin-top: 0;
}

.accordion-item {
  border-top: 1px solid var(--gray-faint);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--gray-faint);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0 16px;
  align-items: baseline;
  text-align: left;
}

.accordion-trigger:hover .accordion-title {
  color: var(--charcoal);
}

.accordion-numeral {
  font-size: 0.88rem;
  color: var(--gray);
  font-style: normal;
  padding-top: 1px;
}

.accordion-title {
  font-family: "STIX Two Text", "Libertinus Serif", "Latin Modern Roman", "CMU Serif", "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
  transition: color 0.12s ease;
}

.accordion-icon {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-style: normal;
  line-height: 1;
  user-select: none;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  /* rotate handled by swapping character in JS */
}

.accordion-body {
  display: none;
  padding: 4px 0 24px 3.6rem;
  max-width: 780px;
}

.accordion-body.open {
  display: block;
}

.accordion-intro {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.62;
  margin-bottom: 16px;
}

.accordion-list {
  list-style: none;
}

.accordion-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.58;
  padding: 7px 0;
  border-top: 1px solid var(--gray-faint);
}

.accordion-list li:last-child {
  border-bottom: 1px solid var(--gray-faint);
}

.accordion-list li strong {
  font-weight: 600;
  color: var(--ink);
}

/* ─── Review Access Box (Research Program page) ─────────── */

.review-box {
  max-width: 820px;
  margin-top: 40px;
  border: 1px solid var(--border-light);
  padding: 16px 22px;
}

.review-box-title {
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.review-box p {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.58;
}

.review-box a {
  color: var(--gray);
}

/* ─── Publications Table ─────────────────────────────────── */

.pub-intro {
  max-width: 820px;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.62;
  margin-bottom: 32px;
}

.pub-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}

.pub-table thead tr {
  border-bottom: 1px solid var(--border);
}

.pub-table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--charcoal);
  text-align: left;
  padding: 8px 14px 8px 0;
  letter-spacing: 0.01em;
}

.pub-table thead th:first-child {
  width: 48px;
}

.pub-table thead th:nth-child(3) {
  width: 120px;
}

.pub-table thead th:nth-child(4) {
  width: 120px;
}

.pub-table tbody tr {
  border-bottom: 1px solid var(--gray-faint);
}

.pub-table tbody tr:last-child {
  border-bottom: 1px solid var(--border-light);
}

.pub-table tbody td {
  padding: 11px 14px 11px 0;
  vertical-align: top;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pub-table tbody td:first-child {
  color: var(--gray);
  font-size: 0.83rem;
  white-space: nowrap;
}

.pub-table .pub-title {
  color: var(--ink);
  font-weight: 400;
}

.pub-table .pub-type {
  color: var(--gray);
  font-size: 0.85rem;
}

.pub-table .pub-status {
  color: var(--gray);
  font-size: 0.85rem;
}

.pub-table .pub-status.draft {
  color: var(--charcoal);
  font-style: italic;
}

.pub-table .pub-summary {
  font-size: 0.85rem;
  color: var(--gray);
}

.pub-footer-note {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--gray);
  max-width: 820px;
}

/* ─── Mobile Publications (citation style) ───────────────── */

.pub-mobile {
  display: none;
}

.pub-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-faint);
}

.pub-entry:first-child {
  border-top: 1px solid var(--border-light);
}

.pub-entry-line1 {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 2px;
}

.pub-entry-line1 .pub-entry-number {
  color: var(--gray);
}

.pub-entry-line2 {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 2px;
}

.pub-entry-line3 {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ─── Review Access Page ─────────────────────────────────── */

.review-section {
  max-width: 820px;
  margin-bottom: 38px;
}

.review-section-heading {
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}

.review-section p {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.62;
}

.review-section p + p {
  margin-top: 10px;
}

.review-list {
  list-style: none;
  margin-top: 10px;
}

.review-list li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.58;
  padding: 6px 0 6px 16px;
  border-bottom: 1px solid var(--gray-faint);
  position: relative;
}

.review-list li:first-child {
  border-top: 1px solid var(--gray-faint);
}

.review-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gray-light);
}

.public-scope-box {
  max-width: 820px;
  border: 1px solid var(--border-light);
  padding: 18px 24px;
  margin-top: 8px;
}

.public-scope-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.public-scope-box p {
  font-size: 0.86rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.public-scope-list {
  list-style: none;
}

.public-scope-list li {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.55;
  padding: 4px 0 4px 14px;
  position: relative;
}

.public-scope-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gray-light);
}

/* ─── Correspondence Page ────────────────────────────────── */

.correspondence-intro {
  max-width: 700px;
  margin-bottom: 38px;
}

.correspondence-intro p {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.62;
}

.correspondence-intro p + p {
  margin-top: 12px;
}

.correspondence-section {
  max-width: 700px;
  margin-bottom: 38px;
}

.correspondence-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.email-block {
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.email-block a {
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.email-block a:hover {
  color: var(--charcoal);
}

.inquiry-list {
  list-style: none;
  margin-top: 4px;
}

.inquiry-list li {
  font-size: 0.91rem;
  color: var(--ink-soft);
  line-height: 1.58;
  padding: 6px 0 6px 16px;
  border-bottom: 1px solid var(--gray-faint);
  position: relative;
}

.inquiry-list li:first-child {
  border-top: 1px solid var(--gray-faint);
}

.inquiry-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gray-light);
}

.closing-note {
  max-width: 700px;
  border-top: 1px solid var(--gray-faint);
  padding-top: 24px;
}

.closing-note p {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.58;
}

/* ─── Footer ─────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--gray-faint);
  padding: 22px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-correspondence {
  font-size: 0.83rem;
  color: var(--gray);
}

.footer-correspondence strong {
  font-weight: 600;
  color: var(--charcoal);
}

.footer-correspondence a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-correspondence a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-light);
}

.footer-principal {
  font-size: 0.8rem;
  color: var(--gray);
  width: 100%;
  margin-top: 4px;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .page-wrap {
    padding: 0 20px;
  }

  .header-inner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  nav {
    gap: 14px;
    justify-content: flex-start;
  }

  nav a {
    font-size: 0.8rem;
  }

  .content {
    padding-top: 36px;
  }

  .accordion-body {
    padding-left: 0;
  }

  .accordion-trigger {
    grid-template-columns: 2.2rem 1fr auto;
  }

  .pub-table-wrap {
    display: none;
  }

  .pub-mobile {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 10px;
  }
}

/* ─── Print ──────────────────────────────────────────────── */

@media print {
  .accordion-body {
    display: block !important;
  }
}
