/* Synkrasis Labs — synkrasis-labs.com */

:root {
  --paper:      #fbfaf7;
  --paper-alt:  #f5f3ee;
  --ink:        #171612;
  --ink-soft:   #33302a;
  --muted:      #6b665d;
  --faint:      #928c81;
  --rule:       #e0dbd1;
  --rule-soft:  #ebe7de;
  --accent:     #8b3a26;

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1.375rem, 5vw, 4rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  text-decoration: none;
}

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

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.375rem;
}

.titlemark {
  display: flex;
  align-items: center;
  gap: 0.34em;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7.2vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.014em;
  white-space: nowrap;
}

.titlemark-type { display: block; }

.hero-statement {
  margin: clamp(1.75rem, 3.6vw, 2.75rem) 0 0;
  max-width: 38ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.625rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.011em;
  color: var(--ink);
  text-wrap: balance;
}

.site-header nav {
  display: flex;
  gap: clamp(1.125rem, 3vw, 2rem);
}

.site-header nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.25rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--rule);
}

.standfirst {
  margin: clamp(1.375rem, 2.4vw, 1.75rem) 0 0;
  max-width: 56ch;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section-research { background: var(--paper-alt); }

.cols {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.col-label h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.4rem;
}

.col-label .count {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.col-body { max-width: 40rem; }

.prose { max-width: 34.5rem; }

/* ---------- Prose ---------- */

.prose p {
  margin: 0 0 1.4375rem;
  font-family: var(--serif);
  font-size: 1.1563rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose p:last-child { margin-bottom: 0; }

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 58, 38, 0.32);
  padding-bottom: 0.05em;
  transition: border-color 0.15s ease;
}

.prose a:hover { border-bottom-color: var(--accent); }

/* Pull quote */

.pull {
  margin: 2.5rem 0 0;
  padding-left: clamp(1.125rem, 2.5vw, 1.75rem);
  border-left: 2px solid var(--rule);
}

.pull blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.58;
  color: var(--ink);
}

.pull cite {
  font-style: normal;
}

.pull figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.pull figcaption a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.pull figcaption a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Papers ---------- */

.papers {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 39rem;
}

.paper {
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

.paper:first-child { border-top: 0; padding-top: 0.25rem; }
.paper:last-child  { padding-bottom: 0; }

.venue {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.venue .yr {
  color: var(--faint);
  letter-spacing: 0.09em;
}

.venue .track {
  color: var(--faint);
  letter-spacing: 0.09em;
  text-transform: none;
  font-size: 0.6875rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--rule);
}

.paper h3 {
  font-size: 1.3125rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: pretty;
}

.paper h3 a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.paper h3 a:hover {
  color: var(--accent);
  border-bottom-color: rgba(139, 58, 38, 0.3);
}

.authors {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.summary {
  margin: 0.9375rem 0 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.66;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.paper .link {
  margin: 1.125rem 0 0;
  font-size: 0.875rem;
}

.paper .link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 58, 38, 0.3);
  transition: border-color 0.15s ease;
}

.paper .link a:hover { border-bottom-color: var(--accent); }

.ext {
  font-size: 0.75em;
  margin-left: 0.3em;
  vertical-align: 0.15em;
}

.pending {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.contact-line {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 0 3.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-mark {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* ---------- Narrow ---------- */

@media (max-width: 46rem) {
  body { font-size: 16.5px; }

  .cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .col-label {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--rule);
  }

  .col-label h2 { padding-top: 0; }
  .col-label .count { margin: 0; }

  .header-inner { padding-top: 1.25rem; padding-bottom: 1.125rem; }
  .site-header nav a { font-size: 0.75rem; letter-spacing: 0.04em; }
}

@media (max-width: 26rem) {
  .site-header nav { gap: 0.75rem; }

  .site-header nav a {
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
  }
}

/* ---------- Logo mark ---------- */

.mark {
  width: 0.78em;
  height: 0.78em;
  flex: none;
  display: block;
  overflow: visible;
}

.mb { fill: var(--ink); }

/* Diagonal thread: passes corner to corner through the three empty cells. */
.mslash {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: mark-thread 0.52s cubic-bezier(0.3, 0.8, 0.3, 1) 0.42s both;
}

@keyframes mark-thread {
  to { stroke-dashoffset: 0; }
}

/* Two forms converge from opposite corners and lock into one figure. */
.mb {
  animation-duration: 0.62s;
  animation-timing-function: cubic-bezier(0.2, 0.85, 0.25, 1);
  animation-fill-mode: both;
  animation-iteration-count: 1;
}

.u1, .u2, .u3 { animation-name: mark-from-upper-right; }
.l1, .l2, .l3 { animation-name: mark-from-lower-left; }

.u1 { animation-delay: 0.06s; }
.u2 { animation-delay: 0.13s; }
.u3 { animation-delay: 0.20s; }
.l1 { animation-delay: 0.16s; }
.l2 { animation-delay: 0.23s; }
.l3 { animation-delay: 0.30s; }

@keyframes mark-from-upper-right {
  from { opacity: 0; transform: translate(26px, -26px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

@keyframes mark-from-lower-left {
  from { opacity: 0; transform: translate(-26px, 26px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mb { animation: none; opacity: 1; transform: none; }
  .mslash { animation: none; stroke-dashoffset: 0; }
}

