/* Minimalist Western comic sketch theme. */
:root {
  --sketch-ink: #2b2d29;
  --sketch-muted: #6e7169;
  --sketch-paper: #faf7ee;
  --sketch-panel: rgba(255, 254, 248, .94);
  --sketch-line: #c9c7bd;
  --sketch-sage: #929f7e;
  --sketch-sage-pale: #edf0e7;
}

html,
body {
  background: var(--sketch-paper);
}

body,
td,
th,
tr,
p,
a,
strong,
.section-title,
heading2,
papertitle,
name,
h1,
h2,
h3,
button {
  font-family: "Lato", "Avenir Next", "Trebuchet MS", Arial, sans-serif;
}

body {
  color: var(--sketch-ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #667455;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #30362a;
}

.sliding-background {
  position: fixed;
  inset: -70px 0;
  z-index: 0;
  background-image: url("images/comic-line-bg.webp");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  filter: none;
  animation: none;
}

.sliding-background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  background: linear-gradient(to bottom, rgba(250, 247, 238, .05), rgba(250, 247, 238, .2));
  mask-image: none;
  -webkit-mask-image: none;
}

.sliding-ribbon {
  display: none;
}

.homepage-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 44px));
  padding-top: 42px;
}

.profile-section,
.content-section {
  border: 1px solid rgba(43, 45, 41, .72);
  border-radius: 4px;
  color: var(--sketch-ink);
  background: var(--sketch-panel);
  box-shadow: 3px 3px 0 rgba(43, 45, 41, .08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.profile-section {
  gap: 52px;
  padding: 38px 40px 40px;
}

.content-section {
  padding: 30px 34px 34px;
}

.profile-copy h1 {
  margin: 7px 0 18px;
  color: #262824;
  font-size: clamp(35px, 4.5vw, 43px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-shadow: none;
}

.name-divider {
  color: var(--sketch-sage);
}

.profile-copy p {
  font-size: 16px;
  line-height: 1.55;
}

.profile-kicker {
  color: #6f7c5e;
  font-size: 11.5px !important;
  font-weight: 700;
  letter-spacing: .11em;
}

.profile-rule {
  height: 1px;
  margin: 17px 0 13px;
  background: linear-gradient(to right, transparent, #a8a99f 14%, #a8a99f 86%, transparent);
}

.profile-photo {
  width: 238px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  filter: saturate(.82) contrast(.98);
  mix-blend-mode: multiply;
  opacity: .98;
  transform: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 86%, rgba(0, 0, 0, .72) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 86%, rgba(0, 0, 0, .72) 93%, transparent 100%);
}

.profile-photo-wrap {
  position: relative;
  isolation: auto;
}

.profile-photo-wrap::before {
  content: none;
}

.profile-location {
  margin-top: 3px;
  color: #666b61;
  font-size: 11px;
}

.contact-links a {
  color: #5f6d50;
}

.contact-links .email-link .contact-sub {
  line-height: 1.35;
  padding-bottom: 1px;
}

.content-section > .section-title {
  position: relative;
  display: inline-block;
  margin: 0 0 17px;
  color: #292b27;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-decoration: none;
}

.content-section > .section-title::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -5px;
  left: 2px;
  height: 2px;
  background: var(--sketch-sage);
  transform: rotate(-.6deg);
}

.section-note {
  color: var(--sketch-muted);
}

.news-list::before {
  left: 4px;
  width: 1px;
  background: #777b72;
  opacity: .55;
}

.news-item {
  border-radius: 2px;
  animation: none;
}

.news-item:hover {
  background: rgba(146, 159, 126, .08);
  transform: none;
}

.news-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--sketch-ink);
  background: var(--sketch-sage-pale);
  box-shadow: none;
}

.news-item:hover .news-dot {
  transform: scale(1.12);
  box-shadow: none;
}

.news-date-badge {
  min-width: 76px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  color: #52574d;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.news-text {
  color: #343732;
  font-size: 15px;
}

.tag-filter {
  gap: 8px;
  margin: 15px 0 22px;
}

.tag-btn {
  padding: 6px 11px;
  border: 1px solid #9c9f96;
  border-radius: 3px;
  color: #50564b;
  background: rgba(255, 255, 255, .66);
  box-shadow: none;
  font-weight: 700;
}

.tag-btn:hover,
.tag-btn:focus-visible {
  border-color: #626a58;
  color: #343a2f;
  background: var(--sketch-sage-pale);
}

.tag-btn.active {
  border-color: #667057;
  color: #fff;
  background: #7b8969;
  box-shadow: none;
}

.publication-list {
  gap: 14px;
}

.publication-card,
.publication-card.featured {
  gap: 22px;
  padding: 17px;
  border: 1px solid rgba(43, 45, 41, .62);
  border-radius: 3px;
  color: var(--sketch-ink);
  background: rgba(255, 255, 252, .86);
  box-shadow: none;
}

