html {
  background: #fff;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

/* Page identity */

body.art,
body.science {
  min-height: 100vh;
}

body.art {
  background: #f5efe6 !important;
  color: #1f1a17;
  letter-spacing: 0.02em;
  font-family: Georgia, "Times New Roman", serif;
}

body.science {
  background: #e9eff7 !important;
  color: #161c24;
  letter-spacing: 0.01em;
}

html.art,
body.art {
  background: #f5efe6;
  color: #1f1a17;
}

html.science,
body.science {
  background: #e9eff7;
  color: #161c24;
}

/* Typography */

.science h1,
.science h2,
.science h3 {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.science p,
.science li {
  line-height: 1.55;
}

.art h1,
.art h2,
.art h3 {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.art p {
  line-height: 1.7;
}

/* Shared layout */

.site-header,
.site-footer,
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title a,
.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.intro {
  margin-bottom: 2rem;
}

/* Home split page */

body.home-split {
  margin: 0;
  font-family: Arial, sans-serif;
}

.home-split .split {
  display: flex;
  height: 100vh;
  position: relative;
}

.home-split .split::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
  transform: translateX(-0.5px);
}

.home-split .panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 2rem;
}

.home-split .panel-art {
  background: #f5efe6;
  color: #1f1a17;
}

.home-split .panel-science {
  background: #e9eff7;
  color: #161c24;
}

.home-split .panel-art .title {
  letter-spacing: 0.08em;
  font-weight: 500;
}

.home-split .panel-science .title {
  letter-spacing: 0.04em;
  font-weight: 600;
}

.home-split .title {
  text-align: center;
}











/* Works list */

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.work-card,
.work-abstract {
  border: 3px solid #bbb;     /* heavier border */
  border-radius: 10px;        /* gentle rounding */
  background: #fff;
  color: #111;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card {
  padding: 0.5rem;
  width: 100%;
  max-width: 280px;
}

.work-abstract {
  padding: 1rem;
}

body.science .work-card,
body.science .work-abstract {
  border-color: #cfd8e6;
}

body.art .work-card,
body.art .work-abstract {
  border-color: #e2d6c4;
}

.work-row:hover .work-card,
.work-row:hover .work-abstract {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.work-image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.work-caption {
  padding: 0.75rem;
  background: #fff;
}

.work-abstract-inner {
  width: 100%;
}

@media (max-width: 800px) {
  .work-row {
    grid-template-columns: 1fr;
  }

  .work-card {
    max-width: none;
  }
}

.work-links {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
}

.work-links li {
  margin-bottom: 0.3rem;
}

.work-links a {
  text-decoration: none;
  color: inherit;
}

.work-links a:hover {
  text-decoration: underline;
}































/* Section page containers */

.about-page,
.publications-page,
.contact-page {
  background: transparent;
}

.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h1 {
  margin-top: 0;
}

.about-text p {
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 280px;
  }
}

.publications-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.publications-text h1,
.publications-text h2 {
  margin-top: 0;
}

.publications-text p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.publications-text ol {
  padding-left: 2rem;
}

.publications-text li {
  margin-bottom: 0.75rem;
}

.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.contact-text h1 {
  margin-top: 0;
}

.contact-text p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-text form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-text label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-text input,
.contact-text textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  font: inherit;
  border: 1px solid #ccc;
}

.contact-text textarea {
  min-height: 12rem;
  resize: vertical;
}

.contact-text button,
.contact-text input[type="submit"] {
  align-self: flex-start;
  padding: 0.6rem 1rem;
  font: inherit;
  cursor: pointer;
}

.contact-status-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #c88;
  background: #fff4f4;
}

/* Ensure no container overrides background */

.site-header,
.site-footer,
main,
.about-page,
.publications-page,
.contact-page {
  background: transparent !important;
}