/* =========================================================
   FONTS
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces9pt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces9pt-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   COLOURS
   ========================================================= */

:root {
  --background: #f7f4ee;
  --text: #202020;
  --muted: #6c6963;
  --accent: #c65335;
  --line: #d8d2c8;
  --warm: #eee3d0;
}


/* =========================================================
   GENERAL
   ========================================================= */

body {
  background-color: var(--background);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

main.content {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

p {
  max-width: 800px;
}

.inline-link,
.inline-link:hover,
.inline-link:focus {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  color: var(--text);
  font-weight: 400;
}

h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  margin-top: 3rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
  background-color: var(--background) !important;
  border-bottom: 1px solid var(--line);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.navbar-brand {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text) !important;
}

.navbar-nav .nav-link {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text) !important;
  font-size: 0.95rem;
  margin-left: 0.7rem;
  margin-right: 0.7rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}


/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.home-hero {
  min-height: 58vh;

  background-image:
    linear-gradient(
      90deg,
      rgba(17, 25, 30, 0.78) 0%,
      rgba(17, 25, 30, 0.55) 40%,
      rgba(17, 25, 30, 0.12) 75%
    ),
    url("images/hero2.jpg");

  background-size: cover;
  background-position: 65% 78%;

  display: flex;
  align-items: flex-end;

  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

  padding: 5rem max(6vw, calc((100vw - 1050px) / 2));
}

.hero-overlay {
  max-width: 620px;
  color: #ffffff;
}

.hero-overlay h1 {
  font-family: "Fraunces", serif;
  color: #ffffff;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 1;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-overlay p {
  font-family: "IBM Plex Sans", sans-serif;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 590px;
}

.hero-kicker {
  font-family: "IBM Plex Sans", sans-serif;
  color: #e5aa91;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-links {
  margin-top: 2rem;
}

.hero-links a {
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  color: #ffffff;
  margin-right: 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid #e5aa91;
  padding-bottom: 0.15rem;
}

.hero-links a:hover {
  color: #e5aa91;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 4.5rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about-photo img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text {
  max-width: 700px;
}

.about-text h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-text a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
}



/* =========================================================
   CURRENTLY
   ========================================================= */

.currently {
  max-width: 900px;
  margin-top: 1rem;
  margin-bottom: 5rem;
  padding: 2rem 2.2rem;
  border-left: 3px solid var(--accent);
  background-color: rgba(198, 83, 53, 0.05);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-kicker {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}


/* =========================================================
   RESEARCH THEMES
   ========================================================= */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.research-card {
  border-top: 2px solid var(--text);
  padding-top: 1.4rem;
}

.research-card h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
}

.research-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}


/* =========================================================
   SELECTED RESEARCH / PUBLICATIONS
   ========================================================= */

.paper-list {
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.paper-item {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
}

.paper-item:last-child {
  border-bottom: 1px solid var(--line);
}

.paper-meta {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.paper-item h3 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.paper-item p {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 0.7rem;
}

.paper-item a {
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
}

.research-button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  color: #fff !important;
  background-color: #C65335;
  border: 1px solid #C65335;
  border-radius: 3px;
  text-decoration: none !important;
  font-weight: 600;
}

.research-button:hover {
  color: #fff !important;
  background-color: #A9442D;
  border-color: #A9442D;
}

.paper-list {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.paper-list .paper-item:last-child {
  margin-bottom: 0 !important;
}

.research-cta {
  margin-top: 1.25rem !important;
  margin-bottom: 4rem !important;
}

.research-cta p {
  margin: 0 !important;
}

/* =========================================================
   HOMEPAGE POLICY FEATURE
   ========================================================= */

.policy-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.policy-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 18%;
}

.policy-text {
  width: 100%;
  max-width: none;
}

.policy-text h2 {
  font-size: 2.2rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.policy-text p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.policy-text a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
}




/* =========================================================
   RESEARCH PAGE
   ========================================================= */

.research-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.research-intro-text h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-top: 0.5rem;
  margin-bottom: 1.8rem;
}

.research-intro-text p {
  font-size: 1.12rem;
  line-height: 1.75;
}

.research-intro-photo img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin-left: auto;
}


/* =========================================================
   ONGOING RESEARCH
   ========================================================= */

.ongoing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.ongoing-paper {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
}

.paper-number {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.ongoing-paper h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.ongoing-paper p {
  color: var(--muted);
  font-size: 0.95rem;
}


/* =========================================================
   POLICY PAGE
   ========================================================= */

.policy-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.policy-intro-text h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-top: 0.5rem;
  margin-bottom: 1.8rem;
}

