:root {
  --color-navy: #17333b;
  --color-blue: #315f6d;
  --color-seafoam: #b9d6d0;
  --color-sand: #ece4d5;
  --color-cream: #f7f5ef;
  --color-white: #ffffff;
  --color-text: #243438;
  --color-muted: #647277;
  --color-border: #d9e0df;

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;

  --content-width: 1180px;
  --section-padding: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  margin-bottom: 1.5rem;
  color: var(--color-navy);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.65rem;
}

p {
  margin-top: 0;
}

.site-header {
  position: absolute;
  top: 1.75rem;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container,
.section-container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.nav-container {
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 1rem 1.8rem;

  background: rgba(58, 88, 98, 0.95);

  border-radius: 18px;

  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.site-logo {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  text-decoration: none;
}

.site-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.site-navigation a {
  color: var(--color-white);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-navigation a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  padding: 0.55rem 0.85rem;
  color: var(--color-white);
  background: transparent;
  font: inherit;
}

.hero {
  position: relative;
  display: flex;
  min-height: 85vh;
  align-items: center;

  background: var(--color-cream);
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding-top: 7rem;
}

.eyebrow,
.section-label,
.card-category,
.publication-year {
  margin-bottom: 1rem;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--color-blue);
}

.hero-description {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--color-white);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-block;
  border: 1px solid transparent;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button-primary {
  color: var(--color-white);
  background: var(--color-blue);
}

.button-primary:hover {
  background: var(--color-navy);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  background: transparent;
}

.button-secondary:hover {
  color: var(--color-navy);
  background: var(--color-white);
}

.section {
  padding: var(--section-padding) 0;
}

.intro-section {
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.intro-grid p {
  font-size: 1.1rem;
}

.text-link,
.card-link {
  color: var(--color-blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.research-section {
  background: var(--color-cream);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.research-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.card-image {
  min-height: 330px;
  background-color: var(--color-blue);
  background-position: center;
  background-size: cover;
}

.card-image-whale {
  background-image: url("/images/uploads/gray-whale.jpeg");
}

.card-image-penguin {
  background-image: url("/images/uploads/emperor-penguin.JPG");
}

.card-content {
  padding: 2rem;
}

.card-content p {
  color: var(--color-muted);
}

.publication-section {
  background: var(--color-navy);
}

.publication-section h2,
.publication-section h3 {
  color: var(--color-white);
}

.publication-section .section-label,
.publication-section .text-link {
  color: var(--color-blue);
}

.publication-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 5rem;
}

.publication-card {
  border-left: 2px solid var(--color-seafoam);
  padding-left: 2rem;
}

.publication-year,
.publication-authors,
.publication-journal {
  color: var(--color-blue);
}

.contact-section {
  background: var(--color-sand);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.contact-box h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.78);
  background: #10272d;
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 3rem;
}

.footer-name {
  margin-bottom: 0.3rem;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
}

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

@media (max-width: 800px) {
  :root {
    --section-padding: 4rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation a {
    padding: 0.8rem 0;
  }

  .intro-grid,
  .card-grid,
  .publication-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-heading,
  .contact-box,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
  position: relative;
  display: flex;
  min-height: 85vh;
  align-items: center;

  background: var(--color-cream);
}

  .card-image {
    min-height: 260px;
  }
}





@media (max-width: 800px){

  .hero-content.hero-grid{
    grid-template-columns:1fr;
    gap:2rem;
  }

  .hero-photo{
    justify-content:flex-start;
  }

  .hero-photo img{
    width:180px;
    height:180px;
  }

}

/* Homepage hero title and headshot */
.hero-content.hero-grid {
  display: block;
}

.hero-text {
  width: 100%;
  max-width: 980px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-title-row h1 {
  flex: 1;
  min-width: 0;
  margin-bottom: 1.5rem;
}

.hero-photo {
  flex: 0 0 auto;
  margin-top: .5rem;
  margin-bottom: 1.5rem;
}

.hero-photo img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

@media (max-width: 800px) {
  .hero-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title-row h1 {
    margin-bottom: 0;
  }

  .hero-photo {
    margin-bottom: 1rem;
  }

  .hero-photo img {
    width: 150px;
    height: 150px;
  }
}

/* Final homepage hero layout */
.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  align-items: center;
  padding-top: 84px;
  background: var(--color-navy);
}

.hero-overlay {
  display: none;
}

.hero-content.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 5rem;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.hero-copy .eyebrow {
  color: var(--color-seafoam);
}

.hero-copy h1 {
  margin-bottom: 1.25rem;
  color: var(--color-white);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.hero-description {
  max-width: 700px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 320px;
  height: 320px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero .button-primary {
  color: var(--color-white);
  background: var(--color-blue);
}

.hero .button-primary:hover {
  background: #244e59;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--color-white);
  background: transparent;
}

.hero .button-secondary:hover {
  color: var(--color-navy);
  background: var(--color-white);
}

/* Keep navigation visible over the dark hero */
.site-logo,
.site-navigation a {
  color: var(--color-white);
}

.menu-toggle {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 4rem;
  }

  .hero-content.hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .hero-photo img {
    width: 230px;
    height: 230px;
  }
}

/* Safari compatibility */
.hero-content.hero-grid {
  width: min(calc(100% - 2rem), var(--content-width));
}

.hero-photo img {
  max-width: 100%;
  flex-shrink: 0;
}

.site-navigation {
  flex-wrap: wrap;
}

@supports not (backdrop-filter: blur(10px)) {
  .nav-container {
    background: rgb(74, 108, 120);
  }
}

/* General content pages */
.content-page {
  min-height: 70vh;
  padding: 6rem 0;
  background: var(--color-cream);
}

.content-page-container {
  max-width: 980px;
}

.content-page h1 {
  margin-bottom: 1.5rem;
  color: var(--color-navy);
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.content-page-description {
  max-width: 780px;
  margin-bottom: 2rem;
  color: var(--color-muted);
  font-size: 1.2rem;
}

.content-page-body {
  max-width: 780px;
  font-size: 1.08rem;
}

.content-page-image {
  width: 100%;
  max-height: 520px;
  margin-bottom: 3rem;
  object-fit: cover;
}

.research-page-grid {
  margin-top: 3rem;
}

.research-page-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.research-page-grid h2 {
  font-size: 1.8rem;
}

/* Photography gallery */
.photography-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.photography-item {
  margin: 0;
}

.photography-item img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.photography-item figcaption {
  padding-top: 0.65rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .photography-grid {
    grid-template-columns: 1fr;
  }

  .photography-item img {
    height: auto;
  }
}

/* Decap-controlled homepage sizing */
.hero-title-small {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.hero-title-medium {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.hero-title-large {
  font-size: clamp(3.4rem, 6vw, 5.8rem);
}

.hero-photo-small img {
  width: 220px;
  height: 220px;
}

.hero-photo-medium img {
  width: 270px;
  height: 270px;
}

.hero-photo-large img {
  width: 320px;
  height: 320px;
}

.hero-photo-xlarge img {
  width: 390px;
  height: 390px;
}

/* Decap-controlled page title sizing */
.content-page .title-size-small {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.content-page .title-size-medium {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.content-page .title-size-large {
  font-size: clamp(3.4rem, 6vw, 5.5rem);
}

/* Decap-controlled text widths */
.content-page-container.content-width-narrow {
  max-width: 760px;
}

.content-page-container.content-width-normal {
  max-width: 980px;
}

.content-page-container.content-width-wide {
  max-width: 1180px;
}

.content-width-narrow .content-page-body,
.content-width-narrow .content-page-description {
  max-width: 660px;
}

.content-width-normal .content-page-body,
.content-width-normal .content-page-description {
  max-width: 780px;
}

.content-width-wide .content-page-body,
.content-width-wide .content-page-description {
  max-width: 980px;
}

/* Decap-controlled featured image sizes */
.content-page-image.image-size-small {
  width: min(100%, 420px);
  max-height: 420px;
}

.content-page-image.image-size-medium {
  width: min(100%, 620px);
  max-height: 480px;
}

.content-page-image.image-size-large {
  width: min(100%, 820px);
  max-height: 560px;
}

.content-page-image.image-size-full {
  width: 100%;
  max-height: 680px;
}

/* Decap-controlled gallery columns */
.photography-grid.gallery-columns-1 {
  grid-template-columns: 1fr;
}

.photography-grid.gallery-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photography-grid.gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photography-grid.gallery-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .photography-grid.gallery-columns-3,
  .photography-grid.gallery-columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-photo-xlarge img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 650px) {
  .photography-grid.gallery-columns-2,
  .photography-grid.gallery-columns-3,
  .photography-grid.gallery-columns-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Decap image alignment controls
   ========================================== */

.image-align-left {
  display: block;
  margin: 0 auto 2rem 0;
}

.image-align-center {
  display: block;
  margin: 0 auto 2rem auto;
}

.image-align-right {
  display: block;
  margin: 0 0 2rem auto;
}

/* Preserve original image proportions */
.content-page-image,
.photography-item img,
.research-page-image {
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Keep Decap-controlled widths without cropping */
.content-page-image.image-size-small {
  width: min(100%, 420px);
}

.content-page-image.image-size-medium {
  width: min(100%, 620px);
}

.content-page-image.image-size-large {
  width: min(100%, 820px);
}

.content-page-image.image-size-full {
  width: 100%;
}

/* ==========================================
   Center page content beneath featured image
   ========================================== */

.content-page-container {
  text-align: center;
}

.content-page-description {
  margin-left: auto;
  margin-right: auto;
}

.content-page-body {
  margin-left: auto;
  margin-right: auto;
}

.content-page-body p {
  text-align: center;
}

.content-page-body ul,
.content-page-body ol {
  display: inline-block;
  text-align: left;
}

.content-page-body img {
  display: block;
  margin: 2rem auto;
}

.content-page-body h2,
.content-page-body h3,
.content-page-body h4 {
  text-align: center;
}

/* ==========================================
   Decap-controlled text alignment
   ========================================== */

.content-page-body.text-align-left,
.content-page-body.text-align-left p,
.content-page-body.text-align-left h2,
.content-page-body.text-align-left h3,
.content-page-body.text-align-left h4 {
  text-align: left;
}

.content-page-body.text-align-center,
.content-page-body.text-align-center p,
.content-page-body.text-align-center h2,
.content-page-body.text-align-center h3,
.content-page-body.text-align-center h4 {
  text-align: center;
}

.content-page-body.text-align-justify,
.content-page-body.text-align-justify p {
  text-align: justify;
  text-justify: inter-word;
}

.content-page-body.text-align-justify h2,
.content-page-body.text-align-justify h3,
.content-page-body.text-align-justify h4 {
  text-align: left;
}

/* Keep lists readable when surrounding text is centered */
.content-page-body.text-align-center ul,
.content-page-body.text-align-center ol {
  display: inline-block;
  text-align: left;
}

/* ==========================================
   Additional photos placed after page text
   ========================================== */

.after-text-images {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.after-text-image {
  margin-top: 0;
  margin-bottom: 0;
}

.after-text-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.after-image-size-small {
  width: min(100%, 360px);
}

.after-image-size-medium {
  width: min(100%, 560px);
}

.after-image-size-large {
  width: min(100%, 820px);
}

.after-image-size-full {
  width: 100%;
}

.after-image-align-left {
  margin-right: auto;
  margin-left: 0;
}

.after-image-align-center {
  margin-right: auto;
  margin-left: auto;
}

.after-image-align-right {
  margin-right: 0;
  margin-left: auto;
}

.after-text-image figcaption {
  margin-top: 0.65rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Research landing page */
.research-landing-image {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 2rem auto;
  object-fit: contain;
}

.research-landing-intro {
  margin-right: auto;
  margin-bottom: 3rem;
  margin-left: auto;
  text-align: center;
}

/* Decap-controlled Research landing image */
.research-landing-image {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.research-landing-image.image-size-small {
  width: min(100%, 420px);
}

.research-landing-image.image-size-medium {
  width: min(100%, 620px);
}

.research-landing-image.image-size-large {
  width: min(100%, 820px);
}

.research-landing-image.image-size-full {
  width: 100%;
}

/* Publication images and figures */
.publication-featured-image,
.publication-figure img {
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.publication-featured-image {
  margin-bottom: 2rem;
}

.publication-image-size-small {
  width: min(100%, 360px);
}

.publication-image-size-medium {
  width: min(100%, 560px);
}

.publication-image-size-large {
  width: min(100%, 820px);
}

.publication-image-size-full {
  width: 100%;
}

.publication-image-align-left {
  margin-right: auto;
  margin-left: 0;
}

.publication-image-align-center {
  margin-right: auto;
  margin-left: auto;
}

.publication-image-align-right {
  margin-right: 0;
  margin-left: auto;
}

.publication-figures {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.publication-figure {
  margin-top: 0;
  margin-bottom: 0;
}

.publication-figure img {
  width: 100%;
}

.publication-figure figcaption {
  margin-top: 0.65rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================
   Publication title sizes and separators
   ========================================== */

.publication-title-small {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.publication-title-medium {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}

.publication-title-large {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.publication-authors {
  margin-bottom: 0.4rem;
  color: var(--color-muted);
}

.publication-authors p {
  margin-bottom: 0;
}

.publication-entry {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
}

.publication-entry:first-child {
  padding-top: 0;
}

.publication-entry:last-child {
  border-bottom: 0;
}

.publication-links a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

/* Publication title sizing */
.publication-title-small {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.publication-title-medium {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}

.publication-title-large {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

/* Formatted author list */
.publication-authors {
  margin-bottom: 0.4rem;
  color: var(--color-muted);
}

.publication-authors p {
  margin: 0;
}

/* Divider between publication entries */
.publication-entry {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
}

.publication-entry:first-child {
  padding-top: 0;
}

.publication-entry:last-child {
  border-bottom: 0;
}

/* Publication links */
.publication-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.publication-links a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

/* Homepage "Recent Work" text colors */
.publication-section {
  color: #e7dfcf;
}

.publication-section h2,
.publication-section h3 {
  color: #f5efe3;
}

.publication-section .section-label,
.publication-section .publication-year,
.publication-section .publication-authors,
.publication-section .publication-journal {
  color: #d8cfbf;
}

.publication-section .text-link {
  color: #f5efe3;
}

.publication-section .text-link:hover {
  color: #ffffff;
}


/* Match Publications page background to other interior pages */
.publications-page {
  background: var(--color-cream);
}

/* Match spacing on other content pages */
.publications-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.publications-page .page-intro {
  margin-bottom: 3rem;
}


/* Publications-specific layout */
.publications-list{
    margin-top:3rem;
}

.publication-entry{
    margin-bottom:4rem;
}

.publication-entry:last-child{
    margin-bottom:0;
}