.publication-card.featured {
  background: rgba(241, 244, 234, .92);
}

.publication-card:hover {
  border-color: #62675e;
  box-shadow: 2px 2px 0 rgba(43, 45, 41, .12);
  transform: translateY(-1px);
}

.publication-media,
.publication-media img {
  border-radius: 2px;
}

.publication-media {
  border: 1px solid rgba(43, 45, 41, .46);
  background: #eeeee8;
}

.paper-placeholder {
  color: #f8f8f2;
  background:
    radial-gradient(circle at 26% 28%, rgba(180, 193, 158, .72), transparent 27%),
    linear-gradient(145deg, #343934, #66705d 72%, #929f7e);
}

.paper-placeholder b {
  color: #e8ecd9;
}

.publication-copy h2 {
  color: #292c27;
  font-size: 17px;
  line-height: 1.3;
}

.publication-copy p {
  color: #555a52;
  font-size: 14px;
  line-height: 1.47;
}

.publication-copy .publication-authors {
  color: #32352f;
}

.publication-venue,
.timeline-item span,
.project-card strong {
  color: #687557;
  font-weight: 700;
}

.publication-links a {
  padding: 2px 7px;
  border: 1px solid #a8aa9f;
  border-radius: 2px;
  color: #505a45;
  background: rgba(255, 255, 255, .54);
  box-shadow: none;
}

.experience-grid {
  gap: 25px;
}

.experience-column,
.project-card {
  border: 1px solid rgba(43, 45, 41, .55);
  border-radius: 3px;
  color: var(--sketch-ink);
  background: rgba(255, 255, 252, .84);
  box-shadow: none;
}

.experience-column {
  padding: 21px 22px 7px;
}

.experience-column > h2 {
  margin-bottom: 18px;
  color: #2d302b;
  font-size: 18px;
}

.timeline-item {
  border-left: 1px solid #a1a49a;
}

.timeline-item::before {
  left: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid #41443e;
  background: var(--sketch-sage-pale);
}

.timeline-item h3 {
  color: #31342f;
  font-size: 15px;
}

.timeline-item p,
.project-card span {
  color: #666b62;
  font-size: 13px;
}

.project-card {
  min-height: 84px;
}

.project-card:hover {
  border-color: #69715f;
  color: var(--sketch-ink);
  background: var(--sketch-sage-pale);
  transform: translateY(-1px);
}

.section-drip-nav::before {
  width: 1px;
  background: linear-gradient(to bottom, transparent, #999f90 12%, #999f90 88%, transparent);
}

.section-drip-nav a {
  color: #484d44;
}

.section-drip-nav a::before {
  border: 1px solid #666b61;
  background: var(--sketch-paper);
  box-shadow: none;
}

.section-drip-nav span {
  border: 1px solid rgba(80, 84, 76, .3);
  color: #4d514a;
  background: rgba(250, 247, 238, .88);
  opacity: .78;
}

.section-drip-nav a:hover::before,
.section-drip-nav a:focus::before {
  border-color: #56604a;
  background: var(--sketch-sage-pale);
}

.section-drip-nav a:hover span,
.section-drip-nav a:focus span {
  border-color: rgba(80, 84, 76, .45);
  color: #30342e;
  background: rgba(255, 254, 249, .96);
}

.mountain-footer {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  border-top: 1px solid rgba(43, 45, 41, .38);
  background: var(--sketch-paper);
}

.mountain-stage {
  min-height: 430px;
  background-image: url("images/comic-line-bg.webp");
  background-position: center bottom;
  background-size: cover;
}

.mountain-stage::before {
  background: linear-gradient(to bottom, rgba(250, 247, 238, 1) 0%, rgba(250, 247, 238, .78) 28%, rgba(250, 247, 238, .12) 78%, transparent 100%);
}

.footer-landscape {
  display: none;
}

.mountain-content {
  min-height: 430px;
  padding: 60px 24px 50px;
}

.mountain-content h2 {
  color: #30332e;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-shadow: none;
}

.mountain-content .mountain-sub {
  color: #5e6359;
  text-shadow: none;
}

.mountain-cta,
.mountain-cta:hover {
  border: 1px solid #555c4e;
  border-radius: 3px;
  color: #3f4738;
  background: rgba(249, 250, 244, .9);
  box-shadow: 2px 2px 0 rgba(43, 45, 41, .12);
  animation: none;
}

.mountain-footnote,
.mountain-updated {
  color: #696e65;
  text-shadow: none;
}

.mountain-template a,
.mountain-template a:hover {
  color: #59664b;
  text-decoration-color: #8a947a;
}

#backToTop {
  border: 1px solid #4d5349;
  color: #3a4035;
  background: rgba(244, 246, 238, .9);
  box-shadow: 2px 2px 0 rgba(43, 45, 41, .12);
}

#backToTop:hover {
  color: #2f342c;
  background: var(--sketch-sage-pale);
}

