/* ============================================================
   Corryk — site chrome (header + footer)
   Lifted verbatim from the main site's inline styles so the
   Observations section matches index/perspectives exactly.
   Uses its own --site-* tokens: obs.css redefines --dark to
   cream for the instrument surfaces, which would otherwise
   collide with the footer's dark background.
   ============================================================ */
:root {
  --site-cream: #faf6ee;
  --site-cream-card: #f5f0e8;
  --site-ink: #1a140f;
  --site-ink-dim: rgba(26, 20, 15, 0.65);
  --site-ink-line: rgba(26, 20, 15, 0.32);
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base — instrument pages get these from obs.css too (identical values);
   the standalone listing page relies on them from here. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--site-ink);
  background: var(--site-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Header (light) ===== */
.header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  background: var(--site-cream);
  border-bottom: none;
}

.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--site-ink);
  text-decoration: none;
  line-height: 1;
}

.header__actions { display: flex; align-items: center; gap: 12px; }

.header__nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--site-ink-dim);
  text-decoration: none;
  padding: 10px 8px;
  transition: color 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link--current { color: var(--site-ink); }

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--site-ink);
  border-color: var(--site-ink-line);
}

.btn--ghost:hover {
  border-color: var(--site-ink);
  background: rgba(26, 20, 15, 0.05);
}

.btn--solid {
  background: var(--site-ink);
  color: var(--site-cream);
  border-color: var(--site-ink);
  font-weight: 600;
}

.btn--solid:hover { background: #000; border-color: #000; }

/* ===== Mobile menu ===== */
.mobile-menu { display: none; position: relative; }

.mobile-menu__button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  list-style: none;
  color: var(--site-ink);
  background: transparent;
}

.mobile-menu__button::-webkit-details-marker { display: none; }

.mobile-menu__icon,
.mobile-menu__icon::before,
.mobile-menu__icon::after {
  width: 18px;
  height: 1.5px;
  display: block;
  background: currentColor;
  content: "";
}

.mobile-menu__icon { position: relative; }
.mobile-menu__icon::before,
.mobile-menu__icon::after { position: absolute; left: 0; }
.mobile-menu__icon::before { top: -6px; }
.mobile-menu__icon::after { top: 6px; }

.mobile-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 16px);
  width: max-content;
  min-width: 150px;
  display: grid;
  padding: 6px 0;
  background: transparent;
  text-align: right;
  z-index: 60;
}

.mobile-menu__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--site-ink-dim);
  text-decoration: none;
  padding: 5px 0;
}

.mobile-menu__link:hover { color: var(--site-ink); }

/* ===== Footer ===== */
.footer {
  background: var(--site-ink);
  color: var(--site-cream-card);
  padding: 48px 56px 28px;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  font-family: var(--sans);
}

.footer__cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.14);
}

.footer__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  flex: 1;
  max-width: 720px;
}

.footer__title span { display: block; }

.footer .btn--solid {
  background: var(--site-cream-card);
  color: var(--site-ink);
  border-color: var(--site-cream-card);
}

.footer .btn--solid:hover { background: #fff; border-color: #fff; }

.footer__body {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  padding-top: 44px;
  align-items: start;
}

.footer__brand {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.footer__logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--site-cream-card);
  text-decoration: none;
}

.footer__copyright {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 240, 232, 0.5);
  order: 2;
}

.footer__email {
  order: 1;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
}

.footer__meta { display: flex; flex-direction: column; gap: 18px; }

.footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  order: -1;
}

.footer__social-link {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 232, 0.66);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__social-link:hover { color: var(--site-cream-card); }

.footer__social-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(26px, 3.4vw, 52px);
  justify-content: flex-end;
}

.footer__group-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__link {
  font-size: 14px;
  line-height: 1.3;
  color: rgba(245, 240, 232, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover { color: var(--site-cream-card); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header { padding: 20px 24px; }
  .logo { font-size: 26px; }
  .header__actions { display: none; }
  .mobile-menu { display: block; text-align: right; }
  .mobile-menu__panel { position: absolute; top: calc(100% + 8px); }
  .header__nav-link { padding: 8px 8px; font-size: 13px; }

  .footer { padding: 44px 24px 28px; }
  .footer__cta { flex-direction: column; gap: 24px; padding-bottom: 40px; }
  .footer__title { font-size: 25px; line-height: 1.12; }
  .footer__body { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .footer__brand { min-height: auto; }
  .footer__links { display: block; column-count: 2; column-gap: 26px; } .footer__links .footer__group { break-inside: avoid; margin-bottom: 30px; }
}

/* ============================================================
   Index listing — same construction as the Perspectives index
   ============================================================ */
.listing { max-width: 920px; margin: 0 auto; padding: 80px 56px 120px; }
.listing__heading { margin-bottom: 80px; }
.listing__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--site-ink);
}
.listing__subtitle {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--site-ink-dim);
  max-width: 52ch;
}

.paper {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 56px;
  padding: 44px 0;
  border-top: 1px solid rgba(26, 20, 15, 0.14);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: background-color 0.2s ease;
}
.paper:last-child { border-bottom: 1px solid rgba(26, 20, 15, 0.14); }
.paper:hover { background-color: rgba(26, 20, 15, 0.025); }
.paper:hover .paper__title { color: #000; }
.paper:hover .paper__cta { border-color: var(--site-ink); }

.paper__meta { display: flex; flex-direction: column; gap: 6px; }
.paper__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--site-cream-card);
  margin-bottom: 16px;
}
.paper__thumb img { width: 104%; height: 104%; margin: -2%; object-fit: cover; display: block; }
.paper__tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--site-ink);
}
.paper__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--site-ink);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}
.paper__abstract {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--site-ink-dim);
  margin-bottom: 20px;
}
.paper__cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--site-ink);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(26, 20, 15, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

@media (max-width: 768px) {
  .listing { padding: 48px 24px 80px; }
  .listing__heading { margin-bottom: 56px; }
  .listing__title { font-size: clamp(44px, 11vw, 64px); }
  .listing__subtitle { font-size: 16px; }
  .paper { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .paper__title { font-size: clamp(24px, 6vw, 30px); }
  .paper__abstract { font-size: 16px; }
}
