/* ============================================================
   DiCE Lab — style.css
   Fonts: Dela Gothic One (display), Inter (body)
   Colors: #ED6626 orange, #C5A2C7 lavender, #8064AB purple,
           #4C61AC blue-purple, #371C30 deep plum
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:   #ED6626;
  --lavender: #C5A2C7;
  --purple:   #8064AB;
  --blue:     #4C61AC;
  --plum:     #371C30;
  --off-white: #FAF9F7;
  --text:     #1a1a1a;
  --mid:      #555;
  --rule:     #e0dbd8;

  --font-display: 'Dela Gothic One', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 860px;
  --pad:   clamp(1.25rem, 5vw, 3rem);
}

html { 
	font-size: 16px;
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: 60px; /* adjust to match header height */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
}

a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--plum); }

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

/* --- Layout utility --- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(55,28,48,0.07);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  opacity: 0.7;
}
.nav-link:hover { opacity: 1; color: var(--plum); }
.nav-link.active { opacity: 1; color: var(--orange); }

.nav-link--highlight {
  background: #ED6626;
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
}
.nav-link--highlight:hover { background: var(--plum); color: #fff !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--plum);
  color: var(--lavender);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 4rem);
  color: var(--lavender);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: #e8dfe6;
  max-width: 72ch;
}
.hero-text + .hero-text { margin-top: 1.25em; }

/* ============================================================
   RESEARCH
   ============================================================ */
.research {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background: var(--off-white);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--plum);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.project { margin-bottom: 2.25rem; }
.project:last-child { margin-bottom: 0; }

.project-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.project p {
  color: var(--text);
  max-width: 72ch;
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  background: #f0ecf4;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 3px solid var(--lavender);
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-member {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
}

.team-member-photo-wrap {
  flex-shrink: 0;
}

.team-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  border: 3px solid var(--lavender);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--plum);
  margin-bottom: 0.2rem;
}

.team-name a {
	text-decoration: none;
	color: var(--plum);
}

.team-title {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--purple);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.team-member-body p {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 66ch;
  margin-bottom: 0.75em;
}
.team-member-body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .team-member {
    grid-template-columns: 1fr;
  }
  .team-photo {
    width: 130px;
    height: 160px;
  }
}

/* ============================================================
   MAILING LIST
   ============================================================ */
.mailing-list {
  background: var(--plum);
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 3px solid var(--lavender, #C5A2C7);
}

.mailing-list .section-heading {
  color: var(--lavender, #C5A2C7);
  border-bottom-color: var(--lavender, #C5A2C7);
}

.mailing-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.mailing-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mailing-form input[type="email"] {
  flex: 1 1 260px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 1rem;
  border: 2px solid rgba(197,162,199,0.5);
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}
.mailing-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.mailing-form input[type="email"]:focus { border-color: var(--lavender, #C5A2C7); }

.mailing-form .btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  background: var(--orange, #ED6626);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.mailing-form .btn:hover { background: #d4561e; }

.mailing-status {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}
.mailing-status--success { color: var(--lavender, #C5A2C7); }
.mailing-status--error   { color: #f8a4a4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--plum);
  padding: 2rem var(--pad);
}

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

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--lavender);
}