.toast-message {
  border: 1px solid #555b51;
  color: #3b4037;
  background: var(--sketch-sage-pale);
  box-shadow: 2px 2px 0 rgba(43, 45, 41, .12);
}

@media (max-width: 900px) {
  .homepage-shell {
    width: min(100% - 30px, 760px);
  }

  .profile-section {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  body::after {
    right: 7px;
    bottom: 7px;
  }

  .homepage-shell {
    width: calc(100% - 20px);
    padding-top: 26px;
  }

  .profile-section,
  .content-section {
    border-radius: 3px;
    box-shadow: 2px 2px 0 rgba(43, 45, 41, .08);
  }

  .profile-section {
    padding: 30px 21px 32px;
  }

  .profile-photo {
    width: 184px;
  }

  .content-section {
    padding: 26px 19px 29px;
  }

  .profile-copy h1 {
    font-size: 36px;
  }

  .profile-copy p,
  .news-text {
    font-size: 14px;
  }

  .content-section > .section-title {
    font-size: 23px;
  }

  .mountain-stage,
  .mountain-content {
    min-height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sliding-background {
    transform: none !important;
  }
}

@media print {
  body::after,
  .sliding-background {
    display: none;
  }
}

/* Softer pencil-paper integration */
.profile-section,
.content-section {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(112deg, rgba(146, 159, 126, .025), transparent 36%),
    rgba(255, 254, 248, .82);
  box-shadow: 0 10px 28px rgba(68, 68, 60, .045);
}

.profile-section::before,
.content-section::before {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -4px;
  left: 20px;
  height: 5px;
  pointer-events: none;
  opacity: .5;
  background: linear-gradient(90deg, transparent, rgba(126, 137, 111, .28) 9%, rgba(126, 137, 111, .18) 84%, transparent);
  clip-path: polygon(0 44%, 18% 32%, 39% 52%, 61% 36%, 82% 54%, 100% 40%, 100% 66%, 78% 72%, 55% 55%, 31% 69%, 0 61%);
}

.profile-photo {
  box-shadow: none;
}

.news-list::before {
  width: 1px;
  opacity: .42;
  background: repeating-linear-gradient(to bottom, #898d83 0 4px, transparent 4px 8px);
}

.news-dot {
  border-color: #83887d;
  background: #f1f2ec;
}

.news-date-badge {
  border: 0;
  background: transparent;
}

.tag-btn {
  border-color: rgba(126, 130, 121, .38);
  background: rgba(255, 255, 252, .42);
}

.tag-btn.active {
  border-color: #7b8969;
}

.publication-list {
  gap: 0;
}

.publication-card,
.publication-card.featured {
  margin: 0;
  padding: 21px 4px;
  border: 0;
  border-top: 1px dashed rgba(105, 109, 101, .28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.publication-card.featured {
  background: linear-gradient(90deg, rgba(146, 159, 126, .09), transparent 72%);
}

.publication-card:hover {
  border-color: rgba(105, 109, 101, .35);
  background: linear-gradient(90deg, rgba(146, 159, 126, .075), transparent 76%);
  box-shadow: none;
  transform: none;
}

.publication-media {
  border-color: rgba(88, 91, 84, .3);
}

.publication-links a {
  border-color: rgba(126, 130, 121, .4);
  background: rgba(255, 255, 252, .34);
}

.experience-column {
  border: 0;
  border-radius: 2px;
  background: linear-gradient(120deg, rgba(146, 159, 126, .085), rgba(255, 255, 252, .3));
  box-shadow: none;
}

.timeline-item {
  border-left-style: dashed;
  border-left-color: rgba(126, 130, 121, .46);
}

.timeline-item::before {
  border-color: #878c80;
  background: #f0f1ea;
}

.project-card {
  border: 0;
  border-radius: 2px;
  background: rgba(146, 159, 126, .09);
  box-shadow: none;
}

.project-card:hover {
  border: 0;
  background: rgba(146, 159, 126, .16);
  transform: none;
}

.section-drip-nav a::before {
  border-color: rgba(102, 107, 97, .5);
}

.section-drip-nav span {
  border-color: rgba(80, 84, 76, .2);
}

.mountain-cta,
.mountain-cta:hover,
#backToTop,
.toast-message {
  border-color: rgba(85, 92, 78, .5);
  box-shadow: 1px 2px 0 rgba(43, 45, 41, .08);
}

@media (max-width: 760px) {
  .profile-section,
  .content-section {
    border: 0;
    box-shadow: 0 7px 20px rgba(68, 68, 60, .04);
  }

  .publication-card,
  .publication-card.featured {
    padding-right: 0;
    padding-left: 0;
  }
}