.policy-intro-text p {
  font-size: 1.12rem;
  line-height: 1.75;
}

.policy-intro-photo img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin-left: auto;
}


/* =========================================================
   POLICY AREAS
   ========================================================= */

.policy-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.policy-area {
  border-top: 2px solid var(--text);
  padding-top: 1.3rem;
}

.policy-area h3 {
  font-size: 1.4rem;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.policy-area p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}


/* =========================================================
   PUBLIC ENGAGEMENT
   ========================================================= */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.engagement-item {
  background-color: var(--warm);
  padding: 2rem;
}

.engagement-item h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.engagement-item p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

  main.content {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }


  /* Hero */

  .home-hero {
    min-height: 65vh;
    background-position: 68% 75%;
    padding: 3rem 2rem;
  }

  .hero-overlay {
    max-width: 500px;
  }

  .hero-overlay h1 {
    font-size: 3.4rem;
  }

  .hero-overlay p {
    font-size: 1.05rem;
  }


  /* About */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .about-photo img {
    max-width: 250px;
  }


  /* Research themes */

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


  /* Homepage policy */

  .policy-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .policy-image img {
    height: 380px;
    object-position: center 15%;
  }



/* =========================================================
   CONSULTANCY FEATURE
   ========================================================= */

.consultancy-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.6fr);
  gap: 3rem;
  align-items: center;
  margin: 4rem 0;
  padding: 2.75rem;
  background-color: #eee9e1;
  border-radius: 4px;
}

.consultancy-photo {
  display: flex;
  justify-content: center;
}

.consultancy-photo p {
  margin: 0;
}

.consultancy-photo img {
  display: block;
  width: 250px !important;
  max-width: 100% !important;
  height: 300px !important;
  object-fit: cover;
  object-position: right bottom;
  border-radius: 3px;
}

.consultancy-text {
  min-width: 0;
}

.consultancy-text > :first-child {
  margin-top: 0;
}

.consultancy-text > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   CONSULTANCY FEATURE: MOBILE
   ========================================================= */

@media (max-width: 850px) {
  .consultancy-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .consultancy-photo img {
    width: 250px !important;
    max-width: 100% !important;
    height: 300px !important;
    object-fit: cover;
    object-position: right bottom;
  }

  .consultancy-text h2 {
    font-size: 2.1rem;
  }
}


/* =========================================================
   CONSULTANCY PAGE
   ========================================================= */

.consultancy-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.consultancy-intro-text h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-top: 0.5rem;
  margin-bottom: 1.8rem;
}

.consultancy-intro-text p {
  font-size: 1.12rem;
  line-height: 1.75;
}

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


/* ---------- Consultancy areas ---------- */

.consultancy-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.consultancy-area {
  border-top: 2px solid var(--text);
  padding-top: 1.3rem;
}

.consultancy-area h3 {
  font-size: 1.4rem;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.consultancy-area p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}


/* ---------- Consultancy experience ---------- */

.consultancy-experience {
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.experience-item:last-child {
  border-bottom: 1px solid var(--line);
}

.experience-year {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}

.experience-item h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
}

.experience-item p {
  color: var(--muted);
  margin-bottom: 0;
}


/* ---------- Consultancy page: mobile ---------- */

@media (max-width: 850px) {

  .consultancy-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .consultancy-intro-text h1 {
    font-size: 2.7rem;
  }

  .consultancy-areas {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

}


/* =========================================================
   CV PAGE
   ========================================================= */

.cv-intro {
  max-width: 760px;
  margin-bottom: 4rem;
}

.cv-intro h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-top: 0.5rem;
  margin-bottom: 1.8rem;
}

.cv-intro p {
  font-size: 1.12rem;
  line-height: 1.75;
}

.cv-download {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--accent);
  font-weight: 600;
}

.cv-download:hover {
  background-color: var(--accent);
  color: #ffffff;
}


/* ---------- CV highlights ---------- */

.cv-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.cv-highlight {
  border-top: 2px solid var(--text);
  padding-top: 1.3rem;
}

.cv-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.cv-highlight p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}


/* ---------- Embedded CV ---------- */

.cv-frame {
  width: 100%;
  height: 950px;
  border: 1px solid var(--line);
  margin-top: 1rem;
}


/* ---------- CV page: mobile ---------- */

@media (max-width: 850px) {

  .cv-intro h1 {
    font-size: 2.7rem;
  }

  .cv-highlights {
    grid-template-columns: 1fr;
  }

  .cv-frame {
    height: 650px;
  }

}