/* ============================================
   ROBYN HOLLY TAYLOR-NEU — Unified Stylesheet
   ============================================ */

/* --- Base --- */
body {
  margin: 0;
  font-family: Questrial, sans-serif;
  background-color: #fbfbf8;
  color: #111;
  background-image: url("./images/texture3.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.subpage {
  background-image: url("./images/texture3_pale.jpg");
}

/* --- Typography --- */
h1 {
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
  line-height: 1.15;
}

/* --- Topbar --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 100;
}

/* Home page: topbar flows with content, not fixed */
body:not(.subpage) .topbar {
  position: relative;
}

/* Subpages: no site name, so push dropdown to the right */
body.subpage .topbar {
  justify-content: flex-end;
}

.site-name {
  color: #111;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
  padding-bottom: 8px;
}

.dropbtn {
  background: none;
  border: 1px solid #111;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 95px;
  border: 1px solid #111;
  z-index: 200;
}

.dropdown-content a {
  display: block;
  padding: 0.65rem 1rem;
  color: #111;
  text-decoration: none;
  font-size: 0.82rem;
  text-align: right;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dropdown-content a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- News Bar --- */
.news-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 40px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 100;
}

/* --- Home Page --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10vw;
}

.content {
  padding: 10vh 10vw;
}

/* --- Subpage Layout --- */
main {
  padding-top: 80px;
}

.content-section {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  width: min(960px, 70vw);
  margin: 8vh auto 8rem auto;
}

.about-section,
.research-section {
  /* inherits layout via content-section class in HTML */
}

.about-image {
  width: 320px;
  max-width: 38vw;
  flex-shrink: 0;
}

.research-image {
  width: 320px;
  max-width: 40%;
  flex-shrink: 0;
}

.about-text,
.research-text {
  flex: 1;
  min-width: 0;
  max-width: 540px;
}

.embed-section {
  width: min(960px, 90vw);
  margin: 8vh auto 4rem auto;
}

.embed-frame {
  width: 100%;
  height: 80vh;
  border: none;
}

.site-back {
  color: #111;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
}

.site-back:hover {
  opacity: 0.5;
}
