/* Layout idea: a soft sky-to-lilac desktop with black type, a thin violet frame,
   black corner brackets, and frosted-glass panels in place of paper. */
:root {
  --sky: #8cc8d9;
  --mist: #d9edf2;
  --cloud: #f6f9fa;
  --lilac: #ece2f3;
  --blush: #f4e7ec;
  --ink: #111111;
  --ink-soft: #3e4a52;
  --violet: #7b4fe0;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --display: "Tektur", "Orbitron", "Arial Narrow", system-ui, sans-serif;
  --body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --hand: "Playpen Sans", "Comic Neue", "Segoe Print", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cloud); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cloud);
  overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }

/* the sky wash sits behind every page and stays put while you scroll */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 20%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(45% 40% at 85% 85%, rgba(244,226,234,.9), transparent 70%),
    radial-gradient(40% 45% at 30% 70%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(105deg, var(--sky) 0%, #b9dfe9 22%, var(--mist) 42%, var(--cloud) 62%, var(--lilac) 82%, var(--blush) 100%);
}

/* ---------- navigation pills ---------- */
.nav {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px;
  padding: 32px 16px 8px;
}
.pill {
  display: inline-block;
  min-width: 108px;
  padding: 5px 20px 6px;
  border: 1.3px solid var(--ink);
  border-radius: 999px;
  text-align: center;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  background: rgba(255,255,255,.25);
  transition: background .2s, color .2s;
}
.pill:hover { background: rgba(255,255,255,.7); }
.pill.is-active, .pill-dark {
  text-decoration: none;
  background: var(--ink);
  color: var(--cloud);
}
.pill.is-active:hover, .pill-dark:hover { background: var(--violet); border-color: var(--violet); }
.pill-sm { min-width: 0; padding: 2px 16px 3px; font-size: 15px; }

.display {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .95;
  letter-spacing: .01em;
}
.underline { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- home: the desktop ---------- */
.desktop {
  position: relative;
  min-height: calc(100vh - 170px);
  min-height: calc(100svh - 170px);
  margin: 18px auto 0;
  width: calc(100% - 48px);
  max-width: 1280px;
}
.desktop-title {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(90%, 760px);
}
.desktop-title h1 {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 78%;
  font-size: clamp(64px, 10vw, 136px);
  line-height: .95;
  letter-spacing: .005em;
}
.desktop-title p {
  margin: 14px 0 0;
  font-family: var(--display);
  font-stretch: 100%;
  font-size: 19px;
  letter-spacing: .02em;
}

.icon {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: rotate(var(--r));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 128px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s;
}
.icon:hover { transform: rotate(var(--r)) translateY(-4px); }
.glyph { width: 76px; height: auto; filter: drop-shadow(0 4px 8px rgba(40, 70, 90, .18)); }
.glyph-doc { width: 58px; }
.icon-label {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .01em;
  padding: 1px 8px;
  border-radius: 4px;
}
.icon:hover .icon-label { background: var(--violet); color: #fff; }

.sticky {
  position: absolute; left: var(--x); top: var(--y);
  transform: rotate(var(--r));
  width: 236px;
  padding: 14px 16px 18px;
  background: #fff7d6;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 8px 18px rgba(40, 70, 90, .16);
}
.sticky-title {
  display: block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}

/* ---------- polaroids & glass folders ---------- */
.polaroid {
  margin: 0;
  background: #fff;
  padding: 8px 8px 30px;
  box-shadow: 0 10px 24px rgba(30, 55, 75, .2);
}
.polaroid img { aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 16px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
  line-height: 1;
}
.polaroid-sm { width: 96px; padding: 5px 5px 16px; }
.polaroid-md { width: 200px; }
.polaroid-lg { width: min(320px, 72vw); padding: 12px 12px 14px; }

.manila {
  position: absolute;
  background: var(--glass);
  border: 1.5px solid var(--violet);
  border-radius: 6px 10px 10px 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(30, 55, 75, .14);
}
.manila::before {
  content: "";
  position: absolute; top: -28px; right: 18%;
  width: 42%; height: 28px;
  background: var(--glass);
  border: 1.5px solid var(--violet); border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.manila-tab {
  position: absolute; top: -24px; right: 20%;
  width: 38%;
  text-align: center;
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink);
  z-index: 1;
}

/* ---------- inner pages ---------- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.page-head { text-align: center; margin-bottom: 48px; }
.lede { max-width: 640px; margin: 22px auto 0; font-size: 19px; }

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 64px;
  align-items: start;
}
.about-art { position: relative; padding-top: 60px; min-height: 520px; }
.about-art .manila { inset: 30px 0 0 10px; transform: rotate(-3deg); }
.about-art .polaroid-lg { position: relative; transform: rotate(4deg); margin: 30px auto 0; }
.about-text { min-width: 0; }
.about-text .display { margin-bottom: 28px; }
.about-text p { margin: 0 0 18px; max-width: 62ch; }
.about-text strong { font-weight: 500; }

/* research folders */
.folder { position: relative; margin: 0 0 64px; padding-top: 32px; }
.folder-tab {
  position: absolute; top: 0; left: 28px; z-index: 1;
  padding: 4px 26px 0;
  height: 34px;
  background: var(--glass-strong);
  border: 1.5px solid var(--violet); border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink);
}
.folder-body {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--violet);
  border-radius: 4px 14px 14px 14px;
  padding: 36px 32px 40px;
  box-shadow: 0 16px 36px rgba(30, 55, 75, .12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.folder-title {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1;
}
.card {
  min-width: 0;
  background: #fff;
  padding: 22px 22px 26px;
  border: 1px solid #d7e3e8;
  box-shadow: 0 6px 16px rgba(30, 55, 75, .08);
  font-size: 15.5px;
  line-height: 1.6;
}
.card h3 { font-family: var(--body); font-weight: 500; font-size: 19px; line-height: 1.3; }
.card .with { font-family: var(--hand); font-size: 14px; color: var(--violet); margin: 8px 0 12px; line-height: 1.4; }
.card p { margin: 0; }

/* policy */
.policy-body { grid-template-columns: 1fr; gap: 14px; }
.policy-head { display: grid; gap: 4px; }
.policy-role { margin: 0; font-weight: 500; font-size: 18px; }
.policy-head .with { font-family: var(--hand); font-size: 14px; color: var(--violet); margin: 0; }
.policy-text { margin: 0; max-width: 70ch; }
.policy-links { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.policy-links a {
  display: block;
  background: #fff;
  border: 1px solid #d7e3e8;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 400;
  transition: border-color .2s;
}
.policy-links a::after { content: "  ↗"; color: var(--violet); }
.policy-links a:hover { border-color: var(--violet); }

/* publications */
.index { max-width: 820px; margin: 0 auto; }
.index-head {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: .02em;
  margin: 40px 0 14px;
  display: flex; align-items: center; gap: 14px;
}
.index-head::after { content: ""; flex: 1; height: 1.5px; background: var(--violet); }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.index-card {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid #d7e3e8;
  padding: 20px 24px 22px;
  box-shadow: 0 4px 14px rgba(30, 55, 75, .08);
}
.cite { margin: 0; font-weight: 400; }
.venue { margin: 4px 0 0; font-style: italic; color: var(--ink-soft); }
.index-card .pill { margin-top: 12px; }

/* CV window */
.window {
  max-width: 920px; margin: 8px auto 0;
  background: #fff;
  border: 1.5px solid var(--violet);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(30, 55, 75, .18);
}
.window-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--lilac);
  border-bottom: 1.5px solid var(--violet);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); display: block; }
.dots i:nth-child(2) { background: var(--violet); }
.dots i:nth-child(3) { background: var(--sky); }
.window-name { flex: 1; min-width: 0; font-family: var(--display); font-stretch: 100%; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-pdf { display: block; width: 100%; height: 80vh; border: 0; background: #fff; }
.window-fallback { padding: 32px; text-align: center; }

/* contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 60vh;
}
.contact-art { position: relative; min-height: 440px; }
.contact-art .manila-tilt { inset: 70px 30px 40px 0; transform: rotate(-10deg); }
.contact-art .manila-tilt::before { left: 10%; right: auto; }
.contact-art .manila-tilt .manila-tab { left: 12%; right: auto; }
.contact-photo { position: absolute; top: 20px; right: 14%; transform: rotate(7deg); }
.clip {
  position: absolute; top: 10px; right: calc(14% + 120px);
  width: 22px; height: 58px;
  border: 3px solid var(--violet); border-radius: 12px;
  transform: rotate(18deg);
}
.contact-art .contact-note {
  position: absolute; left: 4%; top: 190px; z-index: 2;
  margin: 0; width: 236px;
  transform: rotate(3deg);
}
.contact-text { min-width: 0; }
.contact-text .display { margin-bottom: 28px; }
.contact-text p { max-width: 46ch; margin: 22px 0; }
.contact-links { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.contact-links li { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.contact-links span { width: 78px; font-family: var(--hand); font-size: 14px; color: var(--violet); }
.contact-links a { text-decoration: underline; text-underline-offset: 4px; word-break: break-word; }

/* footer */
.footer {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 20px 16px 28px;
  font-size: 14px;
}
.footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- phones & small screens ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { gap: 8px; padding-top: 22px; }
  .pill { min-width: 0; padding: 4px 14px 5px; font-size: 15px; }

  .desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 8px;
    padding: 56px 16px 64px;
    min-height: 0;
    width: calc(100% - 32px);
  }
  .desktop-title { position: static; transform: none; grid-column: 1 / -1; width: 100%; margin: 0 0 12px; }
  .desktop-title p { font-size: 16px; }
  .icon, .sticky { position: static; transform: none; width: auto; }
  .icon:hover { transform: translateY(-3px); }
  .glyph { width: 60px; }
  .glyph-doc { width: 46px; }
  .polaroid-sm { width: 70px; }
  .icon-label { font-size: 14px; }
  .sticky { grid-column: 1 / -1; justify-self: center; transform: rotate(2deg); width: 220px; }

  .page { padding: 28px 16px 56px; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .about-art { min-height: 0; padding: 30px 12px 10px; }
  .about-art .manila { inset: 50px 20px 0 20px; }
  .about-text .display, .contact-text .display { text-align: center; }
  .contact-art { min-height: 300px; order: 2; }
  .contact-art .manila-tilt { inset: 60px 20px 20px 20px; }
  .contact-photo { width: 150px; right: 10%; }
  .clip { right: calc(10% + 100px); }
  .folder-body { padding: 26px 16px 28px; }
  .folder-tab { left: 16px; }
  .window-pdf { height: 70vh; }
  .contact-art { min-height: 340px; }
  .contact-art .contact-note { position: absolute; left: 4%; top: 120px; width: 180px; grid-column: auto; justify-self: auto; transform: rotate(3deg); }
}


/* No underlines anywhere; links turn violet on hover instead */
a, .pill, .underline { text-decoration: none !important; }
a:not(.pill):not(.icon):hover { color: var(--violet); }
